Home
last modified time | relevance | path

Searched refs:mAudioAttributes (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/media/java/android/media/
DHwAudioSource.java38 private final AudioAttributes mAudioAttributes; field in HwAudioSource
62 mAudioAttributes = attributes; in HwAudioSource()
145 mAudioAttributes); in start()
217 private AudioAttributes mAudioAttributes; field in HwAudioSource.Builder
234 mAudioAttributes = attributes; in setAudioAttributes()
258 if (mAudioAttributes == null) { in build()
259 mAudioAttributes = new AudioAttributes.Builder() in build()
263 return new HwAudioSource(mAudioDeviceInfo, mAudioAttributes); in build()
DRingtone.java88 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder() field in Ringtone
132 return AudioAttributes.toLegacyStreamType(mAudioAttributes); in getStreamType()
157 mAudioAttributes = attributes; in setAudioAttributesField()
207 mLocalPlayer.setAudioAttributes(mAudioAttributes); in createLocalMediaPlayer()
250 return mAudioAttributes; in getAudioAttributes()
482 && !mAudioAttributes.areHapticChannelsMuted() && mVolume == 0; in play()
484 AudioAttributes.toLegacyStreamType(mAudioAttributes)) != 0) { in play()
496 mRemotePlayer.playWithVolumeShaping(mRemoteToken, canonicalUri, mAudioAttributes, in play()
578 int streamType = AudioAttributes.toLegacyStreamType(mAudioAttributes); in playFallbackRingtone()
604 mLocalPlayer.setAudioAttributes(mAudioAttributes); in playFallbackRingtone()
DSoundPool.java557 private AudioAttributes mAudioAttributes; field in SoundPool.Builder
595 mAudioAttributes = attributes; in setAudioAttributes()
600 if (mAudioAttributes == null) { in build()
601 mAudioAttributes = new AudioAttributes.Builder() in build()
604 return new SoundPool(mMaxStreams, mAudioAttributes); in build()
DAudioRecord.java276 private AudioAttributes mAudioAttributes; field in AudioRecord
418 mAudioAttributes = attributes; in AudioRecord()
431 audioParamCheck(mAudioAttributes.getCapturePreset(), rate, encoding); in AudioRecord()
463 int initResult = native_setup(new WeakReference<AudioRecord>(this), mAudioAttributes, in AudioRecord()
547 return mAudioAttributes; in getAudioAttributes()
1336 return (mAudioAttributes.getAllFlags() & AudioAttributes.FLAG_CAPTURE_PRIVATE) != 0; in isPrivacySensitive()
/frameworks/base/media/java/android/media/musicrecognition/
DRecognitionRequest.java40 @NonNull private final AudioAttributes mAudioAttributes; field in RecognitionRequest
47 mAudioAttributes = requireNonNull(b.mAudioAttributes); in RecognitionRequest()
56 return mAudioAttributes; in getAudioAttributes()
88 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder() field in RecognitionRequest.Builder
98 mAudioAttributes = audioAttributes; in setAudioAttributes()
148 dest.writeParcelable(mAudioAttributes, flags); in writeToParcel()
156mAudioAttributes = in.readParcelable(AudioAttributes.class.getClassLoader(), android.media.AudioAt… in RecognitionRequest()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioVolumeGroup.java56 private final AudioAttributes[] mAudioAttributes; field in AudioVolumeGroup
105 mAudioAttributes = audioAttributes; in AudioVolumeGroup()
117 && mAudioAttributes.equals(thatAvg.mAudioAttributes); in equals()
124 return Arrays.asList(mAudioAttributes); in getAudioAttributes()
157 dest.writeInt(mAudioAttributes.length); in writeToParcel()
158 for (AudioAttributes attributes : mAudioAttributes) { in writeToParcel()
202 for (AudioAttributes attribute : mAudioAttributes) { in toString()
DAudioProductStrategy.java444 private final AudioAttributes[] mAudioAttributes; field in AudioProductStrategy.AudioAttributesGroup
450 mAudioAttributes = audioAttributes; in AudioAttributesGroup()
462 && mAudioAttributes.equals(thatAag.mAudioAttributes); in equals()
475 return mAudioAttributes.length == 0 ? (new AudioAttributes.Builder().build()) in getAudioAttributes()
476 : mAudioAttributes[0]; in getAudioAttributes()
486 for (final AudioAttributes refAa : mAudioAttributes) { in supportsAttributes()
507 dest.writeInt(mAudioAttributes.length); in writeToParcel()
508 for (AudioAttributes attributes : mAudioAttributes) { in writeToParcel()
542 for (AudioAttributes attribute : mAudioAttributes) { in toString()
/frameworks/av/media/libaudioclient/include/media/
DAudioVolumeGroup.h37 mName(name), mGroupId(group), mAudioAttributes(attributes), mStreams(streams) {} in AudioVolumeGroup()
41 AttributesVector getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes()
50 AttributesVector mAudioAttributes; variable
DAudioProductStrategy.h36 mName(name), mAudioAttributes(attributes), mId(id) {} in AudioProductStrategy()
39 std::vector<AudioAttributes> getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes()
61 std::vector<AudioAttributes> mAudioAttributes; variable
/frameworks/base/core/java/android/app/
DNotificationChannel.java257 private AudioAttributes mAudioAttributes = Notification.AUDIO_ATTRIBUTES_DEFAULT; field in NotificationChannel
329 mAudioAttributes = in.readInt() > 0 ? AudioAttributes.CREATOR.createFromParcel(in) : null; in NotificationChannel()
384 if (mAudioAttributes != null) { in writeToParcel()
386 mAudioAttributes.writeToParcel(dest, 0); in writeToParcel()
538 this.mAudioAttributes = audioAttributes; in setSound()
727 return mAudioAttributes; in getAudioAttributes()
1311 + ", mAudioAttributes=" + mAudioAttributes in getFieldsString()
1348 if (mAudioAttributes != null) { in dumpDebug()
1349 mAudioAttributes.dumpDebug(proto, NotificationChannelProto.AUDIO_ATTRIBUTES); in dumpDebug()
/frameworks/base/core/jni/
Dandroid_media_AudioProductStrategies.cpp62 jfieldID mAudioAttributes; member
247 gAudioAttributesGroupsFields.mAudioAttributes = GetFieldIDOrDie( in register_android_media_AudioProductStrategies()
/frameworks/base/core/java/android/widget/
DVideoView.java141 private AudioAttributes mAudioAttributes; field in VideoView
168 mAudioAttributes = new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA) in VideoView()
324 mAudioAttributes = attributes; in setAudioAttributes()
384 mAudioManager.requestAudioFocus(null, mAudioAttributes, mAudioFocusType, 0 /*flags*/); in openVideo()
414 mMediaPlayer.setAudioAttributes(mAudioAttributes); in openVideo()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp776 mAudioAttributes = NULL; in Client()
793 if (mAudioAttributes != NULL) { in ~Client()
794 free(mAudioAttributes); in ~Client()
956 mAudioAttributes, mAudioDeviceUpdatedListener); in setDataSource_pre()
1491 if (mAudioAttributes != NULL) { free(mAudioAttributes); } in setAudioAttributes_l()
1492 mAudioAttributes = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in setAudioAttributes_l()
1493 if (mAudioAttributes == NULL) { in setAudioAttributes_l()
1496 unmarshallAudioAttributes(parcel, mAudioAttributes); in setAudioAttributes_l()
1499 mAudioAttributes->usage, mAudioAttributes->content_type, mAudioAttributes->flags, in setAudioAttributes_l()
1500 mAudioAttributes->tags); in setAudioAttributes_l()
[all …]
DMediaPlayerService.h474 audio_attributes_t * mAudioAttributes; variable
/frameworks/base/core/java/android/speech/tts/
DAudioPlaybackQueueItem.java59 mContext, mUri, null, mAudioParams.mAudioAttributes, in run()
DBlockingAudioTrack.java221 AudioTrack audioTrack = new AudioTrack(mAudioParams.mAudioAttributes, in createStreamingAudioTrack()
DTextToSpeechService.java719 public final AudioAttributes mAudioAttributes; field in TextToSpeechService.AudioOutputParams
726 mAudioAttributes = null; in AudioOutputParams()
734 mAudioAttributes = audioAttributes; in AudioOutputParams()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java102 private AudioAttributes mAudioAttributes; field in RankingHelperTest
196 mAudioAttributes = new AudioAttributes.Builder() in setUp()
DPreferencesHelperTest.java181 private AudioAttributes mAudioAttributes; field in PreferencesHelperTest
298 mAudioAttributes = new AudioAttributes.Builder() in setUp()
488 channel2.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); in testChannelXml()
552 channel2.setSound(SOUND_URI, mAudioAttributes); in testChannelXmlForBackup()
1281 channel.setSound(SOUND_URI, mAudioAttributes); in testBackupXml_backupCanonicalizedSoundUri()
1308 channel.setSound(SOUND_URI, mAudioAttributes); in testRestoreXml_withExistentCanonicalizedSoundUri()
1330 channel.setSound(SOUND_URI, mAudioAttributes); in testRestoreXml_withNonExistentCanonicalizedSoundUri()
1380 channel.setSound(null, mAudioAttributes); in testBackupRestoreXml_withNullSoundUri()
1584 channel.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); in testUpdate()
1594 channel2.setSound(new Uri.Builder().scheme("test2").build(), mAudioAttributes); in testUpdate()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java7506 private AudioAttributes mAudioAttributes = AudioProductStrategy.getDefaultAttributes(); field in AudioService.VolumeGroupState
7523 if (!aa.equals(mAudioAttributes)) { in VolumeGroupState()
7524 mAudioAttributes = aa; in VolumeGroupState()
7544 mIndexMin = AudioSystem.getMinVolumeIndexForAttributes(mAudioAttributes); in VolumeGroupState()
7545 mIndexMax = AudioSystem.getMaxVolumeIndexForAttributes(mAudioAttributes); in VolumeGroupState()
7711 AudioSystem.setVolumeIndexForAttributes(mAudioAttributes, index, device); in setVolumeIndexInt()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt8001 Landroid/app/NotificationChannel;->mAudioAttributes:Landroid/media/AudioAttributes;
29582 Landroid/media/Ringtone;->mAudioAttributes:Landroid/media/AudioAttributes;
30400 Landroid/media/SoundPool$Builder;->mAudioAttributes:Landroid/media/AudioAttributes;
51316 Landroid/speech/tts/TextToSpeechService$AudioOutputParams;->mAudioAttributes:Landroid/media/AudioAt…
70875 Landroid/widget/VideoView;->mAudioAttributes:Landroid/media/AudioAttributes;