Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/hardware/hdmi/
DHdmiDeviceInfo.java35 public class HdmiDeviceInfo implements Parcelable { class
86 public static final HdmiDeviceInfo INACTIVE_DEVICE = new HdmiDeviceInfo();
121 public static final @android.annotation.NonNull Parcelable.Creator<HdmiDeviceInfo> CREATOR =
122 new Parcelable.Creator<HdmiDeviceInfo>() {
124 public HdmiDeviceInfo createFromParcel(Parcel source) {
136 return new HdmiDeviceInfo(logicalAddress, physicalAddress, portId,
141 return new HdmiDeviceInfo(physicalAddress, portId, adopterId, deviceId);
143 return new HdmiDeviceInfo(physicalAddress, portId);
145 return HdmiDeviceInfo.INACTIVE_DEVICE;
152 public HdmiDeviceInfo[] newArray(int size) {
[all …]
DHdmiControlManager.java313 mHasTvDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_TV); in HdmiControlManager()
314 mHasPlaybackDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_PLAYBACK); in HdmiControlManager()
315 mHasAudioSystemDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM); in HdmiControlManager()
316 mHasSwitchDevice = hasDeviceType(types, HdmiDeviceInfo.DEVICE_PURE_CEC_SWITCH); in HdmiControlManager()
348 case HdmiDeviceInfo.DEVICE_TV: in getClient()
350 case HdmiDeviceInfo.DEVICE_PLAYBACK: in getClient()
352 case HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM: in getClient()
354 case HdmiDeviceInfo.DEVICE_PURE_CEC_SWITCH: in getClient()
374 return (HdmiPlaybackClient) getClient(HdmiDeviceInfo.DEVICE_PLAYBACK); in getPlaybackClient()
389 return (HdmiTvClient) getClient(HdmiDeviceInfo.DEVICE_TV); in getTvClient()
[all …]
DIHdmiControlService.aidl19 import android.hardware.hdmi.HdmiDeviceInfo;
42 HdmiDeviceInfo getActiveSource(); in getActiveSource()
66 List<HdmiDeviceInfo> getInputDevices(); in getInputDevices()
67 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()
DHdmiTvClient.java59 return HdmiDeviceInfo.DEVICE_TV; in getDeviceType()
128 void onChanged(HdmiDeviceInfo info);
150 public void onChanged(HdmiDeviceInfo info) {
162 public List<HdmiDeviceInfo> getDeviceList() {
167 return Collections.<HdmiDeviceInfo>emptyList();
/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()
274 HdmiDeviceInfo targetDevice = mDeviceInfos.get(id); in deviceSelect()
374 HdmiDeviceInfo info = getCecDeviceInfo(activeSource.logicalAddress); in updateActiveInput()
380 info = new HdmiDeviceInfo(path, getActivePortId()); in updateActiveInput()
442 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 …]
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 …]
DHdmiMhlLocalDeviceStub.java3 import android.hardware.hdmi.HdmiDeviceInfo;
11 private static final HdmiDeviceInfo INFO = new HdmiDeviceInfo(
24 HdmiDeviceInfo getInfo() { in getInfo()
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()
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()
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;
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()
DHdmiControlService.java39 import android.hardware.hdmi.HdmiDeviceInfo;
316 private UnmodifiableSparseArray<HdmiDeviceInfo> mPortDeviceMap;
345 private List<HdmiDeviceInfo> mMhlDevices;
751 HdmiDeviceInfo deviceInfo = createDeviceInfo(logicalAddress, deviceType, in allocateLogicalAddress()
814 SparseArray<HdmiDeviceInfo> portDeviceMap = new SparseArray<>(); in initPortInfo()
818 portDeviceMap.put(info.getId(), new HdmiDeviceInfo(info.getAddress(), info.getId())); in initPortInfo()
961 HdmiDeviceInfo getDeviceInfo(int logicalAddress) { in getDeviceInfo()
967 HdmiDeviceInfo getDeviceInfoByPort(int port) { in getDeviceInfoByPort()
1198 private HdmiDeviceInfo createDeviceInfo(int logicalAddress, int deviceType, int powerStatus) { in createDeviceInfo()
1200 return new HdmiDeviceInfo(logicalAddress, in createDeviceInfo()
[all …]
DNewDeviceAction.java18 import android.hardware.hdmi.HdmiDeviceInfo;
175 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo( in addDeviceInfo()
185 == HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM) { in addDeviceInfo()
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()
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;
143 void invokeDeviceEventListeners(HdmiDeviceInfo device, int status) { in setUp()
628 HdmiDeviceInfo newDevice = new HdmiDeviceInfo( in updateCecDevice_deviceNotExists_addDevice()
629 ADDR_PLAYBACK_1, 0x2100, 2, HdmiDeviceInfo.DEVICE_PLAYBACK, in updateCecDevice_deviceNotExists_addDevice()
642 HdmiDeviceInfo oldDevice = new HdmiDeviceInfo( in updateCecDevice_deviceExists_doNothing()
643 ADDR_PLAYBACK_1, 0x2100, 2, HdmiDeviceInfo.DEVICE_PLAYBACK, in updateCecDevice_deviceExists_doNothing()
654 HdmiDeviceInfo oldDevice = new HdmiDeviceInfo( in updateCecDevice_deviceInfoDifferent_updateDevice()
655 ADDR_PLAYBACK_1, 0x2100, 2, HdmiDeviceInfo.DEVICE_PLAYBACK, in updateCecDevice_deviceInfoDifferent_updateDevice()
659 HdmiDeviceInfo differentDevice = new HdmiDeviceInfo( in updateCecDevice_deviceInfoDifferent_updateDevice()
[all …]
DArcTerminationActionFromAvrTest.java22 import android.hardware.hdmi.HdmiDeviceInfo;
40 private HdmiDeviceInfo mDeviceInfoForTests;
52 mDeviceInfoForTests = new HdmiDeviceInfo(1000, 1); in setUp()
100 HdmiDeviceInfo getDeviceInfo() { in setUp()
DDetectTvSystemAudioModeSupportActionTest.java21 import android.hardware.hdmi.HdmiDeviceInfo;
39 private HdmiDeviceInfo mDeviceInfoForTests;
50 mDeviceInfoForTests = new HdmiDeviceInfo(1001, 1234); in SetUp()
97 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()
41 void notifyHdmiDeviceUpdated(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceUpdated()
/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()
495 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; in processPendingHdmiDeviceEventsLocked()
578 for (HdmiDeviceInfo hdmiDeviceInfo : mHdmiDeviceList) { in dump()
1123 void onHdmiDeviceAdded(HdmiDeviceInfo device); in onHdmiDeviceAdded()
1124 void onHdmiDeviceRemoved(HdmiDeviceInfo device); in onHdmiDeviceRemoved()
1125 void onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo device); in onHdmiDeviceUpdated()
[all …]

123