Home
last modified time | relevance | path

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

12345

/platform_testing/tests/perf/BootHelperApp/src/com/android/boothelper/
DBootHelperTest.java54 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
55 mProtectedContext = getInstrumentation().getContext() in setUp()
61 Activity activity = launchActivity(getInstrumentation().getTargetContext() in setupLockScreenPin()
127 private Instrumentation getInstrumentation() { in getInstrumentation() method in BootHelperTest
128 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation()
154 return getInstrumentation().startActivitySync(intent); in launchActivity()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java80 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
82 mWatchers.registerAnrAndCrashWatchers(getInstrumentation()); in setUp()
114 getInstrumentation().getContext().startActivity(intent); in launchIntent()
139 return ((InstrumentationTestRunner)getInstrumentation()).getArguments(); in getParams()
192 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in getPackageVersion()
212 Account[] accounts = AccountManager.get(getInstrumentation().getContext()).getAccounts(); in getRegisteredEmailAccount()
226 FilesystemUtil.dumpMeminfo(getInstrumentation(), notes); in dumpMemInfo()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DWindowAnimationFrameStatsMonitorTest.java19 import static androidx.test.InstrumentationRegistry.getInstrumentation;
51 getInstrumentation(), new Bundle()); in setup()
52 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperAccessor.java54 InstrumentationRegistry.getInstrumentation()) in get()
60 InstrumentationRegistry.getInstrumentation()) in get()
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DWatchFaceJankTest.java43 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
44 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
45 mWfHelper = WatchFaceHelper.getInstance(mDevice, getInstrumentation()); in setUp()
DAppLauncherFlingJankTest.java51 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
52 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
53 mPm = (PowerManager) getInstrumentation(). in setUp()
DCardsJankTest.java40 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
41 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
DWatchFacePickerJankTest.java44 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
45 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
46 mWfHelper = WatchFaceHelper.getInstance(mDevice, getInstrumentation()); in setUp()
DQuickSettingsJankTest.java51 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
52 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
DSettingsFlingJankTest.java51 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
52 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAllAppsScreenHelper.java44 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
46 mInstrumentation = androidx.test.InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
49 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in AllAppsScreenHelper()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationSecurityTests.java40 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
41 mContext = getInstrumentation().getContext(); in setUp()
45 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
DNotificationSecurityLargeTests.java46 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
47 mContext = getInstrumentation().getContext(); in setUp()
51 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DBouncingBallJankTest.java34 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
35 mTouchLatencyHelper = TouchLatencyHelper.getInstance(mDevice, getInstrumentation()); in setUp()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java111 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
114 mLauncher = new LauncherInstrumentation(getInstrumentation()); in setUp()
115 mHasLeanback = hasLeanback(getInstrumentation().getTargetContext()); in setUp()
120 factory.getLeanbackLauncherStrategy().setInstrumentation(getInstrumentation()); in setUp()
162 getInstrumentation().sendStatus(0, mResult); in tearDown()
187 getInstrumentation().getUiAutomation() in testColdLaunchFromLauncher()
207 getInstrumentation().getUiAutomation() in testColdLaunchFromLauncher()
375 mAtraceLogger = AtraceLogger.getAtraceLoggerInstance(getInstrumentation()); in createTraceDirectory()
387 getInstrumentation().getUiAutomation() in cleanTestApps()
415 PackageManager pm = getInstrumentation().getContext() in createLaunchIntentMappings()
[all …]
/platform_testing/libraries/collectors-helper/perfetto/test/src/com/android/helpers/tests/
DPerfettoHelperTest.java59 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in teardown()
122 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testPerfettoSuccess()
137 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testTextProtoConfigSuccess()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchWebView.java41 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
43 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTransitionsJankTests.java43 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
46 this.getInstrumentation().getContext(), mDevice); in setUp()
DUiBenchRenderingJankTests.java44 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
46 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTextJankTests.java44 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
47 this.getInstrumentation().getContext(), mDevice); in setUp()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemAppJankTests.java47 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
111 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp()
114 getInstrumentation().getContext().startActivity(appIntent); in launchApp()
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DGenericAppPermissionTests.java64 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
65 mContext = getInstrumentation().getContext(); in setUp()
66 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp()
68 pHelper = PermissionHelper.getInstance(getInstrumentation()); in setUp()
69 pkgHelper = PackageHelper.getInstance(getInstrumentation()); in setUp()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDropCachesRule.java51 InstrumentationRegistry.getInstrumentation().getContext().getCacheDir(); in executeDropCaches()
64 UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in executeDropCaches()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DScenarioRunner.java62 InstrumentationRegistry.getInstrumentation(), modifiedArguments); in runChild()
65 InstrumentationRegistry.getInstrumentation(), mArguments); in runChild()
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java74 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
85 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp()
88 getInstrumentation().getContext().startActivity(appIntent); in launchApp()
188 getInstrumentation().getContext().getContentResolver() in insertNewContacts()
196 Cursor contactLookup = getInstrumentation().getContext().getContentResolver().query( in doesContactExist()
231 getInstrumentation().getContext().getContentResolver() in addNumToCalLog()
237 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount()

12345