Merge "Revert "Get HDMI CEC physical address with service thread, so TIF can get it for Player."" am: de8f4b28ee am: 72cbd9351c am: 5fe190fb1d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2235816 Change-Id: I800427491fa87e78c1066306cdff9f153cee22ec Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -266,10 +266,6 @@ public class HdmiControlService extends SystemService {
|
|||||||
// Make sure HdmiCecConfig is instantiated and the XMLs are read.
|
// Make sure HdmiCecConfig is instantiated and the XMLs are read.
|
||||||
private HdmiCecConfig mHdmiCecConfig;
|
private HdmiCecConfig mHdmiCecConfig;
|
||||||
|
|
||||||
// Last return value of getPhysicalAddress(). Only updated on calls of getPhysicalAddress().
|
|
||||||
// Does not represent the current physical address at all times. Not to be used as a cache.
|
|
||||||
private int mPhysicalAddress = Constants.INVALID_PHYSICAL_ADDRESS;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface to report send result.
|
* Interface to report send result.
|
||||||
*/
|
*/
|
||||||
@@ -2084,16 +2080,10 @@ public class HdmiControlService extends SystemService {
|
|||||||
@Override
|
@Override
|
||||||
public int getPhysicalAddress() {
|
public int getPhysicalAddress() {
|
||||||
initBinderCall();
|
initBinderCall();
|
||||||
runOnServiceThread(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
mPhysicalAddress = mHdmiCecNetwork.getPhysicalAddress();
|
return mHdmiCecNetwork.getPhysicalAddress();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
return mPhysicalAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setSystemAudioMode(final boolean enabled, final IHdmiControlCallback callback) {
|
public void setSystemAudioMode(final boolean enabled, final IHdmiControlCallback callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user