Home
last modified time | relevance | path

Searched refs:logicalAddress (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/hdmi/
DPowerStatusMonitorAction.java99 int logicalAddress = mPowerStatus.keyAt(i); in handleTimeout() local
100 updatePowerStatus(logicalAddress, POWER_STATUS_UNKNOWN, false); in handleTimeout()
117 final int logicalAddress = info.getLogicalAddress(); in queryPowerStatus() local
119 logicalAddress), in queryPowerStatus() local
126 updatePowerStatus(logicalAddress, POWER_STATUS_UNKNOWN, true); in queryPowerStatus()
139 private void updatePowerStatus(int logicalAddress, int newStatus, boolean remove) { in updatePowerStatus() argument
140 tv().updateDevicePowerStatus(logicalAddress, newStatus); in updatePowerStatus()
143 mPowerStatus.delete(logicalAddress); in updatePowerStatus()
DHdmiCecLocalDevice.java70 int logicalAddress; field in HdmiCecLocalDevice.ActiveSource
78 logicalAddress = logical; in ActiveSource()
83 return new ActiveSource(source.logicalAddress, source.physicalAddress); in of()
91 return HdmiUtils.isValidAddress(logicalAddress); in isValid()
95 logicalAddress = Constants.ADDR_INVALID; in invalidate()
100 return logicalAddress == logical && physicalAddress == physical; in equals()
107 return that.logicalAddress == logicalAddress in equals()
115 return logicalAddress * 29 + physicalAddress; in hashCode()
122 (logicalAddress == Constants.ADDR_INVALID) in toString()
124 : String.format("0x%02x", logicalAddress); in toString()
[all …]
DHdmiCecLocalDeviceTv.java197 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument
283 && targetAddress == active.logicalAddress) { in deviceSelect()
308 if (mService.isControlEnabled() && getActiveSource().logicalAddress != mAddress) { in handleSelectInternalSource()
321 void updateActiveSource(int logicalAddress, int physicalAddress) { in updateActiveSource() argument
323 updateActiveSource(ActiveSource.of(logicalAddress, physicalAddress)); in updateActiveSource()
334 int logicalAddress = newActive.logicalAddress; in updateActiveSource() local
335 if (getCecDeviceInfo(logicalAddress) != null && logicalAddress != mAddress) { in updateActiveSource()
374 HdmiDeviceInfo info = getCecDeviceInfo(activeSource.logicalAddress); in updateActiveInput()
440 return getActiveSource().logicalAddress; in findKeyReceiverAddress()
453 int logicalAddress = message.getSource(); in handleActiveSource() local
[all …]
DActiveSourceHandler.java65 HdmiDeviceInfo device = mService.getDeviceInfo(newActive.logicalAddress); in process()
84 if (current.logicalAddress == getSourceAddress()) { in process()
86 current.logicalAddress, current.physicalAddress); in process()
DHdmiCecLocalDeviceSource.java119 int logicalAddress = message.getSource(); in handleActiveSource() local
121 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource()
126 updateDevicePowerStatus(logicalAddress, HdmiControlManager.POWER_STATUS_ON); in handleActiveSource()
208 protected void updateDevicePowerStatus(int logicalAddress, int newPowerStatus) { in updateDevicePowerStatus() argument
DHdmiCecController.java78 void onAllocated(int deviceType, int logicalAddress); in onAllocated() argument
215 int logicalAddress = Constants.ADDR_UNREGISTERED; in handleAllocateLogicalAddress() local
231 logicalAddress = curAddress; in handleAllocateLogicalAddress()
237 final int assignedAddress = logicalAddress; in handleAllocateLogicalAddress()
698 int nativeAddLogicalAddress(int logicalAddress); in nativeAddLogicalAddress() argument
763 public int nativeAddLogicalAddress(int logicalAddress) { in nativeAddLogicalAddress() argument
765 return mHdmiCec.addLogicalAddress(logicalAddress); in nativeAddLogicalAddress()
DHdmiControlService.java745 public void onAllocated(int deviceType, int logicalAddress) { in allocateLogicalAddress() argument
746 if (logicalAddress == Constants.ADDR_UNREGISTERED) { in allocateLogicalAddress()
751 HdmiDeviceInfo deviceInfo = createDeviceInfo(logicalAddress, deviceType, in allocateLogicalAddress()
755 mCecController.addLogicalAddress(logicalAddress); in allocateLogicalAddress()
961 HdmiDeviceInfo getDeviceInfo(int logicalAddress) { in getDeviceInfo() argument
963 return tv() == null ? null : tv().getCecDeviceInfo(logicalAddress); in getDeviceInfo()
1198 private HdmiDeviceInfo createDeviceInfo(int logicalAddress, int deviceType, int powerStatus) { in createDeviceInfo() argument
1200 return new HdmiDeviceInfo(logicalAddress, in createDeviceInfo()
1488 if (info.getLogicalAddress() == activeSource.logicalAddress) { in getActiveSource()
1495 return new HdmiDeviceInfo(activeSource.logicalAddress, in getActiveSource()
[all …]
DHdmiCecLocalDeviceAudioSystem.java271 HdmiDeviceInfo getCecDeviceInfo(int logicalAddress) { in getCecDeviceInfo() argument
273 return mDeviceInfos.get(HdmiDeviceInfo.idForCecDevice(logicalAddress)); in getCecDeviceInfo()
344 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument
371 return getActiveSource().logicalAddress; in findKeyReceiverAddress()
1227 protected void updateDevicePowerStatus(int logicalAddress, int newPowerStatus) { in updateDevicePowerStatus() argument
1228 HdmiDeviceInfo info = getCecDeviceInfo(logicalAddress); in updateDevicePowerStatus()
1230 Slog.w(TAG, "Can not update power status of non-existing device:" + logicalAddress); in updateDevicePowerStatus()
DDeviceDiscoveryAction.java84 private DeviceInfo(int logicalAddress) { in DeviceInfo() argument
85 mLogicalAddress = logicalAddress; in DeviceInfo()
DNewDeviceAction.java214 return (mDeviceLogicalAddress == activeSource.logicalAddress) in isActionOf()
DHdmiUtils.java141 static void verifyAddressType(int logicalAddress, int deviceType) { in verifyAddressType() argument
142 int actualDeviceType = getTypeFromAddress(logicalAddress); in verifyAddressType()
DHdmiCecLocalDevicePlayback.java80 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiDeviceInfo.java131 int logicalAddress = source.readInt();
136 return new HdmiDeviceInfo(logicalAddress, physicalAddress, portId,
169 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument
175 mId = idForCecDevice(logicalAddress); in HdmiDeviceInfo()
176 mLogicalAddress = logicalAddress; in HdmiDeviceInfo()
197 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument
199 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo()
DHdmiSwitchClient.java72 public void selectDevice(int logicalAddress, @NonNull OnSelectListener listener) {
75 mService.deviceSelect(logicalAddress, getCallbackWrapper(listener));
114 int logicalAddress,
119 mService.deviceSelect(logicalAddress,
DIHdmiControlService.aidl68 void powerOffRemoteDevice(int logicalAddress, int powerStatus); in powerOffRemoteDevice() argument
69 void powerOnRemoteDevice(int logicalAddress, int powerStatus); in powerOnRemoteDevice() argument
DIHdmiVendorCommandListener.aidl26 void onReceived(int logicalAddress, int destAddress, in byte[] operands, boolean hasVendorId); in onReceived() argument
DHdmiTvClient.java81 public void deviceSelect(int logicalAddress, @NonNull SelectCallback callback) { in deviceSelect() argument
86 mService.deviceSelect(logicalAddress, getCallbackWrapper(callback)); in deviceSelect()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DFakeNativeWrapper.java74 public int nativeAddLogicalAddress(int logicalAddress) { in nativeAddLogicalAddress() argument
131 public void setPollAddressResponse(int logicalAddress, int response) { in setPollAddressResponse() argument
132 mPollAddressResponse[logicalAddress] = response; in setPollAddressResponse()
DHdmiCecControllerTest.java77 public void onAllocated(int deviceType, int logicalAddress) {
78 mLogicalAddress = logicalAddress;
DHdmiCecLocalDeviceTest.java71 protected void onAddressAllocated(int logicalAddress, int reason) {} in onAddressAllocated() argument
DHdmiControlServiceTest.java60 protected void onAddressAllocated(int logicalAddress, int reason) {} in onAddressAllocated() argument
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DHdmiAudioSystemClientTest.java347 public void powerOffRemoteDevice(int logicalAddress, int powerStatus) { in powerOffRemoteDevice() argument
351 public void powerOnRemoteDevice(int logicalAddress, int powerStatus) { in powerOnRemoteDevice() argument