Usb: Update UsbDataStatus while being docked am: 1e3b4431f4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/22273065 Change-Id: I52f96177bc980e5bc34bf7c5eaf025f6af28d709 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
c6a43ac60a
1 changed files with 7 additions and 1 deletions
|
@ -777,7 +777,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