public int c() { int i = -1; NetworkInfo localNetworkInfo1 = a.getActiveNetworkInfo(); int k; if (localNetworkInfo1 == null) { k = i; return k; } Network[] arrayOfNetwork = b(); int m = arrayOfNetwork.length; int j = 0; for (; ; ) { k = i; if (j >= m) { break; } Network localNetwork = arrayOfNetwork[j]; k = i; if (b(localNetwork)) { NetworkInfo localNetworkInfo2 = a.getNetworkInfo(localNetwork); k = i; if (localNetworkInfo2 != null) { k = i; if (localNetworkInfo2.getType() == localNetworkInfo1.getType()) { k = Integer.parseInt(localNetwork.toString()); } } } j += 1; i = k; } }
public boolean b(Network paramNetwork) { paramNetwork = a.getNetworkCapabilities(paramNetwork); return (paramNetwork != null) && (paramNetwork.hasCapability(12)); }