Home
last modified time | relevance | path

Searched refs:State (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DNetworkInfo_StateTest.java19 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 …]
DNetworkInfoTest.java24 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()
DConnectivityManagerTest.java46 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 …]
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DUidAtomTests.java111 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 …]
DHostAtomTests.java317 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()
DAtomTestCase.java511 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.START.ordinal()); in doAppBreadcrumbReportedStart()
515 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.STOP.ordinal()); in doAppBreadcrumbReportedStop()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java102 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()
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DMetricsUtils.java51 .setEqInt(AppBreadcrumbReported.State.START.ordinal()))) in startAtomMatcher()
63 .setEqInt(AppBreadcrumbReported.State.STOP.ordinal()))) in stopAtomMatcher()
74 .setEqInt(AppBreadcrumbReported.State.UNSPECIFIED.ordinal()))) in unspecifiedAtomMatcher()
DCountMetricsTests.java103 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()
DGaugeMetricsTests.java128 AppBreadcrumbReported.State.START); in testGaugeMetric()
139 AppBreadcrumbReported.State.STOP); in testGaugeMetric()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java157 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()
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationIncidentTest.java24 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()
DPrintProtoTest.java124 PrintJobInfoProto.State.getDescriptor().getValues() in verifyPrintJobInfoProto()
DBatteryStatsIncidentTest.java435 assertTrue(UidProto.StateTime.State.getDescriptor().getValues() in testUidProto()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DOffBodySensorTestActivity.java69 private enum State { enum in OffBodySensorTestActivity
87 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()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java24 import android.net.NetworkInfo.State;
123 final String expectedState = (blocked ? State.DISCONNECTED : State.CONNECTED).name(); in verifyAppNetworkState()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DValidationTests.java90 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()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiManagerTest.java127 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()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java44 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()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dca.conf101 stateOrProvinceName = State or Province Name
/cts/hostsidetests/statsd/src/android/cts/statsd/alert/
DAnomalyDetectionTests.java376 AppBreadcrumbReported.State.START.ordinal()) in getBaseConfig()
392 AppBreadcrumbReported.State.STOP.ordinal()) in getBaseConfig()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java605 assertEquals(Thread.State.RUNNABLE, readingThread.getState()); in testOpenProxyFileDescriptor_async()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java523 if (mThread == null || mThread.getState() == Thread.State.TERMINATED) { in checkAndStartThread()
526 if (mThread.getState() == Thread.State.NEW) { in checkAndStartThread()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...