Home
last modified time | relevance | path

Searched refs:automation (Results 1 – 21 of 21) sorted by relevance

/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java103 final UiAutomation automation = getUiAutomation(); in dump() local
106 dumpsysOnLogcat(automation, "accessibility"); in dump()
112 dumpScreen(automation); in dump()
115 dumpAccessibilityNodeTreeOnLogcat(automation); in dump()
118 dumpsysOnLogcat(automation, "window accessibility "); in dump()
135 private void dumpsysOnLogcat(UiAutomation automation, String service) { in dumpsysOnLogcat() argument
136 ShellCommandBuilder.create(automation) in dumpsysOnLogcat()
153 private void dumpScreen(UiAutomation automation) { in dumpScreen() argument
155 final Bitmap screenshot = automation.takeScreenshot(); in dumpScreen()
162 private void dumpAccessibilityNodeTreeOnLogcat(UiAutomation automation) { in dumpAccessibilityNodeTreeOnLogcat() argument
[all …]
DShellCommandBuilder.java100 public static void execShellCommandAndPrintOnLogcat(UiAutomation automation, String command) { in execShellCommandAndPrintOnLogcat() argument
103 final String output = SystemUtil.runShellCommand(automation, command); in execShellCommandAndPrintOnLogcat()
112 public static void execShellCommand(UiAutomation automation, String command) { in execShellCommand() argument
114 try (ParcelFileDescriptor fd = automation.executeShellCommand(command)) { in execShellCommand()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DProtoUtils.java34 public static <T> T getProto(UiAutomation automation, Class<T> clazz, String command) in getProto() argument
37 .invoke(null, SystemUtil.runShellCommandByteOutput(automation, command))); in getProto()
DSystemUtil.java88 public static String runShellCommand(UiAutomation automation, String cmd) in runShellCommand() argument
90 return new String(runShellCommandByteOutput(automation, cmd)); in runShellCommand()
103 public static byte[] runShellCommandByteOutput(UiAutomation automation, String cmd) in runShellCommandByteOutput() argument
106 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommandByteOutput()
140 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runShellCommandOrThrow() local
144 ParcelFileDescriptor[] fds = automation.executeShellCommandRwe(cmd); in runShellCommandOrThrow()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPolicyTests.java127 UiAutomation automation = mInstrumentation.getUiAutomation(); in testInputDuringAnimationIsNotAllowed_untrustedEmbedding() local
128 automation.setAnimationScale(2f); in testInputDuringAnimationIsNotAllowed_untrustedEmbedding()
152 automation.setAnimationScale(1f); in testInputDuringAnimationIsNotAllowed_untrustedEmbedding()
169 UiAutomation automation = mInstrumentation.getUiAutomation(); in testInputDuringAnimationIsNotAllowed_trustedEmbedding() local
170 automation.setAnimationScale(2f); in testInputDuringAnimationIsNotAllowed_trustedEmbedding()
204 automation.setAnimationScale(1f); in testInputDuringAnimationIsNotAllowed_trustedEmbedding()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DLogcatHelper.java97 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in assertLogcatMessage() local
99 ParcelFileDescriptor output = automation.executeShellCommand(command); in assertLogcatMessage()
136 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in assertNoLogcatMessage() local
137 ParcelFileDescriptor output = automation.executeShellCommand("logcat -b all"); in assertNoLogcatMessage()
/cts/tests/tests/telecom/src/android/telecom/cts/
DNonUiInCallServiceWoExportTest.java97 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in testTelecomCanBindToNonUiInCallServiceThatIsNotExported() local
100 automation.adoptShellPermissionIdentity(Manifest.permission.CONTROL_INCALL_EXPERIENCE); in testTelecomCanBindToNonUiInCallServiceThatIsNotExported()
119 automation.dropShellPermissionIdentity(); in testTelecomCanBindToNonUiInCallServiceThatIsNotExported()
DIncomingCallTest.java375 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in testBusinessCallProperties() local
378 automation.adoptShellPermissionIdentity( in testBusinessCallProperties()
417 automation.dropShellPermissionIdentity(); in testBusinessCallProperties()
/cts/tests/tests/activityrecognition/src/android/activityrecognition/cts/
DActivityRecognizerAttributionTags.kt111 val automation: UiAutomation = instrumentation.getUiAutomation() in assertNotedOpsSinceLastArAccess() constant
112 automation.adoptShellPermissionIdentity(Manifest.permission.GET_APP_OPS_STATS) in assertNotedOpsSinceLastArAccess()
141 automation.dropShellPermissionIdentity() in assertNotedOpsSinceLastArAccess()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/
DAutomator.java165 File automation = copyAutomationFileToInternalStorage(); in init() local
167 if (!automation.exists()) { in init()
174 … new DexClassLoader(automation.getAbsolutePath(), optimizedDexOutputPath.getAbsolutePath(), in init()
190 .loadDex(automation.getAbsolutePath(), File.createTempFile("opt", "dex", in init()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DDeviceUtils.java65 UiAutomation automation, String command) { in executeInstrumentationShellCommand() argument
66 final ParcelFileDescriptor pfd = automation.executeShellCommand(command); in executeInstrumentationShellCommand()
/cts/libs/kernelinfo/src/com/android/cts/kernelinfo/
DKernelInfo.kt87 val automation: UiAutomation = InstrumentationRegistry.getInstrumentation().uiAutomation constant
91 automation.executeShellCommand("zcat /proc/config.gz")
/cts/hostsidetests/securitybulletin/test-apps/BUG-261036568/test-app/src/android/security/cts/BUG_261036568_test/
DDeviceTest.java115 UiAutomation automation = instrumentation.getUiAutomation(); in verifyNoContentProviderAccess() local
119 automation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in verifyNoContentProviderAccess()
134 automation.dropShellPermissionIdentity(); in verifyNoContentProviderAccess()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventInterceptTest.java144 final UiAutomation automation = mInstrumentation.getUiAutomation(); in injectEvent() local
145 automation.injectInputEvent(event, true); in injectEvent()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java197 final UiAutomation automation = mInstrumentation.getUiAutomation(); in injectEvent() local
201 automation.injectInputEvent(event, true); in injectEvent()
/cts/tests/tests/car/src/android/car/cts/
DCarServiceHelperServiceUpdatableTest.java216 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in assertUserLifecycleEventLogged() local
218 ParcelFileDescriptor output = automation.executeShellCommand(command); in assertUserLifecycleEventLogged()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMetricsRecorder.java173 private static String runShellCommandWithStdIn(@NonNull UiAutomation automation, in runShellCommandWithStdIn() argument
178 final var fds = automation.executeShellCommandRwe(cmd); in runShellCommandWithStdIn()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceTest.java2380 final UiAutomation automation = InstrumentationRegistry.getInstrumentation() in testRcsPublishThrottle() local
2383 automation.adoptShellPermissionIdentity(); in testRcsPublishThrottle()
2387 automation.dropShellPermissionIdentity(); in testRcsPublishThrottle()
2405 automation.adoptShellPermissionIdentity(); in testRcsPublishThrottle()
2409 automation.dropShellPermissionIdentity(); in testRcsPublishThrottle()
2434 automation.adoptShellPermissionIdentity(); in testRcsPublishThrottle()
2438 automation.dropShellPermissionIdentity(); in testRcsPublishThrottle()
2508 final UiAutomation automation = InstrumentationRegistry.getInstrumentation() in testRcsPublishWithSipOptions() local
2514 automation.adoptShellPermissionIdentity(); in testRcsPublishWithSipOptions()
2519 automation.dropShellPermissionIdentity(); in testRcsPublishWithSipOptions()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java309 final UiAutomation automation = getInstrumentation().getUiAutomation(); in injectEvent() local
313 assertTrue(automation.injectInputEvent(event, true)); in injectEvent()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1687 final UiAutomation automation = in assertFineOpNoted() local
1689 automation.adoptShellPermissionIdentity(android.Manifest.permission.GET_APP_OPS_STATS); in assertFineOpNoted()
1717 automation.dropShellPermissionIdentity(); in assertFineOpNoted()
1723 final UiAutomation automation = in assertFineOpNotNoted() local
1725 automation.adoptShellPermissionIdentity(android.Manifest.permission.GET_APP_OPS_STATS); in assertFineOpNotNoted()
1748 automation.dropShellPermissionIdentity(); in assertFineOpNotNoted()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java599 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runShellCommand() local
600 ParcelFileDescriptor output = automation.executeShellCommand(cmd); in runShellCommand()