Go to nap when receiving <Active Source> for the other devices.
- Previously, it went to sleep when it got <Active Source>, but this causes the other side-effects like can't-wake-up when changing to HDMI port directly. Bug: 15578870 Change-Id: I0ca5bd2372c9e5e7446592d66483900eeba75500
This commit is contained in:
@@ -140,7 +140,7 @@ final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice {
|
||||
if (physicalAddress != mService.getPhysicalAddress()) {
|
||||
mIsActiveSource = false;
|
||||
if (mService.isPowerOnOrTransient()) {
|
||||
mService.standby();
|
||||
mService.nap();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1451,6 +1451,11 @@ public final class HdmiControlService extends SystemService {
|
||||
// the intent, the sequence will continue at onStandby().
|
||||
}
|
||||
|
||||
void nap() {
|
||||
PowerManager pm = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE);
|
||||
pm.nap(SystemClock.uptimeMillis());
|
||||
}
|
||||
|
||||
@ServiceThreadOnly
|
||||
private void onWakeUp() {
|
||||
assertRunOnServiceThread();
|
||||
|
||||
Reference in New Issue
Block a user