Home
last modified time | relevance | path

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

123456789

/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java63 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
65 mWatchers.registerAnrAndCrashWatchers(getInstrumentation()); in setUp()
97 getInstrumentation().getContext().startActivity(intent); in launchIntent()
122 return ((InstrumentationTestRunner)getInstrumentation()).getArguments(); in getParams()
175 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in getPackageVersion()
195 Account[] accounts = AccountManager.get(getInstrumentation().getContext()).getAccounts(); in getRegisteredEmailAccount()
209 FilesystemUtil.dumpMeminfo(getInstrumentation(), notes); in dumpMemInfo()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiAutomatorUtils.java44 return UiDevice.getInstance(getInstrumentation()); in getUiDevice()
52 public static Instrumentation getInstrumentation() { in getInstrumentation() method in UiAutomatorUtils
53 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DNavigationModeRule.java19 import static androidx.test.InstrumentationRegistry.getInstrumentation;
55 getInstrumentation().getContext())); in NavigationModeRule()
60 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in packageExists()
78 UiDevice.getInstance(getInstrumentation()).executeShellCommand( in setActiveOverlay()
80 UiDevice.getInstance(getInstrumentation()) in setActiveOverlay()
DCancelNotificationRule.java19 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
31 getInstrumentation().getTargetContext().getSystemService(NotificationManager.class);
DDisableAutofillRule.java38 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in starting()
52 UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in finished()
DDeviceTypeRule.kt100 return getInstrumentation() in isFoldable()
142 private fun getInstrumentation(): Instrumentation = InstrumentationRegistry.getInstrumentation() method
144 private fun getUiDevice(): UiDevice = UiDevice.getInstance(getInstrumentation())
DFinishActivitiesWithoutProcessKillRule.java62 mContext = InstrumentationRegistry.getInstrumentation().getContext(); in FinishActivitiesWithoutProcessKillRule()
86 InstrumentationRegistry.getInstrumentation().getUiAutomation() in starting()
105 InstrumentationRegistry.getInstrumentation().getUiAutomation() in starting()
DArtifactSaver.java19 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
47 InstrumentationRegistry.getInstrumentation().getTargetContext().getFilesDir(), in artifactFile()
134 return UiDevice.getInstance(getInstrumentation()); in getUiDevice()
170 InstrumentationRegistry.getInstrumentation() in dumpCommandOutput()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DGoldenPathManagerTest.kt33 val subject = GoldenPathManager(InstrumentationRegistry.getInstrumentation().context) in goldenImageIdentifierResolver_appendsPng()
44 InstrumentationRegistry.getInstrumentation().context, in goldenIdentifierResolver_includesPathConfig()
54 val context = InstrumentationRegistry.getInstrumentation().context in goldenIdentifierResolver_allowsOverrideFileExtension()
79 val context = InstrumentationRegistry.getInstrumentation().getContext() in pathNoContextExtractor1()
90 val context = InstrumentationRegistry.getInstrumentation().context in emulatedDevicePathConfigTest()
/platform_testing/tests/perf/BootHelperApp/src/com/android/boothelper/
DBootHelperTest.java53 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
54 mProtectedContext = getInstrumentation().getContext() in setUp()
60 Activity activity = launchActivity(getInstrumentation().getTargetContext() in setupLockScreenPin()
126 private Instrumentation getInstrumentation() { in getInstrumentation() method in BootHelperTest
127 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation()
153 return getInstrumentation().startActivitySync(intent); in launchActivity()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestListener.java53 (InstrumentationRegistry.getInstrumentation() in testRunFinished()
58 InstrumentationRegistry.getInstrumentation().resetInTouchMode(); in testRunFinished()
61 InstrumentationRegistry.getInstrumentation() in testRunFinished()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DPowerTestRunListener.java54 getInstrumentation().getUiAutomation().executeShellCommand(cbHelpCmd); in disconnectDeviceFromHost()
57 getInstrumentation().getUiAutomation().executeShellCommand(command); in disconnectDeviceFromHost()
70 getInstrumentation().getContext().getSystemService(Context.BATTERY_SERVICE); in isCharging()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperAccessor.java54 InstrumentationRegistry.getInstrumentation()) in get()
60 InstrumentationRegistry.getInstrumentation()) in get()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DAllAppsScreenHelper.java45 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
47 mInstrumentation = androidx.test.InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
50 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in AllAppsScreenHelper()
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchEditTextTypingMicrobenchmark.java91 InstrumentationRegistry.getInstrumentation().getUiAutomation(); in testEditTextTyping()
94 InstrumentationRegistry.getInstrumentation() in testEditTextTyping()
108 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(code); in testEditTextTyping()
115 InstrumentationRegistry.getInstrumentation() in testEditTextTyping()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAllAppsScreenHelper.java45 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
47 mInstrumentation = androidx.test.InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
50 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in AllAppsScreenHelper()
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/
DLockContentionStressMode.java48 final Context context = InstrumentationRegistry.getInstrumentation().getContext(); in LockContentionStressMode()
129 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in testStarted()
130 mHoldLockToken = getInstrumentation().getContext().getPackageManager().getHoldLockToken(); in testStarted()
131 getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in testStarted()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DPerfettoListener.java98 mTracingStrategy = new PerfettoTracingPerRunStrategy(getInstrumentation()); in initTracingStrategy()
100 mTracingStrategy = new PerfettoTracingPerClassStrategy(getInstrumentation()); in initTracingStrategy()
102 mTracingStrategy = new PerfettoTracingPerTestStrategy(getInstrumentation()); in initTracingStrategy()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemAppJankTests.java48 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
112 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp()
115 getInstrumentation().getContext().startActivity(appIntent); in launchApp()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java111 mDevice = UiDevice.getInstance(InstrumentationRegistry.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/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()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DOatDumpCollectorTest.java44 InstrumentationRegistry.getInstrumentation() in tearDown()
60 InstrumentationRegistry.getInstrumentation().getContext().getExternalCacheDir(); in testCollectOatDump_onRunStartAndRunEnd()
64 collector.setInstrumentation(InstrumentationRegistry.getInstrumentation()); in testCollectOatDump_onRunStartAndRunEnd()
113 InstrumentationRegistry.getInstrumentation() in testFailsIfProcessNotSpecified()
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DGenericAppPermissionTests.java66 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
67 mContext = getInstrumentation().getContext(); in setUp()
68 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp()
70 pHelper = PermissionHelper.getInstance(getInstrumentation()); in setUp()
71 pkgHelper = PackageHelper.getInstance(getInstrumentation()); in setUp()
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java71 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
82 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp()
85 getInstrumentation().getContext().startActivity(appIntent); in launchApp()
185 getInstrumentation().getContext().getContentResolver() in insertNewContacts()
193 Cursor contactLookup = getInstrumentation().getContext().getContentResolver().query( in doesContactExist()
228 getInstrumentation().getContext().getContentResolver() in addNumToCalLog()
234 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DUtils.kt54 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() in notifyRunnerProgress()
62 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() in notifyRunnerProgress()

123456789