UVC Gadget Function is required for DeviceAsWebcam service that lets
Android Devices be used as Webcam when connected to hosts. This CL adds
the UVC GadgetFunction to the USB Gadget interface.
Bug: 242344221
Test: Manually tested that the HAL and the framework pick up the new
GadgetFunction
Change-Id: I93acf458f279500320ffc5abd55f139d3d768101
This CL does the following:
- Add fields to AIDL UsbSpeed that were added in HIDL's UsbSpeed 1.2.
- Fix the values of the AIDL speeds. The values of fields in UsbSpeed
didn't match their HIDL counterparts so this CL fixes the values
as well.
- Remove unused import from IUsbGadget and IUsbGadgetCallback.
Test: Manually tested that UsbManager reports the correct speed when
using the AIDL interface
Bug: 218791946
Change-Id: Ic94bb382c11a88a29da5e61ca751138f271f54ac
Fixed the comments for aosp/2361672
Bug: 218791946
Test: USB function switch success and AIDL service is running.
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I1bd5b96cfe0d994091338a827efe49d07be8c578
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.
Note: This is a cherry-pick of ag/16819267
Bug: 218791946
Test: USB function switch success and AIDL service is running.
Signed-off-by: Ricky Niu <rickyniu@google.com>
Merged-In: Ie05354660f13c8047e2c1712bf373e8699874d28
Change-Id: Ie05354660f13c8047e2c1712bf373e8699874d28
(cherry picked from commit 73b7652e00)
Change the long to int64_t in function setCurrentUsbFunctions
Bug: 260947383
Change-Id: I4832e2890ea561c8ad377e5a62bfa22dae35bf0f
Signed-off-by: Ricky Niu <rickyniu@google.com>
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