Commit graph

12 commits

Author SHA1 Message Date
Roy Luo
1af5aa4dea Usb compliance warning extension
Add new warnings to enum ComplianceWarning

Test: atest VtsAidlUsbTargetTest
Bug: 296119135
Bug: 300340959
Change-Id: I5dcfe50285589d35dd2a2ab87020de8e2b92c181
2023-11-02 20:49:28 +00:00
RD Babiera
07ce759994 Add hpd and link training status to AltModeData
Adds DisplayPort hpd and link training attributes within
DisplayPortAltModeData in USB HAL layer to more accurately
populate frameworks API fields. Within DisplayPortAltModeData are
new fields hpd and linkTrainingStatus.

Test: atest VtsAidlUsbTargetTest
Bug: 253534975
Change-Id: I3eb4b1527f457ba63bf127fbb14bd583ef6caf2f
2023-01-23 18:44:32 +00:00
RD Babiera
ff0f61bed1 Skip VTS tests based on HAL interface version
Adds version check to compliance warning, plug orientation, and
DisplayPort VTS tests to skip if feature is not supported. Fixed tab
spacing on mentioned tests.

Bug: 265060163
Test: atest VtsAidlUsbTargetTest
Change-Id: If3e04baa98fa3299f128551e3b93debd729f57e3
2023-01-11 21:03:12 +00:00
RD Babiera
50e1987391 Merge "Usb DisplayPort alt mode aidl interfaces" 2023-01-10 19:11:17 +00:00
RD Babiera
6c94dde226 Usb DisplayPort alt mode aidl interfaces
Adds enums for DisplayPortAltModeStatus and DisplayPortAltModePinAssignment.
Adds AltModeData and DisplayPortAltModeData.
Updates PortStatus to reflect these new enums and parcelables.

Test: atest VtsAidlUsbTargetTest
Bug: 253534975
Change-Id: I0fc62601dfc162b909e796586110686beed137ea
2023-01-09 21:06:18 +00:00
Badhri Jagan Sridharan
6dcb4177e2 Fix check for DisabledDataStatusCheck
disabledCount is expected to be less than or equal to 1.
Fix this by replacing EXPECT_LE with EXPECT_GE.

Bug: 263977605
Change-Id: Id6c803fed814ae13c0f160bb644c31d5d6093738
2023-01-04 22:45:03 +00:00
Badhri Jagan Sridharan
a6aaccc43a Add additional status flags to UsbDataStatus
This change introduces two new values to UsbDataStatus enum
to denote status of Usb data. Previously, UsbDataStatus enum
contained DISABLED_DOCK which indicated that USB data is disabled
due to a docking event. Depending on the hardware design, some
architectures might only disable USB host mode or USB gadget
mode selectively when docked. This change adds enum values
to denote them. DISABLED_HOST_DOCK indicates USB host mode
disabled due to docking event. DISABLED_DEVICE_DOCK indicates
device mode disabled due to docking event. DISABLED_DOCK,
DISABLED_HOST_DOCK, DISABLED_DEVICE_DOCK are mutually exclusive.

Bug: 250522538
Change-Id: I7767bff94a7e5869a734f45e5bd4dba4d4d5fc6d
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
2022-12-15 02:51:11 +00:00
RD Babiera
3a8b5ee143 Usb non-compliant port partner aidl extension
Adds aidl api definitions for notifying if the plugged Type-C
port partner (power source/accessory/cable) is non-compliant
with type-c power delivery specification. PortStatus is extended to have
a boolean that states whether or not this feature is supported as well
as an array for a new enum ComplianceWarning.

Test: atest VtsAidlUsbTargetTest
new test nonCompliantChargerStatus expects expects array to be empty
when the feature is not supported. new test nonCompliantChargerValues
expects any values in array to be in range of ComplianceWarning enums
if feature is supported.

Bug: 236322506
Change-Id: Ie3c2365e7c713327b44421c4d132b321d0e03d5f
2022-11-09 23:30:46 +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
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
6f67c56a65 Add Vts test for limitPowerTransfer interface
Bug: 199357330
Change-Id: I018e3ebf1b8a6d7e5b1ad2592695ab2541439a59
2022-01-21 18:49:51 +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