Home
last modified time | relevance | path

Searched refs:ActiveSource (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/hdmi/
DActiveSourceHandler.java26 import com.android.server.hdmi.HdmiCecLocalDevice.ActiveSource;
62 void process(ActiveSource newActive, int deviceType) { in process()
71 ActiveSource old = ActiveSource.of(tv.getActiveSource()); in process()
83 ActiveSource current = tv.getActiveSource(); in process()
DHdmiCecLocalDevice.java82 static class ActiveSource { class in HdmiCecLocalDevice
86 public ActiveSource() { in ActiveSource() method in HdmiCecLocalDevice.ActiveSource
90 public ActiveSource(int logical, int physical) { in ActiveSource() method in HdmiCecLocalDevice.ActiveSource
95 public static ActiveSource of(ActiveSource source) { in of()
96 return new ActiveSource(source.logicalAddress, source.physicalAddress); in of()
99 public static ActiveSource of(int logical, int physical) { in of()
100 return new ActiveSource(logical, physical); in of()
118 if (obj instanceof ActiveSource) { in equals()
119 ActiveSource that = (ActiveSource) obj; in equals()
284 ActiveSource active = getActiveSource(); in isAlreadyActiveSource()
[all …]
DHdmiCecLocalDeviceSource.java208 ActiveSource activeSource = ActiveSource.of(Constants.ADDR_INVALID, physicalAddress); in setActiveSource()
218 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource()
DNewDeviceAction.java21 import com.android.server.hdmi.HdmiCecLocalDevice.ActiveSource;
268 boolean isActionOf(ActiveSource activeSource) { in isActionOf()
DHdmiCecLocalDeviceTv.java326 updateActiveSource(ActiveSource.of(logicalAddress, physicalAddress), caller); in updateActiveSource()
330 void updateActiveSource(ActiveSource newActive, String caller) { in updateActiveSource()
377 ActiveSource activeSource = getActiveSource(); in updateActiveInput()
477 ActiveSource activeSource = ActiveSource.of(logicalAddress, physicalAddress); in handleActiveSource()
591 startNewDeviceAction(ActiveSource.of(address, path), type); in handleReportPhysicalAddress()
609 void startNewDeviceAction(ActiveSource activeSource, int deviceType) { in startNewDeviceAction()
DHdmiControlService.java114 import com.android.server.hdmi.HdmiCecLocalDevice.ActiveSource;
287 protected final ActiveSource mActiveSource = new ActiveSource();
3245 ActiveSource activeSource = getLocalActiveSource(); in getActiveSource()
4243 ActiveSource getLocalActiveSource() { in getLocalActiveSource()
4275 device.addActiveSourceHistoryItem(new ActiveSource(logicalAddress, physicalAddress), in setActiveSource()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDeviceTest.java213 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()
220 new HdmiCecLocalDevice.ActiveSource( in testEqualsActiveSource()
DHdmiCecLocalDeviceAudioSystemTest.java44 import com.android.server.hdmi.HdmiCecLocalDevice.ActiveSource;
400 ActiveSource expectedActiveSource = new ActiveSource(ADDR_TV, 0x0000); in handleActiveSource_updateActiveSource()
614 ActiveSource expectedActiveSource = ActiveSource.of(ADDR_TV, 0x0000); in handleActiveSource_activeSourceFromTV_swithToArc()
631 ActiveSource expectedActiveSource = ActiveSource.of(ADDR_PLAYBACK_1, SELF_PHYSICAL_ADDRESS); in handleRoutingChange_currentActivePortIsHome()
DHdmiCecLocalDeviceTvTest.java26 import static com.android.server.hdmi.HdmiCecLocalDevice.ActiveSource;
1833 new ActiveSource(Constants.ADDR_INVALID, Constants.INVALID_PHYSICAL_ADDRESS)); in onAddressAllocated_startRequestActiveSourceAction_noActiveSource()
1844 new ActiveSource(mTvLogicalAddress, mTvPhysicalAddress)); in onAddressAllocated_startRequestActiveSourceAction_noActiveSource()