/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDeviceSource.java | 120 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() local 121 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource() 125 setIsActiveSource(physicalAddress == mService.getPhysicalAddress()); in handleActiveSource() 128 switchInputOnReceivingNewActivePath(physicalAddress); in handleActiveSource() 145 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleSetStreamPath() local 148 if (physicalAddress == mService.getPhysicalAddress() && mService.isPlaybackDevice()) { in handleSetStreamPath() 149 setAndBroadcastActiveSource(message, physicalAddress); in handleSetStreamPath() 151 switchInputOnReceivingNewActivePath(physicalAddress); in handleSetStreamPath() 182 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleRoutingInformation() local 185 && physicalAddress == mService.getPhysicalAddress() in handleRoutingInformation() [all …]
|
D | ActiveSourceHandler.java | 77 tv.updateActiveInput(newActive.physicalAddress, notifyInputChange); in process() 86 current.logicalAddress, current.physicalAddress); in process() 91 tv.startRoutingControl(newActive.physicalAddress, current.physicalAddress, true, in process()
|
D | HdmiCecLocalDevice.java | 71 int physicalAddress; field in HdmiCecLocalDevice.ActiveSource 79 physicalAddress = physical; in ActiveSource() 83 return new ActiveSource(source.logicalAddress, source.physicalAddress); in of() 96 physicalAddress = Constants.INVALID_PHYSICAL_ADDRESS; in invalidate() 100 return logicalAddress == logical && physicalAddress == physical; in equals() 108 && that.physicalAddress == physicalAddress; in equals() 115 return logicalAddress * 29 + physicalAddress; in hashCode() 127 (physicalAddress == Constants.INVALID_PHYSICAL_ADDRESS) in toString() 129 : String.format("0x%04x", physicalAddress); in toString() 364 int physicalAddress = mService.getPhysicalAddress(); in handleGivePhysicalAddress() local [all …]
|
D | HdmiCecMessageBuilder.java | 317 static HdmiCecMessage buildActiveSource(int src, int physicalAddress) { in buildActiveSource() argument 319 physicalAddressToParam(physicalAddress)); in buildActiveSource() 329 static HdmiCecMessage buildInactiveSource(int src, int physicalAddress) { in buildInactiveSource() argument 331 Constants.MESSAGE_INACTIVE_SOURCE, physicalAddressToParam(physicalAddress)); in buildInactiveSource() 376 static HdmiCecMessage buildRoutingInformation(int src, int physicalAddress) { in buildRoutingInformation() argument 378 Constants.MESSAGE_ROUTING_INFORMATION, physicalAddressToParam(physicalAddress)); in buildRoutingInformation() 735 private static byte[] physicalAddressToParam(int physicalAddress) { in physicalAddressToParam() argument 737 (byte) ((physicalAddress >> 8) & 0xFF), in physicalAddressToParam() 738 (byte) (physicalAddress & 0xFF) in physicalAddressToParam()
|
D | SystemAudioInitiationActionFromAvr.java | 44 if (audioSystem().getActiveSource().physicalAddress == Constants.INVALID_PHYSICAL_ADDRESS) { in start() 145 private void switchToRelevantInputForDeviceAt(int physicalAddress) { in switchToRelevantInputForDeviceAt() argument
|
D | HdmiControlService.java | 896 int physicalAddress; in pathToPortId() local 898 physicalAddress = mPhysicalAddress; in pathToPortId() 900 int maskedAddress = physicalAddress; in pathToPortId() 903 maskedAddress = physicalAddress & mask; in pathToPortId() 986 boolean isConnectedToArcPort(int physicalAddress) { in isConnectedToArcPort() argument 987 int portId = pathToPortId(physicalAddress); in isConnectedToArcPort() 1496 activeSource.physicalAddress, pathToPortId(activeSource.physicalAddress), in getActiveSource() 1505 activeSource.physicalAddress, HdmiDeviceInfo.PORT_INVALID, in getActiveSource() 1817 public void askRemoteDeviceToBecomeActiveSource(int physicalAddress) { in askRemoteDeviceToBecomeActiveSource() argument 1823 getRemoteControlSourceAddress(), physicalAddress); in askRemoteDeviceToBecomeActiveSource() [all …]
|
D | HdmiCecLocalDeviceTv.java | 321 void updateActiveSource(int logicalAddress, int physicalAddress) { in updateActiveSource() argument 323 updateActiveSource(ActiveSource.of(logicalAddress, physicalAddress)); in updateActiveSource() 336 if (mService.pathToPortId(newActive.physicalAddress) == getActivePortId()) { in updateActiveSource() 454 int physicalAddress = HdmiUtils.twoBytesToInt(message.getParams()); in handleActiveSource() local 457 if (!handleNewDeviceAtTheTailOfActivePath(physicalAddress)) { in handleActiveSource() 464 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource() 622 activeSource.physicalAddress, deviceType)); in startNewDeviceAction() 987 private boolean isDirectConnectAddress(int physicalAddress) { in isDirectConnectAddress() argument 988 return (physicalAddress & Constants.ROUTING_PATH_TOP_MASK) == physicalAddress; in isDirectConnectAddress() 1546 boolean isInDeviceList(int logicalAddress, int physicalAddress) { in isInDeviceList() argument [all …]
|
D | DeviceDiscoveryAction.java | 347 private int getPortId(int physicalAddress) { 348 return mIsTvDevice ? tv().getPortId(physicalAddress) 349 : source().getPortId(physicalAddress);
|
D | ArcInitiationActionFromAvr.java | 67 if (audioSystem().getActiveSource().physicalAddress != getSourcePath() in processCommand()
|
D | HdmiCecLocalDeviceAudioSystem.java | 888 int targetPhysicalAddress = getActiveSource().physicalAddress; in setSystemAudioMode() 1062 if (mService.pathToPortId(getActiveSource().physicalAddress) in handleSystemAudioModeOnFromNonTvDevice() 1098 protected void switchInputOnReceivingNewActivePath(int physicalAddress) { in switchInputOnReceivingNewActivePath() argument 1099 int port = mService.pathToPortId(physicalAddress); in switchInputOnReceivingNewActivePath() 1178 protected void handleRoutingChangeAndInformation(int physicalAddress, HdmiCecMessage message) { in handleRoutingChangeAndInformation() argument 1179 int port = mService.pathToPortId(physicalAddress); in handleRoutingChangeAndInformation()
|
D | NewDeviceAction.java | 215 && (mDevicePhysicalAddress == activeSource.physicalAddress); in isActionOf()
|
D | SystemAudioAction.java | 117 return tv().getActiveSource().physicalAddress; in getSystemAudioModeRequestParam()
|
D | HdmiCecController.java | 822 portInfo.physicalAddress, in nativeGetPortInfos()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiDeviceInfo.java | 126 int physicalAddress = source.readInt(); 136 return new HdmiDeviceInfo(logicalAddress, physicalAddress, portId, 141 return new HdmiDeviceInfo(physicalAddress, portId, adopterId, deviceId); 143 return new HdmiDeviceInfo(physicalAddress, portId); 169 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 172 mPhysicalAddress = physicalAddress; in HdmiDeviceInfo() 197 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument 199 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo() 210 public HdmiDeviceInfo(int physicalAddress, int portId) { in HdmiDeviceInfo() argument 212 mPhysicalAddress = physicalAddress; in HdmiDeviceInfo() [all …]
|
D | HdmiRecordSources.java | 703 public static ExternalPhysicalAddress ofExternalPhysicalAddress(int physicalAddress) { in ofExternalPhysicalAddress() argument 704 if ((physicalAddress & ~0xFFFF) != 0) { in ofExternalPhysicalAddress() 705 Log.w(TAG, "Invalid physical address:" + physicalAddress); in ofExternalPhysicalAddress() 706 throw new IllegalArgumentException("Invalid physical address:" + physicalAddress); in ofExternalPhysicalAddress() 709 return new ExternalPhysicalAddress(physicalAddress); in ofExternalPhysicalAddress() 726 private ExternalPhysicalAddress(int physicalAddress) { in ExternalPhysicalAddress() argument 728 mPhysicalAddress = physicalAddress; in ExternalPhysicalAddress()
|
D | IHdmiControlService.aidl | 70 void askRemoteDeviceToBecomeActiveSource(int physicalAddress); in askRemoteDeviceToBecomeActiveSource() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | SystemAudioInitiationActionFromAvrTest.java | 151 int sourceAddress, int physicalAddress) { in SetUp() 191 assertThat(mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress) in testNoActiveSourceMessageReceived() 203 assertThat(mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress) in testNoActiveSourceMessageReceived() 238 assertThat(mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress) in testTvSupport() 246 mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress = 1001; in testKnownActiveSource() 266 assertThat(mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress) in testRetry() 284 assertThat(mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress) in testIsPlaybackDevice_cannotReceiveActiveSource() 305 mHdmiCecLocalDeviceAudioSystem.getActiveSource().physicalAddress = in resetTestVariables()
|
D | FakeNativeWrapper.java | 136 protected void setPhysicalAddress(int physicalAddress) { in setPhysicalAddress() argument 137 mMyPhysicalAddress = physicalAddress; in setPhysicalAddress()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 408 final DisplayAddress.Physical physicalAddress = in getDisplayDeviceInfoLocked() local 410 mInfo.address = physicalAddress; in getDisplayDeviceInfoLocked() 467 if (isDisplayPrivate(physicalAddress)) { in getDisplayDeviceInfoLocked() 803 private boolean isDisplayPrivate(DisplayAddress.Physical physicalAddress) { in isDisplayPrivate() argument 804 if (physicalAddress == null) { in isDisplayPrivate() 811 int port = physicalAddress.getPort(); in isDisplayPrivate()
|
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiAudioSystemClientTest.java | 355 public void askRemoteDeviceToBecomeActiveSource(int physicalAddress) { in askRemoteDeviceToBecomeActiveSource() argument
|