Home
last modified time | relevance | path

Searched refs:AudioProductStrategy (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/av/media/libaudioclient/
DAudioProductStrategy.cpp26 status_t AudioProductStrategy::readFromParcel(const Parcel* parcel) { in readFromParcel()
27 media::AudioProductStrategy aidl; in readFromParcel()
33 status_t AudioProductStrategy::writeToParcel(Parcel* parcel) const { in writeToParcel()
34 media::AudioProductStrategy aidl = VALUE_OR_RETURN_STATUS( in writeToParcel()
39 ConversionResult<media::AudioProductStrategy>
40 legacy2aidl_AudioProductStrategy(const AudioProductStrategy& legacy) { in legacy2aidl_AudioProductStrategy()
41 media::AudioProductStrategy aidl; in legacy2aidl_AudioProductStrategy()
51 ConversionResult<AudioProductStrategy>
52 aidl2legacy_AudioProductStrategy(const media::AudioProductStrategy& aidl) { in aidl2legacy_AudioProductStrategy()
53 return AudioProductStrategy( in aidl2legacy_AudioProductStrategy()
[all …]
DAndroid.bp53 "AudioProductStrategy.cpp",
384 "aidl/android/media/AudioProductStrategy.aidl",
DAudioSystem.cpp2069 std::vector<media::AudioProductStrategy> strategiesAidl; in listAudioProductStrategies()
2107 return AudioProductStrategy::attributesMatches( in attributesToStreamType()
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioProductStrategyTest.java25 import android.media.audiopolicy.AudioProductStrategy;
38 List<AudioProductStrategy> audioProductStrategies = in testGetProductStrategies()
39 AudioProductStrategy.getAudioProductStrategies(); in testGetProductStrategies()
44 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetProductStrategies()
69 List<AudioProductStrategy> audioProductStrategies = in testAudioAttributesFromStreamTypes()
70 AudioProductStrategy.getAudioProductStrategies(); in testAudioAttributesFromStreamTypes()
77 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType( in testAudioAttributesFromStreamTypes()
86 AudioProductStrategy.getLegacyStreamTypeForStrategyWithAudioAttributes( in testAudioAttributesFromStreamTypes()
92 AudioProductStrategy.getLegacyStreamTypeForStrategyWithAudioAttributes( in testAudioAttributesFromStreamTypes()
104 for (final AudioProductStrategy aps : audioProductStrategies) { in testAudioAttributesFromStreamTypes()
[all …]
DAudioVolumeGroupTest.java23 import android.media.audiopolicy.AudioProductStrategy;
53 final List<AudioProductStrategy> audioProductStrategies = in testGetVolumeGroups()
77 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetVolumeGroups()
109 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetVolumeGroups()
DAudioVolumesTestBase.java23 import android.media.audiopolicy.AudioProductStrategy;
40 AudioProductStrategy.getDefaultAttributes();
61 if (!aa.equals(AudioProductStrategy.getDefaultAttributes())) { in storeAllVolumes()
87 if (!aa.equals(AudioProductStrategy.getDefaultAttributes())) { in restoreAllVolumes()
DAudioManagerTest.java26 import android.media.audiopolicy.AudioProductStrategy;
41 List<AudioProductStrategy> audioProductStrategies = in testGetAndValidateProductStrategies()
49 for (final AudioProductStrategy audioProductStrategy : audioProductStrategies) { in testGetAndValidateProductStrategies()
109 List<AudioProductStrategy> audioProductStrategies = in testGetAndValidateVolumeGroups()
128 for (final AudioProductStrategy strategy : audioProductStrategies) { in testGetAndValidateVolumeGroups()
157 for (final AudioProductStrategy strategy : audioProductStrategies) { in testGetAndValidateVolumeGroups()
/frameworks/av/media/libaudioclient/include/media/
DAudioProductStrategy.h30 class AudioProductStrategy : public Parcelable
33 AudioProductStrategy() {} in AudioProductStrategy() function
34 AudioProductStrategy(const std::string &name, const std::vector<AudioAttributes> &attributes, in AudioProductStrategy() function
65 using AudioProductStrategyVector = std::vector<AudioProductStrategy>;
68 ConversionResult<media::AudioProductStrategy>
69 legacy2aidl_AudioProductStrategy(const AudioProductStrategy& legacy);
70 ConversionResult<AudioProductStrategy>
71 aidl2legacy_AudioProductStrategy(const media::AudioProductStrategy& aidl);
/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java43 public final class AudioProductStrategy implements Parcelable { class
66 private static List<AudioProductStrategy> sAudioProductStrategies;
73 public static List<AudioProductStrategy> getAudioProductStrategies() { in getAudioProductStrategies()
91 public static @Nullable AudioProductStrategy getAudioProductStrategyWithId(int id) { in getAudioProductStrategyWithId()
96 for (AudioProductStrategy strategy : sAudioProductStrategies) { in getAudioProductStrategyWithId()
112 public static @NonNull AudioProductStrategy createInvalidAudioProductStrategy(int id) { in createInvalidAudioProductStrategy()
113 return new AudioProductStrategy("dummy strategy", id, new AudioAttributesGroup[0]); in createInvalidAudioProductStrategy()
125 for (final AudioProductStrategy productStrategy : in getAudioAttributesForStrategyWithLegacyStreamType()
126 AudioProductStrategy.getAudioProductStrategies()) { in getAudioAttributesForStrategyWithLegacyStreamType()
146 for (final AudioProductStrategy productStrategy : in getLegacyStreamTypeForStrategyWithAudioAttributes()
[all …]
DAudioProductStrategy.aidl18 parcelable AudioProductStrategy;
/frameworks/layoutlib/bridge/src/android/media/
DAudioManager.java25 import android.media.audiopolicy.AudioProductStrategy;
147 …public boolean setPreferredDeviceForStrategy(AudioProductStrategy strategy, AudioDeviceAttributes … in setPreferredDeviceForStrategy()
151 public boolean removePreferredDeviceForStrategy(AudioProductStrategy strategy) { in removePreferredDeviceForStrategy()
155 public AudioDeviceAttributes getPreferredDeviceForStrategy(AudioProductStrategy strategy) { in getPreferredDeviceForStrategy()
159 …public boolean setPreferredDevicesForStrategy(AudioProductStrategy strategy, List<AudioDeviceAttri… in setPreferredDevicesForStrategy()
163 … public List<AudioDeviceAttributes> getPreferredDevicesForStrategy(AudioProductStrategy strategy) { in getPreferredDevicesForStrategy()
610 …void onPreferredDevicesForStrategyChanged(AudioProductStrategy var1, List<AudioDeviceAttributes> v… in onPreferredDevicesForStrategyChanged()
614 … void onPreferredDeviceForStrategyChanged(AudioProductStrategy var1, AudioDeviceAttributes var2); in onPreferredDeviceForStrategyChanged()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioProductStrategy.aidl24 parcelable AudioProductStrategy {
DIAudioPolicyService.aidl34 import android.media.AudioProductStrategy;
315 AudioProductStrategy[] listAudioProductStrategies(); in listAudioProductStrategies()
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp69 return AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr); in matches()
78 return AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr); }); in getStreamTypeForAttributes()
126 if (AudioProductStrategy::attributesMatches(supportedAttr.mAttributes, attr)) { in getVolumeGroupForAttributes()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java33 import android.media.audiopolicy.AudioProductStrategy;
231 for (final AudioProductStrategy productStrategy : in getVolumeGroupIdForLegacyStreamType()
241 AudioProductStrategy.getDefaultAttributes())) in getVolumeGroupIdForLegacyStreamType()
248 for (final AudioProductStrategy productStrategy : in getAudioAttributesForLegacyStreamType()
/frameworks/base/media/java/android/media/
DAudioAttributes.java26 import android.media.audiopolicy.AudioProductStrategy;
1164 if (AudioProductStrategy.getAudioProductStrategies().size() > 0) { in setInternalLegacyStreamType()
1166 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType( in setInternalLegacyStreamType()
1722 if (AudioProductStrategy.getAudioProductStrategies().size() > 0) { in toVolumeStreamType()
1723 return AudioProductStrategy.getLegacyStreamTypeForStrategyWithAudioAttributes(aa); in toVolumeStreamType()
DIAudioService.aidl52 import android.media.audiopolicy.AudioProductStrategy;
150 List<AudioProductStrategy> getAudioProductStrategies(); in getAudioProductStrategies()
DAudioManager.java47 import android.media.audiopolicy.AudioProductStrategy;
1411 return AudioProductStrategy.getVolumeGroupIdForAudioAttributes(attributes, in getVolumeGroupIdForAttributes()
1890 public boolean setPreferredDeviceForStrategy(@NonNull AudioProductStrategy strategy, in setPreferredDeviceForStrategy()
1906 public boolean removePreferredDeviceForStrategy(@NonNull AudioProductStrategy strategy) { in removePreferredDeviceForStrategy()
1931 @NonNull AudioProductStrategy strategy) { in getPreferredDeviceForStrategy()
1951 public boolean setPreferredDevicesForStrategy(@NonNull AudioProductStrategy strategy, in setPreferredDevicesForStrategy()
1984 @NonNull AudioProductStrategy strategy) { in getPreferredDevicesForStrategy()
2019 void onPreferredDeviceForStrategyChanged(@NonNull AudioProductStrategy strategy, in onPreferredDeviceForStrategyChanged()
2049 void onPreferredDevicesForStrategyChanged(@NonNull AudioProductStrategy strategy, in onPreferredDevicesForStrategyChanged()
2194 final AudioProductStrategy strategy = in dispatchPrefDevicesChanged()
[all …]
DAudioSystem.java32 import android.media.audiopolicy.AudioProductStrategy;
1713 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType(stream); in getDevicesForStream()
/frameworks/base/core/jni/
Dandroid_media_AudioProductStrategies.cpp73 JNIEnv *env, jobject *jAudioStrategy, const AudioProductStrategy &strategy) in convertAudioProductStrategiesFromNative()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceBroker.java41 import android.media.audiopolicy.AudioProductStrategy;
190 List<AudioProductStrategy> strategies = AudioProductStrategy.getAudioProductStrategies(); in initRoutingStrategyIds()
193 for (AudioProductStrategy strategy : strategies) { in initRoutingStrategyIds()
521 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType( in updateActiveCommunicationDevice()
DAudioService.java126 import android.media.audiopolicy.AudioProductStrategy;
1049 if (AudioProductStrategy.getAudioProductStrategies().size() > 0) { in AudioService()
1054 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType( in AudioService()
1959 public List<AudioProductStrategy> getAudioProductStrategies() { in getAudioProductStrategies()
1962 return AudioProductStrategy.getAudioProductStrategies(); in getAudioProductStrategies()
6982 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType(stream); in getDeviceSetForStreamDirect()
7435 .anyMatch(aa -> !aa.equals(AudioProductStrategy.getDefaultAttributes())); in ensureValidAttributes()
7488 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType(stream); in getVolumeGroupForStreamType()
7492 return AudioProductStrategy.getVolumeGroupIdForAudioAttributes( in getVolumeGroupForStreamType()
7506 private AudioAttributes mAudioAttributes = AudioProductStrategy.getDefaultAttributes();
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp2046 std::vector<media::AudioProductStrategy>* _aidl_return) { in listAudioProductStrategies()
2056 convertContainer<std::vector<media::AudioProductStrategy>>( in listAudioProductStrategies()
DAudioPolicyService.h226 std::vector<media::AudioProductStrategy>* _aidl_return) override;
/frameworks/base/core/api/
Dsystem-current.txt6168 …O_ROUTING) public static java.util.List<android.media.audiopolicy.AudioProductStrategy> getAudioPr…
6179 …eAttributes getPreferredDeviceForStrategy(@NonNull android.media.audiopolicy.AudioProductStrategy);
6181 …ttributes> getPreferredDevicesForStrategy(@NonNull android.media.audiopolicy.AudioProductStrategy);
6196 … boolean removePreferredDeviceForStrategy(@NonNull android.media.audiopolicy.AudioProductStrategy);
6206 … setPreferredDeviceForStrategy(@NonNull android.media.audiopolicy.AudioProductStrategy, @NonNull a…
6207 …setPreferredDevicesForStrategy(@NonNull android.media.audiopolicy.AudioProductStrategy, @NonNull j…
6247 …ferredDeviceForStrategyChanged(@NonNull android.media.audiopolicy.AudioProductStrategy, @Nullable …
6255 …erredDevicesForStrategyChanged(@NonNull android.media.audiopolicy.AudioProductStrategy, @NonNull j…
6557 public final class AudioProductStrategy implements android.os.Parcelable {
6558 …method @NonNull public static android.media.audiopolicy.AudioProductStrategy createInvalidAudioPro…
[all …]

12