Home
last modified time | relevance | path

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

/cts/tests/tests/net/src/android/net/wifi/cts/
DScanResultTest.java33 int expectedState = STATE_NULL; field in ScanResultTest.MySync
60 mMySync.expectedState = STATE_WIFI_CHANGED;
66 mMySync.expectedState = STATE_SCAN_RESULTS_AVAILABLE;
68 mMySync.expectedState = STATE_SCAN_FAILURE;
103 mMySync.expectedState = STATE_NULL; in setUp()
123 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
129 private boolean waitForBroadcast(long timeout, int expectedState) throws Exception { in waitForBroadcast() argument
132 && mMySync.expectedState != expectedState) in waitForBroadcast()
134 return mMySync.expectedState == expectedState; in waitForBroadcast()
154 mMySync.expectedState = STATE_START_SCAN; in scanAndWait()
DWifiInfoTest.java37 int expectedState = STATE_NULL; field in WifiInfoTest.MySync
59 mMySync.expectedState = STATE_WIFI_CHANGED;
86 mMySync.expectedState = STATE_NULL; in setUp()
106 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
110 && mMySync.expectedState == STATE_WIFI_CHANGING) in setWifiEnabled()
DWifiManagerTest.java54 int expectedState = STATE_NULL; field in WifiManagerTest.MySync
106 mMySync.expectedState = STATE_SCAN_DONE;
115 mMySync.expectedState = STATE_WIFI_ENABLED;
119 mMySync.expectedState = STATE_WIFI_DISABLED;
162 mMySync.expectedState = STATE_NULL; in setUp()
185 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
187 mMySync.expectedState = (enable ? STATE_WIFI_ENABLED : STATE_WIFI_DISABLED); in setWifiEnabled()
200 && mMySync.expectedState != expected) { in waitForExpectedWifiState()
227 mMySync.expectedState = STATE_SCANNING; in startScan()
231 while (System.currentTimeMillis() < timeout && mMySync.expectedState == STATE_SCANNING) in startScan()
[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/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/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/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java102 NetworkInfo.State expectedState = mInitialWiFiState ? in tearDown() local
106 expectedState); in tearDown()
354 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState) { in ConnectivityActionReceiver() argument
356 mExpectedState = expectedState; in ConnectivityActionReceiver()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java210 final int deleteBefore, final int deleteAfter, final String expectedState) {
215 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState);
288 int deleteBeforeInCodePoints, int deleteAfterInCodePoints, String expectedState) {
293 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState);
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java802 private String mountObb(final int resource, final File file, int expectedState) { in mountObb() argument
812 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb()
816 assertEquals(expectedState, observer.getState()); in mountObb()
832 int expectedState) { in waitForObbActionCompletion() argument
837 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion()
848 private void unmountObb(final File file, int expectedState) { in unmountObb() argument
857 assertEquals(expectedState, observer.getState()); in unmountObb()
859 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.java666 int expectedState, long maxUnexpected) { in assertAlmostNoUnexpectedTraffic() argument
677 maxUnexpected, tagToString(expectedTag), stateToString(expectedState), in assertAlmostNoUnexpectedTraffic()
808 Integer expectedState) { in getTotalAndAssertNotEmpty() argument
819 if (expectedState != null) assertEquals(bucket.getState(), (int) expectedState); in getTotalAndAssertNotEmpty()
831 Process.myUid(), tagToString(expectedTag), stateToString(expectedState)); in getTotalAndAssertNotEmpty()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java470 final State expectedState; in checkForAvailabilityInResultData() local
473 expectedState = State.CONNECTED; in checkForAvailabilityInResultData()
476 expectedState = State.DISCONNECTED; in checkForAvailabilityInResultData()
484 if (expectedState != state || expectedDetailedState != detailedState) { in checkForAvailabilityInResultData()
486 expectedState, expectedDetailedState, state, detailedState)); in checkForAvailabilityInResultData()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java382 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderDefault() local
396 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault()
409 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderPartialFormat() local
428 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat()
445 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderParams() local
471 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderParams()
/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java1435 private void pressMetaKey(int metakey, int expectedState) { in pressMetaKey() argument
1437 assertEquals(1, MetaKeyKeyListener.getMetaState(mEditable, expectedState)); in pressMetaKey()