Home
last modified time | relevance | path

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

123

/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.kt34 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.rules.ChangeDisplayOrientationRule
41 val wm = instrumentation.context.getSystemService(Context.WINDOW_SERVICE) as WindowManager in starting()
43 setRotation(targetOrientation, instrumentation) in starting()
47 setRotation(initialOrientation, instrumentation) in finished()
54 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), in setRotation()
55 wmHelper: WindowManagerStateHelper = WindowManagerStateHelper(instrumentation) in setRotation()
57 val device: UiDevice = UiDevice.getInstance(instrumentation) in setRotation()
76 instrumentation.uiAutomation.syncInputTransactions() in setRotation()
DLaunchAppRule.kt38 private val instrumentation: Instrumentation = appHelper.mInstrumentation, constant in com.android.server.wm.flicker.rules.LaunchAppRule
45 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
47 ): this(StandardAppHelper(instrumentation, appName, component), instrumentation, wmHelper)
DFlickerMetricsCollectorRule.kt35 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() in <lambda>()
39 collectionListener.instrumentation = instrumentation in <lambda>()
/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.kt37 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.service.RotationMockTest
38 private val dummyAppHelper = SampleAppHelper(instrumentation)
45 val device = UiDevice.getInstance(instrumentation) in startRotationServiceTest()
46 val wmHelper = WindowManagerStateHelper(instrumentation) in startRotationServiceTest()
52 instrumentation.uiAutomation.syncInputTransactions() in startRotationServiceTest()
54 instrumentation.uiAutomation.syncInputTransactions() in startRotationServiceTest()
DFassMockTest.kt36 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.service.FassMockTest
37 private val dummyAppHelper = SampleAppHelper(instrumentation)
44 val device = UiDevice.getInstance(instrumentation) in startServiceTest()
45 val wmHelper = WindowManagerStateHelper(instrumentation) in startServiceTest()
DFlickerMetricsCollectorRuleTest.kt41 private val instrumentation = InstrumentationRegistry.getInstrumentation() in <lambda>() constant in com.android.server.wm.flicker.service.FlickerMetricsCollectorRuleTest
42 private val device = UiDevice.getInstance(instrumentation) in <lambda>()
43 private val wmHelper = WindowManagerStateHelper(instrumentation) in <lambda>()
44 private val testApp: SampleAppHelper = SampleAppHelper(instrumentation) in <lambda>()
DTraceIsTaggableTest.kt40 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.service.TraceIsTaggableTest
41 private val device = UiDevice.getInstance(instrumentation)
42 private val wmHelper = WindowManagerStateHelper(instrumentation)
55 SampleAppHelper(instrumentation).launchViaIntent(wmHelper) in canCreateTagsFromDeviceTrace()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DShellPrivilege.kt27 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant
28 private val targetContext = instrumentation.targetContext
29 private val uiAutomation = instrumentation.uiAutomation
52 if (permissionsGranted) instrumentation.uiAutomation.dropShellPermissionIdentity() in close()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DTransitionRunnerTest.kt42 private val instrumentation = InstrumentationRegistry.getInstrumentation() constant
62 val flicker = FlickerBuilder(instrumentation) in canRunTransition()
79 val flicker = FlickerBuilder(instrumentation) in storesTransitionExecutionErrors()
96 val flicker = FlickerBuilder(instrumentation) in keepsSuccessfulTransitionExecutions()
118 val flicker = FlickerBuilder(instrumentation) in storesSuccessExecutionStatusInRunResult()
131 val flicker = FlickerBuilder(instrumentation) in storesFailedExecutionStatusInRunResult()
146 val flicker = FlickerBuilder(instrumentation) in savesTraceOnTransitionExecutionErrors()
161 val flicker = FlickerBuilder(instrumentation) in savesTraceOnRunCleanupErrors()
179 val flicker = FlickerBuilder(instrumentation) in savesTraceOnTestCleanupErrors()
DFlickerDSLTest.kt56 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.server.wm.flicker.FlickerDSLTest
135 val builder = FlickerBuilder(instrumentation).apply { in supportDuplicatedTag()
155 val builder = FlickerBuilder(instrumentation).apply { in preventInvalidTagNames()
171 val builder = FlickerBuilder(instrumentation).apply { in assertCreatedTags()
192 FlickerBuilder(instrumentation).build().execute() in detectEmptyResults()
204 val builder = FlickerBuilder(instrumentation) in detectCrashedTransition()
222 val builder = FlickerBuilder(instrumentation) in exceptionContainsDebugInfo()
242 val builder = FlickerBuilder(instrumentation) in canDetectTestSetupExecutionError()
255 val builder = FlickerBuilder(instrumentation) in canDetectTransitionSetupExecutionError()
268 val builder = FlickerBuilder(instrumentation) in canDetectTransitionExecutionError()
[all …]
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/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/dsl/
DFlickerBuilder.kt44 internal val instrumentation: Instrumentation, constant in com.android.server.wm.flicker.dsl.FlickerBuilder
64 instrumentation: Instrumentation,
69 .getInstance(instrumentation).launcherStrategy,
77 wmHelper: WindowManagerStateHelper = WindowManagerStateHelper(instrumentation),
82 it.add(ScreenRecorder(instrumentation.targetContext, outputDir)) in <lambda>()
86 instrumentation,
95 device = UiDevice.getInstance(instrumentation),
103 otherBuilder.instrumentation,
112 UiDevice.getInstance(otherBuilder.instrumentation),
234 instrumentation,
/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/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/flicker/src/com/android/server/wm/flicker/helpers/
DSampleAppHelper.kt34 instrumentation: Instrumentation,
35 private val pkgManager: PackageManager = instrumentation.context.packageManager
37 instrumentation,
/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/libraries/health/rules/src/android/platform/test/rule/
DClassMetricRule.java57 ClassMetricRule(Bundle args, Instrumentation instrumentation) { in ClassMetricRule() argument
60 instrumentation, in ClassMetricRule()
DStopwatchRule.java94 void setInstrumentation(Instrumentation instrumentation) { in setInstrumentation() argument
95 mInstrumentation = instrumentation; in setInstrumentation()
/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/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/screenshot/src/main/java/platform/test/screenshot/
DDeviceEmulationRule.kt44 private val instrumentation = InstrumentationRegistry.getInstrumentation() in <lambda>() constant in platform.test.screenshot.DeviceEmulationRule
45 private val uiAutomation = instrumentation.uiAutomation in <lambda>()
89 instrumentation.setInTouchMode(true) in <lambda>()
116 instrumentation.resetInTouchMode() in <lambda>()
/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()

123