Home
last modified time | relevance | path

Searched refs:AudioVolumeGroup (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/av/media/libaudioclient/
DAudioVolumeGroup.cpp32 status_t AudioVolumeGroup::readFromParcel(const Parcel *parcel) in readFromParcel()
34 media::AudioVolumeGroup aidl; in readFromParcel()
40 status_t AudioVolumeGroup::writeToParcel(Parcel *parcel) const in writeToParcel()
42 media::AudioVolumeGroup aidl = VALUE_OR_RETURN_STATUS(legacy2aidl_AudioVolumeGroup(*this)); in writeToParcel()
46 ConversionResult<media::AudioVolumeGroup>
47 legacy2aidl_AudioVolumeGroup(const AudioVolumeGroup& legacy) { in legacy2aidl_AudioVolumeGroup()
48 media::AudioVolumeGroup aidl; in legacy2aidl_AudioVolumeGroup()
61 ConversionResult<AudioVolumeGroup>
62 aidl2legacy_AudioVolumeGroup(const media::AudioVolumeGroup& aidl) { in aidl2legacy_AudioVolumeGroup()
63 return AudioVolumeGroup( in aidl2legacy_AudioVolumeGroup()
DAndroid.bp54 "AudioVolumeGroup.cpp",
364 "aidl/android/media/AudioVolumeGroup.aidl",
DAudioSystem.cpp2295 std::vector<media::AudioVolumeGroup> groupsAidl; in listAudioVolumeGroups()
/frameworks/av/media/libaudioclient/include/media/
DAudioVolumeGroup.h29 class AudioVolumeGroup : public Parcelable
32 AudioVolumeGroup() {} in AudioVolumeGroup() function
33 AudioVolumeGroup(const std::string &name, in AudioVolumeGroup() function
54 using AudioVolumeGroupVector = std::vector<AudioVolumeGroup>;
57 ConversionResult<media::AudioVolumeGroup>
58 legacy2aidl_AudioVolumeGroup(const AudioVolumeGroup& legacy);
59 ConversionResult<AudioVolumeGroup>
60 aidl2legacy_AudioVolumeGroup(const media::AudioVolumeGroup& aidl);
/frameworks/base/media/java/android/media/audiopolicy/
DAudioVolumeGroup.java42 public final class AudioVolumeGroup implements Parcelable { class
64 private static List<AudioVolumeGroup> sAudioVolumeGroups;
71 public static List<AudioVolumeGroup> getAudioVolumeGroups() { in getAudioVolumeGroups()
82 private static List<AudioVolumeGroup> initializeAudioVolumeGroups() { in initializeAudioVolumeGroups()
83 ArrayList<AudioVolumeGroup> avgList = new ArrayList<>(); in initializeAudioVolumeGroups()
92 ArrayList<AudioVolumeGroup> groups); in native_list_audio_volume_groups()
99 AudioVolumeGroup(@NonNull String name, int id, in AudioVolumeGroup() method in AudioVolumeGroup
116 AudioVolumeGroup thatAvg = (AudioVolumeGroup) o; in equals()
175 public static final Parcelable.Creator<AudioVolumeGroup> CREATOR =
176 new Parcelable.Creator<AudioVolumeGroup>() {
[all …]
DAudioProductStrategy.java188 if (volumeGroupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in getVolumeGroupIdForAudioAttributes()
194 return AudioVolumeGroup.DEFAULT_VOLUME_GROUP; in getVolumeGroupIdForAudioAttributes()
333 return AudioVolumeGroup.DEFAULT_VOLUME_GROUP; in getVolumeGroupIdForLegacyStreamType()
350 return AudioVolumeGroup.DEFAULT_VOLUME_GROUP; in getVolumeGroupIdForAudioAttributes()
357 if (volumeGroupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in getVolumeGroupIdForAudioAttributesInt()
361 return AudioVolumeGroup.DEFAULT_VOLUME_GROUP; in getVolumeGroupIdForAudioAttributesInt()
DAudioVolumeGroup.aidl18 parcelable AudioVolumeGroup;
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumeGroupTest.java32 import android.media.audiopolicy.AudioVolumeGroup;
67 List<AudioVolumeGroup> audioVolumeGroup = AudioVolumeGroup.getAudioVolumeGroups(); in testGetVolumeGroupsFromNonServiceCaller()
79 final List<AudioVolumeGroup> audioVolumeGroup = mAudioManager.getAudioVolumeGroups(); in testGetVolumeGroups()
87 for (final AudioVolumeGroup avg : audioVolumeGroup) { in testGetVolumeGroups()
89 assertNotEquals(avgId, AudioVolumeGroup.DEFAULT_VOLUME_GROUP); in testGetVolumeGroups()
109 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetVolumeGroups()
141 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetVolumeGroups()
DAudioManagerTest.java35 import android.media.audiopolicy.AudioVolumeGroup;
74 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in testGetAndValidateProductStrategies()
91 volumeGroupId, AudioVolumeGroup.DEFAULT_VOLUME_GROUP); in testGetAndValidateProductStrategies()
94 AudioVolumeGroup audioVolumeGroup = null; in testGetAndValidateProductStrategies()
95 for (final AudioVolumeGroup avg : audioVolumeGroups) { in testGetAndValidateProductStrategies()
135 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in testGetAndValidateVolumeGroups()
143 for (final AudioVolumeGroup audioVolumeGroup : audioVolumeGroups) { in testGetAndValidateVolumeGroups()
159 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetAndValidateVolumeGroups()
189 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in testGetAndValidateVolumeGroups()
284 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in testVolumeGroupCallback()
[all …]
DAudioVolumesTestRule.java31 import android.media.audiopolicy.AudioVolumeGroup;
53 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in storeAllVolumes()
54 for (final AudioVolumeGroup avg : audioVolumeGroups) { in storeAllVolumes()
81 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in restoreAllVolumes()
83 for (final AudioVolumeGroup avg : audioVolumeGroups) { in restoreAllVolumes()
DAudioVolumeGroupChangeHandlerTest.java30 import android.media.audiopolicy.AudioVolumeGroup;
114 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in testCallbackReceived()
118 for (final AudioVolumeGroup audioVolumeGroup : audioVolumeGroups) { in testCallbackReceived()
169 List<AudioVolumeGroup> audioVolumeGroups = mAudioManager.getAudioVolumeGroups(); in testMultipleCallbackReceived()
173 for (final AudioVolumeGroup audioVolumeGroup : audioVolumeGroups) { in testMultipleCallbackReceived()
DAudioProductStrategyTest.java31 import android.media.audiopolicy.AudioVolumeGroup;
81 assertNotEquals(volumeGroupFromStream, AudioVolumeGroup.DEFAULT_VOLUME_GROUP); in testGetProductStrategies()
152 assertNotEquals(volumeGroupFromStream, AudioVolumeGroup.DEFAULT_VOLUME_GROUP); in testAudioAttributesFromStreamTypes()
227 volumeGroupFromStream, AudioVolumeGroup.DEFAULT_VOLUME_GROUP); in testAudioAttributesToStreamTypes()
/frameworks/base/media/java/android/media/
DVolumeInfo.java23 import android.media.audiopolicy.AudioVolumeGroup;
52 private final @Nullable AudioVolumeGroup mVolGroup;
60 AudioVolumeGroup volGroup, int streamType) { in VolumeInfo()
110 public @NonNull AudioVolumeGroup getVolumeGroup() { in getVolumeGroup()
200 private @Nullable AudioVolumeGroup mVolGroup;
216 public Builder(@NonNull AudioVolumeGroup volGroup) { in Builder()
378 mVolGroup = AudioVolumeGroup.CREATOR.createFromParcel(in); in VolumeInfo()
DIAudioService.aidl65 import android.media.audiopolicy.AudioVolumeGroup;
146 List<AudioVolumeGroup> getAudioVolumeGroups(); in getAudioVolumeGroups()
DAudioManager.java63 import android.media.audiopolicy.AudioVolumeGroup;
8638 public static List<AudioVolumeGroup> getAudioVolumeGroups() { in getAudioVolumeGroups()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioVolumeGroupHelperBase.java21 import android.media.audiopolicy.AudioVolumeGroup;
31 public List<AudioVolumeGroup> getAudioVolumeGroups() { in getAudioVolumeGroups()
DAudioService.java186 import android.media.audiopolicy.AudioVolumeGroup;
1033 public List<AudioVolumeGroup> getAudioVolumeGroups() { in getAudioVolumeGroups()
1034 return AudioVolumeGroup.getAudioVolumeGroups(); in getAudioVolumeGroups()
1435 if (groupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP in initVolumeStreamStates()
2188 public List<AudioVolumeGroup> getAudioVolumeGroups() { in getAudioVolumeGroups()
8020 for (final AudioVolumeGroup avg : getAudioVolumeGroups()) { in initVolumeGroupStates()
8045 private void ensureValidAttributes(AudioVolumeGroup avg) { in ensureValidAttributes()
8107 return AudioVolumeGroup.DEFAULT_VOLUME_GROUP; in getVolumeGroupForStreamType()
8117 private final AudioVolumeGroup mAudioVolumeGroup;
8133 private VolumeGroupState(AudioVolumeGroup avg) { in VolumeGroupState()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java34 import android.media.audiopolicy.AudioVolumeGroup;
232 if (volumeGroupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in getVolumeGroupIdForLegacyStreamType()
240 .filter(volumeGroupId -> volumeGroupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) in getVolumeGroupIdForLegacyStreamType()
242 .orElse(AudioVolumeGroup.DEFAULT_VOLUME_GROUP); in getVolumeGroupIdForLegacyStreamType()
656 if (volumeGroup != AudioVolumeGroup.DEFAULT_VOLUME_GROUP in onReceive()
690 if (mVolumeGroupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in registerVolumeGroupCb()
697 if (mVolumeGroupId != AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in unregisterVolumeGroupCb()
710 || mVolumeGroupId == AudioVolumeGroup.DEFAULT_VOLUME_GROUP) { in handleMessage()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioVolumeGroup.aidl25 parcelable AudioVolumeGroup {
DIAudioPolicyService.aidl35 import android.media.AudioVolumeGroup;
348 AudioVolumeGroup[] listAudioVolumeGroups(); in listAudioVolumeGroups()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DVolumeHelperTest.java80 import android.media.audiopolicy.AudioVolumeGroup;
143 private AudioVolumeGroup mAudioMusicVolumeGroup;
263 private AudioVolumeGroup getStreamTypeVolumeGroup(int streamType) { in getStreamTypeVolumeGroup()
266 final List<AudioVolumeGroup> audioVolumeGroups = AudioManager.getAudioVolumeGroups(); in getStreamTypeVolumeGroup()
267 for (AudioVolumeGroup vg : audioVolumeGroups) { in getStreamTypeVolumeGroup()
/frameworks/base/core/jni/
Dandroid_media_AudioVolumeGroups.cpp62 JNIEnv *env, jobject *jGroup, const AudioVolumeGroup &group) in convertAudioVolumeGroupsFromNative()
/frameworks/av/media/libaudioclient/tests/
Daudioclient_serialization_tests.cpp172 AudioVolumeGroup avg{name, groupId, attributesvector, streamsvector}; in TEST_F()
177 AudioVolumeGroup avgCopy; in TEST_F()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h254 std::vector<media::AudioVolumeGroup>* _aidl_return) override;
DAudioPolicyInterfaceImpl.cpp2209 Status AudioPolicyService::listAudioVolumeGroups(std::vector<media::AudioVolumeGroup>* _aidl_return) in listAudioVolumeGroups()
2219 convertContainer<std::vector<media::AudioVolumeGroup>>(groups, in listAudioVolumeGroups()

12