/cts/tests/app/src/android/app/cts/ |
D | ToolbarActionBarTest.java | 37 getInstrumentation().runOnMainSync( in setUp() 48 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testOptionsMenuKey() 49 getInstrumentation().waitForIdleSync(); in testOptionsMenuKey() 52 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testOptionsMenuKey() 53 getInstrumentation().waitForIdleSync(); in testOptionsMenuKey() 65 getInstrumentation().runOnMainSync(() -> mActivity.openOptionsMenu()); in testOpenOptionsMenu() 66 getInstrumentation().waitForIdleSync(); in testOpenOptionsMenu() 69 getInstrumentation().runOnMainSync(() -> mActivity.closeOptionsMenu()); in testOpenOptionsMenu() 70 getInstrumentation().waitForIdleSync(); in testOpenOptionsMenu()
|
D | FragmentTransactionTest.java | 56 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithValidFragment() 66 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithValidFragment() 73 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPrivateFragment() 91 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithPrivateFragment() 97 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPackagePrivateFragment() 115 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithPackagePrivateFragment() 121 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithAnonymousFragment() 139 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithAnonymousFragment() 145 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithNonStaticFragment() 163 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithNonStaticFragment() [all …]
|
D | ApplicationTest.java | 45 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in tearDown() 50 final Instrumentation instrumentation = getInstrumentation(); in testApplication() 78 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale() 79 getInstrumentation().waitForIdleSync(); in toggleFontScale() 80 SystemUtil.runShellCommand(getInstrumentation(), PUT_FONT_SCALE_CMD); in toggleFontScale() 81 getInstrumentation().waitForIdleSync(); in toggleFontScale() 82 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale()
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTest.java | 82 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in setUp() 92 final Context context = getInstrumentation().getContext(); in testAdoptAllShellPermissions() 107 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in testAdoptAllShellPermissions() 117 getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in testAdoptAllShellPermissions() 133 final Context context = getInstrumentation().getContext(); in testAdoptSomeShellPermissions() 143 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testAdoptSomeShellPermissions() 152 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in testAdoptSomeShellPermissions() 160 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testAdoptSomeShellPermissions() 168 getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in testAdoptSomeShellPermissions() 176 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowContentFrameStats() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiLocationInfoTest.java | 97 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in setUp() 153 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in turnScreenOn() 155 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand("" in turnScreenOn() 162 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in turnScreenOff() 250 InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission( in testScanTriggerAllowedForForegroundActivityWithFineLocationPermission() 258 InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission( in testScanTriggerAllowedForBackgroundServiceWithBackgroundLocationPermission() 260 InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission( in testScanTriggerAllowedForBackgroundServiceWithBackgroundLocationPermission() 268 InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission( in testScanTriggerNotAllowedForBackgroundServiceWithFineLocationPermission() 282 InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission( in testScanResultsRetrievalAllowedForForegroundActivityWithFineLocationPermission() 290 InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission( in testScanResultsRetrievalAllowedForBackgroundServiceWithBackgroundLocationPermission() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DefaultDialerOperationsTest.java | 59 mContext = getInstrumentation().getContext(); in setUp() 60 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp() 65 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 68 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 70 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 85 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 95 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetDefaultDialerPackage() 171 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testVoicemailReadWritePermissions() 189 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testSilenceRingerPermissions() 206 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testCancelMissedCallsNotificationPermissions() [all …]
|
D | NonUiInCallServiceTest.java | 36 waitOnAllHandlers(getInstrumentation()); in tearDown() 43 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testMidCallComponentEnablement() 55 waitOnAllHandlers(getInstrumentation()); in testMidCallComponentEnablement() 67 waitOnAllHandlers(getInstrumentation()); in testMidCallComponentEnablement() 78 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testMidCallComponentEnablement() 87 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testNullBinding() 117 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testNullBinding()
|
D | DefaultPhoneAccountTest.java | 33 mContext = getInstrumentation().getContext(); in setUp() 93 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testSetUserSelectedOutgoingPhoneAccount() 125 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingNoUserSelected() 143 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingNoUserSelected() 171 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingPhoneAccountOneOrMany() 207 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingPhoneAccountOneOrMany() 214 TestUtils.enablePhoneAccount(getInstrumentation(), phoneAccount.getAccountHandle()); in registerAndEnablePhoneAccount()
|
D | ConnectionServiceTest.java | 51 mContext = getInstrumentation().getContext(); in setUp() 63 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testAddExistingConnection() 79 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testAddExistingConnection() 140 waitOnAllHandlers(getInstrumentation()); in testVoipAudioModePropagation() 159 waitOnAllHandlers(getInstrumentation()); in testVoipAudioModePropagation() 239 TestUtils.waitOnAllHandlers(getInstrumentation()); in testConnectionServiceFocusGainedWithDifferentConnectionService() 247 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, pah, address); in addIncomingSelfManagedCall() 267 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testCallDirectionIncoming() 285 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testCallDirectionIncoming() 314 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testCallFilteringCompleteSignalNotInContacts() [all …]
|
D | BackgroundCallAudioTest.java | 55 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 56 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp() 71 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 214 waitOnAllHandlers(getInstrumentation()); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() 252 waitOnAllHandlers(getInstrumentation()); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() 260 waitOnAllHandlers(getInstrumentation()); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() 298 waitOnAllHandlers(getInstrumentation()); in testAudioProcessingFromIncomingActivePlaceEmergencyCall() 301 waitOnAllHandlers(getInstrumentation()); in testAudioProcessingFromIncomingActivePlaceEmergencyCall() 323 waitOnAllHandlers(getInstrumentation()); in testAudioProcessActiveCall() 345 waitOnAllHandlers(getInstrumentation()); in testAudioProcessActiveCallMissed() [all …]
|
D | OutgoingCallTest.java | 64 TestUtils.clearSystemDialerOverride(getInstrumentation()); in tearDown() 65 TestUtils.removeTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in tearDown() 130 TestUtils.setSystemDialerOverride(getInstrumentation()); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 131 TestUtils.setTestEmergencyPhoneAccountPackageFilter(getInstrumentation(), mContext); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 132 TestUtils.addTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 155 TestUtils.removeTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 156 TestUtils.clearTestEmergencyPhoneAccountPackageFilter(getInstrumentation()); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 225 getInstrumentation(), TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in testExtraPhoneAccountHandleAvailable() 237 getInstrumentation(), TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2); in testExtraPhoneAccountHandleAvailable() 261 TestUtils.enablePhoneAccount(getInstrumentation(), TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in testAccountSelectionAvailable() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ShellIdentityUtils.java | 100 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissions() 119 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissions() 149 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissions() 171 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissions() 193 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissions() 214 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeThrowableMethodWithShellPermissions() 234 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissionsNoReturn() 254 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeThrowableMethodWithShellPermissionsNoReturn() 275 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeThrowableMethodWithShellPermissionsNoReturn() 295 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in invokeMethodWithShellPermissionsNoReturn() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsControllerTests.java | 40 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; 126 getInstrumentation().runOnMainSync(() -> { in testHideInternal() 144 getInstrumentation().runOnMainSync(() -> { in testShowInternal() 148 getInstrumentation().runOnMainSync(() -> { in testShowInternal() 160 getInstrumentation().runOnMainSync(hidingStatusBar); in testTopAppHidesStatusBarInternal() 166 getInstrumentation().runOnMainSync( in testTopAppHidesStatusBarInternal() 209 final Instrumentation instrumentation = getInstrumentation(); in testImeShowAndHide() 218 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().show(ime())); in testImeShowAndHide() 220 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().hide(ime())); in testImeShowAndHide() 226 final Instrumentation instrumentation = getInstrumentation(); in testImeForceShowingNavigationBar() [all …]
|
D | LayoutTests.java | 28 import static androidx.test.InstrumentationRegistry.getInstrumentation; 77 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in setup() 87 Settings.Global.putFloat(getInstrumentation().getContext().getContentResolver(), in tearDown() 98 getInstrumentation().runOnMainSync(() -> in testLayoutAfterRemovingFocus() 110 getInstrumentation().runOnMainSync(() -> { in doTestLayoutAfterRemovingFocus() 120 getInstrumentation().runOnMainSync(activity::removeAllWindows); in doTestLayoutAfterRemovingFocus() 130 getInstrumentation().runOnMainSync(() -> in doTestLayoutAfterRemovingFocus() 145 getInstrumentation().runOnMainSync(() -> { in testAddingImmersiveWindow() 180 getInstrumentation().runOnMainSync(() -> { in testChangingFocusableFlag() 199 getInstrumentation().waitForIdleSync(); in testChangingFocusableFlag() [all …]
|
D | AlertWindowsAppOpsTests.java | 22 import static androidx.test.InstrumentationRegistry.getInstrumentation; 70 String packageName = getInstrumentation().getContext().getPackageName(); in grantSystemAlertWindowAccess() 77 AppOpsUtils.setOpMode(getInstrumentation().getContext().getPackageName(), in revokeSystemAlertWindowAccess() 83 final String packageName = getInstrumentation().getContext().getPackageName(); in testSystemAlertWindowAppOpsInitiallyAllowed() 86 final AppOpsManager appOpsManager = getInstrumentation().getContext() in testSystemAlertWindowAppOpsInitiallyAllowed() 96 getInstrumentation().getContext().getMainExecutor(), listener); in testSystemAlertWindowAppOpsInitiallyAllowed() 103 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed() 119 getInstrumentation().runOnMainSync(activity::hideSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed() 137 getInstrumentation().runOnMainSync(activity::showSystemAlertWindow); in testSystemAlertWindowAppOpsInitiallyAllowed()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 79 InstrumentationRegistry.getInstrumentation(), false); in setUp() 81 InstrumentationRegistry.getInstrumentation(), false); in setUp() 91 InstrumentationRegistry.getInstrumentation(), false); in tearDown() 93 InstrumentationRegistry.getInstrumentation(), false); in tearDown() 102 InstrumentationRegistry.getInstrumentation(), true); in testPrePCannotToggleAlarmsAndMediaTest() 136 InstrumentationRegistry.getInstrumentation(), false); in testPrePCannotToggleAlarmsAndMediaTest() 142 InstrumentationRegistry.getInstrumentation(), true); in testSetNotificationPolicy_preP_setOldFields() 162 InstrumentationRegistry.getInstrumentation(), true); in testSetNotificationPolicy_preP_setNewFields() 176 InstrumentationRegistry.getInstrumentation(), false); in testSetNotificationPolicy_preP_setNewFields() 182 InstrumentationRegistry.getInstrumentation(), true); in testSuspendPackage() [all …]
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | TelecomManagerNoPermissionsTest.java | 35 mContext = getInstrumentation().getContext(); in setUp() 68 TestUtils.enableCompatCommand(getInstrumentation(), in testCallStateCompatPermissions() 79 TestUtils.resetCompatCommand(getInstrumentation(), in testCallStateCompatPermissions() 90 TestUtils.enableCompatCommand(getInstrumentation(), in testGetPhoneAccountCompatPermissions() 102 TestUtils.resetCompatCommand(getInstrumentation(), in testGetPhoneAccountCompatPermissions()
|
D | DefaultDialerOperationsNoPermissionsTest.java | 36 mContext = getInstrumentation().getContext(); in setUp() 41 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 44 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 46 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 56 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 154 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in verifyForReadPhoneStateOrDefaultDialer()
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | SystemHealthManagerTest.java | 37 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshot() 48 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotWithMe() 59 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshotWithSystem() 77 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotsWithEmptyArray() 89 final Context context = getInstrumentation().getTargetContext(); in testTakeUidSnapshotsWithMe() 106 final Context context = getInstrumentation().getTargetContext(); in testTakeMyUidSnapshotsWithSystem()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerConfigActivityTest.java | 47 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testGetShortcutConfigActivityList() 55 setDefaultLauncher(getInstrumentation(), mLauncherContext4); in testGetShortcutConfigActivityList() 66 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testIntentSenderNotCreatedForWrongActivity() 82 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCorrectIntentSenderCreated() 88 getInstrumentation().addMonitor((String) null, null, false); in testCorrectIntentSenderCreated() 108 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultLauncher() 117 setDefaultLauncher(getInstrumentation(), mLauncherContext1); in testCreateShortcutResultIntent_defaultChanges() 120 setDefaultLauncher(getInstrumentation(), mLauncherContext4); in testCreateShortcutResultIntent_defaultChanges() 129 setDefaultLauncher(getInstrumentation(), mLauncherContext4); in testCreateShortcutResultIntent_noDefault()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 63 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on"); in setUp() 70 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); in tearDown() 71 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); in tearDown() 97 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1"); in setBatteryState() 99 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug"); in setBatteryState() 101 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 110 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 112 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 124 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyChargingState() 130 boolean curNotLow = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyBatteryNotLowState() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 66 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in setUp() 86 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 87 mActivity = launchActivity(getInstrumentation().getTargetContext().getPackageName(), in setUp() 105 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in getColumn() 116 final InputStream in = getInstrumentation().getContext().getContentResolver() in readFully() 123 getInstrumentation().getContext().getContentResolver() in readTypedFully() 145 OutputStream out = getInstrumentation().getContext().getContentResolver() in writeFully() 155 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in supportedHardware() 165 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in supportedHardwareForScopedDirectoryAccess() 175 final PackageManager pm = getInstrumentation().getContext().getPackageManager(); in isTelevision() [all …]
|
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/ |
D | PackageManagerMultiUserTest.java | 43 InstrumentationRegistry.getInstrumentation().getUiAutomation() in tearDown() 49 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testUninstallExistingPackage() 52 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testUninstallExistingPackage() 64 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testGetInstalledModules() 71 InstrumentationRegistry.getInstrumentation().addResults(results); in testGetInstalledModules()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | EndToEndImeTestBase.java | 74 InstrumentationRegistry.getInstrumentation().getTargetContext() in verifyAppModeConsistency() 79 InstrumentationRegistry.getInstrumentation().getTargetContext() in verifyAppModeConsistency() 88 InstrumentationRegistry.getInstrumentation().getContext().getPackageManager() in showStateInitializeActivity() 93 .setClass(InstrumentationRegistry.getInstrumentation().getTargetContext(), in showStateInitializeActivity() 98 InstrumentationRegistry.getInstrumentation().startActivitySync(intent); in showStateInitializeActivity()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetDimensionsTest.java | 19 import static androidx.test.InstrumentationRegistry.getInstrumentation; 38 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBePositive() 44 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBeLessThanMaxRadius() 52 Resources resources = getInstrumentation().getTargetContext().getResources(); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
|