Home
last modified time | relevance | path

Searched refs:getInstrumentation (Results 1 – 25 of 1025) sorted by relevance

12345678910>>...41

/cts/tests/app/src/android/app/cts/
DToolbarActionBarTest.java37 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()
DFragmentTransactionTest.java56 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 …]
DApplicationTest.java45 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/
DUiAutomationTest.java82 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/
DWifiLocationInfoTest.java97 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/
DDefaultDialerOperationsTest.java59 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 …]
DNonUiInCallServiceTest.java36 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()
DDefaultPhoneAccountTest.java33 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()
DBackgroundCallAudioTest.java55 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 …]
DConnectionServiceTest.java51 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 …]
DOutgoingCallTest.java64 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 …]
DSimCallManagerTest.java64 mContext = getInstrumentation().getContext(); in setUp()
69 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
72 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp()
74 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp()
84 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
114 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetSimCallManager()
131 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in testGetSimCallManager()
DSelfManagedConnectionServiceTest.java62 mContext = getInstrumentation().getContext(); in setUp()
237 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, handle, address); in addAndVerifyIncomingCall()
287 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, in testDisallowOutgoingCallWhileOngoingManagedCallCanNotBeHeld()
373 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, handle, address); in placeAndVerifyOutgoingCall()
417 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, in testAudioRoute()
478 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, in testIncomingWhileOngoingWithinLimit()
488 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testIncomingWhileOngoingWithinLimit()
507 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testSelfManagedConnectionServiceGainedFocus()
530 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testSelfManagedConnectionServiceLostFocus()
560 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in testRingCallLimitForOnePhoneAccount()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsControllerTests.java40 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
122 getInstrumentation().runOnMainSync(() -> { in testHideInternal()
140 getInstrumentation().runOnMainSync(() -> { in testShowInternal()
144 getInstrumentation().runOnMainSync(() -> { in testShowInternal()
156 getInstrumentation().runOnMainSync(hidingStatusBar); in testTopAppHidesStatusBarInternal()
162 getInstrumentation().runOnMainSync( in testTopAppHidesStatusBarInternal()
205 final Instrumentation instrumentation = getInstrumentation(); in testImeShowAndHide()
214 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().show(ime())); in testImeShowAndHide()
216 getInstrumentation().runOnMainSync(() -> rootView.getWindowInsetsController().hide(ime())); in testImeShowAndHide()
222 final Instrumentation instrumentation = getInstrumentation(); in testImeForceShowingNavigationBar()
[all …]
DLayoutTests.java28 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()
179 getInstrumentation().runOnMainSync(() -> { in testChangingFocusableFlag()
198 getInstrumentation().waitForIdleSync(); in testChangingFocusableFlag()
[all …]
DAlertWindowsAppOpsTests.java22 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellIdentityUtils.java100 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/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java79 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/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java63 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/
DDocumentsClientTestCase.java66 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/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java47 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/tests/os/src/android/os/health/cts/
DSystemHealthManagerTest.java37 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/telecom2/src/android/telecom/cts/
DTelecomManagerNoPermissionsTest.java35 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()
DDefaultDialerOperationsNoPermissionsTest.java36 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/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/
DPackageManagerMultiUserTest.java43 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()

12345678910>>...41