/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiControlServiceStaticTest.java | 40 assertThat(HdmiControlService.localeToMenuLanguage(Locale.ENGLISH)).isEqualTo("eng"); in localToMenuLanguage_english() 45 assertThat(HdmiControlService.localeToMenuLanguage(Locale.GERMAN)).isEqualTo("ger"); in localToMenuLanguage_german() 50 assertThat(HdmiControlService.localeToMenuLanguage(Locale.TAIWAN)).isEqualTo("chi"); in localToMenuLanguage_taiwan() 55 assertThat(HdmiControlService.localeToMenuLanguage(new Locale("zh", "MO"))).isEqualTo( in localToMenuLanguage_macau() 61 assertThat(HdmiControlService.localeToMenuLanguage(new Locale("zh", "HK"))).isEqualTo( in localToMenuLanguage_hongkong() 67 assertThat(HdmiControlService.localeToMenuLanguage(Locale.CHINESE)).isEqualTo("zho"); in localToMenuLanguage_chinese()
|
D | TvToAudioSystemArcAvbTest.java | 46 return HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI_ARC; in getAudioOutputDevice() 54 mAudioFramework.setDevicesForAttributes(HdmiControlService.STREAM_MUSIC_ATTRIBUTES, in switchAudioOutputDeviceFromArcToEarc_volumeAdjusted_updatesAudioService() 55 Collections.singletonList(HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI_EARC)); in switchAudioOutputDeviceFromArcToEarc_volumeAdjusted_updatesAudioService()
|
D | TvToAudioSystemEarcAvbTest.java | 46 return HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI_EARC; in getAudioOutputDevice() 54 mAudioFramework.setDevicesForAttributes(HdmiControlService.STREAM_MUSIC_ATTRIBUTES, in switchAudioOutputDeviceFromEarcToArc_volumeAdjusted_updatesAudioService() 55 Collections.singletonList(HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI_ARC)); in switchAudioOutputDeviceFromEarcToArc_volumeAdjusted_updatesAudioService()
|
D | BasePlaybackDeviceAvbTest.java | 38 protected HdmiCecLocalDevice createLocalDevice(HdmiControlService hdmiControlService) { in createLocalDevice() 54 return HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI; in getAudioOutputDevice()
|
D | ResendCecCommandActionPlaybackTest.java | 50 private HdmiControlService mHdmiControlService; 64 mHdmiControlService = new HdmiControlService(context, in setUp() 169 mPlaybackDevice.onStandby(false, HdmiControlService.STANDBY_SCREEN_OFF); in sendCecCommand_inactiveSource_onStandby_powerControlModeNone_sendMessage() 182 mPlaybackDevice.onStandby(true, HdmiControlService.STANDBY_SCREEN_OFF); in sendCecCommand_inactiveSource_onStandby_initiatedByCec_sendMessage() 343 mPlaybackDevice.onStandby(true, HdmiControlService.STANDBY_SCREEN_OFF); in sendCecCommand_inactiveSource_sendMessageFails_afterStandby_noResendMessage() 350 mHdmiControlService.onWakeUp(HdmiControlService.WAKE_UP_SCREEN_ON); in sendCecCommand_inactiveSource_sendMessageFails_afterStandby_noResendMessage() 369 mHdmiControlService.onStandby(HdmiControlService.STANDBY_SCREEN_OFF); in sendCecCommand_onStandby_removeAction_noResendMessage() 377 mHdmiControlService.onWakeUp(HdmiControlService.WAKE_UP_SCREEN_ON); in sendCecCommand_onStandby_removeAction_noResendMessage()
|
D | BaseAbsoluteVolumeBehaviorTest.java | 22 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_BOOT_UP; 79 protected HdmiControlService mHdmiControlService; 113 protected abstract HdmiCecLocalDevice createLocalDevice(HdmiControlService hdmiControlService); in createLocalDevice() 137 new HdmiControlService(InstrumentationRegistry.getTargetContext(), in setUp() 195 mAudioFramework.setDevicesForAttributes(HdmiControlService.STREAM_MUSIC_ATTRIBUTES, in setUp() 223 mAudioManager.setDeviceVolumeBehavior(HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI, in adoptFullVolumeBehaviorOnAvbCapableAudioOutputDevices() 226 mAudioManager.setDeviceVolumeBehavior(HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI_ARC, in adoptFullVolumeBehaviorOnAvbCapableAudioOutputDevices() 228 mAudioManager.setDeviceVolumeBehavior(HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI_EARC, in adoptFullVolumeBehaviorOnAvbCapableAudioOutputDevices() 454 mHdmiControlService.onStandby(HdmiControlService.STANDBY_SCREEN_OFF); in avbEnabled_standby_avbDisabled()
|
D | ActiveSourceActionTest.java | 21 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC; 53 private HdmiControlService mHdmiControlService; 66 mHdmiControlService = new HdmiControlService(mContextSpy, Collections.emptyList(), in setUp()
|
D | ArcInitiationActionFromAvrTest.java | 19 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC; 66 HdmiControlService hdmiControlService = in setUp() 67 new HdmiControlService(mContextSpy, Collections.emptyList(), in setUp()
|
D | DetectTvSystemAudioModeSupportActionTest.java | 62 HdmiControlService hdmiControlService = in SetUp() 63 new HdmiControlService(InstrumentationRegistry.getTargetContext(), in SetUp()
|
D | ArcTerminationActionFromAvrTest.java | 19 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC; 73 HdmiControlService hdmiControlService = in setUp() 74 new HdmiControlService(mContextSpy, Collections.emptyList(), in setUp()
|
D | HdmiControlServiceTest.java | 28 import static com.android.server.hdmi.HdmiControlService.DEVICE_CLEANUP_TIMEOUT; 29 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC; 30 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_HOTPLUG; 31 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_SCREEN_ON; 32 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_SOUNDBAR_MODE; 33 import static com.android.server.hdmi.HdmiControlService.WAKE_UP_SCREEN_ON; 95 private HdmiControlService mHdmiControlServiceSpy; 121 mHdmiControlServiceSpy = spy(new HdmiControlService(mContextSpy, mLocalDeviceTypes, in setUp() 206 mHdmiControlServiceSpy.onStandby(HdmiControlService.STANDBY_SCREEN_OFF); in onStandby_notByCec_cannotGoToStandby() 217 mHdmiControlServiceSpy.onStandby(HdmiControlService.STANDBY_SCREEN_OFF); in onStandby_byCec() [all …]
|
D | HdmiControlServiceTvTest.java | 52 private HdmiControlService mHdmiControlService; 69 new HdmiControlService(InstrumentationRegistry.getTargetContext(), in setUp()
|
D | HdmiCecAtomLoggingTvTest.java | 20 import static com.android.server.hdmi.HdmiControlService.WAKE_UP_SCREEN_ON; 65 private HdmiControlService mHdmiControlServiceSpy; 90 mHdmiControlServiceSpy = spy(new HdmiControlService(mContextSpy, in setUp()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | SelectRequestBuffer.java | 45 protected final HdmiControlService mService; 49 public SelectRequest(HdmiControlService service, int id, IHdmiControlCallback callback) { in SelectRequest() 90 private DeviceSelectRequest(HdmiControlService srv, int id, IHdmiControlCallback callback) { in DeviceSelectRequest() 104 private PortSelectRequest(HdmiControlService srv, int id, IHdmiControlCallback callback) { in PortSelectRequest() 125 public static DeviceSelectRequest newDeviceSelect(HdmiControlService srv, int id, in newDeviceSelect() 130 public static PortSelectRequest newPortSelect(HdmiControlService srv, int id, in newPortSelect()
|
D | HdmiLocalDevice.java | 27 protected final HdmiControlService mService; 32 protected HdmiLocalDevice(HdmiControlService service, int deviceType) { in HdmiLocalDevice()
|
D | HdmiEarcLocalDevice.java | 36 protected HdmiEarcLocalDevice(HdmiControlService service, int deviceType) { in HdmiEarcLocalDevice() 41 static HdmiEarcLocalDevice create(HdmiControlService service, int deviceType) { in create()
|
D | HdmiMhlLocalDeviceStub.java | 13 private final HdmiControlService mService; 16 protected HdmiMhlLocalDeviceStub(HdmiControlService service, int portId) { in HdmiMhlLocalDeviceStub()
|
D | HdmiEarcController.java | 36 private final HdmiControlService mService; 138 private HdmiEarcController(HdmiControlService service, EarcNativeWrapper nativeWrapper) { in HdmiEarcController() 153 static HdmiEarcController create(HdmiControlService service) { in create() 160 static HdmiEarcController createWithNativeWrapper(HdmiControlService service, in createWithNativeWrapper()
|
D | HdmiCecPowerStatusController.java | 31 private final HdmiControlService mHdmiControlService; 35 HdmiCecPowerStatusController(HdmiControlService hdmiControlService) { in HdmiCecPowerStatusController()
|
D | HdmiMhlControllerStub.java | 39 private HdmiMhlControllerStub(HdmiControlService service) { in HdmiMhlControllerStub() 47 static HdmiMhlControllerStub create(HdmiControlService service) { in create()
|
D | HdmiCecFeatureAction.java | 27 import com.android.server.hdmi.HdmiControlService.DevicePollingCallback; 59 private final HdmiControlService mService; 190 HdmiControlService.SendMessageCallback callback) { in sendCommand() 195 HdmiControlService.SendMessageCallback callback) { in sendCommandWithoutRetries()
|
D | CecMessageBuffer.java | 27 private HdmiControlService mHdmiControlService; 29 CecMessageBuffer(HdmiControlService hdmiControlService) { in CecMessageBuffer()
|
D | HdmiControlService.java | 143 public class HdmiControlService extends SystemService { class 360 String language = HdmiControlService.localeToMenuLanguage(Locale.getDefault()); in onReceive() 576 @VisibleForTesting HdmiControlService(Context context, List<Integer> deviceTypes, in HdmiControlService() method in HdmiControlService 588 public HdmiControlService(Context context) { in HdmiControlService() method in HdmiControlService 620 .map(HdmiControlService::enumToIntDeviceType) in readDeviceTypes() 1957 allocateLogicalAddress(localDevices, HdmiControlService.INITIATED_BY_HOTPLUG); in checkLogicalAddressConflictAndReallocate() 2297 return HdmiControlService.this.getActiveSource(); in getActiveSource() 2315 HdmiControlService.this, deviceId, callback)); in deviceSelect() 2370 HdmiControlService.this, portId, callback)); in portSelect() 2433 HdmiControlService.this.oneTouchPlay(callback); in oneTouchPlay() [all …]
|
D | HdmiCecStandbyModeHandler.java | 82 private final HdmiControlService mService; 151 public HdmiCecStandbyModeHandler(HdmiControlService service, HdmiCecLocalDevice device) { in HdmiCecStandbyModeHandler()
|
D | HdmiCecLocalDevicePlayback.java | 40 import com.android.server.hdmi.HdmiControlService.SendMessageCallback; 92 HdmiCecLocalDevicePlayback(HdmiControlService service) { in HdmiCecLocalDevicePlayback() 314 case HdmiControlService.STANDBY_SCREEN_OFF: in onStandby() 349 case HdmiControlService.STANDBY_SHUTDOWN: in onStandby() 362 if (initiatedBy != HdmiControlService.INITIATED_BY_SCREEN_ON) { in onInitializeCecComplete()
|