Home
last modified time | relevance | path

Searched refs:mInstrumentation (Results 1 – 25 of 46) sorted by relevance

12

/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java34 private Instrumentation mInstrumentation = null; field in CommandsHelper
40 mInstrumentation = instrumentation; in CommandsHelper()
69 mInstrumentation = instrumentation; in injectInstrumentation()
80 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DStopwatchRule.java47 private Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in StopwatchRule
61 mInstrumentation.sendStatus(INST_STATUS_IN_PROGRESS, mResult); in reportMetric()
77 mInstrumentation = instrumentation; in setInstrumentation()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBinderListenerTest.java47 @Mock private Instrumentation mInstrumentation; field in BinderListenerTest
62 collector.setInstrumentation(mInstrumentation); in testCollect_singleSpecificProcess()
80 collector.setInstrumentation(mInstrumentation); in testCollect_multiSpecificProcess()
94 collector.setInstrumentation(mInstrumentation); in testCollect_noSpecificProcess()
DJankListenerTest.java47 @Mock private Instrumentation mInstrumentation; field in JankListenerTest
62 collector.setInstrumentation(mInstrumentation); in testCollect_specificProcess()
76 collector.setInstrumentation(mInstrumentation); in testCollect_allProcesses()
DSfStatsListenerTest.java42 @Mock private Instrumentation mInstrumentation; field in SfStatsListenerTest
52 collector.setInstrumentation(mInstrumentation); in testCollect_allProcesses()
DPinnerSnapshotListenerTest.java41 private Instrumentation mInstrumentation; field in PinnerSnapshotListenerTest
57 listener.setInstrumentation(mInstrumentation); in initListener()
DProcessShowmapListenerTest.java48 private Instrumentation mInstrumentation; field in ProcessShowmapListenerTest
63 listener.setInstrumentation(mInstrumentation); in initListener()
DDumpsysServiceListenerTest.java46 @Mock private Instrumentation mInstrumentation; field in DumpsysServiceListenerTest
76 listener.setInstrumentation(mInstrumentation); in initListener()
DDumpsysMeminfoListenerTest.java46 @Mock private Instrumentation mInstrumentation; field in DumpsysMeminfoListenerTest
76 listener.setInstrumentation(mInstrumentation); in initListener()
DShowmapSnapshotListenerTest.java45 @Mock private Instrumentation mInstrumentation; field in ShowmapSnapshotListenerTest
62 listener.setInstrumentation(mInstrumentation); in initListener()
DTotalPssMetricListenerTest.java52 private Instrumentation mInstrumentation; field in TotalPssMetricListenerTest
67 listener.setInstrumentation(mInstrumentation); in initListener()
DScreenshotOnFailureCollectorTest.java72 private Instrumentation mInstrumentation; field in ScreenshotOnFailureCollectorTest
99 listener.setInstrumentation(mInstrumentation); in initListener()
133 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testSavePngAsFile()
169 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testSaveUixAsFile()
206 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testNoUixWithoutOption()
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DTouchLatencyHelper.java48 private Instrumentation mInstrumentation = null; field in TouchLatencyHelper
56 this.mInstrumentation = instrumentation; in TouchLatencyHelper()
75 Intent intent = mInstrumentation.getContext() in launchActivityFromLauncher()
78 mInstrumentation.getContext().startActivity(intent); in launchActivityFromLauncher()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAllAppsScreenHelper.java35 private Instrumentation mInstrumentation; field in AllAppsScreenHelper
45 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
47 mInstrumentation = androidx.test.InstrumentationRegistry.getInstrumentation(); in AllAppsScreenHelper()
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/
DPackageHelper.java31 private Instrumentation mInstrumentation = null; field in PackageHelper
36 mInstrumentation = instrumentation; in PackageHelper()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DStandardAppHelper.kt57 get() = mInstrumentation.context.getSystemService(ActivityManager::class.java)
60 get() = mInstrumentation.context
62 protected val uiDevice: UiDevice = UiDevice.getInstance(mInstrumentation)
128 mInstrumentation.uiAutomation.syncInputTransactions() in waitForActivityDestroyed()
190 mInstrumentation.getUiAutomation().syncInputTransactions() in launchViaIntent()
/platform_testing/tests/automotive/functional/navigationbar/src/android/platform/tests/
DNavigationBarTest.java43 private Instrumentation mInstrumentation; field in NavigationBarTest
52 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in NavigationBarTest()
53 mDevice = UiDevice.getInstance(mInstrumentation); in NavigationBarTest()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DQuickSettingsHelper.java37 private Instrumentation mInstrumentation; field in QuickSettingsHelper
43 mInstrumentation = inst; in QuickSettingsHelper()
110 (mInstrumentation.getContext().getContentResolver(), in addQuickSettingTileFromEditMenu()
122 Settings.Secure.putString(mInstrumentation.getContext().getContentResolver(), in modifyListOfQuickSettingsTiles()
DOverviewHelper.java53 private Instrumentation mInstrumentation = null; field in OverviewHelper
60 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in OverviewHelper()
62 mCommandsHelper = CommandsHelper.getInstance(mInstrumentation); in OverviewHelper()
100 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in populateManyRecentApps()
104 if (pkg.packageName.equals(mInstrumentation.getTargetContext().getPackageName())) { in populateManyRecentApps()
114 mInstrumentation.getTargetContext().startActivity(intent); in populateManyRecentApps()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DAutoUtility.java40 private static Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in AutoUtility
41 private static UiDevice mDevice = UiDevice.getInstance(mInstrumentation);
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DProfileSuiteTest.java72 @Mock private Instrumentation mInstrumentation; field in ProfileSuiteTest
103 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notScenarios()
111 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notSupportedRunner()
120 new ProfileSuite(BasicSuite.class, builder, mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_badRunnerBuilder()
127 mInstrumentation, mContext, new Bundle()); in testValidScenario_basic()
190 mInstrumentation, in testTimestampScheduling_respectsSchedule()
283 mInstrumentation, in testTimestampScheduling_respectsSuiteTimeout()
341 mInstrumentation, in testIndexedScheduling_respectsSchedule()
401 mInstrumentation, in testSequentialScheduling_respectsSchedule()
450 mInstrumentation, in testExtraArgs_registeredBeforeTest()
[all …]
DLongevitySuiteTest.java55 private final Instrumentation mInstrumentation = Mockito.mock(Instrumentation.class); field in LongevitySuiteTest
78 mInstrumentation, in testDeviceWithBattery_registersReceiver()
97 mInstrumentation, in testDeviceWithoutBattery_doesNotRegisterReceiver()
117 mInstrumentation, in testReportingIteration_notSet()
153 mInstrumentation, in testReportingIteration_set()
196 mInstrumentation, in testAdditionalRunners()
250 mInstrumentation, in testThrowingErrorReportingRunnerCauses()
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DTimeInStateListenerTest.java46 @Mock private Instrumentation mInstrumentation; field in TimeInStateListenerTest
76 listener.setInstrumentation(mInstrumentation); in initListener()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper.java66 public Instrumentation mInstrumentation; field in AbstractStandardAppHelper
76 mInstrumentation = instr; in AbstractStandardAppHelper()
126 mInstrumentation.getContext().startActivity(getOpenAppIntent()); in open()
167 mInstrumentation in getOpenAppIntent()
216 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion()
236 return mInstrumentation.getContext().getResources().getConfiguration().orientation; in getOrientation()
252 Context context = mInstrumentation.getContext(); in hasRegisteredGoogleAccount()
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityHelper.java47 private Instrumentation mInstrumentation = null; field in AccessibilityHelper
57 mInstrumentation = instr; in AccessibilityHelper()
60 mContext = mInstrumentation.getTargetContext(); in AccessibilityHelper()

12