Home
last modified time | relevance | path

Searched refs:instrumentation (Results 1 – 25 of 48) 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()
DLaunchAppRule.kt36 private val instrumentation: Instrumentation = appHelper.mInstrumentation, constant in com.android.server.wm.flicker.rules.LaunchAppRule
43 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
45 ): this(StandardAppHelper(instrumentation, appName, component), instrumentation, wmHelper)
/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/service/
DRotationMockTest.kt38 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant
39 private val dummyAppHelper = SampleAppHelper(instrumentation)
46 val device = UiDevice.getInstance(instrumentation) in startRotationServiceTest()
47 val wmHelper = WindowManagerStateHelper(instrumentation) in startRotationServiceTest()
53 instrumentation.uiAutomation.syncInputTransactions() in startRotationServiceTest()
55 instrumentation.uiAutomation.syncInputTransactions() in startRotationServiceTest()
DFassMockTest.kt37 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.service.FassMockTest
38 private val dummyAppHelper = SampleAppHelper(instrumentation)
45 val device = UiDevice.getInstance(instrumentation) in startServiceTest()
46 val wmHelper = WindowManagerStateHelper(instrumentation) in startServiceTest()
DTraceIsTaggableTest.kt33 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant
34 private val device = UiDevice.getInstance(instrumentation)
35 private val wmHelper = WindowManagerStateHelper(instrumentation)
43 SampleAppHelper(instrumentation).launchViaIntent(wmHelper) in canCreateTagsFromDeviceTrace()
DWMFlickerServiceRuleForTestSpecTest.kt42 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.service.WMFlickerServiceRuleForTestSpecTest
46 return FlickerBuilder(instrumentation).apply { in emptyFlicker()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DWindowAnimationFrameStatsMonitorTest.kt33 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.monitor.WindowAnimationFrameStatsMonitorTest
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()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DSampleAppHelper.kt34 instrumentation: Instrumentation,
35 private val pkgManager: PackageManager = instrumentation.context.packageManager
37 instrumentation,
/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.kt43 val instrumentation = InstrumentationRegistry.getInstrumentation() in getCurrState() constant
44 return getCurrentState(instrumentation.uiAutomation, dumpFlags) in getCurrState()
50 val instrumentation = InstrumentationRegistry.getInstrumentation() in getCurrStateDump() constant
51 return getCurrentStateDump(instrumentation.uiAutomation, dumpFlags) in getCurrStateDump()
/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

12