Home
last modified time | relevance | path

Searched refs:physicalAddress (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDeviceSource.java120 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 …]
DActiveSourceHandler.java77 tv.updateActiveInput(newActive.physicalAddress, notifyInputChange); in process()
86 current.logicalAddress, current.physicalAddress); in process()
91 tv.startRoutingControl(newActive.physicalAddress, current.physicalAddress, true, in process()
DHdmiCecLocalDevice.java71 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 …]
DHdmiCecMessageBuilder.java317 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()
DSystemAudioInitiationActionFromAvr.java44 if (audioSystem().getActiveSource().physicalAddress == Constants.INVALID_PHYSICAL_ADDRESS) { in start()
145 private void switchToRelevantInputForDeviceAt(int physicalAddress) { in switchToRelevantInputForDeviceAt() argument
DHdmiControlService.java896 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 …]
DHdmiCecLocalDeviceTv.java321 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 …]
DDeviceDiscoveryAction.java347 private int getPortId(int physicalAddress) {
348 return mIsTvDevice ? tv().getPortId(physicalAddress)
349 : source().getPortId(physicalAddress);
DArcInitiationActionFromAvr.java67 if (audioSystem().getActiveSource().physicalAddress != getSourcePath() in processCommand()
DHdmiCecLocalDeviceAudioSystem.java888 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()
DNewDeviceAction.java215 && (mDevicePhysicalAddress == activeSource.physicalAddress); in isActionOf()
DSystemAudioAction.java117 return tv().getActiveSource().physicalAddress; in getSystemAudioModeRequestParam()
DHdmiCecController.java822 portInfo.physicalAddress, in nativeGetPortInfos()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiDeviceInfo.java126 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 …]
DHdmiRecordSources.java703 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()
DIHdmiControlService.aidl70 void askRemoteDeviceToBecomeActiveSource(int physicalAddress); in askRemoteDeviceToBecomeActiveSource() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DSystemAudioInitiationActionFromAvrTest.java151 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()
DFakeNativeWrapper.java136 protected void setPhysicalAddress(int physicalAddress) { in setPhysicalAddress() argument
137 mMyPhysicalAddress = physicalAddress; in setPhysicalAddress()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java408 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/
DHdmiAudioSystemClientTest.java355 public void askRemoteDeviceToBecomeActiveSource(int physicalAddress) { in askRemoteDeviceToBecomeActiveSource() argument