/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedStoragePermissionSharedUidTest.java | 238 StorageState expectedState; in checkExceptedStorageStateForAppsSharingUid() local 241 expectedState = DENIED; in checkExceptedStorageStateForAppsSharingUid() 243 expectedState = ISOLATED; in checkExceptedStorageStateForAppsSharingUid() 246 expectedState = NON_ISOLATED; in checkExceptedStorageStateForAppsSharingUid() 248 expectedState = ISOLATED; in checkExceptedStorageStateForAppsSharingUid() 251 Log.i(LOG_TAG, "Expected state=" + expectedState); in checkExceptedStorageStateForAppsSharingUid() 253 app1.assertStoragePermGranted(expectedState != DENIED); in checkExceptedStorageStateForAppsSharingUid() 254 app2.assertStoragePermGranted(expectedState != DENIED); in checkExceptedStorageStateForAppsSharingUid() 256 if (expectedState != DENIED) { in checkExceptedStorageStateForAppsSharingUid() 257 app1.assertHasNotIsolatedStorage(expectedState == NON_ISOLATED); in checkExceptedStorageStateForAppsSharingUid() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ScanResultTest.java | 44 int expectedState = STATE_NULL; field in ScanResultTest.MySync 84 mMySync.expectedState = STATE_WIFI_CHANGED; 90 mMySync.expectedState = STATE_SCAN_RESULTS_AVAILABLE; 92 mMySync.expectedState = STATE_SCAN_FAILURE; 141 mMySync.expectedState = STATE_NULL; in setUp() 165 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled() 175 private boolean waitForBroadcast(long timeout, int expectedState) throws Exception { in waitForBroadcast() argument 178 && mMySync.expectedState != expectedState) in waitForBroadcast() 180 return mMySync.expectedState == expectedState; in waitForBroadcast() 236 mMySync.expectedState = STATE_START_SCAN; in scanAndWait()
|
D | WifiInfoTest.java | 44 int expectedState = STATE_NULL; field in WifiInfoTest.MySync 73 mMySync.expectedState = STATE_WIFI_CHANGED; 101 mMySync.expectedState = STATE_NULL; in setUp() 121 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled() 129 && mMySync.expectedState == STATE_WIFI_CHANGING) in setWifiEnabled()
|
D | WifiManagerTest.java | 131 int expectedState = STATE_NULL; field in WifiManagerTest.MySync 206 mMySync.expectedState = STATE_SCAN_DONE; 215 mMySync.expectedState = STATE_WIFI_ENABLED; 219 mMySync.expectedState = STATE_WIFI_DISABLED; 348 mMySync.expectedState = STATE_NULL; in setUp() 386 mMySync.expectedState = STATE_WIFI_CHANGING; in setWifiEnabled() 388 mMySync.expectedState = (enable ? STATE_WIFI_ENABLED : STATE_WIFI_DISABLED); in setWifiEnabled() 401 && mMySync.expectedState != expected) { in waitForExpectedWifiState() 421 mMySync.expectedState = STATE_SCANNING; in startScan() 425 while (System.currentTimeMillis() < timeout && mMySync.expectedState == STATE_SCANNING) in startScan() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | LifecycleTracker.java | 53 ActivityCallback expectedState) { in waitAndAssertActivityCurrentState() argument 57 return currentState == expectedState; in waitAndAssertActivityCurrentState() 62 + expectedState + " : " + mLifecycleLog.getActivityLog(activityClass)); in waitAndAssertActivityCurrentState()
|
D | ActivityLifecycleClientTestBase.java | 218 public Launcher setExpectedState(ActivityCallback expectedState) { in setExpectedState() argument 219 mExpectedState = expectedState; in setExpectedState() 299 Class<? extends Activity> activityClass, ActivityCallback expectedState) { in waitAndAssertActivityCurrentState() argument 301 mLifecycleTracker.waitAndAssertActivityCurrentState(activityClass, expectedState); in waitAndAssertActivityCurrentState()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BluetoothSharingRestrictionTest.java | 110 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/ |
D | PrivilegedAppDisableTest.java | 74 private void assertPackageEnabledState(String packageName, int expectedState) { in assertPackageEnabledState() argument 80 assertEquals(expectedState, state); in assertPackageEnabledState()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BluetoothRestrictionTest.java | 187 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/inputmethod/src/android/view/inputmethod/cts/ |
D | BaseInputConnectionTest.java | 214 final int deleteBefore, final int deleteAfter, final String expectedState) { 215 verifyDeleteSurroundingTextMain(initialState, deleteBefore, deleteAfter, expectedState, 220 final int deleteBefore, final int deleteAfter, final String expectedState, 232 final CharSequence expectedString = clearSelection ? expectedState 233 : InputConnectionTestUtils.formatString(expectedState); 241 assertEquals(expectedState, ic.getEditable().toString()); 315 int deleteBeforeInCodePoints, int deleteAfterInCodePoints, String expectedState) { 320 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState);
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 447 private void assertPermissionGrantState(String permission, int expectedState) { in assertPermissionGrantState() argument 448 assertPermissionGrantState(mDevicePolicyManager, permission, expectedState); in assertPermissionGrantState() 452 int expectedState) { in assertPermissionGrantState() argument 458 permission, expectedState, permissionGrantStateToString(expectedState), in assertPermissionGrantState() 461 .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/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 951 private String mountObb(final int resource, final File file, int expectedState) { in mountObb() argument 961 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb() 965 assertEquals(expectedState, observer.getState()); in mountObb() 981 int expectedState) { in waitForObbActionCompletion() argument 986 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion() 997 private void unmountObb(final File file, int expectedState) { in unmountObb() argument 1006 assertEquals(expectedState, observer.getState()); in unmountObb() 1008 if (expectedState == OnObbStateChangeListener.UNMOUNTED) { in unmountObb()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 693 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/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 301 String expectedState = "Second state"; in testStateEventsHaveLastEventText() local 305 sendStateDescriptionChangedEvent(mChildView, expectedState); in testStateEventsHaveLastEventText() 310 assertEquals(expectedState, event.getText().get(0)); in testStateEventsHaveLastEventText()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordTest.java | 451 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderDefault() local 465 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault() 478 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderPartialFormat() local 497 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat() 514 final int expectedState = AudioRecord.STATE_INITIALIZED; in testAudioRecordBuilderParams() local 540 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderParams()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | ArrowKeyMovementMethodTest.java | 1436 private void pressMetaKey(int metakey, int expectedState) { in pressMetaKey() argument 1438 assertEquals(1, MetaKeyKeyListener.getMetaState(mEditable, expectedState)); in pressMetaKey()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsServiceTest.java | 3726 private void verifyRegistrationState(ImsRcsManager regManager, int expectedState) 3733 return waitForIntResult(mQueue) == expectedState; 3749 private void verifyRegistrationState(RegistrationManager regManager, int expectedState) 3755 return waitForIntResult(mQueue) == expectedState;
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 814 private void assertExpectedDndState(int expectedState) { in assertExpectedDndState() argument 817 if (expectedState == in assertExpectedDndState() 828 assertEquals(expectedState, mNotificationManager.getCurrentInterruptionFilter()); in assertExpectedDndState()
|