diff options
| author | 2023-06-15 20:38:25 +0000 | |
|---|---|---|
| committer | 2023-06-15 20:58:56 +0000 | |
| commit | ba3ffc6c9a18f1a28690ea3f7dc1c26f690ec75c (patch) | |
| tree | 7026bbd1ae06204e52f5831f70e85b6acb30a36a | |
| parent | eae2d15e64944fd38c55c73c60afb51a163664c7 (diff) | |
Usb: Fix incorrect mapping of port mode constants
HalUsbPortMode has incorrect mapping of the Mode constants.
This change aligns the contants to that of the HAL interface.
Bug: 287516105
Change-Id: I1ce03549857d529041cc2100c1080e52c5259875
| -rw-r--r-- | services/usb/java/com/android/server/usb/hal/port/UsbPortHal.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/usb/java/com/android/server/usb/hal/port/UsbPortHal.java b/services/usb/java/com/android/server/usb/hal/port/UsbPortHal.java index f98c598d4190..45de058fc1e8 100644 --- a/services/usb/java/com/android/server/usb/hal/port/UsbPortHal.java +++ b/services/usb/java/com/android/server/usb/hal/port/UsbPortHal.java @@ -70,17 +70,17 @@ public interface UsbPortHal { * * @hide */ - public static final int HAL_MODE_DFP = 1; + public static final int HAL_MODE_UFP = 1; /** * This USB port can act as an upstream facing port (device). * * @hide */ - public static final int HAL_MODE_UFP = 2; + public static final int HAL_MODE_DFP = 2; @IntDef(prefix = { "HAL_MODE_" }, value = { - HAL_MODE_DFP, HAL_MODE_UFP, + HAL_MODE_DFP, }) @Retention(RetentionPolicy.SOURCE) @interface HalUsbPortMode{} |