/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 239 private int[] defaultNetwork; field in NetworkStats 292 public int defaultNetwork; field in NetworkStats.Entry 358 @Meteredness int metered, @Roaming int roaming, @DefaultNetwork int defaultNetwork, in Entry() argument 366 this.defaultNetwork = defaultNetwork; in Entry() 403 builder.append(" defaultNetwork=").append(defaultNetworkToString(defaultNetwork)); in toString() 418 && roaming == e.roaming && defaultNetwork == e.defaultNetwork in equals() 429 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode() 444 this.defaultNetwork = new int[initialSize]; in NetworkStats() 468 defaultNetwork = parcel.createIntArray(); in NetworkStats() 487 dest.writeIntArray(defaultNetwork); in writeToParcel() [all …]
|
D | NetworkIdentity.java | 55 boolean metered, boolean defaultNetwork) { in NetworkIdentity() argument 62 mDefaultNetwork = defaultNetwork; in NetworkIdentity() 187 boolean defaultNetwork, @NetworkType int subType) { in buildNetworkIdentity() argument 220 defaultNetwork); in buildNetworkIdentity()
|
D | NetworkTemplate.java | 248 String networkId, int metered, int roaming, int defaultNetwork, int subType) { in NetworkTemplate() argument 255 mDefaultNetwork = defaultNetwork; in NetworkTemplate()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkIdentitySet.java | 80 final boolean defaultNetwork; in NetworkIdentitySet() 82 defaultNetwork = in.readBoolean(); in NetworkIdentitySet() 84 defaultNetwork = true; in NetworkIdentitySet() 88 defaultNetwork)); in NetworkIdentitySet()
|
D | NetworkStatsCollection.java | 379 entry.defaultNetwork = key.ident.areAllMembersOnDefaultNetwork() ? in getSummary()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsFactory.cpp | 55 jfieldID defaultNetwork; member 232 ScopedIntArrayRW defaultNetwork(env, get_int_array(env, stats, in statsLinesToNetworkStats() local 233 gNetworkStatsClassInfo.defaultNetwork, size, grow)); in statsLinesToNetworkStats() 234 if (defaultNetwork.get() == NULL) return -1; in statsLinesToNetworkStats() 274 env->SetObjectField(stats, gNetworkStatsClassInfo.defaultNetwork, in statsLinesToNetworkStats() 275 defaultNetwork.getJavaArray()); in statsLinesToNetworkStats() 352 gNetworkStatsClassInfo.defaultNetwork = env->GetFieldID(clazz, "defaultNetwork", "[I"); in register_android_server_net_NetworkStatsFactory()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsBaseTest.java | 59 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 84 if (defaultNetwork == DEFAULT_NETWORK_ALL) { in assertValues() 88 defaultNetworks = new int[] {defaultNetwork}; in assertValues()
|
D | NetworkStatsFactoryTest.java | 554 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument 556 final int i = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertStatsEntry() 561 iface, uid, set, tag, metered, roaming, defaultNetwork)); in assertStatsEntry()
|
D | NetworkStatsServiceTest.java | 1225 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, 1236 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork,
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 573 public TestNetworkAgent defaultNetwork = null; field in UpstreamNetworkMonitorTest.TestConnectivityManager 617 if (Objects.equals(defaultNetwork, agent)) return; in makeDefaultNetwork() 619 final TestNetworkAgent formerDefault = defaultNetwork; in makeDefaultNetwork() 620 defaultNetwork = agent; in makeDefaultNetwork() 623 if (defaultNetwork != null) { in makeDefaultNetwork() 624 cb.onAvailable(defaultNetwork.networkId); in makeDefaultNetwork() 626 defaultNetwork.networkId, defaultNetwork.networkCapabilities); in makeDefaultNetwork() 628 defaultNetwork.networkId, defaultNetwork.linkProperties); in makeDefaultNetwork()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 986 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument 988 int index = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertContains() 990 assertValues(stats, index, iface, uid, set, tag, metered, roaming, defaultNetwork, in assertContains() 995 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 998 assertValues(entry, iface, uid, set, tag, metered, roaming, defaultNetwork); in assertValues() 1004 int roaming, int defaultNetwork) { in assertValues() argument 1011 assertEquals(defaultNetwork, entry.defaultNetwork); in assertValues()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 613 mRecycledSummaryEntry.defaultNetwork); in fillBucketFromSummaryEntry()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 322 public synchronized NetworkCapabilities updateCapabilities(@Nullable Network defaultNetwork) { in updateCapabilities() argument 329 if (underlyingNetworks == null && defaultNetwork != null) { in updateCapabilities() 331 underlyingNetworks = new Network[] { defaultNetwork }; in updateCapabilities()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 4768 Network defaultNetwork = getNetwork(getDefaultNetwork()); in updateAllVpnsCapabilities() local 4772 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in updateAllVpnsCapabilities() 5126 Network defaultNetwork = getNetwork(getDefaultNetwork()); in onUserAdded() local 5132 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in onUserAdded() 5140 Network defaultNetwork = getNetwork(getDefaultNetwork()); in onUserRemoved() local 5146 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in onUserRemoved() 7424 NetworkAgentInfo defaultNetwork = getDefaultNetwork(); in getDefaultNetworks() local 7426 if (nai.everConnected && (nai == defaultNetwork || nai.isVPN())) { in getDefaultNetworks()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1296 entry.defaultNetwork = NetworkStats.DEFAULT_NETWORK_ALL;
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1092 public NetworkCapabilities updateCapabilities(Network defaultNetwork) { in updateCapabilities() argument 1094 super.updateCapabilities(defaultNetwork); in updateCapabilities()
|