Searched refs:AoaDevice (Results 1 – 6 of 6) sorted by relevance
18 import static com.android.helper.aoa.AoaDevice.ACCESSORY_REGISTER_HID;19 import static com.android.helper.aoa.AoaDevice.ACCESSORY_SEND_HID_EVENT;20 import static com.android.helper.aoa.AoaDevice.ACCESSORY_SET_HID_REPORT_DESC;21 import static com.android.helper.aoa.AoaDevice.ACCESSORY_START;22 import static com.android.helper.aoa.AoaDevice.ACCESSORY_START_MAX_RETRIES;23 import static com.android.helper.aoa.AoaDevice.ACCESSORY_UNREGISTER_HID;24 import static com.android.helper.aoa.AoaDevice.DEVICE_NOT_FOUND;25 import static com.android.helper.aoa.AoaDevice.GOOGLE_VID;26 import static com.android.helper.aoa.AoaDevice.LONG_CLICK;27 import static com.android.helper.aoa.AoaDevice.SYSTEM_BACK;[all …]
18 import static com.android.helper.aoa.AoaDevice.GOOGLE_VID;
18 import static com.android.helper.aoa.AoaDevice.ACCESSORY_GET_PROTOCOL;19 import static com.android.helper.aoa.AoaDevice.INPUT;
45 public class AoaDevice implements AutoCloseable { class90 AoaDevice(@Nonnull UsbHelper helper, @Nonnull UsbDevice delegate) { in AoaDevice() method in AoaDevice273 send(AoaDevice.HID.SYSTEM, new byte[] {SYSTEM_WAKE}, ACTION_DELAY); in wakeUp()278 send(AoaDevice.HID.SYSTEM, new byte[] {SYSTEM_HOME}, ACTION_DELAY); in goHome()283 send(AoaDevice.HID.SYSTEM, new byte[] {SYSTEM_BACK}, ACTION_DELAY); in goBack()
175 public AoaDevice getAoaDevice(@Nonnull String serialNumber) { in getAoaDevice()187 public AoaDevice getAoaDevice(@Nonnull String serialNumber, @Nonnull Duration timeout) { in getAoaDevice()189 return device != null && device.isAoaCompatible() ? new AoaDevice(this, device) : null; in getAoaDevice()
8 AoaDevice device = manager.getDevice("SERIAL");