Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DNetworkState.java28 public class NetworkState implements Parcelable { class
31 public static final NetworkState EMPTY = new NetworkState(null, null, null, null, null, null);
40 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState() method in NetworkState
61 public NetworkState(Parcel in) { in NetworkState() method in NetworkState
85 public static final Creator<NetworkState> CREATOR = new Creator<NetworkState>() {
87 public NetworkState createFromParcel(Parcel in) {
88 return new NetworkState(in);
92 public NetworkState[] newArray(int size) {
93 return new NetworkState[size];
DINetworkPolicyManager.aidl22 import android.net.NetworkState;
67 NetworkQuotaInfo getNetworkQuotaInfo(in NetworkState state); in getNetworkQuotaInfo()
DNetworkState.aidl19 parcelable NetworkState;
DIConnectivityManager.aidl27 import android.net.NetworkState;
65 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.java36 import android.net.NetworkState;
92 private final HashMap<Network, NetworkState> mNetworkMap = new HashMap<>();
200 public NetworkState selectPreferredUpstreamType(Iterable<Integer> preferredTypes) { in selectPreferredUpstreamType()
241 new NetworkState(null, null, null, network, null, null)); in handleAvailable()
302 final NetworkState prev = mNetworkMap.get(network); in handleNetCap()
322 mNetworkMap.put(network, new NetworkState( in handleNetCap()
330 final NetworkState prev = mNetworkMap.get(network); in handleLinkProp()
343 mNetworkMap.put(network, new NetworkState( in handleLinkProp()
464 public NetworkState ns = null;
468 Iterable<NetworkState> netStates, Iterable<Integer> preferredTypes) { in findFirstAvailableUpstreamByType()
[all …]
DIPv6TetheringCoordinator.java25 import android.net.NetworkState;
75 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()
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()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/
DNetworkState.java23 public class NetworkState { class
30 public NetworkState(boolean isConnected, boolean isValidated, boolean isMetered, in NetworkState() method in NetworkState
82 NetworkState other = (NetworkState) o; in equals()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
DNetworkStateTrackerTest.java34 import androidx.work.impl.constraints.NetworkState;
65 NetworkState expectedState = new NetworkState(false, false, true, false); in testGetInitialState_nullNetworkInfoSdk15()
73 NetworkState expectedState = new NetworkState(false, false, false, false); in testGetInitialState_nullNetworkInfo()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
DNetworkStateTracker.java33 import androidx.work.impl.constraints.NetworkState;
49 public class NetworkStateTracker extends ConstraintTracker<NetworkState> {
74 public NetworkState getInitialState() { in getInitialState()
106 private NetworkState getActiveNetworkState() { in getActiveNetworkState()
113 return new NetworkState(isConnected, isValidated, isMetered, isNotRoaming); in getActiveNetworkState()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/controllers/
DNetworkUnmeteredController.java24 import androidx.work.impl.constraints.NetworkState;
32 public class NetworkUnmeteredController extends ConstraintController<NetworkState> {
43 boolean isConstrained(@NonNull NetworkState state) { in isConstrained()
DNetworkConnectedController.java25 import androidx.work.impl.constraints.NetworkState;
38 public class NetworkConnectedController extends ConstraintController<NetworkState> {
49 boolean isConstrained(@NonNull NetworkState state) { in isConstrained()
DNetworkNotRoamingController.java26 import androidx.work.impl.constraints.NetworkState;
34 public class NetworkNotRoamingController extends ConstraintController<NetworkState> {
51 boolean isConstrained(@NonNull NetworkState state) { in isConstrained()
DNetworkMeteredController.java26 import androidx.work.impl.constraints.NetworkState;
34 public class NetworkMeteredController extends ConstraintController<NetworkState> {
51 boolean isConstrained(@NonNull NetworkState state) { in isConstrained()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java74 import android.net.NetworkState;
243 private static NetworkState buildMobileUpstreamState(boolean withIPv4, boolean withIPv6, in buildMobileUpstreamState()
276 return new NetworkState(info, prop, capabilities, new Network(100), null, "netid"); in buildMobileUpstreamState()
279 private static NetworkState buildMobileIPv4UpstreamState() { in buildMobileIPv4UpstreamState()
283 private static NetworkState buildMobileIPv6UpstreamState() { in buildMobileIPv6UpstreamState()
287 private static NetworkState buildMobileDualStackUpstreamState() { in buildMobileDualStackUpstreamState()
291 private static NetworkState buildMobile464xlatUpstreamState() { in buildMobile464xlatUpstreamState()
460 private void prepareUsbTethering(NetworkState upstreamState) { in prepareUsbTethering()
474 NetworkState upstreamState = buildMobileIPv4UpstreamState(); in testUsbConfiguredBroadcastStartsTethering()
549 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/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java81 import android.net.NetworkState;
704 final NetworkState wifiState = buildWifiState(); in testDetailedUidStats_Filtered()
1084 private void expectNetworkState(NetworkState... state) throws Exception { in expectNetworkState()
1227 private static NetworkState buildWifiState() { in buildWifiState()
1231 private static NetworkState buildWifiState(boolean isMetered) { in buildWifiState()
1239 return new NetworkState(info, prop, capabilities, WIFI_NETWORK, null, TEST_SSID); in buildWifiState()
1242 private static NetworkState buildMobile3gState(String subscriberId) { in buildMobile3gState()
1246 private static NetworkState buildMobile3gState(String subscriberId, boolean isRoaming) { in buildMobile3gState()
1256 return new NetworkState(info, prop, capabilities, MOBILE_NETWORK, subscriberId, null); in buildMobile3gState()
1259 private static NetworkState buildMobile4gState(String iface) { in buildMobile4gState()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java28 import android.net.NetworkState;
471 public NetworkState getNetworkState() { in getNetworkState()
476 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java103 import android.net.NetworkState;
966 NetworkState[] state = null; in testNetworkPolicyAppliedCycleLastMonth()
978 state = new NetworkState[] { buildWifi() }; in testNetworkPolicyAppliedCycleLastMonth()
1214 NetworkState[] state = null; in testMeteredNetworkWithoutLimit()
1224 state = new NetworkState[] { buildWifi() }; in testMeteredNetworkWithoutLimit()
1351 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]); in setupUpdateMobilePolicyCycleTests()
1362 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]); in testUpdateMobilePolicyCycleWithNullConfig()
1716 private static NetworkState buildWifi() { in buildWifi()
1722 return new NetworkState(info, prop, networkCapabilities, null, null, TEST_SSID); in buildWifi()
1733 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[] { in expectNetworkState()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java75 import android.net.NetworkState;
1025 private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) { in getFilteredNetworkState()
1028 final NetworkState state; in getFilteredNetworkState()
1040 state = new NetworkState(info, new LinkProperties(), capabilities, in getFilteredNetworkState()
1046 return NetworkState.EMPTY; in getFilteredNetworkState()
1076 private NetworkState getUnfilteredActiveNetworkState(int uid) { in getUnfilteredActiveNetworkState()
1096 return NetworkState.EMPTY; in getUnfilteredActiveNetworkState()
1148 private void filterNetworkStateForUid(NetworkState state, int uid, boolean ignoreBlocked) { in filterNetworkStateForUid()
1172 final NetworkState state = getUnfilteredActiveNetworkState(uid); in getActiveNetworkInfo()
1222 NetworkState state = getUnfilteredActiveNetworkState(uid); in getActiveNetworkInfoUnfiltered()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java35 import android.net.NetworkState;
488 public NetworkState[] getAllNetworkState() { in getAllNetworkState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java155 import android.net.NetworkState;
1715 private static void collectIfaces(ArraySet<String> ifaces, NetworkState state) {
1777 final NetworkState[] states;
1788 final ArrayMap<NetworkState, NetworkIdentity> identified = new ArrayMap<>();
1789 for (NetworkState state : states) {
1871 for (NetworkState state : states) {
1905 for (NetworkState state : states) {
2927 public NetworkQuotaInfo getNetworkQuotaInfo(NetworkState state) { in getNetworkQuotaInfo()
4974 private int parseSubId(NetworkState state) { in parseSubId()
5055 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;
425 private void assertSatisfiesLegacyType(int legacyType, NetworkState ns) { in assertSatisfiesLegacyType()

12