/cts/tests/framework/base/windowmanager/util/src/android/server/wm/activity/lifecycle/ |
D | EventTracker.java | 59 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/ |
D | ScanResultTest.java | 74 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()
|
D | WifiInfoTest.java | 72 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()
|
D | WifiManagerTest.java | 194 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/ |
D | PermissionsTest.java | 370 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()
|
D | MeteredDataRestrictionTest.java | 132 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/ |
D | BluetoothRestrictionTest.java | 246 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/ |
D | PrivilegedAppDisableTest.java | 74 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/ |
D | MockWifiTest.java | 106 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/ |
D | BaseInputConnectionTest.java | 204 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/ |
D | ActivityLifecycleClientTestBase.java | 183 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/ |
D | FakeTimeZoneProviderAppShellHelper.java | 227 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/ |
D | SatelliteManagerTestBase.java | 1169 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/ |
D | BaseNotificationManagerTest.java | 215 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/ |
D | StorageManagerTest.java | 1037 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/ |
D | AccessibilityEventTest.java | 336 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/ |
D | AudioRecordTest.java | 460 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/ |
D | WearableSensingManagerIsolatedServiceTest.java | 717 private void verifyBooleanStateInWss(boolean expectedState) throws Exception { in verifyBooleanStateInWss() argument 720 if (expectedState) { in verifyBooleanStateInWss()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | ArrowKeyMovementMethodTest.java | 1448 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/ |
D | ImsServiceTest.java | 6549 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;
|