/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiUtilsTest.java | 34 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0, -1)) in testInvalidAddress() 35 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN); in testInvalidAddress() 36 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0xFFFF, 0xFFFF)) in testInvalidAddress() 37 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN); in testInvalidAddress() 38 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0xFFFFF, 0)) in testInvalidAddress() 39 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN); in testInvalidAddress() 44 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0x1000, 0x1000)) in testSameAddress() 45 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_SAME); in testSameAddress() 50 assertThat(HdmiUtils.getHdmiAddressRelativePosition(0x1000, 0x1200)) in testDirectlyAbove() 51 .isEqualTo(HdmiUtils.HDMI_RELATIVE_POSITION_DIRECTLY_ABOVE); in testDirectlyAbove() [all …]
|
/frameworks/base/core/tests/coretests/src/android/hardware/hdmi/ |
D | HdmiUtilsTest.java | 35 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isMe() 37 HdmiUtils.TARGET_SAME_PHYSICAL_ADDRESS); in pathToPort_isMe() 44 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isDirectlyBelow() 52 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isBelow() 60 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 62 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow() 66 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 68 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow() 72 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 74 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiUtilsTest.java | 24 import com.android.server.hdmi.HdmiUtils.CodecSad; 25 import com.android.server.hdmi.HdmiUtils.DeviceConfig; 62 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isMe() 64 HdmiUtils.TARGET_SAME_PHYSICAL_ADDRESS); in pathToPort_isMe() 71 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isDirectlyBelow() 79 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isBelow() 87 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 89 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow() 93 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 95 HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE); in pathToPort_neitherMeNorBelow() [all …]
|
D | HdmiCecLocalDeviceAudioSystemTest.java | 647 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(ADDR_PLAYBACK_1)); in updateCecDevice_deviceNotExists_addDevice() 661 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(ADDR_PLAYBACK_1)); in updateCecDevice_deviceExists_doNothing() 673 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(ADDR_PLAYBACK_1)); in updateCecDevice_deviceInfoDifferent_updateDevice() 678 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(ADDR_PLAYBACK_1)); in updateCecDevice_deviceInfoDifferent_updateDevice() 693 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(ADDR_PLAYBACK_1)); in handleReportPhysicalAddress_differentPath_addDevice() 698 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(ADDR_PLAYBACK_2)); in handleReportPhysicalAddress_differentPath_addDevice()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | RequestArcAction.java | 43 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in RequestArcAction() 44 HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in RequestArcAction() 51 || !HdmiUtils.checkCommandSource(cmd, mAvrAddress, TAG)) { in processCommand()
|
D | HdmiCecLocalDeviceAudioSystem.java | 47 import com.android.server.hdmi.HdmiUtils.CodecSad; 48 import com.android.server.hdmi.HdmiUtils.DeviceConfig; 301 List<HdmiDeviceInfo> copiedDevices = HdmiUtils.sparseArrayToList(mDeviceInfos); in updateSafeDeviceInfoList() 451 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() 452 if (HdmiUtils.getLocalPortFromPhysicalAddress( in handleActiveSource() 454 == HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE) { in handleActiveSource() 478 int path = HdmiUtils.twoBytesToInt(message.getParams()); in handleReportPhysicalAddress() 656 config = HdmiUtils.ShortAudioDescriptorXmlParser.parse(in); in handleRequestShortAudioDescriptor() 860 int sourcePhysicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSystemAudioModeRequest() 861 if (HdmiUtils.getLocalPortFromPhysicalAddress( in handleSystemAudioModeRequest() [all …]
|
D | HdmiCecLocalDeviceSource.java | 123 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() 148 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSetStreamPath() 166 int newPath = HdmiUtils.twoBytesToInt(message.getParams(), 2); in handleRoutingChange() 185 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleRoutingInformation()
|
D | SystemAudioAction.java | 68 HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in SystemAudioAction() 155 || !HdmiUtils.checkCommandSource(cmd, mAvrLogicalAddress, TAG)) { in processCommand() 158 boolean receivedStatus = HdmiUtils.parseCommandParamSystemAudioStatus(cmd); in processCommand()
|
D | NewDeviceAction.java | 125 mVendorId = HdmiUtils.threeBytesToInt(params); in processCommand() 173 mDisplayName = HdmiUtils.getDefaultDeviceName(mDeviceLogicalAddress); in addDeviceInfo() 184 if (HdmiUtils.getTypeFromAddress(mDeviceLogicalAddress) in addDeviceInfo()
|
D | DetectTvSystemAudioModeSupportAction.java | 55 if (HdmiUtils.getAbortFeatureOpcode(cmd) == Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE) { in processCommand() 56 if (HdmiUtils.getAbortReason(cmd) == Constants.ABORT_NOT_IN_CORRECT_MODE) { in processCommand()
|
D | SetArcTransmissionStateAction.java | 48 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in SetArcTransmissionStateAction() 49 HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in SetArcTransmissionStateAction()
|
D | SystemAudioStatusAction.java | 89 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus() 90 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
|
D | HdmiCecLocalDevicePlayback.java | 342 boolean setSystemAudioModeOn = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSetSystemAudioMode() 355 boolean setSystemAudioModeOn = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSystemAudioModeStatus() 367 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams(), 2); in handleRoutingChange() 376 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleRoutingInformation()
|
D | HdmiCecLocalDeviceTv.java | 453 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() 548 int path = HdmiUtils.twoBytesToInt(message.getParams()); in handleReportPhysicalAddress() 567 Constants.UNKNOWN_VENDOR_ID, HdmiUtils.getDefaultDeviceName(address)); in handleReportPhysicalAddress() 668 int currentPath = HdmiUtils.twoBytesToInt(params); in handleRoutingChange() 669 if (HdmiUtils.isAffectingActiveRoutingPath(getActivePath(), currentPath)) { in handleRoutingChange() 672 int newPath = HdmiUtils.twoBytesToInt(params, 2); in handleRoutingChange() 686 boolean mute = HdmiUtils.isAudioStatusMute(message); in handleReportAudioStatus() 687 int volume = HdmiUtils.getAudioStatusVolume(message); in handleReportAudioStatus() 1133 boolean systemAudioStatus = HdmiUtils.parseCommandParamSystemAudioStatus(message); in handleSetSystemAudioMode() 1165 setSystemAudioMode(HdmiUtils.parseCommandParamSystemAudioStatus(message)); in handleSystemAudioModeStatus() [all …]
|
D | VolumeControlAction.java | 142 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus() 143 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
|
D | RoutingControlAction.java | 103 int routingPath = HdmiUtils.twoBytesToInt(params); in processCommand() 104 if (!HdmiUtils.isInActiveRoutingPath(mCurrentRoutingPath, routingPath)) { in processCommand()
|
D | SystemAudioActionFromTv.java | 40 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in SystemAudioActionFromTv()
|
D | SystemAudioActionFromAvr.java | 40 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in SystemAudioActionFromAvr()
|
D | SystemAudioAutoInitiationAction.java | 67 handleSystemAudioModeStatusMessage(HdmiUtils.parseCommandParamSystemAudioStatus(cmd)); in processCommand()
|
D | HdmiCecController.java | 106 return HdmiUtils.getTypeFromAddress(address) == Constants.ADDR_AUDIO_SYSTEM; 218 if (deviceType == HdmiUtils.getTypeFromAddress(i)) { in handleAllocateLogicalAddress() 230 && deviceType == HdmiUtils.getTypeFromAddress(curAddress) in handleAllocateLogicalAddress() 297 if (HdmiUtils.isValidAddress(newLogicalAddress)) { in addLogicalAddress() 441 return HdmiUtils.sparseArrayToList(mLocalDevices); in getLocalDeviceList()
|
D | DeviceDiscoveryAction.java | 334 current.mPhysicalAddress = HdmiUtils.twoBytesToInt(params); in handleReportPhysicalAddress() 389 int vendorId = HdmiUtils.threeBytesToInt(params);
|
D | HdmiUtils.java | 46 final class HdmiUtils { class 92 private HdmiUtils() { /* cannot be instantiated */ } in HdmiUtils() method in HdmiUtils
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiUtils.java | 30 public final class HdmiUtils { class 37 private HdmiUtils() { /* cannot be instantiated */ } in HdmiUtils() method in HdmiUtils
|
D | HdmiControlManager.java | 777 return HdmiUtils.getLocalPortFromPhysicalAddress(targetPhysicalAddress, physicalAddress) in isDeviceConnected() 778 != HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE; in isDeviceConnected() 798 return HdmiUtils.getLocalPortFromPhysicalAddress(targetPhysicalAddress, physicalAddress) in isRemoteDeviceConnected() 799 != HdmiUtils.TARGET_NOT_UNDER_LOCAL_DEVICE; in isRemoteDeviceConnected()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvInputInfo.java | 38 import android.hardware.hdmi.HdmiUtils; 39 import android.hardware.hdmi.HdmiUtils.HdmiAddressRelativePosition; 908 int hdmiConnectionRelativePosition = HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN; in build() 917 != HdmiUtils.HDMI_RELATIVE_POSITION_DIRECTLY_BELOW; in build() 957 return HdmiUtils.HDMI_RELATIVE_POSITION_UNKNOWN; in getRelativePosition() 959 return HdmiUtils.getHdmiAddressRelativePosition( in getRelativePosition()
|