Home
last modified time | relevance | path

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

/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java99 final UiAutomation automation = getUiAutomation(); in dump() local
102 dumpsysOnLogcat(automation); in dump()
108 dumpScreen(automation); in dump()
111 dumpAccessibilityNodeTreeOnLogcat(automation); in dump()
128 private void dumpsysOnLogcat(UiAutomation automation) { in dumpsysOnLogcat() argument
129 ShellCommandBuilder.create(automation) in dumpsysOnLogcat()
146 private void dumpScreen(UiAutomation automation) { in dumpScreen() argument
148 final Bitmap screenshot = automation.takeScreenshot(); in dumpScreen()
154 private void dumpAccessibilityNodeTreeOnLogcat(UiAutomation automation) { in dumpAccessibilityNodeTreeOnLogcat() argument
156 for (AccessibilityWindowInfo window : automation.getWindows()) { in dumpAccessibilityNodeTreeOnLogcat()
[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 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/tests/view/src/android/view/cts/
DLongPressBackTest.java63 final UiAutomation automation = InstrumentationRegistry.getInstrumentation() in testAppIsNotDismissed() local
68 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, in testAppIsNotDismissed()
84 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_UP, in testAppIsNotDismissed()
DKeyEventInterceptTest.java134 final UiAutomation automation = mInstrumentation.getUiAutomation(); in injectEvent() local
135 automation.injectInputEvent(event, true); in injectEvent()
/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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceTest.java1631 final UiAutomation automation = InstrumentationRegistry.getInstrumentation() in testRcsPublishThrottle() local
1634 automation.adoptShellPermissionIdentity(); in testRcsPublishThrottle()
1638 automation.dropShellPermissionIdentity(); in testRcsPublishThrottle()
1656 automation.adoptShellPermissionIdentity(); in testRcsPublishThrottle()
1660 automation.dropShellPermissionIdentity(); in testRcsPublishThrottle()
1682 automation.adoptShellPermissionIdentity(); in testRcsPublishThrottle()
1686 automation.dropShellPermissionIdentity(); in testRcsPublishThrottle()
1753 final UiAutomation automation = InstrumentationRegistry.getInstrumentation() in testRcsPublishWithSipOptions() local
1759 automation.adoptShellPermissionIdentity(); in testRcsPublishWithSipOptions()
1764 automation.dropShellPermissionIdentity(); in testRcsPublishWithSipOptions()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java201 final UiAutomation automation = mInstrumentation.getUiAutomation(); in injectEvent() local
205 automation.injectInputEvent(event, true); in injectEvent()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java280 final UiAutomation automation = getInstrumentation().getUiAutomation(); in injectEvent() local
284 assertTrue(automation.injectInputEvent(event, true)); in injectEvent()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java487 UiAutomation automation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runShellCommand() local
488 ParcelFileDescriptor output = automation.executeShellCommand(cmd); in runShellCommand()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java1739 final UiAutomation automation = in assertNotedOpsSinceLastLocationAccess() local
1741 automation.adoptShellPermissionIdentity(android.Manifest.permission.GET_APP_OPS_STATS); in assertNotedOpsSinceLastLocationAccess()
1767 automation.dropShellPermissionIdentity(); in assertNotedOpsSinceLastLocationAccess()
1773 final UiAutomation automation = in assertNoOpsNotedSinceLastLocationAccess() local
1775 automation.adoptShellPermissionIdentity(android.Manifest.permission.GET_APP_OPS_STATS); in assertNoOpsNotedSinceLastLocationAccess()
1797 automation.dropShellPermissionIdentity(); in assertNoOpsNotedSinceLastLocationAccess()