Home
last modified time | relevance | path

Searched refs:isActiveSource (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDeviceSource.java197 boolean wasActiveSource = isActiveSource(); in setActiveSource()
199 if (wasActiveSource && !isActiveSource()) { in setActiveSource()
249 } else if (physicalAddress != mService.getPhysicalAddress() || !isActiveSource()) { in handleSetStreamPath()
264 if (physicalAddress != mService.getPhysicalAddress() || !isActiveSource()) { in handleRoutingChange()
282 if (physicalAddress != mService.getPhysicalAddress() || !isActiveSource()) { in handleRoutingInformation()
372 protected boolean isActiveSource() { in isActiveSource() method in HdmiCecLocalDeviceSource
382 if (!isActiveSource()) { in wakeUpIfActiveSource()
391 if (!isActiveSource()) { in maySendActiveSource()
DHdmiCecLocalDevicePlayback.java292 boolean wasActiveSource = isActiveSource(); in onStandby()
388 if (isActiveSource()) { in setActiveSource()
436 if (!isActiveSource()) { in onActiveSourceLost()
621 && isActiveSource()) { in handleRoutingChangeAndInformation()
629 if (!isActiveSource()) { in handleRoutingChangeAndInformation()
697 pw.println("isActiveSource(): " + isActiveSource()); in dump()
717 HdmiLogger.debug("active source: %b. Wake lock acquired", isActiveSource()); in acquire()
DHdmiCecLocalDevice.java1479 void addActiveSourceHistoryItem(ActiveSource activeSource, boolean isActiveSource, in addActiveSourceHistoryItem() argument
1482 isActiveSource, caller); in addActiveSourceHistoryItem()
DHdmiControlService.java3240 if (playback() != null && playback().isActiveSource()) { in getActiveSource()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDevicePlaybackTest.java346 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in handleRoutingChange_otherDevice_None()
367 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isTrue(); in handleRoutingChange_sameDevice_None_ActiveSource()
388 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in handleRoutingChange_sameDevice_None_InactiveSource()
408 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in handleRoutingChange_otherDevice_StandbyNow()
434 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isTrue(); in handleRoutingChange_toSwitchInActivePath_noStandby()
452 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in handleRoutingChange_toTv_StandbyNow()
470 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in handleRoutingChange_otherDevice_StandbyNow_InactiveSource()
487 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isTrue(); in handleRoutingChange_sameDevice_StandbyNow_ActiveSource()
550 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in handleRoutingInformation_otherDevice_None()
571 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isTrue(); in handleRoutingInformation_sameDevice_None_ActiveSource()
[all …]
DHdmiCecLocalDeviceAudioSystemTest.java797 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isTrue(); in setActiveSource_localDevice_playback()
798 assertThat(mHdmiCecLocalDeviceAudioSystem.isActiveSource()).isFalse(); in setActiveSource_localDevice_playback()
812 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in setActiveSource_localDevice_audio()
813 assertThat(mHdmiCecLocalDeviceAudioSystem.isActiveSource()).isTrue(); in setActiveSource_localDevice_audio()
823 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in setActiveSource_remoteDevice()
824 assertThat(mHdmiCecLocalDeviceAudioSystem.isActiveSource()).isFalse(); in setActiveSource_remoteDevice()
835 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in setActiveSource_nonCecDevice()
836 assertThat(mHdmiCecLocalDeviceAudioSystem.isActiveSource()).isFalse(); in setActiveSource_nonCecDevice()
848 assertThat(mHdmiCecLocalDevicePlayback.isActiveSource()).isFalse(); in setActiveSource_unknown()
849 assertThat(mHdmiCecLocalDeviceAudioSystem.isActiveSource()).isFalse(); in setActiveSource_unknown()
DActiveSourceActionTest.java146 assertThat(playbackDevice.isActiveSource()).isTrue(); in playbackDevice_updatesActiveSourceState()
DOneTouchPlayActionTest.java511 assertThat(playbackDevice.isActiveSource()).isTrue(); in succeedWithAddressNotAllocated_Cec14b()
543 assertThat(playbackDevice.isActiveSource()).isTrue(); in succeedWithAddressAllocated_Cec14b()