Home
last modified time | relevance | path

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

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DScanResultTest.java38 int expectedState = STATE_NULL; field in ScanResultTest.MySync
67 mMySync.expectedState = STATE_WIFI_CHANGED;
73 mMySync.expectedState = STATE_SCAN_RESULTS_AVAILABLE;
75 mMySync.expectedState = STATE_SCAN_FAILURE;
110 mMySync.expectedState = STATE_NULL; in setUp()
130 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
140 private boolean waitForBroadcast(long timeout, int expectedState) throws Exception { in waitForBroadcast() argument
143 && mMySync.expectedState != expectedState) in waitForBroadcast()
145 return mMySync.expectedState == expectedState; in waitForBroadcast()
165 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.java66 int expectedState = STATE_NULL; field in WifiManagerTest.MySync
121 mMySync.expectedState = STATE_SCAN_DONE;
130 mMySync.expectedState = STATE_WIFI_ENABLED;
134 mMySync.expectedState = STATE_WIFI_DISABLED;
179 mMySync.expectedState = STATE_NULL; in setUp()
202 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
204 mMySync.expectedState = (enable ? STATE_WIFI_ENABLED : STATE_WIFI_DISABLED); in setWifiEnabled()
217 && mMySync.expectedState != expected) { in waitForExpectedWifiState()
244 mMySync.expectedState = STATE_SCANNING; in startScan()
248 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/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java397 final State expectedState; in checkForAvailabilityInResultData() local
400 expectedState = State.CONNECTED; in checkForAvailabilityInResultData()
403 expectedState = State.DISCONNECTED; in checkForAvailabilityInResultData()
411 if (expectedState != state || expectedDetailedState != detailedState) { in checkForAvailabilityInResultData()
413 expectedState, expectedDetailedState, state, detailedState)); in checkForAvailabilityInResultData()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java693 int expectedState, long maxUnexpected) { in assertAlmostNoUnexpectedTraffic() argument
704 maxUnexpected, tagToString(expectedTag), stateToString(expectedState), in assertAlmostNoUnexpectedTraffic()
835 Integer expectedState) { in getTotalAndAssertNotEmpty() argument
846 if (expectedState != null) assertEquals(bucket.getState(), (int) expectedState); in getTotalAndAssertNotEmpty()
858 Process.myUid(), tagToString(expectedTag), stateToString(expectedState)); in getTotalAndAssertNotEmpty()
/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/media/src/android/media/cts/
DAudioRecordTest.java399 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderDefault() local
413 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault()
426 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderPartialFormat() local
445 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat()
462 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderParams() local
488 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderParams()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceTest.java1816 private void verifyRegistrationState(ImsRcsManager regManager, int expectedState) in verifyRegistrationState() argument
1822 return waitForIntResult(mQueue) == expectedState; in verifyRegistrationState()
1837 private void verifyRegistrationState(RegistrationManager regManager, int expectedState) in verifyRegistrationState() argument
1843 return waitForIntResult(mQueue) == expectedState; in verifyRegistrationState()
/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.java567 private void assertExpectedDndState(int expectedState) { in assertExpectedDndState() argument
570 if (expectedState == in assertExpectedDndState()
581 assertEquals(expectedState, mNotificationManager.getCurrentInterruptionFilter()); in assertExpectedDndState()