Home
last modified time | relevance | path

Searched refs:expectedState (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/net/src/android/net/wifi/cts/
DScanResultTest.java37 int expectedState = STATE_NULL; field in ScanResultTest.MySync
64 mMySync.expectedState = STATE_WIFI_CHANGED;
70 mMySync.expectedState = STATE_SCAN_RESULTS_AVAILABLE;
72 mMySync.expectedState = STATE_SCAN_FAILURE;
107 mMySync.expectedState = STATE_NULL; in setUp()
127 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
137 private boolean waitForBroadcast(long timeout, int expectedState) throws Exception { in waitForBroadcast() argument
140 && mMySync.expectedState != expectedState) in waitForBroadcast()
142 return mMySync.expectedState == expectedState; in waitForBroadcast()
162 mMySync.expectedState = STATE_START_SCAN; in scanAndWait()
DWifiInfoTest.java40 int expectedState = STATE_NULL; field in WifiInfoTest.MySync
62 mMySync.expectedState = STATE_WIFI_CHANGED;
89 mMySync.expectedState = STATE_NULL; in setUp()
109 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
117 && mMySync.expectedState == STATE_WIFI_CHANGING) in setWifiEnabled()
DWifiManagerTest.java65 int expectedState = STATE_NULL; field in WifiManagerTest.MySync
120 mMySync.expectedState = STATE_SCAN_DONE;
129 mMySync.expectedState = STATE_WIFI_ENABLED;
133 mMySync.expectedState = STATE_WIFI_DISABLED;
178 mMySync.expectedState = STATE_NULL; in setUp()
201 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
203 mMySync.expectedState = (enable ? STATE_WIFI_ENABLED : STATE_WIFI_DISABLED); in setWifiEnabled()
216 && mMySync.expectedState != expected) { in waitForExpectedWifiState()
243 mMySync.expectedState = STATE_SCANNING; in startScan()
247 while (System.currentTimeMillis() < timeout && mMySync.expectedState == STATE_SCANNING) in startScan()
[all …]
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedStoragePermissionSharedUidTest.java236 StorageState expectedState; in checkExceptedStorageStateForAppsSharingUid() local
239 expectedState = DENIED; in checkExceptedStorageStateForAppsSharingUid()
241 expectedState = ISOLATED; in checkExceptedStorageStateForAppsSharingUid()
244 expectedState = NON_ISOLATED; in checkExceptedStorageStateForAppsSharingUid()
246 expectedState = ISOLATED; in checkExceptedStorageStateForAppsSharingUid()
249 Log.i(LOG_TAG, "Expected state=" + expectedState); in checkExceptedStorageStateForAppsSharingUid()
251 app1.assertStoragePermGranted(expectedState != DENIED); in checkExceptedStorageStateForAppsSharingUid()
252 app2.assertStoragePermGranted(expectedState != DENIED); in checkExceptedStorageStateForAppsSharingUid()
254 if (expectedState != DENIED) { in checkExceptedStorageStateForAppsSharingUid()
255 app1.assertHasNotIsolatedStorage(expectedState == NON_ISOLATED); in checkExceptedStorageStateForAppsSharingUid()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothSharingRestrictionTest.java110 int expectedState) in assertComponentStateAfterTimeout() argument
116 if (expectedState == state) { in assertComponentStateAfterTimeout()
122 TestCase.fail("The state of " + component + " should have been " + expectedState in assertComponentStateAfterTimeout()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java187 private void assertComponentStateAfterTimeout(ComponentName component, int expectedState) { in assertComponentStateAfterTimeout() argument
192 if (expectedState == state) { in assertComponentStateAfterTimeout()
198 fail("The state of " + component + " should have been " + expectedState + ", it but was " in assertComponentStateAfterTimeout()
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedAppDisableTest.java76 private void assertPackageEnabledState(String packageName, int expectedState) { in assertPackageEnabledState() argument
82 assertEquals(expectedState, state); in assertPackageEnabledState()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java435 NetworkInfo.State expectedState = enable ? in setWifiState() local
439 expectedState, cm); in setWifiState()
502 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState, in ConnectivityActionReceiver() argument
505 mExpectedState = expectedState; in ConnectivityActionReceiver()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java211 final int deleteBefore, final int deleteAfter, final String expectedState) {
216 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState);
289 int deleteBeforeInCodePoints, int deleteAfterInCodePoints, String expectedState) {
294 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState);
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java833 private String mountObb(final int resource, final File file, int expectedState) { in mountObb() argument
843 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb()
847 assertEquals(expectedState, observer.getState()); in mountObb()
863 int expectedState) { in waitForObbActionCompletion() argument
868 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion()
879 private void unmountObb(final File file, int expectedState) { in unmountObb() argument
888 assertEquals(expectedState, observer.getState()); in unmountObb()
890 if (expectedState == OnObbStateChangeListener.UNMOUNTED) { in unmountObb()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java123 final String expectedState = (blocked ? State.DISCONNECTED : State.CONNECTED).name(); in verifyAppNetworkState() local
127 expectedState, networkInfo.getState().name()); in verifyAppNetworkState()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java669 int expectedState, long maxUnexpected) { in assertAlmostNoUnexpectedTraffic() argument
680 maxUnexpected, tagToString(expectedTag), stateToString(expectedState), in assertAlmostNoUnexpectedTraffic()
811 Integer expectedState) { in getTotalAndAssertNotEmpty() argument
822 if (expectedState != null) assertEquals(bucket.getState(), (int) expectedState); in getTotalAndAssertNotEmpty()
834 Process.myUid(), tagToString(expectedTag), stateToString(expectedState)); in getTotalAndAssertNotEmpty()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java505 final State expectedState; in checkForAvailabilityInResultData() local
508 expectedState = State.CONNECTED; in checkForAvailabilityInResultData()
511 expectedState = State.DISCONNECTED; in checkForAvailabilityInResultData()
519 if (expectedState != state || expectedDetailedState != detailedState) { in checkForAvailabilityInResultData()
521 expectedState, expectedDetailedState, state, detailedState)); in checkForAvailabilityInResultData()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java398 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderDefault() local
412 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault()
425 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderPartialFormat() local
444 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat()
461 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderParams() local
487 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderParams()
/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java1436 private void pressMetaKey(int metakey, int expectedState) { in pressMetaKey() argument
1438 assertEquals(1, MetaKeyKeyListener.getMetaState(mEditable, expectedState)); in pressMetaKey()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java560 private void assertExpectedDndState(int expectedState) { in assertExpectedDndState() argument
563 if (expectedState == in assertExpectedDndState()
574 assertEquals(expectedState, mNotificationManager.getCurrentInterruptionFilter()); in assertExpectedDndState()