Home
last modified time | relevance | path

Searched refs:instrumentation (Results 1 – 25 of 44) sorted by relevance

12

/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/
DPackageHelper.java35 public PackageHelper(Instrumentation instrumentation) { in PackageHelper() argument
36 mInstrumentation = instrumentation; in PackageHelper()
37 cmdHelper = CommandsHelper.getInstance(instrumentation); in PackageHelper()
38 mPackageManager = instrumentation.getTargetContext().getPackageManager(); in PackageHelper()
41 public static PackageHelper getInstance(Instrumentation instrumentation) { in getInstance() argument
43 sInstance = new PackageHelper(instrumentation); in getInstance()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/
DChangeDisplayOrientationRule.kt32 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.rules.ChangeDisplayOrientationRule
37 val wm = instrumentation.context.getSystemService(Context.WINDOW_SERVICE) as WindowManager in starting()
39 setRotation(targetOrientation, instrumentation) in starting()
43 setRotation(initialOrientation, instrumentation) in finished()
50 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), in setRotation()
51 wmHelper: WindowManagerStateHelper = WindowManagerStateHelper(instrumentation) in setRotation()
53 val device: UiDevice = UiDevice.getInstance(instrumentation) in setRotation()
72 instrumentation.uiAutomation.syncInputTransactions() in setRotation()
/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java39 private CommandsHelper(Instrumentation instrumentation) { in CommandsHelper() argument
40 mInstrumentation = instrumentation; in CommandsHelper()
54 public static CommandsHelper getInstance(Instrumentation instrumentation) { in getInstance() argument
56 sInstance = new CommandsHelper(instrumentation); in getInstance()
58 sInstance.injectInstrumentation(instrumentation); in getInstance()
68 public void injectInstrumentation(Instrumentation instrumentation) { in injectInstrumentation() argument
69 mInstrumentation = instrumentation; in injectInstrumentation()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DWindowAnimationFrameStatsMonitorTest.kt33 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant
34 private val frameStatsMonitor = WindowAnimationFrameStatsMonitor(instrumentation)
35 private val uiDevice = UiDevice.getInstance(instrumentation)
DScreenRecorderTest.kt38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() in <lambda>() constant in com.android.server.wm.flicker.monitor.ScreenRecorderTest
43 mScreenRecorder = ScreenRecorder(outputDir, instrumentation.targetContext) in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/dsl/
DFlickerBuilder.kt45 private val instrumentation: Instrumentation, constant in com.android.server.wm.flicker.dsl.FlickerBuilder
61 WindowAnimationFrameStatsMonitor(instrumentation)
72 instrumentation: Instrumentation,
77 .getInstance(instrumentation).launcherStrategy,
89 wmHelper: WindowManagerStateHelper = WindowManagerStateHelper(instrumentation)
91 instrumentation,
101 device = UiDevice.getInstance(instrumentation),
106 it.add(ScreenRecorder(outputDir, instrumentation.targetContext)) in <lambda>()
115 otherBuilder.instrumentation,
125 UiDevice.getInstance(otherBuilder.instrumentation),
[all …]
/platform_testing/libraries/app-helpers/handheld/business-card-app-helper/src/android/platform/helpers/
DBusinessCardHelperImpl.java24 public BusinessCardHelperImpl(Instrumentation instrumentation) { in BusinessCardHelperImpl() argument
25 super(instrumentation); in BusinessCardHelperImpl()
/platform_testing/libraries/app-helpers/handheld/performance-launch-app-helper/src/android/platform/helpers/
DPerformanceLaunchHelperImpl.java24 public PerformanceLaunchHelperImpl(Instrumentation instrumentation) { in PerformanceLaunchHelperImpl() argument
25 super(instrumentation); in PerformanceLaunchHelperImpl()
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DSysAppTestHelper.java54 private Instrumentation instrumentation = null; field in SysAppTestHelper
61 private SysAppTestHelper(UiDevice mDevice, Instrumentation instrumentation) { in SysAppTestHelper() argument
64 this.instrumentation = instrumentation; in SysAppTestHelper()
68 public static SysAppTestHelper getInstance(UiDevice device, Instrumentation instrumentation) { in getInstance() argument
70 sysAppTestHelperInstance = new SysAppTestHelper(device, instrumentation); in getInstance()
176 instrumentation.getContext().sendBroadcast(mIntent); in reloadDemoCards()
184 instrumentation.getContext().startActivity(mIntent); in launchActivity()
DWatchFaceHelper.java56 private WatchFaceHelper(UiDevice device, Instrumentation instrumentation) { in WatchFaceHelper() argument
58 this.mHelper = SysAppTestHelper.getInstance(mDevice, instrumentation); in WatchFaceHelper()
61 public static WatchFaceHelper getInstance(UiDevice device, Instrumentation instrumentation) { in getInstance() argument
63 sWatchFaceHelperInstance = new WatchFaceHelper(device, instrumentation); in getInstance()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/monitor/
DWindowAnimationFrameStatsMonitor.kt33 private val instrumentation: Instrumentation constant in com.android.server.wm.flicker.monitor.WindowAnimationFrameStatsMonitor
72 instrumentation.uiAutomation.clearWindowAnimationFrameStats() in start()
76 frameStats = instrumentation.uiAutomation.windowAnimationFrameStats in stop()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DTransitionRunnerTest.kt33 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant
39 val flicker = FlickerBuilder(instrumentation) in canRunTransition()
56 val flicker = FlickerBuilder(instrumentation) in canRunTransitionCached()
DUiDeviceExtensionsTest.kt41 val instrumentation = InstrumentationRegistry.getInstrumentation() in getCurrState() constant
42 return getCurrentState(instrumentation.uiAutomation, dumpFlags) in getCurrState()
48 val instrumentation = InstrumentationRegistry.getInstrumentation() in getCurrStateDump() constant
49 return getCurrentStateDump(instrumentation.uiAutomation, dumpFlags) in getCurrStateDump()
DFlickerDSLTest.kt44 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.FlickerDSLTest
50 val builder = FlickerBuilder(instrumentation) in runFlicker()
147 val builder = FlickerBuilder(instrumentation).apply { in supportDuplicatedTag()
167 val builder = FlickerBuilder(instrumentation).apply { in preventInvalidTagNames()
183 val builder = FlickerBuilder(instrumentation).apply { in assertCreatedTags()
204 FlickerBuilder(instrumentation).build().execute() in detectEmptyResults()
216 val builder = FlickerBuilder(instrumentation) in detectCrashedTransition()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/util/
DSendToInstrumentation.java63 private static void sendStatus(int code, Instrumentation instrumentation, Bundle bundle) { in sendStatus() argument
64 instrumentation.sendStatus(code, bundle); in sendStatus()
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DTouchLatencyHelper.java54 private TouchLatencyHelper(UiDevice mDevice, Instrumentation instrumentation) { in TouchLatencyHelper() argument
56 this.mInstrumentation = instrumentation; in TouchLatencyHelper()
59 public static TouchLatencyHelper getInstance(UiDevice device, Instrumentation instrumentation) { in getInstance() argument
61 touchLatencyHelper = new TouchLatencyHelper(device, instrumentation); in getInstance()
/platform_testing/tests/apphealth/scenarios/src/android/platform/test/scenario/facebook/
DFacebookAppHelperImpl.java65 public FacebookAppHelperImpl(Instrumentation instrumentation) { in FacebookAppHelperImpl() argument
66 super(instrumentation); in FacebookAppHelperImpl()
67 mDevice = UiDevice.getInstance(instrumentation); in FacebookAppHelperImpl()
68 mUiAutomation = instrumentation.getUiAutomation(); in FacebookAppHelperImpl()
69 mContext = instrumentation.getContext(); in FacebookAppHelperImpl()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/watchers/
DAppIsNotRespondingWatcher.java35 public AppIsNotRespondingWatcher(Instrumentation instrumentation) { in AppIsNotRespondingWatcher() argument
36 mDevice = UiDevice.getInstance(instrumentation); in AppIsNotRespondingWatcher()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DStopwatchRule.java76 void setInstrumentation(Instrumentation instrumentation) { in setInstrumentation() argument
77 mInstrumentation = instrumentation; in setInstrumentation()
/platform_testing/tests/example/devcodelab/
DREADME3 This test is a purposely broken instrumentation apk test meant for new
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DIAutoLauncherStrategy.java25 void setInstrumentation(Instrumentation instrumentation); in setInstrumentation() argument
DLauncherStrategyFactory.java61 public static LauncherStrategyFactory getInstance(Instrumentation instrumentation) { in getInstance() argument
62 return getInstance(UiDevice.getInstance(instrumentation)); in getInstance()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DOpenApp.java85 public GenericAppHelperImpl(Instrumentation instrumentation) { in GenericAppHelperImpl() argument
86 super(instrumentation); in GenericAppHelperImpl()
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/generic/
DIdleInAppMicrobenchmark.java89 public GenericAppHelperImpl(Instrumentation instrumentation) { in GenericAppHelperImpl() argument
90 super(instrumentation); in GenericAppHelperImpl()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DDataCollector.java36 private final Instrumentation instrumentation; field in DataCollector
57 instrumentation = instr; in DataCollector()
129 entry.getKey().save(instrumentation, resultsDirectory); in loop()

12