MCPcopy Create free account
hub / github.com/FongMi/TV / getUrl

Method getUrl

app/src/mobile/java/com/fongmi/android/tv/utils/ScanTask.java:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 private List<String> getUrl() {
48 String local = Server.get().getAddress();
49 String base = local.substring(0, local.lastIndexOf(".") + 1);
50 return IntStream.range(1, 256).mapToObj(i -> base + i + ":9978").toList();
51 }
52
53 private void findDevice(String url) {
54 if (url.equals(Server.get().getAddress())) return;

Callers 14

startMethod · 0.95
onCastMethod · 0.45
onInfoMethod · 0.45
requestUrlMethod · 0.45
requestCatchupUrlMethod · 0.45
onShareMethod · 0.45
onCastMethod · 0.45
onInfoMethod · 0.45
onShareMethod · 0.45
setConfigMethod · 0.45
getItemCountMethod · 0.45
onBindViewHolderMethod · 0.45

Calls 4

getMethod · 0.95
getAddressMethod · 0.80
rangeMethod · 0.80
substringMethod · 0.45

Tested by

no test coverage detected