Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/activity/lifecycle/
DEventTracker.java59 String expectedState) { in waitAndAssertActivityCurrentState() argument
60 final boolean waitResult = waitForActivityCurrentState(activityClass, expectedState); in waitAndAssertActivityCurrentState()
63 + expectedState + " : " + mEventLog.getActivityLog(activityClass)); in waitAndAssertActivityCurrentState()
72 String expectedState) { in waitForActivityCurrentState() argument
77 return expectedState.equals(currentState); in waitForActivityCurrentState()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DScanResultTest.java74 int expectedState = STATE_NULL; field in ScanResultTest.MySync
117 sMySync.expectedState = STATE_WIFI_CHANGED;
123 sMySync.expectedState = STATE_SCAN_RESULTS_AVAILABLE;
125 sMySync.expectedState = STATE_SCAN_FAILURE;
182 sMySync.expectedState = STATE_NULL; in setUpClass()
206 sMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
213 private static boolean waitForBroadcast(long timeout, int expectedState) throws Exception { in waitForBroadcast() argument
216 && sMySync.expectedState != expectedState) in waitForBroadcast()
218 return sMySync.expectedState == expectedState; in waitForBroadcast()
273 sMySync.expectedState = STATE_START_SCAN; in scanAndWait()
DWifiInfoTest.java72 int expectedState = STATE_NULL; field in WifiInfoTest.MySync
100 sMySync.expectedState = STATE_WIFI_CHANGED;
129 sMySync.expectedState = STATE_NULL; in setUpClass()
149 sMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
154 && sMySync.expectedState == STATE_WIFI_CHANGING) in setWifiEnabled()
DWifiManagerTest.java194 int expectedState = STATE_NULL; field in WifiManagerTest.MySync
292 sMySync.expectedState = STATE_SCAN_DONE;
301 sMySync.expectedState = STATE_WIFI_ENABLED;
305 sMySync.expectedState = STATE_WIFI_DISABLED;
471 sMySync.expectedState = STATE_NULL; in setUpClass()
523 sMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
525 sMySync.expectedState = (enable ? STATE_WIFI_ENABLED : STATE_WIFI_DISABLED); in setWifiEnabled()
538 && sMySync.expectedState != expected) { in waitForExpectedWifiState()
558 sMySync.expectedState = STATE_SCANNING; in startScan()
563 && sMySync.expectedState == STATE_SCANNING) { in startScan()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java370 private void assertPermissionGrantState(String permission, int expectedState) { in assertPermissionGrantState() argument
371 assertPermissionGrantState(mDevicePolicyManager, permission, expectedState); in assertPermissionGrantState()
375 int expectedState) { in assertPermissionGrantState() argument
376 assertPermissionGrantState(dpm, PERMISSION_APP_PACKAGE_NAME, permission, expectedState); in assertPermissionGrantState()
380 String permission, int expectedState) { in assertPermissionGrantState() argument
386 expectedState, permissionGrantStateToString(expectedState), in assertPermissionGrantState()
389 .isEqualTo(expectedState); in assertPermissionGrantState()
DMeteredDataRestrictionTest.java132 final String expectedState = (blocked ? State.DISCONNECTED : State.CONNECTED).name(); in verifyAppNetworkState() local
136 expectedState, networkInfo.getState().name()); in verifyAppNetworkState()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java246 private void assertBluetoothAdapterState(int expectedState) { in assertBluetoothAdapterState() argument
249 expectedState, btStateToString(expectedState), in assertBluetoothAdapterState()
251 .that(actualState).isEqualTo(expectedState); in assertBluetoothAdapterState()
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedAppDisableTest.java74 private void assertPackageEnabledState(String packageName, int expectedState) { in assertPackageEnabledState() argument
80 assertEquals(expectedState, state); in assertPackageEnabledState()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java106 public int expectedState = STATE_NULL; field in MockWifiTest.MySync
146 sMySync.expectedState = STATE_SCAN_DONE;
155 sMySync.expectedState = STATE_WIFI_ENABLED;
159 sMySync.expectedState = STATE_WIFI_DISABLED;
220 sMySync.expectedState = STATE_NULL; in setUpClass()
262 sMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled()
264 sMySync.expectedState = (enable ? STATE_WIFI_ENABLED : STATE_WIFI_DISABLED); in setWifiEnabled()
277 && sMySync.expectedState != expected) { in waitForExpectedWifiState()
280 assertEquals(expected, sMySync.expectedState); in waitForExpectedWifiState()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java204 final String expectedState) { in verifyDeleteSurroundingTextMain() argument
205 verifyDeleteSurroundingTextMain(initialState, deleteBefore, deleteAfter, expectedState, in verifyDeleteSurroundingTextMain()
213 final String expectedState, in verifyDeleteSurroundingTextMain() argument
226 assertEquals(expectedState, ic.getEditable().toString()); in verifyDeleteSurroundingTextMain()
234 ? expectedState in verifyDeleteSurroundingTextMain()
235 : InputConnectionTestUtils.formatString(expectedState); in verifyDeleteSurroundingTextMain()
291 String expectedState) { in verifyDeleteSurroundingTextInCodePointsMain() argument
297 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState); in verifyDeleteSurroundingTextInCodePointsMain()
665 final String expectedState) { in verifyReplaceText() argument
670 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState); in verifyReplaceText()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityLifecycleClientTestBase.java183 public Launcher setExpectedState(String expectedState) { in setExpectedState() argument
184 mExpectedState = expectedState; in setExpectedState()
264 Class<? extends Activity> activityClass, String expectedState) { in waitAndAssertActivityCurrentState() argument
266 mTransitionTracker.waitAndAssertActivityCurrentState(activityClass, expectedState); in waitAndAssertActivityCurrentState()
274 Class<? extends Activity> activityClass, String expectedState) { in waitForActivityCurrentState() argument
276 mTransitionTracker.waitForActivityCurrentState(activityClass, expectedState); in waitForActivityCurrentState()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DFakeTimeZoneProviderAppShellHelper.java227 public void assertCurrentState(int expectedState) throws Exception { in assertCurrentState() argument
228 assertEquals(expectedState, getState()); in assertCurrentState()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTestBase.java1169 public void setUwbExpectedState(boolean expectedState) { in setUwbExpectedState() argument
1171 mUwbExpectedState = expectedState; in setUwbExpectedState()
1315 public void setBTExpectedState(boolean expectedState) { in setBTExpectedState() argument
1317 mBTExpectedState = expectedState; in setBTExpectedState()
1322 public void setWifiExpectedState(boolean expectedState) { in setWifiExpectedState() argument
1324 mWifiExpectedState = expectedState; in setWifiExpectedState()
1329 public void setNfcExpectedState(boolean expectedState) { in setNfcExpectedState() argument
1331 mNfcExpectedState = expectedState; in setNfcExpectedState()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java215 protected void assertExpectedDndState(int expectedState) throws Exception { in assertExpectedDndState() argument
218 if (expectedState in assertExpectedDndState()
225 assertEquals(expectedState, mNotificationManager.getCurrentInterruptionFilter()); in assertExpectedDndState()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java1037 private String mountObb(final int resource, final File file, int expectedState) { in mountObb() argument
1047 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb()
1051 assertEquals(expectedState, observer.getState()); in mountObb()
1067 int expectedState) { in waitForObbActionCompletion() argument
1072 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion()
1083 private void unmountObb(final File file, int expectedState) { in unmountObb() argument
1092 assertEquals(expectedState, observer.getState()); in unmountObb()
1094 if (expectedState == OnObbStateChangeListener.UNMOUNTED) { in unmountObb()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java336 String expectedState = "Second state"; in testStateEventsHaveLastEventText() local
340 sendStateDescriptionChangedEvent(mChildView, expectedState); in testStateEventsHaveLastEventText()
345 assertEquals(expectedState, event.getText().get(0)); in testStateEventsHaveLastEventText()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioRecordTest.java460 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderDefault() local
474 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault()
487 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderPartialFormat() local
506 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat()
523 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderParams() local
549 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderParams()
/cts/tests/wearable/src/android/wearable/cts/
DWearableSensingManagerIsolatedServiceTest.java717 private void verifyBooleanStateInWss(boolean expectedState) throws Exception { in verifyBooleanStateInWss() argument
720 if (expectedState) { in verifyBooleanStateInWss()
/cts/tests/tests/text/src/android/text/method/cts/
DArrowKeyMovementMethodTest.java1448 private void pressMetaKey(int metakey, int expectedState) { in pressMetaKey() argument
1450 assertEquals(1, MetaKeyKeyListener.getMetaState(mEditable, expectedState)); in pressMetaKey()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceTest.java6549 private void verifyRegistrationState(ImsRcsManager regManager, int expectedState)
6556 return waitForIntResult(mQueue) == expectedState;
6572 private void verifyRegistrationState(RegistrationManager regManager, int expectedState)
6578 return waitForIntResult(mQueue) == expectedState;