From 121e0c073992658ca0ba055f40bf3b130caa819a Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Thu, 8 May 2014 18:51:25 -0700 Subject: Adding shell command execution to UiAutomation. The UiAUtomation APIs are an extension object on instrumentation and is not null only if the instrumentation was started from the shell. The UiAutomation APIs allow performing privileged operations for testing. Since UiAutomation tests are just regular instrumentation tests they cannot take advantage of the rich set of command line utilities on the platform. This change adds a capability to UiAutomation to execute shell commands. bug:12927198 Change-Id: Ifb764c8e89943654f3e35d7a0c65b0b730db672f --- api/current.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index 5ca1f59..64a7540 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4838,6 +4838,7 @@ package android.app { method public void clearWindowAnimationFrameStats(); method public boolean clearWindowContentFrameStats(int); method public android.view.accessibility.AccessibilityEvent executeAndWaitForEvent(java.lang.Runnable, android.app.UiAutomation.AccessibilityEventFilter, long) throws java.util.concurrent.TimeoutException; + method public android.os.ParcelFileDescriptor executeShellCommand(java.lang.String); method public android.view.accessibility.AccessibilityNodeInfo findFocus(int); method public android.view.accessibility.AccessibilityNodeInfo getRootInActiveWindow(); method public final android.accessibilityservice.AccessibilityServiceInfo getServiceInfo(); -- cgit v1.1