Home
last modified time | relevance | path

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

1234

/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/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/android/tools/flicker/junit/
DTestUtils.kt27 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant
35 FlickerBuilder(instrumentation).apply { transitions { executionCount++ } } in myMethod()
47 @FlickerBuilderProvider fun myMethod(): FlickerBuilder = FlickerBuilder(instrumentation) in myMethod()
50 fun mySecondMethod(): FlickerBuilder = FlickerBuilder(instrumentation) in myMethod()
61 fun myMethod(): FlickerBuilder = FlickerBuilder(instrumentation)
DFlickerServiceDecoratorTest.kt50 val instrumentation = Mockito.mock(Instrumentation::class.java) in sendsInstrumentationUpdatesOWhenComputingTestMethods() constant
75 instrumentation = instrumentation, in sendsInstrumentationUpdatesOWhenComputingTestMethods()
80 Mockito.verify(instrumentation) in sendsInstrumentationUpdatesOWhenComputingTestMethods()
89 Mockito.verify(instrumentation) in sendsInstrumentationUpdatesOWhenComputingTestMethods()
98 Mockito.verify(instrumentation) in sendsInstrumentationUpdatesOWhenComputingTestMethods()
113 val instrumentation = Mockito.mock(Instrumentation::class.java) in failsTestAndNotModuleOnFlickerServiceMethodComputeError() constant
147 instrumentation = instrumentation, in failsTestAndNotModuleOnFlickerServiceMethodComputeError()
163 val instrumentation = Mockito.mock(Instrumentation::class.java) in handleDuplicateFlickerMethods() constant
235 instrumentation = instrumentation, in handleDuplicateFlickerMethods()
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/
DChangeDisplayOrientationRule.kt49 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), constant in android.tools.flicker.rules.ChangeDisplayOrientationRule
62 instrumentation.context.getSystemService(Context.WINDOW_SERVICE) as WindowManager in starting()
64 setRotation(targetOrientation, instrumentation, clearCacheAfterParsing) in starting()
71 setRotation(initialOrientation, instrumentation, clearCacheAfterParsing) in finished()
80 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), in setRotation()
84 instrumentation, in setRotation()
88 val device: UiDevice = UiDevice.getInstance(instrumentation) in setRotation()
DLaunchAppRule.kt46 private val instrumentation: Instrumentation = appHelper.instrumentation, constant in android.tools.flicker.rules.LaunchAppRule
55 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
60 StandardAppHelper(instrumentation, appName, componentMatcher),
61 instrumentation,
/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/android/tools/integration/
DUtils.kt32 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant
35 internal val setupAndTearDownTestApp = BrowserAppHelper(instrumentation)
36 internal val transitionTestApp = MessagingAppHelper(instrumentation)
39 FlickerBuilder(instrumentation) in createFlicker()
64 val runner = TransitionRunner(TEST_SCENARIO, instrumentation) in runTransition()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DUtils.kt54 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() in notifyRunnerProgress()
56 notifyRunnerProgress(scenario.key, msg, instrumentation) in notifyRunnerProgress()
62 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() in notifyRunnerProgress()
67 instrumentation.sendStatus(1, results) in notifyRunnerProgress()
DFlickerServiceDecorator.kt52 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), in <lambda>()
54 ) : AbstractFlickerRunnerDecorator(testClass, inner, instrumentation) { in <lambda>()
89 instrumentation in <lambda>()
97 instrumentation in <lambda>()
106 instrumentation in <lambda>()
120 instrumentation in <lambda>()
290 instrumentation, in <lambda>()
339 instrumentation: Instrumentation, in <lambda>()
371 instrumentation = instrumentation, in <lambda>()
386 SendToInstrumentation.sendBundle(instrumentation, metricBundle) in <lambda>()
/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/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DGmailAppHelper.kt26 constructor(instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation()) :
28 instrumentation,
DCalculatorAppHelper.kt30 constructor(instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation()) :
32 instrumentation,
DClockAppHelper.kt31 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
32 pkgManager: PackageManager = instrumentation.context.packageManager
35 instrumentation,
DCameraAppHelper.kt31 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
32 pkgManager: PackageManager = instrumentation.context.packageManager
35 instrumentation,
DMessagingAppHelper.kt34 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
35 pkgManager: PackageManager = instrumentation.context.packageManager
38 instrumentation,
DBrowserAppHelper.kt37 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
38 pkgManager: PackageManager = instrumentation.context.packageManager
41 instrumentation,
DCalendarAppHelper.kt31 instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(),
32 pkgManager: PackageManager = instrumentation.context.packageManager
35 instrumentation,
/platform_testing/libraries/flicker/utils/src/android/tools/device/traces/parsers/
DWindowManagerStateHelper.kt28 constructor(instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation()) :
29 android.tools.traces.parsers.WindowManagerStateHelper(instrumentation)
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/
DTransitionRunner.kt43 private val instrumentation: Instrumentation, constant in android.tools.flicker.legacy.runner.TransitionRunner
85 LaunchAppRule(MessagingAppHelper(instrumentation), clearCacheAfterParsing = false) in buildTestRuleChain()
106 instrumentation in buildTestRuleChain()
110 .around(SetupTeardownRule(flicker, resultWriter, scenario, instrumentation)) in buildTestRuleChain()
112 .around(TransitionExecutionRule(flicker, resultWriter, scenario, instrumentation)) in buildTestRuleChain()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DClassMetricRule.java61 ClassMetricRule(Bundle args, Instrumentation instrumentation) { in ClassMetricRule() argument
64 instrumentation, in ClassMetricRule()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/
DQuickswitchTest.kt43 val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() constant in android.tools.flicker.config.QuickswitchTest
45 val wmHelper = WindowManagerStateHelper(instrumentation)
46 val browser = BrowserAppHelper(instrumentation)
47 val camera = CameraAppHelper(instrumentation)
/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/libraries/flicker/src/android/tools/flicker/legacy/
DFlickerBuilder.kt33 private val instrumentation: Instrumentation, constant in android.tools.flicker.legacy.FlickerBuilder
36 WindowManagerStateHelper(instrumentation, clearCacheAfterParsing = false),
40 val device: UiDevice = UiDevice.getInstance(instrumentation),
113 instrumentation, in build()
127 instrumentation, in copy()

1234