Home
last modified time | relevance | path

Searched refs:NetworkState (Results 1 – 19 of 19) 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.java85 import android.net.NetworkState;
285 NetworkState[] states = new NetworkState[] {buildWifiState()};
328 NetworkState[] states = new NetworkState[] {buildWifiState()};
401 NetworkState[] states = new NetworkState[] {buildWifiState()};
441 NetworkState[] states = new NetworkState[] {buildMobile3gState(IMSI_1)};
471 states = new NetworkState[] {buildMobile3gState(IMSI_2)};
514 NetworkState[] states = new NetworkState[] {buildWifiState()};
573 NetworkState[] states = new NetworkState[] {buildMobile3gState(IMSI_1)};
597 states = new NetworkState[] {buildWimaxState(TEST_IFACE2)};
632 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/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java36 import android.net.NetworkState;
530 public NetworkState getNetworkState() { in getNetworkState()
536 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java111 import android.net.NetworkState;
984 NetworkState[] state = null;
996 state = new NetworkState[] { buildWifi() };
1251 NetworkState[] state = null;
1261 state = new NetworkState[] { buildWifi() };
1388 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1401 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1881 private static NetworkState buildWifi() { in buildWifi()
1887 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()
1898 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[] { in expectNetworkState()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java101 import android.net.NetworkState;
300 private NetworkState[] mLastNetworkStates = null;
972 NetworkState[] networkStates,
1259 NetworkState[] networkStates,
1279 @NonNull NetworkState[] states) {
1303 for (NetworkState state : states) {
1394 private int getSubTypeForState(@NonNull NetworkState state) {
DNetworkPolicyManagerService.java161 import android.net.NetworkState;
1788 private static void collectIfaces(ArraySet<String> ifaces, NetworkState state) {
1855 final NetworkState[] states;
1866 final ArrayMap<NetworkState, NetworkIdentity> identified = new ArrayMap<>();
1867 for (NetworkState state : states) {
1952 for (NetworkState state : states) {
1986 for (NetworkState state : states) {
3027 public NetworkQuotaInfo getNetworkQuotaInfo(NetworkState state) { in getNetworkQuotaInfo()
5342 private int parseSubId(NetworkState state) { in parseSubId()
5423 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;
4792 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
4802 .forceUpdateIfaces(eq(onlyWifi), any(NetworkState[].class), eq(WIFI_IFNAME), in testStatsIfacesChanged()
4810 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), in testStatsIfacesChanged()
4818 .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()
4841 .forceUpdateIfaces(eq(onlyCell), any(NetworkState[].class), eq(MOBILE_IFNAME), in testStatsIfacesChanged()
/frameworks/base/services/
Dart-profile789 HSPLcom/android/server/ConnectivityService;->filterNetworkStateForUid(Landroid/net/NetworkState;IZ)V
797 HSPLcom/android/server/ConnectivityService;->getAllNetworkState()[Landroid/net/NetworkState;
802 PLcom/android/server/ConnectivityService;->getFilteredNetworkState(II)Landroid/net/NetworkState;
5513 HSPLcom/android/server/connectivity/NetworkAgentInfo;->getNetworkState()Landroid/net/NetworkState;
8873 …net/NetworkPolicyManagerService;->collectIfaces(Landroid/util/ArraySet;Landroid/net/NetworkState;)V
8874 …etworkPolicyManagerService;->defeatNullable([Landroid/net/NetworkState;)[Landroid/net/NetworkState;
8914 HSPLcom/android/server/net/NetworkPolicyManagerService;->parseSubId(Landroid/net/NetworkState;)I
9069 …Landroid/net/Network;[Lcom/android/internal/net/VpnInfo;[Landroid/net/NetworkState;Ljava/lang/Stri…
9099 …Landroid/net/Network;[Lcom/android/internal/net/VpnInfo;[Landroid/net/NetworkState;Ljava/lang/Stri…
9100 …er/net/NetworkStatsService;->updateIfacesLocked([Landroid/net/Network;[Landroid/net/NetworkState;)V
/frameworks/base/config/
Dboot-image-profile.txt10302 …Identity;->buildNetworkIdentity(Landroid/content/Context;Landroid/net/NetworkState;Z)Landroid/net/…
10416 HSPLandroid/net/NetworkState$1;-><init>()V
10417 HSPLandroid/net/NetworkState;-><init>(Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid…
34915 Landroid/net/NetworkState$1;
34916 Landroid/net/NetworkState;
Dhiddenapi-greylist-max-o.txt42837 Landroid/net/IConnectivityManager$Stub$Proxy;->getAllNetworkState()[Landroid/net/NetworkState;
43357 Landroid/net/INetworkPolicyManager$Stub$Proxy;->getNetworkQuotaInfo(Landroid/net/NetworkState;)Land…
44442 …Identity;->buildNetworkIdentity(Landroid/content/Context;Landroid/net/NetworkState;Z)Landroid/net/…
44643 Landroid/net/NetworkState;-><init>(Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid/ne…
44644 Landroid/net/NetworkState;->EMPTY:Landroid/net/NetworkState;
44645 Landroid/net/NetworkState;->linkProperties:Landroid/net/LinkProperties;
44646 Landroid/net/NetworkState;->networkCapabilities:Landroid/net/NetworkCapabilities;
44647 Landroid/net/NetworkState;->networkId:Ljava/lang/String;
44648 Landroid/net/NetworkState;->networkInfo:Landroid/net/NetworkInfo;
44649 Landroid/net/NetworkState;->SANITY_CHECK_ROAMING:Z
[all …]