/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioProductStrategyTest.java | 30 import android.media.audiopolicy.AudioProductStrategy; 59 List<AudioProductStrategy> audioProductStrategies = in testGetProductStrategies() 60 AudioProductStrategy.getAudioProductStrategies(); in testGetProductStrategies() 65 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetProductStrategies() 91 List<AudioProductStrategy> audioProductStrategies = in testAudioAttributesFromStreamTypes() 92 AudioProductStrategy.getAudioProductStrategies(); in testAudioAttributesFromStreamTypes() 99 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType( in testAudioAttributesFromStreamTypes() 108 AudioProductStrategy.getLegacyStreamTypeForStrategyWithAudioAttributes( in testAudioAttributesFromStreamTypes() 114 AudioProductStrategy.getLegacyStreamTypeForStrategyWithAudioAttributes( in testAudioAttributesFromStreamTypes() 126 for (final AudioProductStrategy aps : audioProductStrategies) { in testAudioAttributesFromStreamTypes() [all …]
|
D | AudioVolumeGroupTest.java | 31 import android.media.audiopolicy.AudioProductStrategy; 83 final List<AudioProductStrategy> audioProductStrategies = in testGetVolumeGroups() 107 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetVolumeGroups() 139 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetVolumeGroups()
|
D | AudioVolumeTestUtil.java | 20 import android.media.audiopolicy.AudioProductStrategy; 26 AudioProductStrategy.getDefaultAttributes();
|
D | AudioManagerTest.java | 34 import android.media.audiopolicy.AudioProductStrategy; 70 List<AudioProductStrategy> audioProductStrategies = in testGetAndValidateProductStrategies() 78 for (final AudioProductStrategy audioProductStrategy : audioProductStrategies) { in testGetAndValidateProductStrategies() 138 List<AudioProductStrategy> audioProductStrategies = in testGetAndValidateVolumeGroups() 157 for (final AudioProductStrategy strategy : audioProductStrategies) { in testGetAndValidateVolumeGroups() 186 for (final AudioProductStrategy strategy : audioProductStrategies) { in testGetAndValidateVolumeGroups()
|
D | AudioVolumesTestRule.java | 30 import android.media.audiopolicy.AudioProductStrategy; 62 if (!aa.equals(AudioProductStrategy.getDefaultAttributes())) { in storeAllVolumes() 88 if (!aa.equals(AudioProductStrategy.getDefaultAttributes())) { in restoreAllVolumes()
|
/frameworks/av/media/libaudioclient/ |
D | AudioProductStrategy.cpp | 26 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 …]
|
D | VolumeGroupAttributes.cpp | 31 return AudioProductStrategy::attributesMatchesScore(mAttributes, attributes); in matchesScore()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioProductStrategy.h | 30 class AudioProductStrategy : public Parcelable 33 AudioProductStrategy() {} in AudioProductStrategy() function 34 AudioProductStrategy(const std::string &name, in AudioProductStrategy() function 84 using AudioProductStrategyVector = std::vector<AudioProductStrategy>; 87 ConversionResult<media::AudioProductStrategy> 88 legacy2aidl_AudioProductStrategy(const AudioProductStrategy& legacy); 89 ConversionResult<AudioProductStrategy> 90 aidl2legacy_AudioProductStrategy(const media::AudioProductStrategy& aidl);
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioProductStrategy.java | 43 public final class AudioProductStrategy implements Parcelable { class 74 private static List<AudioProductStrategy> sAudioProductStrategies; 81 public static List<AudioProductStrategy> getAudioProductStrategies() { in getAudioProductStrategies() 99 public static @Nullable AudioProductStrategy getAudioProductStrategyWithId(int id) { in getAudioProductStrategyWithId() 104 for (AudioProductStrategy strategy : sAudioProductStrategies) { in getAudioProductStrategyWithId() 120 public static @NonNull AudioProductStrategy createInvalidAudioProductStrategy(int id) { in createInvalidAudioProductStrategy() 121 return new AudioProductStrategy("dummy strategy", id, new AudioAttributesGroup[0]); in createInvalidAudioProductStrategy() 133 for (final AudioProductStrategy productStrategy : in getAudioAttributesForStrategyWithLegacyStreamType() 134 AudioProductStrategy.getAudioProductStrategies()) { in getAudioAttributesForStrategyWithLegacyStreamType() 154 for (final AudioProductStrategy productStrategy : in getLegacyStreamTypeForStrategyWithAudioAttributes() [all …]
|
D | AudioProductStrategy.aidl | 18 parcelable AudioProductStrategy;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | HearingAidAudioRoutingHelper.java | 24 import android.media.audiopolicy.AudioProductStrategy; 49 public List<AudioProductStrategy> getSupportedStrategies(int[] attributeSdkUsageList) { in getSupportedStrategies() 55 final List<AudioProductStrategy> allStrategies = getAudioProductStrategies(); in getSupportedStrategies() 56 final List<AudioProductStrategy> supportedStrategies = new ArrayList<>(); in getSupportedStrategies() 57 for (AudioProductStrategy strategy : allStrategies) { in getSupportedStrategies() 81 List<AudioProductStrategy> supportedStrategies, AudioDeviceAttributes hearingDevice, in setPreferredDeviceRoutingStrategies() 140 private boolean setPreferredDeviceForStrategies(List<AudioProductStrategy> strategies, in setPreferredDeviceForStrategies() 143 for (AudioProductStrategy strategy : strategies) { in setPreferredDeviceForStrategies() 151 private boolean removePreferredDeviceForStrategies(List<AudioProductStrategy> strategies) { in removePreferredDeviceForStrategies() 153 for (AudioProductStrategy strategy : strategies) { in removePreferredDeviceForStrategies() [all …]
|
D | HearingAidDeviceManager.java | 28 import android.media.audiopolicy.AudioProductStrategy; 357 final List<AudioProductStrategy> supportedStrategies = in setPreferredDeviceRoutingStrategies()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | AudioRoutingUtils.java | 24 import android.media.audiopolicy.AudioProductStrategy; 34 /* package */ static AudioProductStrategy getMediaAudioProductStrategy() { in getMediaAudioProductStrategy() 35 for (AudioProductStrategy strategy : AudioManager.getAudioProductStrategies()) { in getMediaAudioProductStrategy()
|
D | DeviceRouteController.java | 29 import android.media.audiopolicy.AudioProductStrategy; 55 AudioProductStrategy strategyForMedia = AudioRoutingUtils.getMediaAudioProductStrategy(); in createInstance()
|
D | AudioManagerRouteController.java | 35 import android.media.audiopolicy.AudioProductStrategy; 94 @NonNull private final AudioProductStrategy mStrategyForMedia; 125 @NonNull AudioProductStrategy strategyForMedia, in AudioManagerRouteController()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 67 int strategyScore = AudioProductStrategy::NO_MATCH; in matchesScore() 69 int score = AudioProductStrategy::attributesMatchesScore(attrGroup.getAttributes(), attr); in matchesScore() 70 if (score == AudioProductStrategy::MATCH_EQUALS) { in matchesScore() 151 int matchScore = AudioProductStrategy::NO_MATCH; in getProductStrategyForAttributes() 154 if (score == AudioProductStrategy::MATCH_EQUALS) { in getProductStrategyForAttributes() 162 return (matchScore != AudioProductStrategy::MATCH_ON_DEFAULT_SCORE || fallbackOnDefault) ? in getProductStrategyForAttributes() 246 int matchScore = AudioProductStrategy::NO_MATCH; in getVolumeGroupAttributesForAttributes() 251 if (score == AudioProductStrategy::MATCH_EQUALS) { in getVolumeGroupAttributesForAttributes() 260 return (matchScore != AudioProductStrategy::MATCH_ON_DEFAULT_SCORE || fallbackOnDefault) ? in getVolumeGroupAttributesForAttributes()
|
/frameworks/layoutlib/bridge/src/android/media/ |
D | AudioManager.java | 25 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/ |
D | AudioProductStrategy.aidl | 24 parcelable AudioProductStrategy {
|
D | IAudioPolicyService.aidl | 34 import android.media.AudioProductStrategy; 344 AudioProductStrategy[] listAudioProductStrategies(); in listAudioProductStrategies()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | HearingAidAudioRoutingHelperTest.java | 34 import android.media.audiopolicy.AudioProductStrategy; 66 private AudioProductStrategy mAudioStrategy; 86 any(AudioProductStrategy.class)); in setUp()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 33 import android.media.audiopolicy.AudioProductStrategy; 229 for (final AudioProductStrategy productStrategy : in getVolumeGroupIdForLegacyStreamType() 239 AudioProductStrategy.getDefaultAttributes())) in getVolumeGroupIdForLegacyStreamType() 246 for (final AudioProductStrategy productStrategy : in getAudioAttributesForLegacyStreamType()
|
/frameworks/base/media/java/android/media/ |
D | AudioAttributes.java | 26 import android.media.audiopolicy.AudioProductStrategy; 1163 if (AudioProductStrategy.getAudioProductStrategies().size() > 0) { in setInternalLegacyStreamType() 1165 AudioProductStrategy.getAudioAttributesForStrategyWithLegacyStreamType( in setInternalLegacyStreamType() 1759 if (AudioProductStrategy.getAudioProductStrategies().size() > 0) { in toVolumeStreamType() 1760 return AudioProductStrategy.getLegacyStreamTypeForStrategyWithAudioAttributes(aa); in toVolumeStreamType()
|
D | AudioManager.java | 62 import android.media.audiopolicy.AudioProductStrategy; 1514 return AudioProductStrategy.getVolumeGroupIdForAudioAttributes(attributes, in getVolumeGroupIdForAttributes() 2011 public boolean setPreferredDeviceForStrategy(@NonNull AudioProductStrategy strategy, in setPreferredDeviceForStrategy() 2027 public boolean removePreferredDeviceForStrategy(@NonNull AudioProductStrategy strategy) { in removePreferredDeviceForStrategy() 2052 @NonNull AudioProductStrategy strategy) { in getPreferredDeviceForStrategy() 2072 public boolean setPreferredDevicesForStrategy(@NonNull AudioProductStrategy strategy, in setPreferredDevicesForStrategy() 2104 @NonNull AudioProductStrategy strategy) { in getPreferredDevicesForStrategy() 2126 public boolean setDeviceAsNonDefaultForStrategy(@NonNull AudioProductStrategy strategy, in setDeviceAsNonDefaultForStrategy() 2150 public boolean removeDeviceAsNonDefaultForStrategy(@NonNull AudioProductStrategy strategy, in removeDeviceAsNonDefaultForStrategy() 2174 @NonNull AudioProductStrategy strategy) { in getNonDefaultDevicesForStrategy() [all …]
|
/frameworks/base/services/tests/media/mediarouterservicetest/src/com/android/server/media/ |
D | AudioManagerRouteControllerTest.java | 48 import android.media.audiopolicy.AudioProductStrategy; 106 private AudioProductStrategy mMediaAudioProductStrategy;
|
/frameworks/av/media/libaudioclient/tests/ |
D | audioclient_serialization_tests.cpp | 138 AudioProductStrategy aps{name, volumeGroupAttrVector, psId}; in TEST_F() 143 AudioProductStrategy apsCopy; in TEST_F()
|