Home
last modified time | relevance | path

Searched refs:defaultNetwork (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkStats.java239 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 …]
DNetworkIdentity.java55 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()
DNetworkTemplate.java245 String networkId, int metered, int roaming, int defaultNetwork, int subType) { in NetworkTemplate() argument
252 mDefaultNetwork = defaultNetwork; in NetworkTemplate()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java80 final boolean defaultNetwork; in NetworkIdentitySet()
82 defaultNetwork = in.readBoolean(); in NetworkIdentitySet()
84 defaultNetwork = true; in NetworkIdentitySet()
88 defaultNetwork)); in NetworkIdentitySet()
DNetworkStatsCollection.java355 entry.defaultNetwork = key.ident.areAllMembersOnDefaultNetwork() ? in getSummary()
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsFactory.cpp55 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/
DNetworkStatsBaseTest.java59 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()
DNetworkStatsFactoryTest.java554 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()
DNetworkStatsServiceTest.java1338 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes,
1349 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork,
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java573 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/libs/net/common/devicetests/com/android/testutils/
DNetworkStatsUtils.kt47 left.metered, left.roaming, left.defaultNetwork, i) in <lambda>()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java986 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/
DNetworkStats.java613 mRecycledSummaryEntry.defaultNetwork); in fillBucketFromSummaryEntry()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java322 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/
DConnectivityService.java4760 Network defaultNetwork = getNetwork(getDefaultNetwork()); in updateAllVpnsCapabilities() local
4764 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in updateAllVpnsCapabilities()
5118 Network defaultNetwork = getNetwork(getDefaultNetwork()); in onUserAdded() local
5124 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in onUserAdded()
5132 Network defaultNetwork = getNetwork(getDefaultNetwork()); in onUserRemoved() local
5138 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in onUserRemoved()
7409 NetworkAgentInfo defaultNetwork = getDefaultNetwork(); in getDefaultNetworks() local
7411 if (nai.everConnected && (nai == defaultNetwork || nai.isVPN())) { in getDefaultNetworks()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1092 public NetworkCapabilities updateCapabilities(Network defaultNetwork) { in updateCapabilities() argument
1094 super.updateCapabilities(defaultNetwork); in updateCapabilities()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44655 Landroid/net/NetworkStats$Entry;->defaultNetwork:I