Usb: Update UsbDataStatus while being docked
Bug: 275150939 Change-Id: I09499642012c7e95bb5a5fef1ac6eb7b8c4e6832 Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
This commit is contained in:
parent
44ca8b2554
commit
1e3b4431f4
1 changed files with 7 additions and 1 deletions
|
@ -777,7 +777,13 @@ Status getPortStatusHelper(android::hardware::usb::Usb *usb,
|
||||||
string pogoUsbActive = "0";
|
string pogoUsbActive = "0";
|
||||||
if (ReadFileToString(string(kPogoUsbActive), &pogoUsbActive) &&
|
if (ReadFileToString(string(kPogoUsbActive), &pogoUsbActive) &&
|
||||||
stoi(Trim(pogoUsbActive)) == 1) {
|
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;
|
dataEnabled = false;
|
||||||
}
|
}
|
||||||
if (!usb->mUsbDataEnabled) {
|
if (!usb->mUsbDataEnabled) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue