Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkStats.java134 private int[] defaultNetwork; field in NetworkStats
172 public int defaultNetwork; field in NetworkStats.Entry
200 int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, in Entry() argument
208 this.defaultNetwork = defaultNetwork; in Entry()
242 builder.append(" defaultNetwork=").append(defaultNetworkToString(defaultNetwork)); in toString()
256 && roaming == e.roaming && defaultNetwork == e.defaultNetwork in equals()
266 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode()
282 this.defaultNetwork = new int[initialSize]; in NetworkStats()
305 defaultNetwork = parcel.createIntArray(); in NetworkStats()
324 dest.writeIntArray(defaultNetwork); in writeToParcel()
[all …]
DNetworkIdentity.java65 boolean metered, boolean defaultNetwork) { in NetworkIdentity() argument
72 mDefaultNetwork = defaultNetwork; in NetworkIdentity()
197 boolean defaultNetwork) { in buildNetworkIdentity() argument
231 defaultNetwork); in buildNetworkIdentity()
DNetworkTemplate.java207 String networkId, int metered, int roaming, int defaultNetwork) { in NetworkTemplate() argument
214 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.cpp54 jfieldID defaultNetwork; member
231 ScopedIntArrayRW defaultNetwork(env, get_int_array(env, stats, in statsLinesToNetworkStats() local
232 gNetworkStatsClassInfo.defaultNetwork, size, grow)); in statsLinesToNetworkStats()
233 if (defaultNetwork.get() == NULL) return -1; in statsLinesToNetworkStats()
273 env->SetObjectField(stats, gNetworkStatsClassInfo.defaultNetwork, in statsLinesToNetworkStats()
274 defaultNetwork.getJavaArray()); in statsLinesToNetworkStats()
351 gNetworkStatsClassInfo.defaultNetwork = env->GetFieldID(clazz, "defaultNetwork", "[I"); in register_android_server_net_NetworkStatsFactory()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java562 public TestNetworkAgent defaultNetwork = null; field in UpstreamNetworkMonitorTest.TestConnectivityManager
613 if (Objects.equals(defaultNetwork, agent)) return; in makeDefaultNetwork()
615 final TestNetworkAgent formerDefault = defaultNetwork; in makeDefaultNetwork()
616 defaultNetwork = agent; in makeDefaultNetwork()
619 if (defaultNetwork != null) { in makeDefaultNetwork()
620 cb.onAvailable(defaultNetwork.networkId); in makeDefaultNetwork()
622 defaultNetwork.networkId, defaultNetwork.networkCapabilities); in makeDefaultNetwork()
624 defaultNetwork.networkId, defaultNetwork.linkProperties); in makeDefaultNetwork()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java929 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument
931 int index = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertContains()
933 assertValues(stats, index, iface, uid, set, tag, metered, roaming, defaultNetwork, in assertContains()
938 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
941 assertValues(entry, iface, uid, set, tag, metered, roaming, defaultNetwork); in assertValues()
947 int roaming, int defaultNetwork) { in assertValues() argument
954 assertEquals(defaultNetwork, entry.defaultNetwork); in assertValues()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1169 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, in assertUidTotal() argument
1180 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork, in assertUidTotal()
1268 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
1293 if (defaultNetwork == DEFAULT_NETWORK_ALL) { in assertValues()
1297 defaultNetworks = new int[] { defaultNetwork }; in assertValues()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java613 mRecycledSummaryEntry.defaultNetwork); in fillBucketFromSummaryEntry()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java4404 NetworkAgentInfo defaultNetwork = getDefaultNetwork(); in createVpnInfo() local
4405 if (defaultNetwork != null && defaultNetwork.linkProperties != null) { in createVpnInfo()
4447 Network defaultNetwork = getNetwork(getDefaultNetwork()); in updateAllVpnsCapabilities() local
4451 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in updateAllVpnsCapabilities()
4806 Network defaultNetwork = getNetwork(getDefaultNetwork()); in onUserAdded() local
4812 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in onUserAdded()
4820 Network defaultNetwork = getNetwork(getDefaultNetwork()); in onUserRemoved() local
4826 NetworkCapabilities nc = vpn.updateCapabilities(defaultNetwork); in onUserRemoved()
6784 NetworkAgentInfo defaultNetwork = getDefaultNetwork(); in getDefaultNetworks() local
6786 if (nai.everConnected && (nai == defaultNetwork || nai.isVPN())) { in getDefaultNetworks()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java280 @Nullable Network defaultNetwork) { in updateCapabilities()
287 if (underlyingNetworks == null && defaultNetwork != null) { in updateCapabilities()
289 underlyingNetworks = new Network[] { defaultNetwork }; in updateCapabilities()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1052 public NetworkCapabilities updateCapabilities(Network defaultNetwork) { in updateCapabilities() argument
1054 super.updateCapabilities(defaultNetwork); in updateCapabilities()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt47922 Landroid/net/NetworkStats$Entry;->defaultNetwork:I