Stay organized with collections
Save and categorize content based on your preferences.
AoaTargetPreparer
public
class
AoaTargetPreparer
extends BaseTargetPreparer
ITargetPreparer
that executes a series of actions (e.g. clicks and swipes) using the
Android Open Accessory (AOAv2) protocol. This allows controlling an Android device without
enabling USB debugging.
Accepts a list of strings which correspond to AoaDevice
methods:
- Click using x and y coordinates, e.g. "click 0 0" or "longClick 360 640".
- Swipe between two sets of coordinates in a specified number of milliseconds, e.g. "swipe 0
0 100 360 640" to swipe from (0, 0) to (360, 640) in 100 milliseconds.
- Write a string of alphanumeric text, e.g. "write hello world".
- Press a combination of keys, e.g. "key RIGHT 2*TAB ENTER".
- Wake up the device with "wake".
- Press the home button with "home".
- Press the back button with "back".
- Wait for specified number of milliseconds, e.g. "sleep 1000" to wait for 1000 milliseconds.
Summary
Public constructors
AoaTargetPreparer
public AoaTargetPreparer ()
Public methods
public void setUp (TestInformation testInfo)
Parameters |
testInfo |
TestInformation |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[]]