/frameworks/base/core/java/android/os/ |
D | VibrationAttributes.java | 23 import android.media.AudioAttributes; 138 private final AudioAttributes mAudioAttributes; 140 private VibrationAttributes(int usage, int flags, @NonNull AudioAttributes audio) { in VibrationAttributes() 185 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() 204 mAudioAttributes = (AudioAttributes) src.readParcelable( in VibrationAttributes() 205 AudioAttributes.class.getClassLoader()); in VibrationAttributes() 279 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder().build(); 303 public Builder(@NonNull AudioAttributes audio, in Builder() 338 private void setUsage(@NonNull AudioAttributes audio) { in setUsage() 340 case AudioAttributes.USAGE_NOTIFICATION: in setUsage() [all …]
|
D | ExternalVibration.java | 20 import android.media.AudioAttributes; 37 private AudioAttributes mAttrs; 45 public ExternalVibration(int uid, @NonNull String pkg, @NonNull AudioAttributes attrs, in ExternalVibration() 62 private AudioAttributes readAudioAttributes(Parcel in) { in readAudioAttributes() 67 AudioAttributes.Builder builder = new AudioAttributes.Builder(); in readAudioAttributes() 83 public AudioAttributes getAudioAttributes() { in getAudioAttributes() 168 private static void writeAudioAttributes(AudioAttributes attrs, Parcel out, int flags) { in writeAudioAttributes()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioProductStrategy.java | 23 import android.media.AudioAttributes; 124 public static AudioAttributes getAudioAttributesForStrategyWithLegacyStreamType( in getAudioAttributesForStrategyWithLegacyStreamType() 128 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForStrategyWithLegacyStreamType() 133 return new AudioAttributes.Builder() in getAudioAttributesForStrategyWithLegacyStreamType() 134 .setContentType(AudioAttributes.CONTENT_TYPE_UNKNOWN) in getAudioAttributesForStrategyWithLegacyStreamType() 135 .setUsage(AudioAttributes.USAGE_UNKNOWN).build(); in getAudioAttributesForStrategyWithLegacyStreamType() 145 @NonNull AudioAttributes audioAttributes) { in getLegacyStreamTypeForStrategyWithAudioAttributes() 218 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() 220 return mAudioAttributesGroups.length == 0 ? (new AudioAttributes.Builder().build()) in getAudioAttributes() 230 public @Nullable AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() [all …]
|
D | AudioVolumeGroup.java | 21 import android.media.AudioAttributes; 56 private final AudioAttributes[] mAudioAttributes; 98 @NonNull AudioAttributes[] audioAttributes, in AudioVolumeGroup() 123 public @NonNull List<AudioAttributes> getAudioAttributes() { in getAudioAttributes() 158 for (AudioAttributes attributes : mAudioAttributes) { in writeToParcel() 159 attributes.writeToParcel(dest, flags | AudioAttributes.FLATTEN_TAGS/*flags*/); in writeToParcel() 175 AudioAttributes[] audioAttributes = new AudioAttributes[nbAttributes]; 177 audioAttributes[index] = AudioAttributes.CREATOR.createFromParcel(in); 202 for (AudioAttributes attribute : mAudioAttributes) { in toString()
|
D | AudioMixingRule.java | 23 import android.media.AudioAttributes; 115 final AudioAttributes mAttr; 122 AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion() 160 public AudioAttributes getAudioAttributes() { return mAttr; } in getAudioAttributes() 336 public Builder addRule(AudioAttributes attrToMatch, int rule) in addRule() 364 public Builder excludeRule(AudioAttributes attrToMatch, int rule) in excludeRule() 477 if (!(property instanceof AudioAttributes)) { in checkAddRuleObjInternal() 480 return addRuleInternal((AudioAttributes) property, null, rule); in checkAddRuleObjInternal() 508 private Builder addRuleInternal(AudioAttributes attrToMatch, Integer intProp, int rule) in addRuleInternal() 611 AudioAttributes attr = null; in addRuleFromParcel() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioFocusRequest.java | 222 private final static AudioAttributes FOCUS_DEFAULT_ATTR = new AudioAttributes.Builder() 223 .setUsage(AudioAttributes.USAGE_MEDIA).build(); 230 private final @NonNull AudioAttributes mAttr; 235 AudioAttributes attr, int focusGain, int flags) { in AudioFocusRequest() 287 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() 353 private AudioAttributes mAttr = FOCUS_DEFAULT_ATTR; 483 public @NonNull Builder setAudioAttributes(@NonNull AudioAttributes attributes) { in setAudioAttributes() 574 mAttr = new AudioAttributes.Builder(mAttr).addBundle(extraInfo).build(); in build()
|
D | HwAudioSource.java | 36 private final AudioAttributes mAudioAttributes; 48 private HwAudioSource(@NonNull AudioDeviceInfo device, @NonNull AudioAttributes attributes) { in HwAudioSource() 178 private AudioAttributes mAudioAttributes; 193 public @NonNull Builder setAudioAttributes(@NonNull AudioAttributes attributes) { in setAudioAttributes() 220 mAudioAttributes = new AudioAttributes.Builder() in build() 221 .setUsage(AudioAttributes.USAGE_MEDIA) in build()
|
D | IRingtonePlayer.aidl | 19 import android.media.AudioAttributes; 31 … oneway void play(IBinder token, in Uri uri, in AudioAttributes aa, float volume, boolean looping); in play() 32 oneway void playWithVolumeShaping(IBinder token, in Uri uri, in AudioAttributes aa, in playWithVolumeShaping() 39 oneway void playAsync(in Uri uri, in UserHandle user, boolean looping, in AudioAttributes aa); in playAsync()
|
D | IAudioService.aidl | 20 import android.media.AudioAttributes; 60 oneway void playerAttributes(in int piid, in AudioAttributes attr); in playerAttributes() 103 …void setVolumeIndexForAttributes(in AudioAttributes aa, int index, int flags, String callingPackag… in setVolumeIndexForAttributes() 105 int getVolumeIndexForAttributes(in AudioAttributes aa); in getVolumeIndexForAttributes() 107 int getMaxVolumeIndexForAttributes(in AudioAttributes aa); in getMaxVolumeIndexForAttributes() 109 int getMinVolumeIndexForAttributes(in AudioAttributes aa); in getMinVolumeIndexForAttributes() 169 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, in requestAudioFocus() 173 int abandonAudioFocus(IAudioFocusDispatcher fd, String clientId, in AudioAttributes aa, in abandonAudioFocus() 247 int getFocusRampTimeMs(in int focusGain, in AudioAttributes attr); in getFocusRampTimeMs() 288 List<AudioDeviceAttributes> getDevicesForAttributes(in AudioAttributes attributes); in getDevicesForAttributes()
|
D | AudioAttributes.java | 73 public final class AudioAttributes implements Parcelable { class 518 private AudioAttributes() { in AudioAttributes() method in AudioAttributes 680 public Builder(AudioAttributes aa) { in Builder() 694 public AudioAttributes build() { in build() 695 AudioAttributes aa = new AudioAttributes(); in build() 845 flags &= AudioAttributes.FLAG_ALL_API_SET; in setFlags() 883 mFlags = flags & AudioAttributes.FLAG_ALL; in replaceFlags() 953 AudioAttributes attributes = in setInternalLegacyStreamType() 1136 private AudioAttributes(Parcel in) { in AudioAttributes() method in AudioAttributes 1165 public static final @android.annotation.NonNull Parcelable.Creator<AudioAttributes> CREATOR [all …]
|
D | Ringtone.java | 84 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder() 85 .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE) 86 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 112 setAudioAttributes(new AudioAttributes.Builder() in setStreamType() 126 return AudioAttributes.toLegacyStreamType(mAudioAttributes); in getStreamType() 133 public void setAudioAttributes(AudioAttributes attributes) in setAudioAttributes() 149 public AudioAttributes getAudioAttributes() { in getAudioAttributes() 372 AudioAttributes.toLegacyStreamType(mAudioAttributes)) != 0) { in play() 462 if (mAudioManager.getStreamVolume(AudioAttributes.toLegacyStreamType(mAudioAttributes)) in playFallbackRingtone()
|
D | AudioFocusInfo.java | 36 private final @NonNull AudioAttributes mAttributes; 60 public AudioFocusInfo(AudioAttributes aa, int clientUid, String clientId, String packageName, in AudioFocusInfo() 62 mAttributes = aa == null ? new AudioAttributes.Builder().build() : aa; in AudioFocusInfo() 87 public @NonNull AudioAttributes getAttributes() { in getAttributes() 201 AudioAttributes.CREATOR.createFromParcel(in), //AudioAttributes aa
|
D | SoundPool.java | 125 private final AudioAttributes mAttributes; 144 new AudioAttributes.Builder().setInternalLegacyStreamType(streamType).build()); in SoundPool() 148 private SoundPool(int maxStreams, AudioAttributes attributes) { in SoundPool() 555 private AudioAttributes mAudioAttributes; 588 public Builder setAudioAttributes(AudioAttributes attributes) in setAudioAttributes() 599 mAudioAttributes = new AudioAttributes.Builder() in build() 600 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in build()
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumesTestBase.java | 21 import android.media.AudioAttributes; 39 public static final AudioAttributes sDefaultAttributes = 42 public static final AudioAttributes sInvalidAttributes = new AudioAttributes.Builder().build(); 64 AudioAttributes avgAttributes = sDefaultAttributes; in storeAllVolumes() 65 for (final AudioAttributes aa : avg.getAudioAttributes()) { in storeAllVolumes() 90 AudioAttributes avgAttributes = sDefaultAttributes; in restoreAllVolumes() 91 for (final AudioAttributes aa : avg.getAudioAttributes()) { in restoreAllVolumes()
|
D | AudioManagerTest.java | 23 import android.media.AudioAttributes; 50 AudioAttributes attributes = audioProductStrategy.getAudioAttributes(); in testGetAndValidateProductStrategies() 77 for (final AudioAttributes aa : audioVolumeGroup.getAudioAttributes()) { in testGetAndValidateProductStrategies() 115 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testGetAndValidateVolumeGroups() 120 for (final AudioAttributes aa : avgAttributes) { in testGetAndValidateVolumeGroups() 184 AudioAttributes nullAttributes = null; in testSetGetVolumePerAttributesWithInvalidAttributes() 201 for (int usage : AudioAttributes.SDK_USAGES) { in testSetGetVolumePerAttributes() 202 if (usage == AudioAttributes.USAGE_UNKNOWN) { in testSetGetVolumePerAttributes() 205 AudioAttributes aaForUsage = new AudioAttributes.Builder().setUsage(usage).build(); in testSetGetVolumePerAttributes() 267 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testVolumeGroupCallback() [all …]
|
D | AudioProductStrategyTest.java | 22 import android.media.AudioAttributes; 46 AudioAttributes aa = aps.getAudioAttributes(); in testGetProductStrategies() 75 AudioAttributes aaFromStreamType = in testAudioAttributesFromStreamTypes() 104 AudioAttributes aaFromAps = in testAudioAttributesFromStreamTypes() 148 for (int usage : AudioAttributes.SDK_USAGES) { in testAudioAttributesToStreamTypes() 149 AudioAttributes aaForUsage = new AudioAttributes.Builder().setUsage(usage).build(); in testAudioAttributesToStreamTypes()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AudioRestrictionManager.java | 22 import android.media.AudioAttributes; 46 for (int usage : AudioAttributes.SDK_USAGES) { 47 final int suppressionBehavior = AudioAttributes.SUPPRESSIBLE_USAGES.get(usage); 48 if (suppressionBehavior == AudioAttributes.SUPPRESSIBLE_NOTIFICATION || 49 suppressionBehavior == AudioAttributes.SUPPRESSIBLE_CALL || 50 suppressionBehavior == AudioAttributes.SUPPRESSIBLE_ALARM) { 53 } else if (suppressionBehavior != AudioAttributes.SUPPRESSIBLE_MEDIA && 54 suppressionBehavior != AudioAttributes.SUPPRESSIBLE_SYSTEM && 55 suppressionBehavior != AudioAttributes.SUPPRESSIBLE_NEVER) { 164 pw.print(" usage="); pw.print(AudioAttributes.usageToString(usage)); in dump()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | VibratorHelper.java | 21 import android.media.AudioAttributes; 40 private static final AudioAttributes STATUS_BAR_VIBRATION_ATTRIBUTES = 41 new AudioAttributes.Builder() 42 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 43 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioAttributes.h | 27 class AudioAttributes : public Parcelable 30 AudioAttributes() = default; 31 AudioAttributes(const audio_attributes_t &attributes) : mAttributes(attributes) {} // NOLINT in AudioAttributes() function 32 AudioAttributes(volume_group_t groupId, in AudioAttributes() function
|
D | AudioProductStrategy.h | 32 AudioProductStrategy(const std::string &name, const std::vector<AudioAttributes> &attributes, in AudioProductStrategy() 37 std::vector<AudioAttributes> getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes() 59 std::vector<AudioAttributes> mAudioAttributes;
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 23 import android.media.AudioAttributes; 769 { AudioAttributes.USAGE_MEDIA, AudioAttributes.USAGE_GAME }; 777 protected static int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() 779 case AudioAttributes.USAGE_MEDIA: in getFocusRampTimeMs() 780 case AudioAttributes.USAGE_GAME: in getFocusRampTimeMs() 782 case AudioAttributes.USAGE_ALARM: in getFocusRampTimeMs() 783 case AudioAttributes.USAGE_NOTIFICATION_RINGTONE: in getFocusRampTimeMs() 784 case AudioAttributes.USAGE_ASSISTANT: in getFocusRampTimeMs() 785 case AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY: in getFocusRampTimeMs() 786 case AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: in getFocusRampTimeMs() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 21 import android.media.AudioAttributes; 52 batteryChannel.setSound(Uri.parse("file://" + soundPath), new AudioAttributes.Builder() in createAll() 53 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) in createAll() 54 .setUsage(AudioAttributes.USAGE_NOTIFICATION_EVENT) in createAll() 120 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in createScreenshotChannel()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | ExternalVibrationTest.java | 23 import android.media.AudioAttributes; 33 AudioAttributes audio = new AudioAttributes.Builder().build(); in testSerialization()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/template/ |
D | AudioTestHarnessTemplateAndroidTest.java | 19 import android.media.AudioAttributes; 90 new AudioAttributes.Builder() in playAudioFile() 91 .setContentType(AudioAttributes.CONTENT_TYPE_MUSIC) in playAudioFile() 92 .setUsage(AudioAttributes.USAGE_MEDIA) in playAudioFile()
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | ProductStrategy.h | 43 struct AudioAttributes { struct 49 using AudioAttributesVector = std::vector<AudioAttributes>; argument 54 void addAttributes(const AudioAttributes &audioAttributes); 56 std::vector<android::AudioAttributes> listAudioAttributes() const;
|