Loading services/core/java/com/android/server/hdmi/HdmiCecAtomWriter.java +6 −1 Original line number Diff line number Diff line Loading @@ -18,9 +18,14 @@ package com.android.server.hdmi; import android.stats.hdmi.HdmiStatsEnums; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.util.FrameworkStatsLog; class HdmiCecAtomWriter { /** * Provides methods for writing HDMI-CEC statsd atoms. */ @VisibleForTesting public class HdmiCecAtomWriter { private static final int FEATURE_ABORT_OPCODE_UNKNOWN = 0x100; private static final int ERROR_CODE_UNKNOWN = -1; Loading services/core/java/com/android/server/hdmi/HdmiCecController.java +1 −1 Original line number Diff line number Diff line Loading @@ -635,7 +635,7 @@ final class HdmiCecController { */ private int incomingMessageDirection(int srcAddress, int dstAddress) { boolean sourceIsLocal = false; boolean destinationIsLocal = false; boolean destinationIsLocal = dstAddress == Constants.ADDR_BROADCAST; for (HdmiCecLocalDevice localDevice : mService.getHdmiCecNetwork().getLocalDeviceList()) { int logicalAddress = localDevice.getDeviceInfo().getLogicalAddress(); if (logicalAddress == srcAddress) { Loading services/core/java/com/android/server/hdmi/HdmiCecNetwork.java +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ import java.util.concurrent.ArrayBlockingQueue; * Note that the information cached in this class is not guaranteed to be up-to-date, especially OSD * names, power states can be outdated. */ class HdmiCecNetwork { @VisibleForTesting public class HdmiCecNetwork { private static final String TAG = "HdmiCecNetwork"; protected final Object mLock; Loading services/core/java/com/android/server/hdmi/HdmiControlService.java +7 −4 Original line number Diff line number Diff line Loading @@ -564,7 +564,8 @@ public class HdmiControlService extends SystemService { mTvInputManager.unregisterCallback(callback); } PowerManager getPowerManager() { @VisibleForTesting protected PowerManager getPowerManager() { return mPowerManager; } Loading Loading @@ -729,7 +730,8 @@ public class HdmiControlService extends SystemService { Global.putInt(cr, key, toInt(value)); } void writeStringSystemProperty(String key, String value) { @VisibleForTesting protected void writeStringSystemProperty(String key, String value) { SystemProperties.set(key, value); } Loading Loading @@ -3366,7 +3368,7 @@ public class HdmiControlService extends SystemService { } @VisibleForTesting HdmiCecAtomWriter getAtomWriter() { protected HdmiCecAtomWriter getAtomWriter() { return mAtomWriter; } Loading Loading @@ -3395,7 +3397,8 @@ public class HdmiControlService extends SystemService { HdmiControlService.PERMISSION); } HdmiCecConfig getHdmiCecConfig() { @VisibleForTesting protected HdmiCecConfig getHdmiCecConfig() { return mHdmiCecConfig; } } services/tests/servicestests/src/com/android/server/hdmi/ActiveSourceActionTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -98,17 +98,17 @@ public class ActiveSourceActionTest { } @Override PowerManager getPowerManager() { protected PowerManager getPowerManager() { return powerManager; } @Override void writeStringSystemProperty(String key, String value) { protected void writeStringSystemProperty(String key, String value) { // do nothing } @Override HdmiCecConfig getHdmiCecConfig() { protected HdmiCecConfig getHdmiCecConfig() { return hdmiCecConfig; } }; Loading Loading
services/core/java/com/android/server/hdmi/HdmiCecAtomWriter.java +6 −1 Original line number Diff line number Diff line Loading @@ -18,9 +18,14 @@ package com.android.server.hdmi; import android.stats.hdmi.HdmiStatsEnums; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.util.FrameworkStatsLog; class HdmiCecAtomWriter { /** * Provides methods for writing HDMI-CEC statsd atoms. */ @VisibleForTesting public class HdmiCecAtomWriter { private static final int FEATURE_ABORT_OPCODE_UNKNOWN = 0x100; private static final int ERROR_CODE_UNKNOWN = -1; Loading
services/core/java/com/android/server/hdmi/HdmiCecController.java +1 −1 Original line number Diff line number Diff line Loading @@ -635,7 +635,7 @@ final class HdmiCecController { */ private int incomingMessageDirection(int srcAddress, int dstAddress) { boolean sourceIsLocal = false; boolean destinationIsLocal = false; boolean destinationIsLocal = dstAddress == Constants.ADDR_BROADCAST; for (HdmiCecLocalDevice localDevice : mService.getHdmiCecNetwork().getLocalDeviceList()) { int logicalAddress = localDevice.getDeviceInfo().getLogicalAddress(); if (logicalAddress == srcAddress) { Loading
services/core/java/com/android/server/hdmi/HdmiCecNetwork.java +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ import java.util.concurrent.ArrayBlockingQueue; * Note that the information cached in this class is not guaranteed to be up-to-date, especially OSD * names, power states can be outdated. */ class HdmiCecNetwork { @VisibleForTesting public class HdmiCecNetwork { private static final String TAG = "HdmiCecNetwork"; protected final Object mLock; Loading
services/core/java/com/android/server/hdmi/HdmiControlService.java +7 −4 Original line number Diff line number Diff line Loading @@ -564,7 +564,8 @@ public class HdmiControlService extends SystemService { mTvInputManager.unregisterCallback(callback); } PowerManager getPowerManager() { @VisibleForTesting protected PowerManager getPowerManager() { return mPowerManager; } Loading Loading @@ -729,7 +730,8 @@ public class HdmiControlService extends SystemService { Global.putInt(cr, key, toInt(value)); } void writeStringSystemProperty(String key, String value) { @VisibleForTesting protected void writeStringSystemProperty(String key, String value) { SystemProperties.set(key, value); } Loading Loading @@ -3366,7 +3368,7 @@ public class HdmiControlService extends SystemService { } @VisibleForTesting HdmiCecAtomWriter getAtomWriter() { protected HdmiCecAtomWriter getAtomWriter() { return mAtomWriter; } Loading Loading @@ -3395,7 +3397,8 @@ public class HdmiControlService extends SystemService { HdmiControlService.PERMISSION); } HdmiCecConfig getHdmiCecConfig() { @VisibleForTesting protected HdmiCecConfig getHdmiCecConfig() { return mHdmiCecConfig; } }
services/tests/servicestests/src/com/android/server/hdmi/ActiveSourceActionTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -98,17 +98,17 @@ public class ActiveSourceActionTest { } @Override PowerManager getPowerManager() { protected PowerManager getPowerManager() { return powerManager; } @Override void writeStringSystemProperty(String key, String value) { protected void writeStringSystemProperty(String key, String value) { // do nothing } @Override HdmiCecConfig getHdmiCecConfig() { protected HdmiCecConfig getHdmiCecConfig() { return hdmiCecConfig; } }; Loading