Home
last modified time | relevance | path

Searched refs:NetworkState (Results 1 – 24 of 24) 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];
DINetworkStatsService.aidl22 import android.net.NetworkState;
70 in NetworkState[] networkStates, in forceUpdateIfaces()
DINetworkPolicyManager.aidl22 import android.net.NetworkState;
74 NetworkQuotaInfo getNetworkQuotaInfo(in NetworkState state); in getNetworkQuotaInfo()
DNetworkState.aidl19 parcelable NetworkState;
DIConnectivityManager.aidl29 import android.net.NetworkState;
73 NetworkState[] getAllNetworkState(); in getAllNetworkState()
DNetworkIdentity.java196 public static NetworkIdentity buildNetworkIdentity(Context context, NetworkState state, in buildNetworkIdentity()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java35 import android.net.NetworkState;
93 private final HashMap<Network, NetworkState> mNetworkMap = new HashMap<>();
224 public NetworkState selectPreferredUpstreamType(Iterable<Integer> preferredTypes) { in selectPreferredUpstreamType()
258 public NetworkState getCurrentPreferredUpstream() { in getCurrentPreferredUpstream()
259 final NetworkState dfltState = (mDefaultInternetNetwork != null) in getCurrentPreferredUpstream()
294 mNetworkMap.put(network, new NetworkState(null, null, null, network, null, null)); in handleAvailable()
298 final NetworkState prev = mNetworkMap.get(network); in handleNetCap()
318 mNetworkMap.put(network, new NetworkState( in handleNetCap()
326 final NetworkState prev = mNetworkMap.get(network); in handleLinkProp()
339 mNetworkMap.put(network, new NetworkState( in handleLinkProp()
[all …]
DTetheringInterfaceUtils.java22 import android.net.NetworkState;
38 public static @Nullable InterfaceSet getTetheringInterfaces(NetworkState ns) { in getTetheringInterfaces()
54 public static @Nullable String getIPv6Interface(NetworkState ns) { in getIPv6Interface()
DIPv6TetheringCoordinator.java25 import android.net.NetworkState;
76 private NetworkState mUpstreamNetworkState;
116 public void updateUpstreamNetworkState(NetworkState ns) { in updateUpstreamNetworkState()
141 private void setUpstreamNetworkState(NetworkState ns) { in setUpstreamNetworkState()
146 mUpstreamNetworkState = new NetworkState( in setUpstreamNetworkState()
297 private static String toDebugString(NetworkState ns) { in toDebugString()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java82 import android.net.NetworkState;
250 NetworkState[] states = new NetworkState[] {buildWifiState()}; in testNetworkStatsWifi()
294 NetworkState[] states = new NetworkState[] {buildWifiState()}; in testStatsRebootPersist()
368 NetworkState[] states = new NetworkState[] {buildWifiState()}; in testStatsBucketResize()
410 NetworkState[] states = new NetworkState[] {buildMobile3gState(IMSI_1)}; in testUidStatsAcrossNetworks()
442 states = new NetworkState[] {buildMobile3gState(IMSI_2)}; in testUidStatsAcrossNetworks()
486 NetworkState[] states = new NetworkState[] {buildWifiState()}; in testUidRemovedIsMoved()
545 NetworkState[] states = new NetworkState[] {buildMobile3gState(IMSI_1)}; in testUid3g4gCombinedByTemplate()
571 states = new NetworkState[] {buildMobile4gState(TEST_IFACE2)}; in testUid3g4gCombinedByTemplate()
603 NetworkState[] states = new NetworkState[] {buildWifiState()}; in testSummaryForAllUid()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java80 import android.net.NetworkState;
284 private static NetworkState buildMobileUpstreamState(boolean withIPv4, boolean withIPv6, in buildMobileUpstreamState()
317 return new NetworkState(info, prop, capabilities, new Network(100), null, "netid"); in buildMobileUpstreamState()
320 private static NetworkState buildMobileIPv4UpstreamState() { in buildMobileIPv4UpstreamState()
324 private static NetworkState buildMobileIPv6UpstreamState() { in buildMobileIPv6UpstreamState()
328 private static NetworkState buildMobileDualStackUpstreamState() { in buildMobileDualStackUpstreamState()
332 private static NetworkState buildMobile464xlatUpstreamState() { in buildMobile464xlatUpstreamState()
453 private void prepareUsbTethering(NetworkState upstreamState) { in prepareUsbTethering()
468 NetworkState upstreamState = buildMobileIPv4UpstreamState(); in testUsbConfiguredBroadcastStartsTethering()
543 private void sendIPv6TetherUpdates(NetworkState upstreamState) { in sendIPv6TetherUpdates()
[all …]
/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.java30 import android.net.NetworkState;
518 public NetworkState getNetworkState() { in getNetworkState()
523 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()
DTethering.java71 import android.net.NetworkState;
1034 private boolean pertainsToCurrentUpstream(NetworkState ns) { in pertainsToCurrentUpstream()
1202 final NetworkState ns = (config.chooseUpstreamAutomatically) in chooseUpstreamType()
1223 protected void setUpstreamNetwork(NetworkState ns) { in setUpstreamNetwork()
1276 protected void handleNewUpstreamNetworkState(NetworkState ns) { in handleNewUpstreamNetworkState()
1336 final NetworkState ns = (NetworkState) o; in handleUpstreamNetworkMonitorCallback()
1606 public void updateUpstreamNetworkState(NetworkState ns) { in updateUpstreamNetworkState()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java111 import android.net.NetworkState;
983 NetworkState[] state = null;
995 state = new NetworkState[] { buildWifi() };
1250 NetworkState[] state = null;
1260 state = new NetworkState[] { buildWifi() };
1387 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1398 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1822 private static NetworkState buildWifi() { in buildWifi()
1828 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()
1839 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[] { in expectNetworkState()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java102 import android.net.NetworkState;
1169 private NetworkState getFilteredNetworkState(int networkType, int uid) { in getFilteredNetworkState()
1172 final NetworkState state; in getFilteredNetworkState()
1184 state = new NetworkState(info, new LinkProperties(), capabilities, in getFilteredNetworkState()
1190 return NetworkState.EMPTY; in getFilteredNetworkState()
1221 private NetworkState getUnfilteredActiveNetworkState(int uid) { in getUnfilteredActiveNetworkState()
1241 return NetworkState.EMPTY; in getUnfilteredActiveNetworkState()
1299 private void filterNetworkStateForUid(NetworkState state, int uid, boolean ignoreBlocked) { in filterNetworkStateForUid()
1323 final NetworkState state = getUnfilteredActiveNetworkState(uid); in getActiveNetworkInfo()
1373 NetworkState state = getUnfilteredActiveNetworkState(uid); in getActiveNetworkInfoUnfiltered()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java94 import android.net.NetworkState;
868 NetworkState[] networkStates, in forceUpdateIfaces()
1142 NetworkState[] networkStates, in updateIfaces()
1163 private void updateIfacesLocked(Network[] defaultNetworks, NetworkState[] states) { in updateIfacesLocked()
1184 for (NetworkState state : states) { in updateIfacesLocked()
DNetworkPolicyManagerService.java156 import android.net.NetworkState;
1776 private static void collectIfaces(ArraySet<String> ifaces, NetworkState state) {
1839 final NetworkState[] states;
1850 final ArrayMap<NetworkState, NetworkIdentity> identified = new ArrayMap<>();
1851 for (NetworkState state : states) {
1933 for (NetworkState state : states) {
1967 for (NetworkState state : states) {
3001 public NetworkQuotaInfo getNetworkQuotaInfo(NetworkState state) { in getNetworkQuotaInfo()
5201 private int parseSubId(NetworkState state) { in parseSubId()
5286 private static @NonNull NetworkState[] defeatNullable(@Nullable NetworkState[] val) { in defeatNullable()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java53 import android.net.NetworkState;
542 private void assertSatisfiesLegacyType(int legacyType, NetworkState ns) { in assertSatisfiesLegacyType()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java150 import android.net.NetworkState;
4953 any(NetworkState[].class), in testStatsIfacesChanged()
4966 any(NetworkState[].class), in testStatsIfacesChanged()
4977 any(NetworkState[].class), in testStatsIfacesChanged()
4988 any(NetworkState[].class), in testStatsIfacesChanged()
4998 any(NetworkState[].class), in testStatsIfacesChanged()
5009 any(NetworkState[].class), in testStatsIfacesChanged()
5020 any(NetworkState[].class), 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/
Dhiddenapi-greylist-max-o.txt45965 Landroid/net/IConnectivityManager$Stub$Proxy;->getAllNetworkState()[Landroid/net/NetworkState;
46512 Landroid/net/INetworkPolicyManager$Stub$Proxy;->getNetworkQuotaInfo(Landroid/net/NetworkState;)Land…
47691 …Identity;->buildNetworkIdentity(Landroid/content/Context;Landroid/net/NetworkState;Z)Landroid/net/…
47908 Landroid/net/NetworkState;
47909 Landroid/net/NetworkState;-><init>(Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid/ne…
47910 Landroid/net/NetworkState;->EMPTY:Landroid/net/NetworkState;
47911 Landroid/net/NetworkState;->linkProperties:Landroid/net/LinkProperties;
47912 Landroid/net/NetworkState;->networkCapabilities:Landroid/net/NetworkCapabilities;
47913 Landroid/net/NetworkState;->networkId:Ljava/lang/String;
47914 Landroid/net/NetworkState;->networkInfo:Landroid/net/NetworkInfo;
[all …]
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…
34916 Landroid/net/NetworkState$1;
34917 Landroid/net/NetworkState;