Home
last modified time | relevance | path

Searched refs:DeviceFeatures (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DDeviceFeaturesTest.java19 import static android.hardware.hdmi.DeviceFeatures.FEATURE_NOT_SUPPORTED;
20 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORTED;
21 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORT_UNKNOWN;
44 .addEqualityGroup(DeviceFeatures.ALL_FEATURES_SUPPORT_UNKNOWN) in testEquals()
45 .addEqualityGroup(DeviceFeatures.NO_FEATURES_SUPPORTED) in testEquals()
47 DeviceFeatures.fromOperand( in testEquals()
49 DeviceFeatures.fromOperand( in testEquals()
51 DeviceFeatures.fromOperand( in testEquals()
53 DeviceFeatures.ALL_FEATURES_SUPPORT_UNKNOWN.toBuilder() in testEquals()
68 DeviceFeatures info = DeviceFeatures.fromOperand( in testDeviceFeaturesOperandConversion()
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DDeviceFeatures.java29 public class DeviceFeatures { class
46 public static final DeviceFeatures ALL_FEATURES_SUPPORT_UNKNOWN =
53 public static final DeviceFeatures NO_FEATURES_SUPPORTED =
64 private DeviceFeatures(@NonNull Builder builder) { in DeviceFeatures() method in DeviceFeatures
91 public static DeviceFeatures fromOperand(@NonNull byte[] deviceFeaturesOperand) { in fromOperand()
206 if (!(obj instanceof DeviceFeatures)) { in equals()
210 DeviceFeatures other = (DeviceFeatures) obj; in equals()
290 private Builder(DeviceFeatures info) { in Builder()
303 public DeviceFeatures build() { in build()
304 return new DeviceFeatures(this); in build()
[all …]
DHdmiDeviceInfo.java127 private final DeviceFeatures mDeviceFeatures;
202 mDeviceFeatures = DeviceFeatures.ALL_FEATURES_SUPPORT_UNKNOWN; in HdmiDeviceInfo()
305 public DeviceFeatures getDeviceFeatures() { in getDeviceFeatures()
601 private DeviceFeatures mDeviceFeatures;
610 mDeviceFeatures = DeviceFeatures.ALL_FEATURES_SUPPORT_UNKNOWN; in Builder()
612 mDeviceFeatures = DeviceFeatures.NO_FEATURES_SUPPORTED; in Builder()
715 public Builder setDeviceFeatures(DeviceFeatures deviceFeatures) { in setDeviceFeatures()
743 public Builder updateDeviceFeatures(DeviceFeatures deviceFeatures) { in updateDeviceFeatures()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DReportFeaturesMessageTest.java29 import android.hardware.hdmi.DeviceFeatures;
80 DeviceFeatures.NO_FEATURES_SUPPORTED); in build_basicTv_1_4()
92 DeviceFeatures.NO_FEATURES_SUPPORTED); in build_basicPlayback_1_4()
105 DeviceFeatures.NO_FEATURES_SUPPORTED); in build_basicPlaybackAudioSystem_1_4()
117 DeviceFeatures.NO_FEATURES_SUPPORTED); in build_basicTv_2_0()
129 DeviceFeatures.NO_FEATURES_SUPPORTED); in build_remoteControlTv_2_0()
142 DeviceFeatures.NO_FEATURES_SUPPORTED); in build_remoteControlPlayback_2_0()
154 DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in build_deviceFeaturesTv_2_0()
155 .setRecordTvScreenSupport(DeviceFeatures.FEATURE_SUPPORTED) in build_deviceFeaturesTv_2_0()
169 DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in build_deviceFeaturesPlayback_2_0()
[all …]
DSetAudioVolumeLevelDiscoveryActionTest.java19 import static android.hardware.hdmi.DeviceFeatures.FEATURE_NOT_SUPPORTED;
20 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORTED;
21 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORT_UNKNOWN;
35 import android.hardware.hdmi.DeviceFeatures;
161 @DeviceFeatures.FeatureSupportStatus int savlSupport = in noMatchingFeatureAbortReceived_actionSucceedsAndSetsFeatureSupported()
181 @DeviceFeatures.FeatureSupportStatus int savlSupport = in matchingFeatureAbortReceived_actionSucceedsAndSetsFeatureNotSupported()
198 @DeviceFeatures.FeatureSupportStatus int savlSupport = in messageFailedToSend_actionFailsAndDoesNotUpdateFeatureSupport()
DBaseAbsoluteVolumeBehaviorTest.java40 import android.hardware.hdmi.DeviceFeatures;
247 @DeviceFeatures.FeatureSupportStatus int featureSupportStatus) { in receiveSetAudioVolumeLevelSupport()
249 if (featureSupportStatus != DeviceFeatures.FEATURE_SUPPORT_UNKNOWN) { in receiveSetAudioVolumeLevelSupport()
254 DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in receiveSetAudioVolumeLevelSupport()
298 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED); in enableAbsoluteVolumeBehavior()
312 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_NOT_SUPPORTED); in enableAdjustOnlyAbsoluteVolumeBehavior()
355 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED); in allConditionsMet_savlSupportLast_reportFeatures_giveAudioStatusSent()
375 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED); in allConditionsMet_cecVolumeEnabledLast_giveAudioStatusSent()
386 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED); in allConditionsMet_fullVolumeBehaviorLast_giveAudioStatusSent()
401 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED); in allConditionsMet_systemAudioModeEnabledLast_giveAudioStatusSent()
[all …]
DPlaybackDeviceToAudioSystemAvbTest.java21 import android.hardware.hdmi.DeviceFeatures;
75 DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in switchToTv_absoluteVolumeControlDisabledUntilAllConditionsMet()
76 .setSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED) in switchToTv_absoluteVolumeControlDisabledUntilAllConditionsMet()
DPlaybackDeviceToTvAvbTest.java23 import android.hardware.hdmi.DeviceFeatures;
78 DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in switchToAudioSystem_absoluteVolumeControlDisabledUntilAllConditionsMet()
79 .setSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED) in switchToAudioSystem_absoluteVolumeControlDisabledUntilAllConditionsMet()
DBasePlaybackDeviceAvbTest.java19 import android.hardware.hdmi.DeviceFeatures;
68 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_NOT_SUPPORTED); in savlNotSupported_allOtherConditionsMet_giveAudioStatusNotSent()
DBaseTvToAudioSystemAvbTest.java31 import android.hardware.hdmi.DeviceFeatures;
86 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_NOT_SUPPORTED); in savlNotSupported_allOtherConditionsMet_giveAudioStatusSent()
95 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_NOT_SUPPORTED); in savlNotSupported_systemAudioDeviceSendsReportAudioStatus_adjustOnlyAvbEnabled()
122 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_NOT_SUPPORTED); in avbEnabled_savlNotSupported_receiveReportAudioStatus_switchToAdjustOnlyAvb()
278 receiveSetAudioVolumeLevelSupport(DeviceFeatures.FEATURE_SUPPORTED); in adjustOnlyAvbEnabled_savlBecomesSupported_switchToAvb()
314 .setDeviceFeatures(DeviceFeatures.ALL_FEATURES_SUPPORT_UNKNOWN) in adjustOnlyAvbEnabled_savlSupportBecomesUnknown_keepUsingAdjustOnlyAvb()
DHdmiCecNetworkTest.java20 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORTED;
25 import android.hardware.hdmi.DeviceFeatures;
570 DeviceFeatures.NO_FEATURES_SUPPORTED)); in cecDevices_tracking_reportFeatures_tracksCecVersion_cec14()
589 DeviceFeatures.NO_FEATURES_SUPPORTED)); in cecDevices_tracking_reportFeatures_tracksCecVersion_cec20()
605 DeviceFeatures deviceFeatures = DeviceFeatures.NO_FEATURES_SUPPORTED; in cecDevices_tracking_reportFeatures_updatesDeviceFeatures()
615 DeviceFeatures updatedFeatures = DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in cecDevices_tracking_reportFeatures_updatesDeviceFeatures()
/frameworks/base/services/core/java/com/android/server/hdmi/
DReportFeaturesMessage.java24 import android.hardware.hdmi.DeviceFeatures;
44 private final DeviceFeatures mDeviceFeatures;
47 DeviceFeatures deviceFeatures) { in ReportFeaturesMessage()
63 DeviceFeatures deviceFeatures) { in build()
160 DeviceFeatures deviceFeatures = DeviceFeatures.fromOperand(deviceFeaturesBytes); in build()
187 public DeviceFeatures getDeviceFeatures() { in getDeviceFeatures()
DSetAudioVolumeLevelDiscoveryAction.java19 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORTED;
23 import android.hardware.hdmi.DeviceFeatures;
108 @DeviceFeatures.FeatureSupportStatus int setAudioVolumeLevelSupport) { in updateSetAudioVolumeLevelSupport()
DHdmiCecNetwork.java22 import android.hardware.hdmi.DeviceFeatures;
618 @DeviceFeatures.FeatureSupportStatus int featureSupport = in handleFeatureAbort()
620 ? DeviceFeatures.FEATURE_NOT_SUPPORTED in handleFeatureAbort()
621 : DeviceFeatures.FEATURE_SUPPORT_UNKNOWN; in handleFeatureAbort()
DHdmiCecLocalDeviceAudioSystem.java18 import static android.hardware.hdmi.DeviceFeatures.FEATURE_NOT_SUPPORTED;
19 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORTED;
29 import android.hardware.hdmi.DeviceFeatures;
189 protected DeviceFeatures computeDeviceFeatures() { in computeDeviceFeatures()
192 return DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in computeDeviceFeatures()
DHdmiCecLocalDevice.java22 import android.hardware.hdmi.DeviceFeatures;
672 protected DeviceFeatures computeDeviceFeatures() { in computeDeviceFeatures()
673 return DeviceFeatures.NO_FEATURES_SUPPORTED; in computeDeviceFeatures()
688 protected final DeviceFeatures getDeviceFeatures() { in getDeviceFeatures()
712 DeviceFeatures deviceFeatures = getDeviceFeatures(); in reportFeatures()
DHdmiCecLocalDeviceTv.java19 import static android.hardware.hdmi.DeviceFeatures.FEATURE_NOT_SUPPORTED;
20 import static android.hardware.hdmi.DeviceFeatures.FEATURE_SUPPORTED;
36 import android.hardware.hdmi.DeviceFeatures;
1686 protected DeviceFeatures computeDeviceFeatures() { in computeDeviceFeatures()
1696 return DeviceFeatures.NO_FEATURES_SUPPORTED.toBuilder() in computeDeviceFeatures()
DHdmiControlService.java51 import android.hardware.hdmi.DeviceFeatures;
4626 case DeviceFeatures.FEATURE_SUPPORTED: in checkAndUpdateAbsoluteVolumeBehavior()
4634 case DeviceFeatures.FEATURE_NOT_SUPPORTED: in checkAndUpdateAbsoluteVolumeBehavior()
4657 case DeviceFeatures.FEATURE_SUPPORT_UNKNOWN: in checkAndUpdateAbsoluteVolumeBehavior()
4713 == DeviceFeatures.FEATURE_SUPPORTED) { in enableAbsoluteVolumeBehavior()
4769 != DeviceFeatures.FEATURE_SUPPORTED) { in onAudioDeviceVolumeChanged()