Searched refs:State (Results 1 – 24 of 24) sorted by relevance
19 import android.net.NetworkInfo.State;25 assertEquals(State.CONNECTED, State.valueOf("CONNECTED")); in testValueOf()26 assertEquals(State.CONNECTING, State.valueOf("CONNECTING")); in testValueOf()27 assertEquals(State.DISCONNECTED, State.valueOf("DISCONNECTED")); in testValueOf()28 assertEquals(State.DISCONNECTING, State.valueOf("DISCONNECTING")); in testValueOf()29 assertEquals(State.SUSPENDED, State.valueOf("SUSPENDED")); in testValueOf()30 assertEquals(State.UNKNOWN, State.valueOf("UNKNOWN")); in testValueOf()34 State[] expected = State.values(); in testValues()36 assertEquals(State.CONNECTING, expected[0]); in testValues()37 assertEquals(State.CONNECTED, expected[1]); in testValues()[all …]
24 import android.net.NetworkInfo.State;59 if (State.CONNECTED == netInfo.getState()) { in assertNetworkInfo()62 assertTrue(State.CONNECTING == netInfo.getState() in assertNetworkInfo()63 || State.CONNECTED == netInfo.getState()); in assertNetworkInfo()
46 import android.net.NetworkInfo.State;235 assertTrue(ni.getState() == State.CONNECTED); in testGetActiveNetworkInfo()247 assertTrue(ni.getState() == State.CONNECTED); in testGetActiveNetwork()255 State state = ni.getState(); in testGetNetworkInfo()256 assertTrue("Bad state for " + type, State.UNKNOWN.ordinal() >= state.ordinal() in testGetNetworkInfo()257 && state.ordinal() >= State.CONNECTING.ordinal()); in testGetNetworkInfo()504 ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); in testRegisterNetworkCallback_withPendingIntent()677 ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); in connectToWifi()732 ConnectivityManager.TYPE_WIFI, NetworkInfo.State.DISCONNECTED); in disconnectFromWifi()784 private final NetworkInfo.State mNetState;[all …]
111 final int stateOn = BleScanStateChanged.State.ON_VALUE; in testBleScan()112 final int stateOff = BleScanStateChanged.State.OFF_VALUE; in testBleScan()133 final int stateOn = BleScanStateChanged.State.ON_VALUE; in testBleUnoptimizedScan()134 final int stateOff = BleScanStateChanged.State.OFF_VALUE; in testBleUnoptimizedScan()194 Set<Integer> cameraOn = new HashSet<>(Arrays.asList(CameraStateChanged.State.ON_VALUE)); in testCameraState()195 Set<Integer> cameraOff = new HashSet<>(Arrays.asList(CameraStateChanged.State.OFF_VALUE)); in testCameraState()297 Arrays.asList(FlashlightStateChanged.State.ON_VALUE)); in testFlashlightState()299 Arrays.asList(FlashlightStateChanged.State.OFF_VALUE)); in testFlashlightState()325 Arrays.asList(ForegroundServiceStateChanged.State.ENTER_VALUE)); in testForegroundServiceState()327 Arrays.asList(ForegroundServiceStateChanged.State.EXIT_VALUE)); in testForegroundServiceState()[all …]
317 Arrays.asList(BatterySaverModeStateChanged.State.ON_VALUE)); in testBatterySaverModeStateChangedAtom()319 Arrays.asList(BatterySaverModeStateChanged.State.OFF_VALUE)); in testBatterySaverModeStateChangedAtom()620 assertTrue(atom.getState().getNumber() == AppBreadcrumbReported.State.START_VALUE); in testBreadcrumbAdb()
511 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.START.ordinal()); in doAppBreadcrumbReportedStart()515 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.STOP.ordinal()); in doAppBreadcrumbReportedStop()
102 NetworkInfo.State expectedState = mInitialWiFiState ? in tearDown()103 NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED; in tearDown()291 NetworkInfo.State.CONNECTED); in connectToWiFi()316 NetworkInfo.State.CONNECTED); in disconnectWifiToConnectToMobile()319 NetworkInfo.State.DISCONNECTED); in disconnectWifiToConnectToMobile()352 private final NetworkInfo.State mExpectedState;354 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState) { in ConnectivityActionReceiver()388 NetworkInfo.State networkState = networkInfo.getState(); in onReceive()
51 .setEqInt(AppBreadcrumbReported.State.START.ordinal()))) in startAtomMatcher()63 .setEqInt(AppBreadcrumbReported.State.STOP.ordinal()))) in stopAtomMatcher()74 .setEqInt(AppBreadcrumbReported.State.UNSPECIFIED.ordinal()))) in unspecifiedAtomMatcher()
103 doAppBreadcrumbReported(0, AppBreadcrumbReported.State.UNSPECIFIED.ordinal()); in testEventCountWithCondition()107 doAppBreadcrumbReported(0, AppBreadcrumbReported.State.UNSPECIFIED.ordinal()); in testEventCountWithCondition()111 doAppBreadcrumbReported(0, AppBreadcrumbReported.State.UNSPECIFIED.ordinal()); in testEventCountWithCondition()
128 AppBreadcrumbReported.State.START); in testGaugeMetric()139 AppBreadcrumbReported.State.STOP); in testGaugeMetric()
157 expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.CONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri()172 … expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.DISCONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri()217 private void expectNetworkBroadcast(final int type, final NetworkInfo.State state, in expectNetworkBroadcast()255 final NetworkInfo.State desiredState = enabled ? in setWifiState()256 NetworkInfo.State.CONNECTED : in setWifiState()257 NetworkInfo.State.DISCONNECTED; in setWifiState()
24 import android.service.notification.NotificationRecordProto.State;77 NotificationRecordProto.State.getDescriptor() in testNotificationRecords()149 assertTrue(ConditionProto.State.getDescriptor().getValues() in verifyZenModeProto()204 assertTrue(NotificationRecordProto.State.getDescriptor().getValues() in verifyNotificationRecordProto()
124 PrintJobInfoProto.State.getDescriptor().getValues() in verifyPrintJobInfoProto()
435 assertTrue(UidProto.StateTime.State.getDescriptor().getValues() in testUidProto()
69 private enum State { enum in OffBodySensorTestActivity87 private State mPreviousSensorState;122 mPreviousSensorState = State.OFF_BODY; in onSensorChanged()128 mPreviousSensorState = State.ON_BODY; in onSensorChanged()410 if (mPreviousSensorState != State.ON_BODY) { in runOffbodyDetectResponseTimeTest()470 if (mPreviousSensorState != State.OFF_BODY) { in runOnbodyDetectResponseTimeTest()514 if (mPreviousSensorState != State.ON_BODY) { in runWakeAPOffbodyDetectTest()524 if (mPreviousSensorState != State.ON_BODY) { in runWakeAPOffbodyDetectTest()
24 import android.net.NetworkInfo.State;123 final String expectedState = (blocked ? State.DISCONNECTED : State.CONNECTED).name(); in verifyAppNetworkState()
90 WakelockStateChanged.State.ACQUIRE_VALUE, in testPartialWakelock()91 WakelockStateChanged.State.CHANGE_ACQUIRE_VALUE)); in testPartialWakelock()93 WakelockStateChanged.State.RELEASE_VALUE, in testPartialWakelock()94 WakelockStateChanged.State.CHANGE_RELEASE_VALUE)); in testPartialWakelock()441 .setEqInt(WakelockStateChanged.State.ACQUIRE_VALUE))); in uploadWakelockDurationBatteryStatsConfig()452 .setEqInt(WakelockStateChanged.State.CHANGE_ACQUIRE_VALUE))); in uploadWakelockDurationBatteryStatsConfig()463 .setEqInt(WakelockStateChanged.State.RELEASE_VALUE))); in uploadWakelockDurationBatteryStatsConfig()474 .setEqInt(WakelockStateChanged.State.CHANGE_RELEASE_VALUE))); in uploadWakelockDurationBatteryStatsConfig()
127 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED)238 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) return; in connectWifi()242 && mNetworkInfo.getState() != NetworkInfo.State.CONNECTED) in connectWifi()244 assertTrue(mNetworkInfo.getState() == NetworkInfo.State.CONNECTED); in connectWifi()580 if (mNetworkInfo.getState() != NetworkInfo.State.CONNECTED) { in testWifiWatchdog()
44 import android.net.NetworkInfo.State;462 final State state = parts[0].equals("null") ? null : State.valueOf(parts[0]); in checkForAvailabilityInResultData()470 final State expectedState; in checkForAvailabilityInResultData()473 expectedState = State.CONNECTED; in checkForAvailabilityInResultData()476 expectedState = State.DISCONNECTED; in checkForAvailabilityInResultData()
101 stateOrProvinceName = State or Province Name
376 AppBreadcrumbReported.State.START.ordinal()) in getBaseConfig()392 AppBreadcrumbReported.State.STOP.ordinal()) in getBaseConfig()
605 assertEquals(Thread.State.RUNNABLE, readingThread.getState()); in testOpenProxyFileDescriptor_async()
523 if (mThread == null || mThread.getState() == Thread.State.TERMINATED) { in checkAndStartThread()526 if (mThread.getState() == Thread.State.NEW) { in checkAndStartThread()
META-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...