Home
last modified time | relevance | path

Searched refs:logicalAddress (Results 1 – 25 of 25) 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.java72 int logicalAddress; field in HdmiCecLocalDevice.ActiveSource
80 logicalAddress = logical; in ActiveSource()
85 return new ActiveSource(source.logicalAddress, source.physicalAddress); in of()
93 return HdmiUtils.isValidAddress(logicalAddress); in isValid()
97 logicalAddress = Constants.ADDR_INVALID; in invalidate()
102 return logicalAddress == logical && physicalAddress == physical; in equals()
109 return that.logicalAddress == logicalAddress in equals()
117 return logicalAddress * 29 + physicalAddress; in hashCode()
124 (logicalAddress == Constants.ADDR_INVALID) in toString()
126 : String.format("0x%02x", logicalAddress); in toString()
[all …]
DHdmiCecLocalDeviceTv.java197 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument
282 && targetAddress == active.logicalAddress) { in deviceSelect()
307 if (mService.isControlEnabled() && getActiveSource().logicalAddress != mAddress) { in handleSelectInternalSource()
320 void updateActiveSource(int logicalAddress, int physicalAddress) { in updateActiveSource() argument
322 updateActiveSource(ActiveSource.of(logicalAddress, physicalAddress)); in updateActiveSource()
333 int logicalAddress = newActive.logicalAddress; in updateActiveSource() local
334 if (getCecDeviceInfo(logicalAddress) != null && logicalAddress != mAddress) { in updateActiveSource()
373 HdmiDeviceInfo info = getCecDeviceInfo(activeSource.logicalAddress); in updateActiveInput()
439 return getActiveSource().logicalAddress; in findKeyReceiverAddress()
452 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.java122 int logicalAddress = message.getSource(); in handleActiveSource() local
124 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource()
129 updateDevicePowerStatus(logicalAddress, HdmiControlManager.POWER_STATUS_ON); in handleActiveSource()
212 protected void updateDevicePowerStatus(int logicalAddress, int newPowerStatus) { in updateDevicePowerStatus() argument
DHdmiCecController.java80 void onAllocated(int deviceType, int logicalAddress); in onAllocated() argument
225 int logicalAddress = Constants.ADDR_UNREGISTERED; in handleAllocateLogicalAddress() local
242 logicalAddress = curAddress; in handleAllocateLogicalAddress()
248 final int assignedAddress = logicalAddress; in handleAllocateLogicalAddress()
722 int nativeAddLogicalAddress(int logicalAddress); in nativeAddLogicalAddress() argument
737 private static native int nativeAddLogicalAddress(long controllerPtr, int logicalAddress); in nativeAddLogicalAddress() argument
802 public int nativeAddLogicalAddress(int logicalAddress) { in nativeAddLogicalAddress() argument
804 return mHdmiCec.addLogicalAddress(logicalAddress); in nativeAddLogicalAddress()
DHdmiControlService.java829 public void onAllocated(int deviceType, int logicalAddress) { in allocateLogicalAddress() argument
830 if (logicalAddress == Constants.ADDR_UNREGISTERED) { in allocateLogicalAddress()
835 HdmiDeviceInfo deviceInfo = createDeviceInfo(logicalAddress, deviceType, in allocateLogicalAddress()
839 mCecController.addLogicalAddress(logicalAddress); in allocateLogicalAddress()
1062 HdmiDeviceInfo getDeviceInfo(int logicalAddress) { in getDeviceInfo() argument
1064 return tv() == null ? null : tv().getCecDeviceInfo(logicalAddress); in getDeviceInfo()
1276 protected void checkLogicalAddressConflictAndReallocate(int logicalAddress) { in checkLogicalAddressConflictAndReallocate() argument
1278 if (device.getDeviceInfo().getLogicalAddress() == logicalAddress) { in checkLogicalAddressConflictAndReallocate()
1328 private HdmiDeviceInfo createDeviceInfo(int logicalAddress, int deviceType, int powerStatus) { in createDeviceInfo() argument
1330 return new HdmiDeviceInfo(logicalAddress, in createDeviceInfo()
[all …]
DHdmiCecLocalDeviceAudioSystem.java293 HdmiDeviceInfo getCecDeviceInfo(int logicalAddress) { in getCecDeviceInfo() argument
295 return mDeviceInfos.get(HdmiDeviceInfo.idForCecDevice(logicalAddress)); in getCecDeviceInfo()
378 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument
409 return getActiveSource().logicalAddress; in findKeyReceiverAddress()
450 int logicalAddress = message.getSource(); in handleActiveSource() local
460 HdmiDeviceInfo info = getCecDeviceInfo(logicalAddress); in handleActiveSource()
462 HdmiLogger.debug("Device info %X not found; buffering the command", logicalAddress); in handleActiveSource()
1349 protected void updateDevicePowerStatus(int logicalAddress, int newPowerStatus) { in updateDevicePowerStatus() argument
1350 HdmiDeviceInfo info = getCecDeviceInfo(logicalAddress); in updateDevicePowerStatus()
1352 Slog.w(TAG, "Can not update power status of non-existing device:" + logicalAddress); in updateDevicePowerStatus()
DNewDeviceAction.java214 return (mDeviceLogicalAddress == activeSource.logicalAddress) in isActionOf()
DDeviceDiscoveryAction.java85 private DeviceInfo(int logicalAddress) { in DeviceInfo() argument
86 mLogicalAddress = logicalAddress; in DeviceInfo()
DHdmiUtils.java143 static void verifyAddressType(int logicalAddress, int deviceType) { in verifyAddressType() argument
144 int actualDeviceType = getTypeFromAddress(logicalAddress); in verifyAddressType()
DHdmiCecLocalDevicePlayback.java94 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.java73 public void selectDevice(int logicalAddress, @NonNull OnSelectListener listener) {
76 mService.deviceSelect(logicalAddress, getCallbackWrapper(listener));
115 int logicalAddress,
120 mService.deviceSelect(logicalAddress,
DHdmiControlServiceWrapper.java191 public void powerOffRemoteDevice(int logicalAddress, int powerStatus) {
192 HdmiControlServiceWrapper.this.powerOffRemoteDevice(logicalAddress, powerStatus);
196 public void powerOnRemoteDevice(int logicalAddress, int powerStatus) {
197 HdmiControlServiceWrapper.this.powerOnRemoteDevice(logicalAddress, powerStatus);
406 public void powerOffRemoteDevice(int logicalAddress, int powerStatus) {} in powerOffRemoteDevice() argument
409 public void powerOnRemoteDevice(int logicalAddress, int powerStatus) {} in powerOnRemoteDevice() argument
DIHdmiControlService.aidl71 void powerOffRemoteDevice(int logicalAddress, int powerStatus); in powerOffRemoteDevice() argument
72 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;
DHdmiControlServiceBinderAPITest.java58 protected void onAddressAllocated(int logicalAddress, int reason) { in onAddressAllocated() argument
DHdmiCecLocalDeviceTest.java72 protected void onAddressAllocated(int logicalAddress, int reason) {} in onAddressAllocated() argument
DHdmiControlServiceTest.java74 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
/frameworks/base/services/core/jni/
Dcom_android_server_hdmi_HdmiCecController.cpp381 jint logicalAddress) { in nativeAddLogicalAddress() argument
383 return controller->addLogicalAddress(static_cast<CecLogicalAddress>(logicalAddress)); in nativeAddLogicalAddress()