Home
last modified time | relevance | path

Searched refs:HdmiDeviceInfo (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/core/java/android/hardware/hdmi/
DHdmiDeviceInfo.java33 public class HdmiDeviceInfo implements Parcelable { class
84 public static final HdmiDeviceInfo INACTIVE_DEVICE = new HdmiDeviceInfo();
119 public static final @android.annotation.NonNull Parcelable.Creator<HdmiDeviceInfo> CREATOR =
120 new Parcelable.Creator<HdmiDeviceInfo>() {
122 public HdmiDeviceInfo createFromParcel(Parcel source) {
134 return new HdmiDeviceInfo(logicalAddress, physicalAddress, portId,
139 return new HdmiDeviceInfo(physicalAddress, portId, adopterId, deviceId);
141 return new HdmiDeviceInfo(physicalAddress, portId);
143 return HdmiDeviceInfo.INACTIVE_DEVICE;
150 public HdmiDeviceInfo[] newArray(int size) {
[all …]
DHdmiControlManager.java315 mHasTvDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_TV); in HdmiControlManager()
316 mHasPlaybackDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_PLAYBACK); in HdmiControlManager()
317 mHasAudioSystemDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in HdmiControlManager()
318 mHasSwitchDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_PURE_CEC_SWITCH); in HdmiControlManager()
351 case HdmiDeviceInfo.DEVICE_TV: in getClient()
353 case HdmiDeviceInfo.DEVICE_PLAYBACK: in getClient()
355 case HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM: in getClient()
357 case HdmiDeviceInfo.DEVICE_PURE_CEC_SWITCH: in getClient()
377 return (HdmiPlaybackClient) getClient(HdmiDeviceInfo.DEVICE_PLAYBACK); in getPlaybackClient()
392 return (HdmiTvClient) getClient(HdmiDeviceInfo.DEVICE_TV); in getTvClient()
[all …]
DIHdmiControlService.aidl19 import android.hardware.hdmi.HdmiDeviceInfo;
41 HdmiDeviceInfo getActiveSource(); in getActiveSource()
63 List<HdmiDeviceInfo> getInputDevices(); in getInputDevices()
64 List<HdmiDeviceInfo> getDeviceList(); in getDeviceList()
DIHdmiInputChangeListener.aidl19 import android.hardware.hdmi.HdmiDeviceInfo;
28 void onChanged(in HdmiDeviceInfo device); in onChanged()
DIHdmiDeviceEventListener.aidl19 import android.hardware.hdmi.HdmiDeviceInfo;
39 void onStatusChanged(in HdmiDeviceInfo deviceInfo, in int status); in onStatusChanged()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDeviceTv.java34 import android.hardware.hdmi.HdmiDeviceInfo;
100 private List<HdmiDeviceInfo> mSafeAllDeviceInfos = Collections.emptyList();
103 private List<HdmiDeviceInfo> mSafeExternalInputs = Collections.emptyList();
108 private final SparseArray<HdmiDeviceInfo> mDeviceInfos = new SparseArray<>();
143 HdmiDeviceInfo info = tvInfo.getHdmiDeviceInfo();
185 super(service, HdmiDeviceInfo.DEVICE_TV); in HdmiCecLocalDeviceTv()
272 HdmiDeviceInfo targetDevice = mDeviceInfos.get(id); in deviceSelect()
372 HdmiDeviceInfo info = getCecDeviceInfo(activeSource.logicalAddress); in updateActiveInput()
378 info = new HdmiDeviceInfo(path, getActivePortId()); in updateActiveInput()
440 HdmiDeviceInfo info = getDeviceInfoByPath(getActivePath()); in findKeyReceiverAddress()
[all …]
DHdmiUtils.java20 import android.hardware.hdmi.HdmiDeviceInfo;
49 HdmiDeviceInfo.DEVICE_TV, // ADDR_TV
50 HdmiDeviceInfo.DEVICE_RECORDER, // ADDR_RECORDER_1
51 HdmiDeviceInfo.DEVICE_RECORDER, // ADDR_RECORDER_2
52 HdmiDeviceInfo.DEVICE_TUNER, // ADDR_TUNER_1
53 HdmiDeviceInfo.DEVICE_PLAYBACK, // ADDR_PLAYBACK_1
54 HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM, // ADDR_AUDIO_SYSTEM
55 HdmiDeviceInfo.DEVICE_TUNER, // ADDR_TUNER_2
56 HdmiDeviceInfo.DEVICE_TUNER, // ADDR_TUNER_3
57 HdmiDeviceInfo.DEVICE_PLAYBACK, // ADDR_PLAYBACK_2
[all …]
DHdmiMhlLocalDeviceStub.java3 import android.hardware.hdmi.HdmiDeviceInfo;
11 private static final HdmiDeviceInfo INFO = new HdmiDeviceInfo(
24 HdmiDeviceInfo getInfo() { in getInfo()
DHdmiCecLocalDeviceAudioSystem.java26 import android.hardware.hdmi.HdmiDeviceInfo;
103 private final HashMap<String, HdmiDeviceInfo> mTvInputsToDeviceInfo = new HashMap<>();
107 private List<HdmiDeviceInfo> mSafeAllDeviceInfos = Collections.emptyList();
111 private final SparseArray<HdmiDeviceInfo> mDeviceInfos = new SparseArray<>();
114 super(service, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in HdmiCecLocalDeviceAudioSystem()
148 HdmiDeviceInfo info = tvInfo.getHdmiDeviceInfo(); in addOrUpdateTvInput()
177 final void addCecDevice(HdmiDeviceInfo info) { in addCecDevice()
179 HdmiDeviceInfo old = addDeviceInfo(info); in addCecDevice()
201 HdmiDeviceInfo info = removeDeviceInfo(HdmiDeviceInfo.idForCecDevice(address)); in removeCecDevice()
213 final void updateCecDevice(HdmiDeviceInfo info) { in updateCecDevice()
[all …]
DPowerStatusMonitorAction.java20 import android.hardware.hdmi.HdmiDeviceInfo;
106 private void resetPowerStatus(List<HdmiDeviceInfo> deviceInfos) { in resetPowerStatus()
108 for (HdmiDeviceInfo info : deviceInfos) { in resetPowerStatus()
114 List<HdmiDeviceInfo> deviceInfos = tv().getDeviceInfoList(false); in queryPowerStatus()
116 for (HdmiDeviceInfo info : deviceInfos) { in queryPowerStatus()
DHotplugDetectionAction.java19 import android.hardware.hdmi.HdmiDeviceInfo;
159 HdmiDeviceInfo avr = tv().getAvrDeviceInfo(); in checkHotplug()
186 private static BitSet infoListToBitSet(List<HdmiDeviceInfo> infoList, boolean audioOnly) { in infoListToBitSet()
188 for (HdmiDeviceInfo info : infoList) { in infoListToBitSet()
190 if (info.getDeviceType() == HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM) { in infoListToBitSet()
232 HdmiDeviceInfo info = tv().getCecDeviceInfo(address); in mayChangeRoutingPath()
261 if (HdmiUtils.getTypeFromAddress(address) != HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM) { in mayDisableSystemAudioAndARC()
DRequestArcAction.java19 import android.hardware.hdmi.HdmiDeviceInfo;
43 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in RequestArcAction()
44 HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in RequestArcAction()
DConstants.java21 import android.hardware.hdmi.HdmiDeviceInfo;
87 public static final int ADDR_INTERNAL = HdmiDeviceInfo.ADDR_INTERNAL;
240 static final int INVALID_PORT_ID = HdmiDeviceInfo.PORT_INVALID;
241 static final int INVALID_PHYSICAL_ADDRESS = HdmiDeviceInfo.PATH_INVALID;
242 static final int PATH_INTERNAL = HdmiDeviceInfo.PATH_INTERNAL;
DHdmiControlService.java40 import android.hardware.hdmi.HdmiDeviceInfo;
312 private UnmodifiableSparseArray<HdmiDeviceInfo> mPortDeviceMap;
341 private List<HdmiDeviceInfo> mMhlDevices;
700 if (type == HdmiDeviceInfo.DEVICE_PLAYBACK in initializeLocalDevices()
743 HdmiDeviceInfo deviceInfo = createDeviceInfo(logicalAddress, deviceType, in allocateLogicalAddress()
806 SparseArray<HdmiDeviceInfo> portDeviceMap = new SparseArray<>(); in initPortInfo()
810 portDeviceMap.put(info.getId(), new HdmiDeviceInfo(info.getAddress(), info.getId())); in initPortInfo()
953 HdmiDeviceInfo getDeviceInfo(int logicalAddress) { in getDeviceInfo()
959 HdmiDeviceInfo getDeviceInfoByPort(int port) { in getDeviceInfoByPort()
1101 if (type == HdmiDeviceInfo.DEVICE_PLAYBACK in onHotplug()
[all …]
DSetArcTransmissionStateAction.java19 import android.hardware.hdmi.HdmiDeviceInfo;
48 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in SetArcTransmissionStateAction()
49 HdmiUtils.verifyAddressType(avrAddress, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in SetArcTransmissionStateAction()
DSystemAudioActionFromTv.java19 import android.hardware.hdmi.HdmiDeviceInfo;
40 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in SystemAudioActionFromTv()
DNewDeviceAction.java18 import android.hardware.hdmi.HdmiDeviceInfo;
175 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo( in addDeviceInfo()
185 == HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM) { in addDeviceInfo()
DSystemAudioActionFromAvr.java19 import android.hardware.hdmi.HdmiDeviceInfo;
40 HdmiUtils.verifyAddressType(getSourceAddress(), HdmiDeviceInfo.DEVICE_TV); in SystemAudioActionFromAvr()
DDeviceDiscoveryAction.java20 import android.hardware.hdmi.HdmiDeviceInfo;
69 void onDeviceDiscoveryDone(List<HdmiDeviceInfo> deviceInfos); in onDeviceDiscoveryDone()
82 private int mDeviceType = HdmiDeviceInfo.DEVICE_INACTIVE;
88 private HdmiDeviceInfo toHdmiDeviceInfo() { in toHdmiDeviceInfo()
89 return new HdmiDeviceInfo(mLogicalAddress, mPhysicalAddress, mPortId, mDeviceType, in toHdmiDeviceInfo()
430 ArrayList<HdmiDeviceInfo> result = new ArrayList<>();
432 HdmiDeviceInfo cecDeviceInfo = info.toHdmiDeviceInfo();
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDeviceAudioSystemTest.java32 import android.hardware.hdmi.HdmiDeviceInfo;
75 private HdmiDeviceInfo mDeviceInfo;
144 void invokeDeviceEventListeners(HdmiDeviceInfo device, int status) { in setUp()
631 HdmiDeviceInfo newDevice = new HdmiDeviceInfo( in updateCecDevice_deviceNotExists_addDevice()
632 ADDR_PLAYBACK_1, 0x2100, 2, HdmiDeviceInfo.DEVICE_PLAYBACK, in updateCecDevice_deviceNotExists_addDevice()
645 HdmiDeviceInfo oldDevice = new HdmiDeviceInfo( in updateCecDevice_deviceExists_doNothing()
646 ADDR_PLAYBACK_1, 0x2100, 2, HdmiDeviceInfo.DEVICE_PLAYBACK, in updateCecDevice_deviceExists_doNothing()
657 HdmiDeviceInfo oldDevice = new HdmiDeviceInfo( in updateCecDevice_deviceInfoDifferent_updateDevice()
658 ADDR_PLAYBACK_1, 0x2100, 2, HdmiDeviceInfo.DEVICE_PLAYBACK, in updateCecDevice_deviceInfoDifferent_updateDevice()
662 HdmiDeviceInfo differentDevice = new HdmiDeviceInfo( in updateCecDevice_deviceInfoDifferent_updateDevice()
[all …]
DDetectTvSystemAudioModeSupportActionTest.java21 import android.hardware.hdmi.HdmiDeviceInfo;
39 private HdmiDeviceInfo mDeviceInfoForTests;
50 mDeviceInfoForTests = new HdmiDeviceInfo(1001, 1234); in SetUp()
97 HdmiDeviceInfo getDeviceInfo() { in SetUp()
DArcTerminationActionFromAvrTest.java22 import android.hardware.hdmi.HdmiDeviceInfo;
40 private HdmiDeviceInfo mDeviceInfoForTests;
52 mDeviceInfoForTests = new HdmiDeviceInfo(1000, 1); in setUp()
100 HdmiDeviceInfo getDeviceInfo() { in setUp()
DArcInitiationActionFromAvrTest.java24 import android.hardware.hdmi.HdmiDeviceInfo;
45 private HdmiDeviceInfo mDeviceInfoForTests;
62 mDeviceInfoForTests = new HdmiDeviceInfo(1000, 1); in setUp()
119 HdmiDeviceInfo getDeviceInfo() { in setUp()
/frameworks/base/media/java/android/media/tv/
DITvInputService.aidl19 import android.hardware.hdmi.HdmiDeviceInfo;
39 void notifyHdmiDeviceAdded(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceAdded()
40 void notifyHdmiDeviceRemoved(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceRemoved()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java28 import android.hardware.hdmi.HdmiDeviceInfo;
89 private final List<HdmiDeviceInfo> mHdmiDeviceList = new LinkedList<>();
187 for (Iterator<HdmiDeviceInfo> it = mHdmiDeviceList.iterator(); it.hasNext();) { in onDeviceUnavailable()
188 HdmiDeviceInfo deviceInfo = it.next(); in onDeviceUnavailable()
252 public List<HdmiDeviceInfo> getHdmiDeviceList() { in getHdmiDeviceList()
491 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; in processPendingHdmiDeviceEventsLocked()
574 for (HdmiDeviceInfo hdmiDeviceInfo : mHdmiDeviceList) { in dump()
1119 void onHdmiDeviceAdded(HdmiDeviceInfo device); in onHdmiDeviceAdded()
1120 void onHdmiDeviceRemoved(HdmiDeviceInfo device); in onHdmiDeviceRemoved()
1121 void onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo device); in onHdmiDeviceUpdated()
[all …]

12