Commit Graph

5 Commits

Author SHA1 Message Date
TreeHugger Robot
d66731d396 Merge "Add resetCb" 2023-02-09 02:02:55 +00:00
Pawan Wagh
6fb5cb3332 Fixing null deference in android.hardware.usb.gadget-service.example
Test: atest VtsAidlUsbTargetTest
Bug: 267534245
Change-Id: Ib28b7848205809912b6789d0e050c1a981dc1ce8
2023-02-08 23:41:06 +00:00
Ricky Niu
44612031c0 Add resetCb
Add the resetCb to complete asynchronous

Bug: 267252826
Test: Boot to home and function work
Change-Id: I6a70bdb87fab1a2f6e7718257d1145f07fa0a14b
2023-02-07 15:30:43 +08:00
Ricky Niu
2bbf8ee86d Fixed the build break in cf_x86_tv-userdebug
Change the long to int64_t in function setCurrentUsbFunctions

Bug: 260947383
Change-Id: I4832e2890ea561c8ad377e5a62bfa22dae35bf0f
Signed-off-by: Ricky Niu <rickyniu@google.com>
2022-12-01 16:23:08 +08:00
Ricky Niu
73b7652e00 Migrate IUsbGadget to AIDL
This change migrates android.hardware.usb.IUsbGadget 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: 218791946
Test: USB function switch success and AIDL service is running.

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: Ie05354660f13c8047e2c1712bf373e8699874d28
2022-11-02 16:09:51 +08:00