Home
last modified time | relevance | path

Searched refs:HdmiControlService (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiControlServiceStaticTest.java40 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()
DTvToAudioSystemArcAvbTest.java46 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()
DTvToAudioSystemEarcAvbTest.java46 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()
DBasePlaybackDeviceAvbTest.java38 protected HdmiCecLocalDevice createLocalDevice(HdmiControlService hdmiControlService) { in createLocalDevice()
54 return HdmiControlService.AUDIO_OUTPUT_DEVICE_HDMI; in getAudioOutputDevice()
DResendCecCommandActionPlaybackTest.java50 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()
DBaseAbsoluteVolumeBehaviorTest.java22 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()
DActiveSourceActionTest.java21 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC;
53 private HdmiControlService mHdmiControlService;
66 mHdmiControlService = new HdmiControlService(mContextSpy, Collections.emptyList(), in setUp()
DArcInitiationActionFromAvrTest.java19 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC;
66 HdmiControlService hdmiControlService = in setUp()
67 new HdmiControlService(mContextSpy, Collections.emptyList(), in setUp()
DDetectTvSystemAudioModeSupportActionTest.java62 HdmiControlService hdmiControlService = in SetUp()
63 new HdmiControlService(InstrumentationRegistry.getTargetContext(), in SetUp()
DArcTerminationActionFromAvrTest.java19 import static com.android.server.hdmi.HdmiControlService.INITIATED_BY_ENABLE_CEC;
73 HdmiControlService hdmiControlService = in setUp()
74 new HdmiControlService(mContextSpy, Collections.emptyList(), in setUp()
DHdmiControlServiceTest.java28 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 …]
DHdmiControlServiceTvTest.java52 private HdmiControlService mHdmiControlService;
69 new HdmiControlService(InstrumentationRegistry.getTargetContext(), in setUp()
DHdmiCecAtomLoggingTvTest.java20 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/
DSelectRequestBuffer.java45 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()
DHdmiLocalDevice.java27 protected final HdmiControlService mService;
32 protected HdmiLocalDevice(HdmiControlService service, int deviceType) { in HdmiLocalDevice()
DHdmiEarcLocalDevice.java36 protected HdmiEarcLocalDevice(HdmiControlService service, int deviceType) { in HdmiEarcLocalDevice()
41 static HdmiEarcLocalDevice create(HdmiControlService service, int deviceType) { in create()
DHdmiMhlLocalDeviceStub.java13 private final HdmiControlService mService;
16 protected HdmiMhlLocalDeviceStub(HdmiControlService service, int portId) { in HdmiMhlLocalDeviceStub()
DHdmiEarcController.java36 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()
DHdmiCecPowerStatusController.java31 private final HdmiControlService mHdmiControlService;
35 HdmiCecPowerStatusController(HdmiControlService hdmiControlService) { in HdmiCecPowerStatusController()
DHdmiMhlControllerStub.java39 private HdmiMhlControllerStub(HdmiControlService service) { in HdmiMhlControllerStub()
47 static HdmiMhlControllerStub create(HdmiControlService service) { in create()
DHdmiCecFeatureAction.java27 import com.android.server.hdmi.HdmiControlService.DevicePollingCallback;
59 private final HdmiControlService mService;
190 HdmiControlService.SendMessageCallback callback) { in sendCommand()
195 HdmiControlService.SendMessageCallback callback) { in sendCommandWithoutRetries()
DCecMessageBuffer.java27 private HdmiControlService mHdmiControlService;
29 CecMessageBuffer(HdmiControlService hdmiControlService) { in CecMessageBuffer()
DHdmiControlService.java143 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 …]
DHdmiCecStandbyModeHandler.java82 private final HdmiControlService mService;
151 public HdmiCecStandbyModeHandler(HdmiControlService service, HdmiCecLocalDevice device) { in HdmiCecStandbyModeHandler()
DHdmiCecLocalDevicePlayback.java40 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()

123