Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioContextInfo.java44 private final AudioAttributes[] mAudioAttributes; field in CarAudioContextInfo
52 mAudioAttributes = audioAttributes; in CarAudioContextInfo()
70 return mAudioAttributes; in getAudioAttributes()
77 .append(Arrays.toString(mAudioAttributes)).toString(); in toString()
84 for (int index = 0; index < mAudioAttributes.length; index++) { in dump()
85 writer.println(mAudioAttributes[index]); in dump()
95 for (int index = 0; index < mAudioAttributes.length; index++) { in dumpProto()
96 dumpCarAudioAttributesProto(mAudioAttributes[index], in dumpProto()
124 && audioAttributesMatch(info.mAudioAttributes); in equals()
128 if (mAudioAttributes.length != audioAttributes.length) { in audioAttributesMatch()
[all …]
DCoreAudioVolumeGroup.java56 private final AudioAttributes mAudioAttributes; field in CoreAudioVolumeGroup
74 mAudioAttributes = CoreAudioHelper.selectAttributesForVolumeGroupName(name); in CoreAudioVolumeGroup()
75 mAmId = CoreAudioHelper.getVolumeGroupIdForAudioAttributes(mAudioAttributes); in CoreAudioVolumeGroup()
77 mMinGainIndex = mAudioManager.getMinVolumeIndexForAttributes(mAudioAttributes); in CoreAudioVolumeGroup()
78 mMaxGainIndex = mAudioManager.getMaxVolumeIndexForAttributes(mAudioAttributes); in CoreAudioVolumeGroup()
100 return mAudioManager.getVolumeIndexForAttributes(mAudioAttributes); in getAmCurrentGainIndex()
DCarAudioContext.java794 private final AudioAttributes mAudioAttributes; field in CarAudioContext.AudioAttributesWrapper
799 mAudioAttributes = audioAttributes; in AudioAttributesWrapper()
806 mAudioAttributes = audioAttributes; in AudioAttributesWrapper()
827 : audioAttributeMatches(mAudioAttributes, that.mAudioAttributes); in equals()
833 ? mAudioAttributes.getSystemUsage() : mCarAudioContextId); in hashCode()
838 return mAudioAttributes.toString(); in toString()
845 return mAudioAttributes; in getAudioAttributes()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/
DAudioAttributesWrapper.java30 private final AudioAttributes mAudioAttributes; field in AudioAttributesWrapper
33 mAudioAttributes = audioAttributes; in AudioAttributesWrapper()
45 return mAudioAttributes.getSystemUsage() == that.mAudioAttributes.getSystemUsage(); in equals()
50 return Integer.hashCode(mAudioAttributes.getSystemUsage()); in hashCode()
55 return mAudioAttributes.toString(); in toString()
62 return mAudioAttributes; in getAudioAttributes()
/packages/services/Car/car-lib/src/android/car/media/
DCarVolumeGroupInfo.java58 private final List<AudioAttributes> mAudioAttributes; field in CarVolumeGroupInfo
90 mAudioAttributes = Objects.requireNonNull(audioAttributes, in CarVolumeGroupInfo()
133 this.mAudioAttributes = audioAttributes; in CarVolumeGroupInfo()
239 return mAudioAttributes; in getAudioAttributes()
288 .append(mAudioAttributes); in toString()
306 dest.writeParcelableList(mAudioAttributes, flags); in writeToParcel()
341 && Objects.equals(mAudioAttributes, that.mAudioAttributes) in equals()
351 mMinVolumeGainIndex, mIsMuted, mIsBlocked, mIsAttenuated, mAudioAttributes); in hashCode()
402 private List<AudioAttributes> mAudioAttributes = new ArrayList<>(); field in CarVolumeGroupInfo.Builder
427 mAudioAttributes = info.mAudioAttributes; in Builder()
[all …]
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/tts/
DTextToSpeechHelper.java78 private final AudioAttributes mAudioAttributes; field in TextToSpeechHelper
111 mAudioAttributes = new AudioAttributes.Builder() in TextToSpeechHelper()
116 .setAudioAttributes(mAudioAttributes) in TextToSpeechHelper()
128 mTextToSpeechEngine.setAudioAttributes(mAudioAttributes); in maybeInitAndKeepAlive()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioZoneInputFragment.java77 private final AudioAttributes mAudioAttributes; field in CarAudioZoneInputFragment
84 mAudioAttributes = new AudioAttributes.Builder() in CarAudioZoneInputFragment()
163 .setAudioAttributes(mAudioAttributes) in playAudio()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DAudioRoutesManagerTest.java91 private AudioAttributes mAudioAttributes; field in AudioRoutesManagerTest
206 .thenReturn(new ArrayList<>(Collections.singleton(mAudioAttributes))); in initMocks()
207 when(mAudioAttributes.getUsage()).thenReturn(USAGE); in initMocks()