Home
last modified time | relevance | path

Searched refs:mAudioAttributes (Results 1 – 22 of 22) 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.java87 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder() field in Ringtone
130 return AudioAttributes.toLegacyStreamType(mAudioAttributes); in getStreamType()
142 mAudioAttributes = attributes; in setAudioAttributes()
154 return mAudioAttributes; in getAudioAttributes()
372 mLocalPlayer.setAudioAttributes(mAudioAttributes); in setUri()
411 && !mAudioAttributes.areHapticChannelsMuted() && mVolume == 0; in play()
413 AudioAttributes.toLegacyStreamType(mAudioAttributes)) != 0) { in play()
425 mRemotePlayer.playWithVolumeShaping(mRemoteToken, canonicalUri, mAudioAttributes, in play()
507 if (mAudioManager.getStreamVolume(AudioAttributes.toLegacyStreamType(mAudioAttributes)) in playFallbackRingtone()
525 mLocalPlayer.setAudioAttributes(mAudioAttributes); in playFallbackRingtone()
DSoundPool.java565 private AudioAttributes mAudioAttributes; field in SoundPool.Builder
603 mAudioAttributes = attributes; in setAudioAttributes()
608 if (mAudioAttributes == null) { in build()
609 mAudioAttributes = new AudioAttributes.Builder() in build()
612 return new SoundPool(mMaxStreams, mAudioAttributes); in build()
DAudioRecord.java282 private AudioAttributes mAudioAttributes; field in AudioRecord
419 mAudioAttributes = filteredAttr.build(); in AudioRecord()
421 mAudioAttributes = attributes; in AudioRecord()
467 int initResult = native_setup(new WeakReference<AudioRecord>(this), mAudioAttributes, in AudioRecord()
552 return mAudioAttributes; in getAudioAttributes()
1271 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()
156 mAudioAttributes = in.readParcelable(AudioAttributes.class.getClassLoader()); 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.java388 private final AudioAttributes[] mAudioAttributes; field in AudioProductStrategy.AudioAttributesGroup
394 mAudioAttributes = audioAttributes; in AudioAttributesGroup()
406 && mAudioAttributes.equals(thatAag.mAudioAttributes); in equals()
419 return mAudioAttributes.length == 0 ? (new AudioAttributes.Builder().build()) in getAudioAttributes()
420 : mAudioAttributes[0]; in getAudioAttributes()
430 for (final AudioAttributes refAa : mAudioAttributes) { in supportsAttributes()
451 dest.writeInt(mAudioAttributes.length); in writeToParcel()
452 for (AudioAttributes attributes : mAudioAttributes) { in writeToParcel()
486 for (AudioAttributes attribute : mAudioAttributes) { in toString()
/frameworks/av/media/libaudioclient/include/media/
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
DAudioVolumeGroup.h37 mName(name), mGroupId(group), mAudioAttributes(attributes), mStreams(streams) {} in AudioVolumeGroup()
41 AttributesVector getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes()
50 AttributesVector mAudioAttributes; variable
/frameworks/base/services/core/java/com/android/server/audio/
DAudioServiceEvents.java165 final AudioAttributes mAudioAttributes; field in AudioServiceEvents.VolumeEvent
178 mAudioAttributes = null; in VolumeEvent()
191 mAudioAttributes = null; in VolumeEvent()
204 mAudioAttributes = null; in VolumeEvent()
217 mAudioAttributes = null; in VolumeEvent()
230 mAudioAttributes = null; in VolumeEvent()
242 mAudioAttributes = aa; in VolumeEvent()
254 mAudioAttributes = null; in VolumeEvent()
340 .set(MediaMetrics.Property.ATTRIBUTES, mAudioAttributes.toString()) in logMetricEvent()
410 .append(mAudioAttributes.toString()) in eventToString()
DAudioService.java6425 private AudioAttributes mAudioAttributes = AudioProductStrategy.sDefaultAttributes; field in AudioService.VolumeGroupState
6440 mAudioAttributes = aa; in VolumeGroupState()
6458 mIndexMin = AudioSystem.getMinVolumeIndexForAttributes(mAudioAttributes); in VolumeGroupState()
6459 mIndexMax = AudioSystem.getMaxVolumeIndexForAttributes(mAudioAttributes); in VolumeGroupState()
6516 AudioSystem.setVolumeIndexForAttributes(mAudioAttributes, index, device); in setVolumeIndexInt()
/frameworks/base/core/java/android/app/
DNotificationChannel.java252 private AudioAttributes mAudioAttributes = Notification.AUDIO_ATTRIBUTES_DEFAULT; field in NotificationChannel
323 mAudioAttributes = in.readInt() > 0 ? AudioAttributes.CREATOR.createFromParcel(in) : null; in NotificationChannel()
378 if (mAudioAttributes != null) { in writeToParcel()
380 mAudioAttributes.writeToParcel(dest, 0); in writeToParcel()
534 this.mAudioAttributes = audioAttributes; in setSound()
730 return mAudioAttributes; in getAudioAttributes()
1332 + ", mAudioAttributes=" + mAudioAttributes in getFieldsString()
1370 if (mAudioAttributes != null) { in dumpDebug()
1371 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.cpp762 mAudioAttributes = NULL; in Client()
779 if (mAudioAttributes != NULL) { in ~Client()
780 free(mAudioAttributes); in ~Client()
942 mAudioAttributes, mAudioDeviceUpdatedListener); in setDataSource_pre()
1477 if (mAudioAttributes != NULL) { free(mAudioAttributes); } in setAudioAttributes_l()
1478 mAudioAttributes = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in setAudioAttributes_l()
1479 if (mAudioAttributes == NULL) { in setAudioAttributes_l()
1482 unmarshallAudioAttributes(parcel, mAudioAttributes); in setAudioAttributes_l()
1485 mAudioAttributes->usage, mAudioAttributes->content_type, mAudioAttributes->flags, in setAudioAttributes_l()
1486 mAudioAttributes->tags); in setAudioAttributes_l()
[all …]
DMediaPlayerService.h468 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.java166 private AudioAttributes mAudioAttributes; field in PreferencesHelperTest
275 mAudioAttributes = new AudioAttributes.Builder() in setUp()
455 channel2.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); in testChannelXml()
520 channel2.setSound(SOUND_URI, mAudioAttributes); in testChannelXmlForBackup()
594 channel.setSound(SOUND_URI, mAudioAttributes); in testBackupXml_backupCanonicalizedSoundUri()
621 channel.setSound(SOUND_URI, mAudioAttributes); in testRestoreXml_withExistentCanonicalizedSoundUri()
644 channel.setSound(SOUND_URI, mAudioAttributes); in testRestoreXml_withNonExistentCanonicalizedSoundUri_ignoreChannel()
689 channel.setSound(null, mAudioAttributes); in testBackupRestoreXml_withNullSoundUri()
901 channel.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); in testUpdate()
911 channel2.setSound(new Uri.Builder().scheme("test2").build(), mAudioAttributes); in testUpdate()
[all …]
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt8001 Landroid/app/NotificationChannel;->mAudioAttributes:Landroid/media/AudioAttributes;
32460 Landroid/media/Ringtone;->mAudioAttributes:Landroid/media/AudioAttributes;
33278 Landroid/media/SoundPool$Builder;->mAudioAttributes:Landroid/media/AudioAttributes;
54639 Landroid/speech/tts/TextToSpeechService$AudioOutputParams;->mAudioAttributes:Landroid/media/AudioAt…
74198 Landroid/widget/VideoView;->mAudioAttributes:Landroid/media/AudioAttributes;