public final class UiAutomationConnection
extends IUiAutomationConnection.Stub
UiAutomation
that enables across application testing by simulating
user actions and performing screen introspection.Constructor and Description |
---|
UiAutomationConnection() |
Modifier and Type | Method and Description |
---|---|
void |
clearWindowAnimationFrameStats() |
boolean |
clearWindowContentFrameStats(int windowId) |
void |
connect(IAccessibilityServiceClient client,
int flags) |
void |
disconnect() |
void |
executeShellCommand(String command,
ParcelFileDescriptor sink) |
WindowAnimationFrameStats |
getWindowAnimationFrameStats() |
WindowContentFrameStats |
getWindowContentFrameStats(int windowId) |
void |
grantRuntimePermission(String packageName,
String permission,
int userId) |
boolean |
injectInputEvent(InputEvent event,
boolean sync) |
void |
revokeRuntimePermission(String packageName,
String permission,
int userId) |
boolean |
setRotation(int rotation) |
void |
shutdown() |
Bitmap |
takeScreenshot(int width,
int height) |
public void connect(IAccessibilityServiceClient client, int flags)
public void disconnect()
public boolean injectInputEvent(InputEvent event, boolean sync)
public boolean setRotation(int rotation)
public Bitmap takeScreenshot(int width, int height)
public boolean clearWindowContentFrameStats(int windowId) throws RemoteException
RemoteException
public WindowContentFrameStats getWindowContentFrameStats(int windowId) throws RemoteException
RemoteException
public void clearWindowAnimationFrameStats()
public WindowAnimationFrameStats getWindowAnimationFrameStats()
public void grantRuntimePermission(String packageName, String permission, int userId) throws RemoteException
RemoteException
public void revokeRuntimePermission(String packageName, String permission, int userId) throws RemoteException
RemoteException
public void executeShellCommand(String command, ParcelFileDescriptor sink) throws RemoteException
RemoteException
public void shutdown()