/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiCecNetworkTest.java | 214 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_logicalAddressOnly() local 216 HdmiCecMessageBuilder.buildActiveSource(logicalAddress, 0x1000)); in cecDevices_tracking_logicalAddressOnly() 220 HdmiDeviceInfo cecDeviceInfo = mHdmiCecNetwork.getCecDeviceInfo(logicalAddress); in cecDevices_tracking_logicalAddressOnly() 221 assertThat(cecDeviceInfo.getLogicalAddress()).isEqualTo(logicalAddress); in cecDevices_tracking_logicalAddressOnly() 226 HdmiUtils.getDefaultDeviceName(logicalAddress)); in cecDevices_tracking_logicalAddressOnly() 236 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_logicalAddressOnly_doesntNotifyAgain() local 239 HdmiCecMessageBuilder.buildActiveSource(logicalAddress, physicalAddress)); in cecDevices_tracking_logicalAddressOnly_doesntNotifyAgain() 241 HdmiCecMessageBuilder.buildActiveSource(logicalAddress, physicalAddress)); in cecDevices_tracking_logicalAddressOnly_doesntNotifyAgain() 248 int logicalAddress = Constants.ADDR_PLAYBACK_1; in cecDevices_tracking_reportPhysicalAddress() local 252 HdmiCecMessageBuilder.buildReportPhysicalAddressCommand(logicalAddress, in cecDevices_tracking_reportPhysicalAddress() [all …]
|
D | PowerStatusMonitorActionTest.java | 150 private void assertPowerStatus(int logicalAddress, int powerStatus) { in assertPowerStatus() argument 152 logicalAddress); in assertPowerStatus() 240 private void sendMessageFromPlaybackDevice(int logicalAddress, int physicalAddress) { in sendMessageFromPlaybackDevice() argument 242 logicalAddress, physicalAddress, HdmiDeviceInfo.DEVICE_PLAYBACK); in sendMessageFromPlaybackDevice() 247 private void reportPowerStatus(int logicalAddress, boolean broadcast, int powerStatus) { in reportPowerStatus() argument 251 logicalAddress, destination, in reportPowerStatus()
|
D | FakeNativeWrapper.java | 91 public int nativeAddLogicalAddress(int logicalAddress) { in nativeAddLogicalAddress() argument 213 public void setPollAddressResponse(int logicalAddress, int response) { in setPollAddressResponse() argument 214 mPollAddressResponse[logicalAddress] = response; in setPollAddressResponse()
|
D | HdmiCecLocalDeviceTest.java | 95 protected void onAddressAllocated(int logicalAddress, int reason) {} in onAddressAllocated() argument 209 int logicalAddress = 0; in testEqualsActiveSource() local 213 new HdmiCecLocalDevice.ActiveSource(logicalAddress, physicalAddress), in testEqualsActiveSource() 214 new HdmiCecLocalDevice.ActiveSource(logicalAddress, physicalAddress)) in testEqualsActiveSource() 216 new HdmiCecLocalDevice.ActiveSource(logicalAddress, physicalAddress + 1)) in testEqualsActiveSource() 218 new HdmiCecLocalDevice.ActiveSource(logicalAddress + 1, physicalAddress)) in testEqualsActiveSource() 221 logicalAddress + 1, physicalAddress + 1)) in testEqualsActiveSource()
|
D | HdmiCecLocalDevicePlaybackTest.java | 349 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingChange_otherDevice_None() 370 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingChange_sameDevice_None_ActiveSource() 391 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingChange_sameDevice_None_InactiveSource() 553 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingInformation_otherDevice_None() 574 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingInformation_sameDevice_None_ActiveSource() 595 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingInformation_sameDevice_None_InactiveSource() 716 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingInformation_physicalAddressOfSender_Tv_activeSourceChange() 752 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleRoutingInformation_physicalAddressOfSender_notTv_noActiveSourceChange() 1211 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleActiveSource_ActiveSource_None() 1229 assertThat(mHdmiCecLocalDevicePlayback.getActiveSource().logicalAddress).isEqualTo( in handleActiveSource_notActiveSource_None() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | PowerStatusMonitorAction.java | 102 int logicalAddress = mPowerStatus.keyAt(i); in handleTimeout() local 103 updatePowerStatus(logicalAddress, POWER_STATUS_UNKNOWN, false); in handleTimeout() 126 final int logicalAddress = info.getLogicalAddress(); in queryPowerStatus() local 128 logicalAddress), in queryPowerStatus() local 135 updatePowerStatus(logicalAddress, POWER_STATUS_UNKNOWN, true); in queryPowerStatus() 149 private void updatePowerStatus(int logicalAddress, int newStatus, boolean remove) { in updatePowerStatus() argument 150 localDevice().mService.getHdmiCecNetwork().updateDevicePowerStatus(logicalAddress, in updatePowerStatus() 154 mPowerStatus.delete(logicalAddress); in updatePowerStatus()
|
D | ActiveSourceAction.java | 42 int logicalAddress = getSourceAddress(); in start() local 45 sendCommand(HdmiCecMessageBuilder.buildActiveSource(logicalAddress, physicalAddress)); in start() 50 HdmiCecMessageBuilder.buildReportMenuStatus(logicalAddress, mDestination, in start() 54 source().setActiveSource(logicalAddress, physicalAddress, "ActiveSourceAction"); in start()
|
D | HdmiCecLocalDevice.java | 83 int logicalAddress; field in HdmiCecLocalDevice.ActiveSource 91 logicalAddress = logical; in ActiveSource() 96 return new ActiveSource(source.logicalAddress, source.physicalAddress); in of() 104 return HdmiUtils.isValidAddress(logicalAddress); in isValid() 108 logicalAddress = Constants.ADDR_INVALID; in invalidate() 113 return logicalAddress == logical && physicalAddress == physical; in equals() 120 return that.logicalAddress == logicalAddress in equals() 128 return logicalAddress * 29 + physicalAddress; in hashCode() 135 (logicalAddress == Constants.ADDR_INVALID) in toString() 137 : String.format("0x%02x", logicalAddress); in toString() [all …]
|
D | HdmiCecNetwork.java | 246 HdmiDeviceInfo getCecDeviceInfo(int logicalAddress) { in getCecDeviceInfo() argument 248 return mDeviceInfos.get(HdmiDeviceInfo.idForCecDevice(logicalAddress)); in getCecDeviceInfo() 400 public void updateDevicePowerStatus(int logicalAddress, int newPowerStatus) { in updateDevicePowerStatus() argument 401 HdmiDeviceInfo info = getCecDeviceInfo(logicalAddress); in updateDevicePowerStatus() 403 Slog.w(TAG, "Can not update power status of non-existing device:" + logicalAddress); in updateDevicePowerStatus() 504 boolean isInDeviceList(int logicalAddress, int physicalAddress) { in isInDeviceList() argument 506 HdmiDeviceInfo device = getCecDeviceInfo(logicalAddress); in isInDeviceList() 517 private static int logicalAddressToDeviceType(int logicalAddress) { in logicalAddressToDeviceType() argument 518 switch (logicalAddress) { in logicalAddressToDeviceType() 648 int logicalAddress = message.getSource(); in handleReportPhysicalAddress() local [all …]
|
D | HdmiUtils.java | 128 static boolean isEligibleAddressForDevice(int deviceType, int logicalAddress) { in isEligibleAddressForDevice() argument 129 return isValidAddress(logicalAddress) in isEligibleAddressForDevice() 130 && ADDRESS_TO_TYPE.get(logicalAddress).contains(deviceType); in isEligibleAddressForDevice() 133 static boolean isEligibleAddressForCecVersion(int cecVersion, int logicalAddress) { in isEligibleAddressForCecVersion() argument 134 if (isValidAddress(logicalAddress)) { in isEligibleAddressForCecVersion() 135 if (logicalAddress == ADDR_BACKUP_1 || logicalAddress == ADDR_BACKUP_2) { in isEligibleAddressForCecVersion() 150 static List<Integer> getTypeFromAddress(int logicalAddress) { in getTypeFromAddress() argument 151 if (isValidAddress(logicalAddress)) { in getTypeFromAddress() 152 return ADDRESS_TO_TYPE.get(logicalAddress); in getTypeFromAddress() 179 static boolean verifyAddressType(int logicalAddress, int deviceType) { in verifyAddressType() argument [all …]
|
D | ActiveSourceHandler.java | 65 HdmiDeviceInfo device = mService.getDeviceInfo(newActive.logicalAddress); in process() 84 if (current.logicalAddress == getSourceAddress()) { in process() 86 current.logicalAddress, current.physicalAddress); in process()
|
D | HdmiCecLocalDeviceTv.java | 177 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument 307 && getActiveSource().logicalAddress != getDeviceInfo().getLogicalAddress()) { in handleSelectInternalSource() 324 void updateActiveSource(int logicalAddress, int physicalAddress, String caller) { in updateActiveSource() argument 326 updateActiveSource(ActiveSource.of(logicalAddress, physicalAddress), caller); in updateActiveSource() 337 int logicalAddress = newActive.logicalAddress; in updateActiveSource() local 338 if (mService.getHdmiCecNetwork().getCecDeviceInfo(logicalAddress) != null in updateActiveSource() 339 && logicalAddress != getDeviceInfo().getLogicalAddress()) { in updateActiveSource() 379 activeSource.logicalAddress); in updateActiveInput() 446 return getActiveSource().logicalAddress; in findKeyReceiverAddress() 465 int logicalAddress = message.getSource(); in handleActiveSource() local [all …]
|
D | HdmiCecLocalDeviceSource.java | 196 void setActiveSource(int logicalAddress, int physicalAddress, String caller) { in setActiveSource() argument 198 super.setActiveSource(logicalAddress, physicalAddress, caller); in setActiveSource() 216 int logicalAddress = message.getSource(); in handleActiveSource() local 218 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource() 222 updateDevicePowerStatus(logicalAddress, HdmiControlManager.POWER_STATUS_ON); in handleActiveSource() 318 protected void updateDevicePowerStatus(int logicalAddress, int newPowerStatus) { in updateDevicePowerStatus() argument
|
D | HdmiCecController.java | 94 void onAllocated(int deviceType, int logicalAddress); in onAllocated() argument 273 int logicalAddress = Constants.ADDR_UNREGISTERED; in handleAllocateLogicalAddress() local 285 logicalAddress = logicalAddressToPoll; in handleAllocateLogicalAddress() 290 final int assignedAddress = logicalAddress; in handleAllocateLogicalAddress() 828 int logicalAddress = localDevice.getDeviceInfo().getLogicalAddress(); in incomingMessageDirection() local 829 if (logicalAddress == srcAddress) { in incomingMessageDirection() 832 if (logicalAddress == dstAddress) { in incomingMessageDirection() 917 int nativeAddLogicalAddress(int logicalAddress); in nativeAddLogicalAddress() argument 1024 public int nativeAddLogicalAddress(int logicalAddress) { in nativeAddLogicalAddress() argument 1026 return mHdmiCec.addLogicalAddress((byte) logicalAddress); in nativeAddLogicalAddress() [all …]
|
D | HdmiCecAtomWriter.java | 190 public void activeSourceChanged(int logicalAddress, int physicalAddress, in activeSourceChanged() argument 194 logicalAddress, in activeSourceChanged()
|
D | HdmiControlService.java | 1418 public void onAllocated(int deviceType, int logicalAddress) { in allocateLogicalAddress() argument 1419 if (logicalAddress == Constants.ADDR_UNREGISTERED) { in allocateLogicalAddress() 1427 HdmiDeviceInfo deviceInfo = createDeviceInfo(logicalAddress, in allocateLogicalAddress() 1435 mCecController.addLogicalAddress(logicalAddress); in allocateLogicalAddress() 1586 HdmiDeviceInfo getDeviceInfo(int logicalAddress) { in getDeviceInfo() argument 1588 return mHdmiCecNetwork.getCecDeviceInfo(logicalAddress); in getDeviceInfo() 1946 protected void checkLogicalAddressConflictAndReallocate(int logicalAddress, in checkLogicalAddressConflictAndReallocate() argument 1953 if (device.getDeviceInfo().getLogicalAddress() == logicalAddress) { in checkLogicalAddressConflictAndReallocate() 2005 private HdmiDeviceInfo createDeviceInfo(int logicalAddress, int deviceType, int powerStatus, in createDeviceInfo() argument 2009 .setLogicalAddress(logicalAddress) in createDeviceInfo() [all …]
|
D | HdmiCecLocalDevicePlayback.java | 103 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument 385 protected void setActiveSource(int logicalAddress, int physicalAddress, String caller) { in setActiveSource() argument 387 super.setActiveSource(logicalAddress, physicalAddress, caller); in setActiveSource()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiClient.java | 47 int logicalAddress); in onDeviceSelected() argument 62 int logicalAddress, in selectDevice() argument 72 mService.deviceSelect(logicalAddress, in selectDevice() 73 getCallbackWrapper(logicalAddress, executor, listener)); in selectDevice() 82 private static IHdmiControlCallback getCallbackWrapper(int logicalAddress, in getCallbackWrapper() argument 89 logicalAddress))); in getCallbackWrapper()
|
D | HdmiSwitchClient.java | 71 public void selectDevice(int logicalAddress, @NonNull OnSelectListener listener) { 74 mService.deviceSelect(logicalAddress, getCallbackWrapper(listener)); 111 int logicalAddress, 116 mService.deviceSelect(logicalAddress,
|
D | HdmiControlServiceWrapper.java | 202 public void powerOffRemoteDevice(int logicalAddress, int powerStatus) { 203 HdmiControlServiceWrapper.this.powerOffRemoteDevice(logicalAddress, powerStatus); 207 public void powerOnRemoteDevice(int logicalAddress, int powerStatus) { 208 HdmiControlServiceWrapper.this.powerOnRemoteDevice(logicalAddress, powerStatus); 471 public void powerOffRemoteDevice(int logicalAddress, int powerStatus) {} in powerOffRemoteDevice() argument 474 public void powerOnRemoteDevice(int logicalAddress, int powerStatus) {} in powerOnRemoteDevice() argument
|
D | IHdmiVendorCommandListener.aidl | 26 void onReceived(int logicalAddress, int destAddress, in byte[] operands, boolean hasVendorId); in onReceived() argument
|
D | IHdmiControlService.aidl | 74 void powerOffRemoteDevice(int logicalAddress, int powerStatus); in powerOffRemoteDevice() argument 75 void powerOnRemoteDevice(int logicalAddress, int powerStatus); in powerOnRemoteDevice() argument
|
D | HdmiDeviceInfo.java | 146 int logicalAddress = source.readInt(); 153 .setLogicalAddress(logicalAddress) 661 public Builder setLogicalAddress(int logicalAddress) { in setLogicalAddress() argument 662 mLogicalAddress = logicalAddress; in setLogicalAddress()
|
D | HdmiTvClient.java | 84 public void deviceSelect(int logicalAddress, @NonNull SelectCallback callback) { in deviceSelect() argument 89 mService.deviceSelect(logicalAddress, getCallbackWrapper(callback)); in deviceSelect()
|
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiAudioSystemClientTest.java | 358 public void powerOffRemoteDevice(int logicalAddress, int powerStatus) { in powerOffRemoteDevice() argument 362 public void powerOnRemoteDevice(int logicalAddress, int powerStatus) { in powerOnRemoteDevice() argument
|