Home
last modified time | relevance | path

Searched refs:NetworkState (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkState.java30 public class NetworkState implements Parcelable { class
33 public static final NetworkState EMPTY = new NetworkState(null, null, null, null, null, null);
43 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState() method in NetworkState
65 public NetworkState(Parcel in) { in NetworkState() method in NetworkState
90 …ic static final @android.annotation.NonNull Creator<NetworkState> CREATOR = new Creator<NetworkSta…
92 public NetworkState createFromParcel(Parcel in) {
93 return new NetworkState(in);
97 public NetworkState[] newArray(int size) {
98 return new NetworkState[size];
DINetworkPolicyManager.aidl22 import android.net.NetworkState;
71 NetworkQuotaInfo getNetworkQuotaInfo(in NetworkState state); in getNetworkQuotaInfo()
DINetworkStatsService.aidl22 import android.net.NetworkState;
71 in NetworkState[] networkStates, in forceUpdateIfaces()
DNetworkState.aidl19 parcelable NetworkState;
DIConnectivityManager.aidl30 import android.net.NetworkState;
77 NetworkState[] getAllNetworkState(); in getAllNetworkState()
DNetworkIdentity.java186 public static NetworkIdentity buildNetworkIdentity(Context context, NetworkState state, in buildNetworkIdentity()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java82 import android.net.NetworkState;
265 NetworkState[] states = new NetworkState[] {buildWifiState()};
308 NetworkState[] states = new NetworkState[] {buildWifiState()};
381 NetworkState[] states = new NetworkState[] {buildWifiState()};
421 NetworkState[] states = new NetworkState[] {buildMobile3gState(IMSI_1)};
451 states = new NetworkState[] {buildMobile3gState(IMSI_2)};
494 NetworkState[] states = new NetworkState[] {buildWifiState()};
553 NetworkState[] states = new NetworkState[] {buildMobile3gState(IMSI_1)};
577 states = new NetworkState[] {buildWimaxState(TEST_IFACE2)};
612 final NetworkState[] states = new NetworkState[]{buildMobile3gState(IMSI_1)};
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkTemplateTest.kt53 private fun buildMobileNetworkState(subscriberId: String): NetworkState = in buildMobileNetworkState()
55 private fun buildWifiNetworkState(ssid: String): NetworkState = in buildMobileNetworkState()
62 ): NetworkState { in buildMobileNetworkState()
71 return NetworkState(info, lp, caps, mock(Network::class.java), subscriberId, ssid) in buildMobileNetworkState()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java28 public class NetworkState { class
41 public NetworkState() { in NetworkState() method in NetworkState
47 public NetworkState(State currentState) { in NetworkState() method in NetworkState
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java43 import com.android.bandwidthtest.NetworkState;
44 import com.android.bandwidthtest.NetworkState.StateTransitionDirection;
80 private NetworkState[] mConnectivityState = new NetworkState[NUM_NETWORK_TYPES];
256 mConnectivityState[networkType] = new NetworkState(); in initializeNetworkStates()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java111 import android.net.NetworkState;
1062 NetworkState[] state = null;
1074 state = new NetworkState[] { buildWifi() };
1329 NetworkState[] state = null;
1339 state = new NetworkState[] { buildWifi() };
1467 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1479 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1958 private static NetworkState buildWifi() { in buildWifi()
1964 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()
1975 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[] { in expectNetworkState()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java100 import android.net.NetworkState;
295 private NetworkState[] mLastNetworkStates = null;
940 NetworkState[] networkStates, in forceUpdateIfaces()
1231 NetworkState[] networkStates, in updateIfaces()
1251 @NonNull NetworkState[] states) { in updateIfacesLocked()
1275 for (NetworkState state : states) { in updateIfacesLocked()
1366 private int getSubTypeForState(@NonNull NetworkState state) { in getSubTypeForState()
DNetworkPolicyManagerService.java161 import android.net.NetworkState;
1794 private static void collectIfaces(ArraySet<String> ifaces, NetworkState state) {
1862 final NetworkState[] states;
1873 final ArrayMap<NetworkState, NetworkIdentity> identified = new ArrayMap<>();
1874 for (NetworkState state : states) {
1959 for (NetworkState state : states) {
1993 for (NetworkState state : states) {
3037 public NetworkQuotaInfo getNetworkQuotaInfo(NetworkState state) { in getNetworkQuotaInfo()
5395 private int parseSubId(NetworkState state) { in parseSubId()
5476 private static @NonNull NetworkState[] defeatNullable(@Nullable NetworkState[] val) { in defeatNullable()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java120 import android.net.NetworkState;
1259 private NetworkState getFilteredNetworkState(int networkType, int uid) { in getFilteredNetworkState()
1262 final NetworkState state; in getFilteredNetworkState()
1274 state = new NetworkState(info, new LinkProperties(), capabilities, in getFilteredNetworkState()
1280 return NetworkState.EMPTY; in getFilteredNetworkState()
1311 private NetworkState getUnfilteredActiveNetworkState(int uid) { in getUnfilteredActiveNetworkState()
1331 return NetworkState.EMPTY; in getUnfilteredActiveNetworkState()
1388 private void filterNetworkStateForUid(NetworkState state, int uid, boolean ignoreBlocked) { in filterNetworkStateForUid()
1412 final NetworkState state = getUnfilteredActiveNetworkState(uid); in getActiveNetworkInfo()
1462 NetworkState state = getUnfilteredActiveNetworkState(uid); in getActiveNetworkInfoUnfiltered()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java177 import android.net.NetworkState;
4784 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
4794 .forceUpdateIfaces(eq(onlyWifi), any(NetworkState[].class), eq(WIFI_IFNAME), in testStatsIfacesChanged()
4802 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), in testStatsIfacesChanged()
4810 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
4817 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
4825 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
4833 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
/frameworks/base/config/
Dpreloaded-classes4283 android.net.NetworkState$1
4284 android.net.NetworkState
Dboot-image-profile.txt14329 HPLandroid/net/NetworkState;-><init>(Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid/…
44479 Landroid/net/NetworkState$1;
44480 Landroid/net/NetworkState;
/frameworks/base/services/
Dart-profile1928 HSPLcom/android/server/ConnectivityService;->filterNetworkStateForUid(Landroid/net/NetworkState;IZ)V
1936 HPLcom/android/server/ConnectivityService;->getAllNetworkState()[Landroid/net/NetworkState;
1945 HPLcom/android/server/ConnectivityService;->getFilteredNetworkState(II)Landroid/net/NetworkState;
1970 …m/android/server/ConnectivityService;->getUnfilteredActiveNetworkState(I)Landroid/net/NetworkState;
12745 HPLcom/android/server/connectivity/NetworkAgentInfo;->getNetworkState()Landroid/net/NetworkState;
20349 …net/NetworkPolicyManagerService;->collectIfaces(Landroid/util/ArraySet;Landroid/net/NetworkState;)V
20351 …etworkPolicyManagerService;->defeatNullable([Landroid/net/NetworkState;)[Landroid/net/NetworkState;
20412 HPLcom/android/server/net/NetworkPolicyManagerService;->parseSubId(Landroid/net/NetworkState;)I
20649 …kStatsService;->access$200(Lcom/android/server/net/NetworkStatsService;)[Landroid/net/NetworkState;
20656 …id/server/net/NetworkStatsService;[Landroid/net/Network;[Landroid/net/NetworkState;Ljava/lang/Stri…
[all …]