/cts/tests/tests/net/src/android/net/cts/ |
D | NetworkInfo_StateTest.java | 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 …]
|
D | NetworkInfoTest.kt | 24 import android.net.NetworkInfo.State 75 if (State.CONNECTED == netInfo.getState()) { in assertNetworkInfo() 78 assertTrue(State.CONNECTING == netInfo.getState() || in assertNetworkInfo() 79 State.CONNECTED == netInfo.getState()) in assertNetworkInfo() 96 assertEquals(State.UNKNOWN, networkInfo.state) in testConstructor() 118 assertEquals(State.CONNECTED, networkInfo.state) in testSetDetailedState()
|
D | ConnectivityManagerTest.java | 76 import android.net.NetworkInfo.State; 274 assertTrue(ni.getState() == State.CONNECTED); in testGetActiveNetworkInfo() 287 assertTrue(ni.getState() == State.CONNECTED); in testGetActiveNetwork() 296 State state = ni.getState(); in testGetNetworkInfo() 297 assertTrue("Bad state for " + type, State.UNKNOWN.ordinal() >= state.ordinal() in testGetNetworkInfo() 298 && state.ordinal() >= State.CONNECTING.ordinal()); in testGetNetworkInfo() 539 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); in testRegisterNetworkCallback_withPendingIntent()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/ |
D | UidAtomTests.java | 168 Arrays.asList(AudioStateChanged.State.ON_VALUE)); in testAudioState() 170 Arrays.asList(AudioStateChanged.State.OFF_VALUE)); in testAudioState() 197 final int stateOn = BleScanStateChanged.State.ON_VALUE; in testBleScan() 198 final int stateOff = BleScanStateChanged.State.OFF_VALUE; in testBleScan() 219 final int stateOn = BleScanStateChanged.State.ON_VALUE; in testBleUnoptimizedScan() 220 final int stateOff = BleScanStateChanged.State.OFF_VALUE; in testBleUnoptimizedScan() 320 Set<Integer> cameraOn = new HashSet<>(Arrays.asList(CameraStateChanged.State.ON_VALUE)); in testCameraState() 321 Set<Integer> cameraOff = new HashSet<>(Arrays.asList(CameraStateChanged.State.OFF_VALUE)); in testCameraState() 456 Arrays.asList(FlashlightStateChanged.State.ON_VALUE)); in testFlashlightState() 458 Arrays.asList(FlashlightStateChanged.State.OFF_VALUE)); in testFlashlightState() [all …]
|
D | HostAtomTests.java | 310 Arrays.asList(BatterySaverModeStateChanged.State.ON_VALUE)); in testBatterySaverModeStateChangedAtom() 312 Arrays.asList(BatterySaverModeStateChanged.State.OFF_VALUE)); in testBatterySaverModeStateChangedAtom() 586 assertTrue(atom.getState().getNumber() == AppBreadcrumbReported.State.START_VALUE); in testBreadcrumbAdb() 622 assertTrue(atom.getState().getNumber() == AppBreadcrumbReported.State.START_VALUE); in testDumpsysStats() 652 == ConnectivityStateChanged.State.DISCONNECTED_VALUE) { in testConnectivityStateChange() 656 == ConnectivityStateChanged.State.CONNECTED_VALUE) { in testConnectivityStateChange()
|
D | AtomTestCase.java | 810 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.START.ordinal()); in doAppBreadcrumbReportedStart() 814 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.STOP.ordinal()); in doAppBreadcrumbReportedStop() 818 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.UNSPECIFIED.ordinal()); in doAppBreadcrumbReported()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/ |
D | MetricsUtils.java | 52 .setEqInt(AppBreadcrumbReported.State.START.ordinal()))) in startAtomMatcher() 57 return appBreadcrumbMatcherWithLabelAndState(id, label, AppBreadcrumbReported.State.START); in startAtomMatcherWithLabel() 68 .setEqInt(AppBreadcrumbReported.State.STOP.ordinal()))) in stopAtomMatcher() 73 return appBreadcrumbMatcherWithLabelAndState(id, label, AppBreadcrumbReported.State.STOP); in stopAtomMatcherWithLabel() 83 .setEqInt(AppBreadcrumbReported.State.UNSPECIFIED.ordinal()))) in unspecifiedAtomMatcher() 107 final AppBreadcrumbReported.State state) { in appBreadcrumbMatcherWithLabelAndState()
|
D | CountMetricsTests.java | 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()
|
D | GaugeMetricsTests.java | 137 AppBreadcrumbReported.State.START); in testGaugeMetric() 148 AppBreadcrumbReported.State.STOP); in testGaugeMetric()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 435 NetworkInfo.State expectedState = enable ? in setWifiState() 436 NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED; in setWifiState() 470 NetworkInfo.State.CONNECTED, mCm); in disconnectWifiToConnectToMobile() 498 private final NetworkInfo.State mExpectedState; 502 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState, in ConnectivityActionReceiver() 538 NetworkInfo.State networkState = networkInfo.getState(); in onReceive()
|
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/ |
D | ConnectivityManagerLegacyTest.java | 156 expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.CONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri() 171 … expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.DISCONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri() 216 private void expectNetworkBroadcast(final int type, final NetworkInfo.State state, in expectNetworkBroadcast() 254 final NetworkInfo.State desiredState = enabled ? in setWifiState() 255 NetworkInfo.State.CONNECTED : in setWifiState() 256 NetworkInfo.State.DISCONNECTED; in setWifiState()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | OffBodySensorTestActivity.java | 69 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/statsd/src/android/cts/statsd/validation/ |
D | ValidationTests.java | 93 WakelockStateChanged.State.ACQUIRE_VALUE, in testPartialWakelock() 94 WakelockStateChanged.State.CHANGE_ACQUIRE_VALUE)); in testPartialWakelock() 96 WakelockStateChanged.State.RELEASE_VALUE, in testPartialWakelock() 97 WakelockStateChanged.State.CHANGE_RELEASE_VALUE)); in testPartialWakelock() 460 .setEqInt(WakelockStateChanged.State.ACQUIRE_VALUE))); in uploadWakelockDurationBatteryStatsConfig() 471 .setEqInt(WakelockStateChanged.State.CHANGE_ACQUIRE_VALUE))); in uploadWakelockDurationBatteryStatsConfig() 482 .setEqInt(WakelockStateChanged.State.RELEASE_VALUE))); in uploadWakelockDurationBatteryStatsConfig() 493 .setEqInt(WakelockStateChanged.State.CHANGE_RELEASE_VALUE))); in uploadWakelockDurationBatteryStatsConfig()
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 44 import android.net.NetworkInfo.State; 195 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); in connectToWifi() 280 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.DISCONNECTED); in disconnectFromWifi() 487 private final NetworkInfo.State mNetState; 491 NetworkInfo.State netState) { in ConnectivityActionReceiver() 528 State networkState = networkInfo.getState(); in onReceive()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | MeteredDataRestrictionTest.java | 24 import android.net.NetworkInfo.State; 123 final String expectedState = (blocked ? State.DISCONNECTED : State.CONNECTED).name(); in verifyAppNetworkState()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | NotificationIncidentTest.java | 94 NotificationRecordProto.State.getDescriptor() in testNotificationRecords() 171 assertTrue(ConditionProto.State.getDescriptor().getValues() in verifyZenModeProto() 226 assertTrue(NotificationRecordProto.State.getDescriptor().getValues() in verifyNotificationRecordProto()
|
D | PrintProtoTest.java | 124 PrintJobInfoProto.State.getDescriptor().getValues() in verifyPrintJobInfoProto()
|
D | BatteryStatsIncidentTest.java | 435 assertTrue(UidProto.StateTime.State.getDescriptor().getValues() in testUidProto()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 48 import android.net.NetworkInfo.State; 389 final State state = parts[0].equals("null") ? null : State.valueOf(parts[0]); in checkForAvailabilityInResultData() 397 final State expectedState; in checkForAvailabilityInResultData() 400 expectedState = State.CONNECTED; in checkForAvailabilityInResultData() 403 expectedState = State.DISCONNECTED; in checkForAvailabilityInResultData()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 142 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) 255 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) return; in connectWifi() 258 && mNetworkInfo.getState() != NetworkInfo.State.CONNECTED) in connectWifi() 260 assertTrue(mNetworkInfo.getState() == NetworkInfo.State.CONNECTED); in connectWifi() 474 if (mNetworkInfo.getState() != NetworkInfo.State.CONNECTED) { in testWifiWatchdog()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/ |
D | poc.cpp | 117 sp<VolumeShaper::State> getVolumeShaperState(int id) { return NULL; } in getVolumeShaperState()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/ |
D | ca.conf | 101 stateOrProvinceName = State or Province Name
|
/cts/hostsidetests/statsd/src/android/cts/statsd/alert/ |
D | AnomalyDetectionTests.java | 442 AppBreadcrumbReported.State.START.ordinal()) in getBaseConfig() 458 AppBreadcrumbReported.State.STOP.ordinal()) in getBaseConfig()
|
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/ |
D | CompatChangeGatingTestCase.java | 300 AtomsProto.AppCompatibilityChangeReported.State.ENABLED, in getReportedChanges()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 617 assertEquals(Thread.State.RUNNABLE, readingThread.getState()); in testOpenProxyFileDescriptor_async()
|