Loading services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java +4 −5 Original line number Diff line number Diff line Loading @@ -631,6 +631,7 @@ abstract class HdmiCecLocalDevice { synchronized (mLock) { mActiveRoutingPath = path; } mService.setActivePortId(pathToPortId(path)); } /** Loading @@ -649,11 +650,9 @@ abstract class HdmiCecLocalDevice { * @param portId the new active port id */ void setActivePortId(int portId) { synchronized (mLock) { // We update active routing path instead, since we get the active port id from // the active routing path. mActiveRoutingPath = mService.portIdToPath(portId); } setActivePath(mService.portIdToPath(portId)); } @ServiceThreadOnly Loading services/core/java/com/android/server/hdmi/HdmiControlService.java +9 −0 Original line number Diff line number Diff line Loading @@ -239,6 +239,9 @@ public final class HdmiControlService extends SystemService { @ServiceThreadOnly private boolean mWakeUpMessageReceived = false; @ServiceThreadOnly private int mActivePortId = Constants.INVALID_PORT_ID; public HdmiControlService(Context context) { super(context); mLocalDevices = HdmiUtils.asImmutableList(getContext().getResources().getIntArray( Loading Loading @@ -1718,4 +1721,10 @@ public final class HdmiControlService extends SystemService { }); } } @ServiceThreadOnly void setActivePortId(int portId) { assertRunOnServiceThread(); mActivePortId = portId; } } Loading
services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java +4 −5 Original line number Diff line number Diff line Loading @@ -631,6 +631,7 @@ abstract class HdmiCecLocalDevice { synchronized (mLock) { mActiveRoutingPath = path; } mService.setActivePortId(pathToPortId(path)); } /** Loading @@ -649,11 +650,9 @@ abstract class HdmiCecLocalDevice { * @param portId the new active port id */ void setActivePortId(int portId) { synchronized (mLock) { // We update active routing path instead, since we get the active port id from // the active routing path. mActiveRoutingPath = mService.portIdToPath(portId); } setActivePath(mService.portIdToPath(portId)); } @ServiceThreadOnly Loading
services/core/java/com/android/server/hdmi/HdmiControlService.java +9 −0 Original line number Diff line number Diff line Loading @@ -239,6 +239,9 @@ public final class HdmiControlService extends SystemService { @ServiceThreadOnly private boolean mWakeUpMessageReceived = false; @ServiceThreadOnly private int mActivePortId = Constants.INVALID_PORT_ID; public HdmiControlService(Context context) { super(context); mLocalDevices = HdmiUtils.asImmutableList(getContext().getResources().getIntArray( Loading Loading @@ -1718,4 +1721,10 @@ public final class HdmiControlService extends SystemService { }); } } @ServiceThreadOnly void setActivePortId(int portId) { assertRunOnServiceThread(); mActivePortId = portId; } }