Commit graph

12 commits

Author SHA1 Message Date
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Bob Badour
13cb922a05 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  camera/common/aidl/Android.bp
  camera/device/aidl/Android.bp
  camera/metadata/aidl/Android.bp
  usb/aidl/Android.bp
  usb/aidl/default/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ie530a51faa37d782428a20238e78573658697be8
2022-02-10 13:39:55 -08:00
TreeHugger Robot
79d54bc5c2 Merge changes from topic "resetUsbPort"
* changes:
  Implement VTS for resetUsbPort and notifyResetUsbPort
  Add resetUsbPort in USB HAL interface
2022-01-26 08:13:08 +00:00
Ricky Niu
a9040400c7 Implement VTS for resetUsbPort and notifyResetUsbPort
Because resetUSBPort API will disconnect the device,
disabled the test for temporary.

Write another VTS on the host side.
Create the b/216387845 to trace.

Bug: 197300598
Test: atest VtsAidlUsbTargetTest

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I17d66c2e9ec55b4ebd9edbb153b7f6bd7166d847
2022-01-26 01:50:42 +00:00
Badhri Jagan Sridharan
549e7f5423 Add OWNERS for IUsb aidl interface
Bug: 200993386
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I7fd3c3466d81f125f970ef0cbb9a121655d6dde5
2022-01-25 20:12:57 +00:00
Ricky Niu
45131a7309 Add resetUsbPort in USB HAL interface
Bug: 197300598
Test: Verify the API working manually

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I52de859244145cb8699f6138ee73a7fe47fdd67b
2022-01-24 21:28:45 +08:00
Badhri Jagan Sridharan
f883235915 Add Vts test for enableUsbDataWhileDocked interface
The test validates that transactionId passed by
the callback matches the requeest transactionId.

Bug: 211677613
Change-Id: I79e58502edfb36c30e42bcde8a79525a6046c859
2022-01-24 21:28:33 +08:00
Badhri Jagan Sridharan
e745058f70 Add fields to infer UsbPortStatus and allow enabling usb while docked
Adding two fields to UsbPortStatus to infer the following:
a. usbDataStatus: To infer the current USB data status of the port.
b. powerBrickStatus: To infer whether a power brick is connected
                     to the USB port.

The change also adds a new method, enableUsbDataWhileDocked to
allow enabling Usb port while being docked.

Bug: 211677613
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I4fb352679a52326bf4b0fc5aa3d218a0f34cecdb
2022-01-24 21:28:23 +08:00
Badhri Jagan Sridharan
6f67c56a65 Add Vts test for limitPowerTransfer interface
Bug: 199357330
Change-Id: I018e3ebf1b8a6d7e5b1ad2592695ab2541439a59
2022-01-21 18:49:51 +08:00
Badhri Jagan Sridharan
623f13385f Add limitPowerTransfer API to IUsb
limitPowerTransfer is invoked to limit power transfer
in and out of the Usb port.

Bug: 199357330
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I5f4991d024ad827ae8148fc143a44cc05bafdcb4
2022-01-21 18:49:39 +08:00
Badhri Jagan Sridharan
aef9dec7dd VTS tests for USB AIDL interface
Bug: 200993386
Bug: 199357330
Bug: 211677613
Change-Id: I49881d136697cd5f207a61e179779b532d0d8e76
2022-01-21 18:49:24 +08:00
Badhri Jagan Sridharan
b9f69ea776 Migrate IUsb to AIDL
This change migrates android.hardware.usb.IUsb to AIDL and
adds the default implementation.

Compared to the HIDL interface, AIDL based interface adds
transactionId argument to each of the interface method which
is used while invoking the corresponding callback.

Bug: 200993386
Bug: 199357330
Test: Ran new hal implementation on Pixel. Yet to run VTS.
Change-Id: Id8aa40682d4c4b435c63b3ae249b176276dbb31d
2022-01-21 18:49:07 +08:00