Usb: Update UsbDataStatus while being docked
Bug: 275150939 Bug: 357028350 Change-Id: I09499642012c7e95bb5a5fef1ac6eb7b8c4e6832 Signed-off-by: Badhri Jagan Sridharan <badhri@google.com> (ported from ag/22273065) Signed-off-by: Kyle Tso <kyletso@google.com>
This commit is contained in:
parent
a695b0f4a1
commit
7ebbf913ef
1 changed files with 7 additions and 1 deletions
|
@ -996,7 +996,13 @@ Status getPortStatusHelper(android::hardware::usb::Usb *usb,
|
|||
string pogoUsbActive = "0";
|
||||
if (ReadFileToString(string(kPogoUsbActive), &pogoUsbActive) &&
|
||||
stoi(Trim(pogoUsbActive)) == 1) {
|
||||
(*currentPortStatus)[i].usbDataStatus.push_back(UsbDataStatus::DISABLED_DOCK);
|
||||
/*
|
||||
* Always signal USB device mode disabled irrespective of hub enabled while docked.
|
||||
* Hub gets automatically enabled as needed. Signalling DISABLED_DOCK_HOST_MODE &
|
||||
* DEVICE_MODE during pogo direct can cause notifications to show for brief windows
|
||||
* when the state machine is still moving to steady state.
|
||||
*/
|
||||
(*currentPortStatus)[i].usbDataStatus.push_back(UsbDataStatus::DISABLED_DOCK_DEVICE_MODE);
|
||||
dataEnabled = false;
|
||||
}
|
||||
if (!usb->mUsbDataEnabled) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue