Home
last modified time | relevance | path

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

123

/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DHeapDumpListenerTest.java47 @Mock private Instrumentation mInstrumentation; field in HeapDumpListenerTest
60 collector.setInstrumentation(mInstrumentation); in testHeapCollectionEnableAllIterations()
73 collector.setInstrumentation(mInstrumentation); in testHeapCollectionEnableAllFlagDisabled()
85 collector.setInstrumentation(mInstrumentation); in testHeapCollectionEnableAllDisabledByDefault()
99 collector.setInstrumentation(mInstrumentation); in testHeapCollectionSpecificIterations()
118 collector.setInstrumentation(mInstrumentation); in testHeapCollectionWithProcessNames()
136 collector.setInstrumentation(mInstrumentation); in testHeapCollectionSpecificIterationsMultipleTests()
157 collector.setInstrumentation(mInstrumentation); in testEnableAllOverrideIndvidualIterationIdFlag()
176 collector.setInstrumentation(mInstrumentation); in testHeapCollectionTestWithIterationSeparator()
190 collector.setInstrumentation(mInstrumentation); in testNativeHeapDumpFlag()
[all …]
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.java44 private Instrumentation mInstrumentation; field in PinnerSnapshotListenerTest
60 listener.setInstrumentation(mInstrumentation); in initListener()
DProcessShowmapListenerTest.java48 private Instrumentation mInstrumentation; field in ProcessShowmapListenerTest
63 listener.setInstrumentation(mInstrumentation); in initListener()
DProcLoadListenerTest.java50 private Instrumentation mInstrumentation; field in ProcLoadListenerTest
65 listener.setInstrumentation(mInstrumentation); in initListener()
DDumpsysServiceListenerTest.java46 @Mock private Instrumentation mInstrumentation; field in DumpsysServiceListenerTest
76 listener.setInstrumentation(mInstrumentation); in initListener()
DTotalPssMetricListenerTest.java52 private Instrumentation mInstrumentation; field in TotalPssMetricListenerTest
67 listener.setInstrumentation(mInstrumentation); in initListener()
DShowmapSnapshotListenerTest.java45 @Mock private Instrumentation mInstrumentation; field in ShowmapSnapshotListenerTest
62 listener.setInstrumentation(mInstrumentation); in initListener()
/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.java51 private Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in StopwatchRule
61 mInstrumentation.sendStatus(INST_STATUS_IN_PROGRESS, mResult); in reportMetric()
95 mInstrumentation = instrumentation; in setInstrumentation()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
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/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/tests/automotive/functional/navigationbar/src/android/platform/tests/
DNavigationBarTest.java41 private Instrumentation mInstrumentation; field in NavigationBarTest
46 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in NavigationBarTest()
47 mDevice = UiDevice.getInstance(mInstrumentation); in NavigationBarTest()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DQuickSettingsHelper.java60 @NonNull private final Instrumentation mInstrumentation; field in QuickSettingsHelper
67 mInstrumentation = inst; in QuickSettingsHelper()
68 mCommandsHelper = CommandsHelper.getInstance(mInstrumentation); in QuickSettingsHelper()
78 mInstrumentation in obtainDefaultQSTiles()
162 mInstrumentation.getContext().getContentResolver(), SYSUI_QS_TILES_SETTING); in addQuickSettingTileFromEditMenu()
200 mInstrumentation.getContext().getContentResolver(), SYSUI_QS_TILES_SETTING); in getCurrentTilesList()
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/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DProfileSuiteTest.java74 @Mock private Instrumentation mInstrumentation; field in ProfileSuiteTest
105 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notScenarios()
113 mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_notSupportedRunner()
122 new ProfileSuite(BasicSuite.class, builder, mInstrumentation, mContext, new Bundle()); in testRejectInvalidTests_badRunnerBuilder()
129 mInstrumentation, mContext, new Bundle()); in testValidScenario_basic()
192 mInstrumentation, in testTimestampScheduling_respectsSchedule()
285 mInstrumentation, in testTimestampScheduling_respectsSuiteTimeout()
343 mInstrumentation, in testIndexedScheduling_respectsSchedule()
403 mInstrumentation, in testSequentialScheduling_respectsSchedule()
452 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/systemui-helper/src/android/platform/helpers/media/
DMediaController.java56 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in MediaController
57 private final UiDevice mDevice = UiDevice.getInstance(mInstrumentation);
71 mInstrumentation.getUiAutomation().clearCache(); in play()
80 mInstrumentation.getUiAutomation().clearCache(); in pause()
178 mInstrumentation.getUiAutomation().clearCache(); in hasMetadata()
/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.java97 public Instrumentation mInstrumentation; field in AbstractStandardAppHelper
123 mInstrumentation = instr; in AbstractStandardAppHelper()
155 mSpectatioUiUtil = SpectatioUiUtil.getInstance(mInstrumentation); in initializeSpectatioUtils()
275 mInstrumentation in open()
285 mInstrumentation in open()
345 mInstrumentation in getOpenAppIntent()
369 mInstrumentation in getOpenAppIntent()
390 activityManager = mInstrumentation.getContext().getSystemService(ActivityManager.class); in exit()
455 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion()
473 return mInstrumentation.getContext().getResources().getConfiguration().orientation; in getOrientation()
[all …]
DAbstractStandardAppHelper2.java88 public Instrumentation mInstrumentation; field in AbstractStandardAppHelper2
114 mInstrumentation = instr; in AbstractStandardAppHelper2()
146 mSpectatioUiUtil = SpectatioUiUtil.getInstance(mInstrumentation); in initializeSpectatioUtils()
265 mInstrumentation in open()
271 mInstrumentation in open()
330 mInstrumentation in getOpenAppIntent()
349 activityManager = mInstrumentation.getContext().getSystemService(ActivityManager.class); in exit()
414 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion()
432 return mInstrumentation.getContext().getResources().getConfiguration().orientation; in getOrientation()
448 Context context = mInstrumentation.getContext(); in hasRegisteredGoogleAccount()
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchJankHelper.java103 mInstrumentation.getContext().startActivity(intent); in launchActivity()
110 final UiAutomation uiAutomation = mInstrumentation.getUiAutomation(); in launchActivity()
128 mInstrumentation in getEdgeSensitivity()
132 return mInstrumentation.getContext().getResources().getDimensionPixelSize(resId) + 1; in getEdgeSensitivity()
174 Context context = mInstrumentation.getContext(); in slowSingleFlingDown()
386 mInstrumentation.getContext().getSystemService(ActivityManager.class); in exit()

123