Home
last modified time | relevance | path

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

12345678

/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java61 final Context c = getInstrumentation().getTargetContext(); in testResolveExternalResId()
63 final String packageName = getInstrumentation().getContext().getPackageName(); in testResolveExternalResId()
91 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testNoPackage()
101 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testEditSchema()
102 getInstrumentation().getContext().getPackageName(), false); in testEditSchema()
127 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in testEditSchema_fallback()
128 getInstrumentation().getContext().getPackageName(), false, in testEditSchema_fallback()
129 getInstrumentation().getContext().getResources().getXml(R.xml.contacts_fallback) in testEditSchema_fallback()
137 getInstrumentation().getTargetContext(), type.resourcePackageName); in testEditSchema_fallback()
155 … final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(), in checkEditSchema_mustHaveChecks()
[all …]
DAccountTypeTest.java35 final String packageName = getInstrumentation().getContext().getPackageName(); in testGetResourceText()
37 final Context c = getInstrumentation().getTargetContext(); in testGetResourceText()
48 assertEquals(getInstrumentation().getContext().getString(externalResID), in testGetResourceText()
62 final String packageName = getInstrumentation().getContext().getPackageName(); in testGetInviteContactActionLabel()
63 final Context c = getInstrumentation().getTargetContext(); in testGetInviteContactActionLabel()
85 assertEquals(getInstrumentation().getContext().getString(externalResID), in testGetInviteContactActionLabel()
108 getInstrumentation().getTargetContext()).compare(lhs, rhs);
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DLocationSettingsTests.java41 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
59 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in testLoadingLocationSettings()
97 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationDeviceOnlyMode()
106 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationBatterySavingMode()
114 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationHighAccuracyMode()
124 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in testLocationSettingsElements()
135 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in testLocationSettingsOverflowMenuElements()
157 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in verifyLocationSettingsMode()
179 Settings.Secure.getInt(getInstrumentation().getContext().getContentResolver(), in verifyLocationSettingsMode()
188 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in verifyLocationSettingsOnOrOff()
[all …]
DMoreWirelessSettingsTests.java40 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
73 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in testTetheringMenuLoad()
86 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in testVPNMenuLoad()
99 Settings.Global.putString(getInstrumentation().getContext().getContentResolver(), in verifyAirplaneModeOnOrOff()
103 Settings.Global.putString(getInstrumentation().getContext().getContentResolver(), in verifyAirplaneModeOnOrOff()
108 .getString(getInstrumentation().getContext().getContentResolver(), in verifyAirplaneModeOnOrOff()
119 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), in toggleAirplaneModeSwitch()
/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/
DRingtonePickerActivityTest.java68 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in setUp()
108 InstrumentationRegistry.getInstrumentation().runOnMainSync(assertRunnable); in validateDefaultState_TimerRingtonePicker()
142 InstrumentationRegistry.getInstrumentation().runOnMainSync(assertRunnable); in validateDefaultState_AlarmRingtonePicker()
150 InstrumentationRegistry.getInstrumentation().runOnMainSync(customRingtoneRunnable); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
190 InstrumentationRegistry.getInstrumentation().runOnMainSync(assertRunnable); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
195 InstrumentationRegistry.getInstrumentation().runOnMainSync(removeCustomRingtoneRunnable); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones()
203 InstrumentationRegistry.getInstrumentation().runOnMainSync(customRingtoneRunnable); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
239 InstrumentationRegistry.getInstrumentation().runOnMainSync(assertRunnable); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
244 InstrumentationRegistry.getInstrumentation().runOnMainSync(removeCustomRingtoneRunnable); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones()
248 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in createTimerRingtonePickerActivity()
[all …]
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DFilesJankPerfTest.java52 final UiDevice device = UiDevice.getInstance(getInstrumentation()); in setUpInLoop()
53 final Context context = getInstrumentation().getTargetContext(); in setUpInLoop()
54 final UiAutomation automation = getInstrumentation().getUiAutomation(); in setUpInLoop()
60 mActivity = getInstrumentation().startActivitySync(intent); in setUpInLoop()
73 final UiDevice device = UiDevice.getInstance(getInstrumentation()); in tearDownInLoop()
92 getInstrumentation().waitForIdleSync(); in testOpenRootJankPerformance()
99 getInstrumentation().waitForIdleSync(); in testFlingJankPerformance()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerSetupViewTest.java76 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in setUp()
96 InstrumentationRegistry.getInstrumentation().runOnMainSync(selectTabRunnable); in setUp()
121 InstrumentationRegistry.getInstrumentation().runOnMainSync(addTimerRunnable); in validateDefaultState_TimersExist()
129 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in validateDefaultState_NoTimersExist()
144 InstrumentationRegistry.getInstrumentation().runOnMainSync(addTimerRunnable); in type0InDefaultState_TimersExist()
152 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in type0InDefaultState_NoTimersExist()
199 InstrumentationRegistry.getInstrumentation().runOnMainSync(addTimerRunnable); in fillDisplayThenDeleteAll_TimersExist()
207 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in fillDisplayThenDeleteAll_NoTimersExist()
227 InstrumentationRegistry.getInstrumentation().runOnMainSync(addTimerRunnable); in fillDisplayWith9s_TimersExist()
235 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in fillDisplayWith9s_NoTimersExist()
DTimerFragmentTest.java91 InstrumentationRegistry.getInstrumentation().runOnMainSync(addTimerRunnable); in setUpSingleTimer()
100 InstrumentationRegistry.getInstrumentation().runOnMainSync(addTimerRunnable); in setUpTwoTimers()
128 InstrumentationRegistry.getInstrumentation().runOnMainSync(setUpFragmentRunnable); in setUpFragment()
151 InstrumentationRegistry.getInstrumentation().runOnMainSync(clearTimersRunnable); in clearTimers()
361 InstrumentationRegistry.getInstrumentation().runOnMainSync(expireTimerRunnable); in fabClick_resetsTimer()
380 InstrumentationRegistry.getInstrumentation().runOnMainSync(expireTimerRunnable); in fabClick_resetsSecondTimer()
406 InstrumentationRegistry.getInstrumentation().runOnMainSync(getTimersRunnable); in clickAdd_addsOneMinuteToTimer()
432 InstrumentationRegistry.getInstrumentation().runOnMainSync(getTimersRunnable); in clickAdd_addsOneMinuteToSecondTimer()
681 InstrumentationRegistry.getInstrumentation().runOnMainSync(timerRunnable); in assertStateEquals()
688 InstrumentationRegistry.getInstrumentation().runOnMainSync(assertRunnable); in assertAdapter()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DWebActivityTest.java45 Intent intent = WebActivity.createIntent(getInstrumentation().getTargetContext(), null, in testNoUrl()
51 startActivityOnMainSync(WebActivity.createIntent(getInstrumentation().getTargetContext(), in testUrlLaunched()
55 getInstrumentation().runOnMainSync(() -> in testUrlLaunched()
63 getInstrumentation().runOnMainSync(() -> startActivity(intent, null, null)); in startActivityOnMainSync()
67 public Instrumentation getInstrumentation() { in getInstrumentation() method in WebActivityTest
68 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDialogFragmentTest.java82 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialogShows()
93 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialogShowsDismiss()
101 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialogShowsDismiss()
110 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialogShows_textInputEditText_shouldNotTruncateOnPortrait()
130 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
151 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargerDensity()
171 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargestDensity()
191 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testCreateDirectoryFragmentShows_textInputEditText_shouldNotTruncateOnLandscape()
291 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd); in executeShellCommand()
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DSetupChooseLockGenericTest.java21 import static androidx.test.InstrumentationRegistry.getInstrumentation;
58 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
59 mContext = getInstrumentation().getTargetContext(); in setUp()
79 getInstrumentation().getContext().startActivity(newPasswordIntent); in clickSkipFigerprintPreference_deviceNotProvisioned_shouldBeAbleToProceed()
88 getInstrumentation().waitForIdleSync(); in getCurrentActivity()
90 getInstrumentation().runOnMainSync(() -> { in getCurrentActivity()
DChooseLockGenericTest.java19 import static androidx.test.InstrumentationRegistry.getInstrumentation;
85 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
86 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
137 getInstrumentation().waitForIdleSync(); in getCurrentActivity()
139 getInstrumentation().runOnMainSync(() -> { in getCurrentActivity()
155 getInstrumentation().getContext().startActivity(newPasswordIntent); in setPassword()
197 getInstrumentation().getContext().startActivity(newPasswordIntent); in clearPassword()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java72 mUtils = new IntegrationTestUtils(getInstrumentation()); in setUp()
73 mUtils.acquireScreenWakeLock(getInstrumentation().getTargetContext()); in setUp()
75 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); in setUp()
143 getInstrumentation().runOnMainSync(new Runnable() { in assertWithMessageId()
151 getInstrumentation().waitForIdleSync(); in assertWithMessageId()
155 getInstrumentation().waitForIdleSync(); in assertWithMessageId()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DCameraTest.java38 intent.setClass(getInstrumentation().getTargetContext(), CameraActivity.class); in testVideoCaptureIntentFdLeak()
43 getInstrumentation().startActivitySync(intent).finish(); in testVideoCaptureIntentFdLeak()
60 intent.setClass(getInstrumentation().getTargetContext(), in checkActivityLeak()
65 Activity activity = getInstrumentation().startActivitySync(intent); in checkActivityLeak()
68 getInstrumentation().waitForIdleSync(); in checkActivityLeak()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DCameraTest.java44 intent.setClass(getInstrumentation().getTargetContext(), VideoCamera.class); in testVideoCaptureIntentFdLeak()
49 getInstrumentation().startActivitySync(intent).finish(); in testVideoCaptureIntentFdLeak()
66 intent.setClass(getInstrumentation().getTargetContext(), cls); in checkActivityLeak()
70 Activity activity = getInstrumentation().startActivitySync(intent); in checkActivityLeak()
73 getInstrumentation().waitForIdleSync(); in checkActivityLeak()
DImageCaptureIntentTest.java149 getInstrumentation().sendKeySync( in takePicture()
151 getInstrumentation().sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in takePicture()
156 getInstrumentation().runOnMainSync(new Runnable() { in pressDone()
164 getInstrumentation().runOnMainSync(new Runnable() { in pressRetake()
172 getInstrumentation().runOnMainSync(new Runnable() { in pressCancel()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollIntroductionTest.java62 mContext = new TestContext(getInstrumentation().getTargetContext()); in setUp()
65 getInstrumentation().runOnMainSync(() -> { in setUp()
78 getInstrumentation().runOnMainSync(() -> { in testMaxFingerprint_shouldShowErrorMessage()
79 getInstrumentation().callActivityOnCreate(mActivity, null); in testMaxFingerprint_shouldShowErrorMessage()
80 getInstrumentation().callActivityOnResume(mActivity); in testMaxFingerprint_shouldShowErrorMessage()
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/
DBaseMainActivityTestCase.java18 import static androidx.test.InstrumentationRegistry.getInstrumentation;
53 getInstrumentation() in setUp()
64 getInstrumentation().getTargetContext().unbindService(mConnection); in tearDown()
75 getInstrumentation() in tuneToChannel()
89 getInstrumentation().waitForIdleSync(); in waitUntilChannelLoadingFinish()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java52 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
64 TestUtils.tearDown(InstrumentationRegistry.getInstrumentation()); in tearDown()
82 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testWakelockAnomaly_longTimeWhileRunning_report()
103 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testWakelockAnomaly_shortTime_notReport()
126 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DNavigationModeSwitchRule.java19 import static androidx.test.InstrumentationRegistry.getInstrumentation;
93 final Context context = getInstrumentation().getContext(); in apply()
146 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in apply()
172 final Context targetContext = getInstrumentation().getTargetContext(); in apply()
213 UiDevice.getInstance(getInstrumentation()).executeShellCommand( in apply()
225 getInstrumentation().
DFallbackRecentsTest.java20 import static androidx.test.InstrumentationRegistry.getInstrumentation;
78 Instrumentation instrumentation = getInstrumentation(); in FallbackRecentsTest()
96 UiDevice.getInstance(getInstrumentation()).executeShellCommand( in FallbackRecentsTest()
102 UiDevice.getInstance(getInstrumentation()).executeShellCommand( in FallbackRecentsTest()
133 final Instrumentation instrumentation = getInstrumentation(); in startAppFast()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
DBugleActivityTest.java39 new ActivityInstrumentationTestCaseIntent(getInstrumentation().getTargetContext(), in setUp()
43 FakeFactory.register(getInstrumentation().getTargetContext()) in setUp()
48 getInstrumentation().callActivityOnStart(getActivity()); in testOnResumeDataModelCallback()
49 getInstrumentation().callActivityOnResume(getActivity()); in testOnResumeDataModelCallback()
DFragmentTestCase.java69 getInstrumentation().waitForIdleSync(); in attachFragment()
86 if (this.getInstrumentation().getTargetContext().getResources(). in tearDown()
104 getInstrumentation().waitForIdleSync(); in clickButton()
118 getInstrumentation().waitForIdleSync(); in setFocus()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DTestUtil.java19 import static androidx.test.InstrumentationRegistry.getInstrumentation;
38 final String apkFilename = getInstrumentation().getTargetContext(). in installDummyApp()
51 UiDevice.getInstance(getInstrumentation()).executeShellCommand("pm install " + apkFilename); in installDummyApp()
55 UiDevice.getInstance(getInstrumentation()).executeShellCommand( in uninstallDummyApp()
/packages/apps/DocumentsUI/app-perf-tests/src/com/android/documentsui/
DFilesAppPerfTest.java53 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
75 mActivity = launchActivity(getInstrumentation().getTargetContext().getPackageName(), in runFilesStartPerformanceTest()
91 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in reportMetrics()
95 final Context context = getInstrumentation().getContext(); in killProviders()

12345678