Home
last modified time | relevance | path

Searched refs:defaultNetwork (Results 1 – 16 of 16) 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.java248 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/
DNetworkIdentitySet.java80 final boolean defaultNetwork; in NetworkIdentitySet()
82 defaultNetwork = in.readBoolean(); in NetworkIdentitySet()
84 defaultNetwork = true; in NetworkIdentitySet()
88 defaultNetwork)); in NetworkIdentitySet()
DNetworkStatsCollection.java379 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.java1225 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/
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/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.java4768 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/
DStatsPullAtomService.java1296 entry.defaultNetwork = NetworkStats.DEFAULT_NETWORK_ALL;
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1092 public NetworkCapabilities updateCapabilities(Network defaultNetwork) { in updateCapabilities() argument
1094 super.updateCapabilities(defaultNetwork); in updateCapabilities()