Home
last modified time | relevance | path

Searched refs:CarAudioContextInfo (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextInfoTest.java56 new CarAudioContextInfo(/* audioAttributes= */ null, in constructor_withNullAttributes_fails()
67 new CarAudioContextInfo(new AudioAttributes[0], in constructor_withEmptyAudioAttributes_fails()
78 new CarAudioContextInfo(TEST_AUDIO_ATTRIBUTES_ARRAY, in constructor_withNullName_fails()
89 new CarAudioContextInfo(TEST_AUDIO_ATTRIBUTES_ARRAY, in constructor_withEmptyName_fails()
100 new CarAudioContextInfo(TEST_AUDIO_ATTRIBUTES_ARRAY, in constructor_withNegativeId_fails()
110 CarAudioContextInfo info = new CarAudioContextInfo( in getId_withValidId()
119 CarAudioContextInfo info = new CarAudioContextInfo(TEST_AUDIO_ATTRIBUTES_ARRAY, in geName_withValidName()
128 CarAudioContextInfo info = new CarAudioContextInfo(TEST_AUDIO_ATTRIBUTES_ARRAY, in geAudioAttributes_withValidAudioAttributes()
138 CarAudioContextInfo info = new CarAudioContextInfo(TEST_AUDIO_ATTRIBUTES_ARRAY, in toString_withValidParameters()
152 CarAudioContextInfo info1 = new CarAudioContextInfo(TEST_ALL_AUDIO_ATTRIBUTES_ARRAY, in equals_forSameInfo()
[all …]
DCoreAudioRoutingUtils.java67 public static final CarAudioContextInfo MEDIA_CONTEXT_INFO;
79 public static final CarAudioContextInfo NAV_CONTEXT_INFO;
89 public static final CarAudioContextInfo OEM_CONTEXT_INFO;
300 MEDIA_CONTEXT_INFO = new CarAudioContextInfo(musicAttributesArray, MUSIC_CONTEXT_NAME,
302 NAV_CONTEXT_INFO = new CarAudioContextInfo(navAttributesArray, NAV_CONTEXT_NAME,
304 OEM_CONTEXT_INFO = new CarAudioContextInfo(oemAttributesArray, OEM_CONTEXT_NAME,
320 public static List<CarAudioContextInfo> getCarAudioContextInfos() { in getCarAudioContextInfos()
321 List<CarAudioContextInfo> carAudioContextInfos = new ArrayList<>(3); in getCarAudioContextInfos()
DCarAudioContextTest.java772 List<CarAudioContextInfo> contextInfos = CarAudioContext.getAllContextsInfo(); in getAllContextsInfo()
774 for (CarAudioContextInfo info : contextInfos) { in getAllContextsInfo()
786 List<CarAudioContextInfo> contextInfos = CarAudioContext.getAllContextsInfo(); in getAllContextsInfo_sameSizeAsGetAllContextsIds()
859 List<CarAudioContextInfo> carContextInfo = CarAudioContext.getAllCarSystemContextsInfo(); in getAllCarSystemContextInfo_verifyContents()
863 for (CarAudioContextInfo info : carContextInfo) { in getAllCarSystemContextInfo_verifyContents()
874 List<CarAudioContextInfo> nonCarContextInfo = in getAllNonCarSystemContextInfo_verifyContents()
879 for (CarAudioContextInfo info : nonCarContextInfo) { in getAllNonCarSystemContextInfo_verifyContents()
975 List<CarAudioContextInfo> audioContextInfos = CoreAudioRoutingUtils in getContextsInfo()
DCarVolumeTest.java720 for (CarAudioContextInfo info : CarAudioContext.getAllContextsInfo()) { in getAllAudioAttributes()
DCarAudioZoneConfigUnitTest.java581 CarAudioContext carAudioContext = new CarAudioContext(List.of(new CarAudioContextInfo( in validateVolumeGroups_withUnsupportedAudioContext_fails()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioContext.java185 private static final CarAudioContextInfo CAR_CONTEXT_INFO_MUSIC =
186 new CarAudioContextInfo(new AudioAttributes[] {
192 private static final CarAudioContextInfo CAR_CONTEXT_INFO_NAVIGATION =
193 new CarAudioContextInfo(new AudioAttributes[] {
198 private static final CarAudioContextInfo CAR_CONTEXT_INFO_VOICE_COMMAND =
199 new CarAudioContextInfo(new AudioAttributes[] {
204 private static final CarAudioContextInfo CAR_CONTEXT_INFO_CALL_RING =
205 new CarAudioContextInfo(new AudioAttributes[] {
209 private static final CarAudioContextInfo CAR_CONTEXT_INFO_CALL =
210 new CarAudioContextInfo(new AudioAttributes[] {
[all …]
DCarAudioContextInfo.java39 final class CarAudioContextInfo { class
46 CarAudioContextInfo(AudioAttributes[] audioAttributes, String name, in CarAudioContextInfo() method in CarAudioContextInfo
117 if (!(other instanceof CarAudioContextInfo)) { in equals()
121 CarAudioContextInfo info = (CarAudioContextInfo) other; in equals()
DCarAudioZonesHelper.java149 private final List<CarAudioContextInfo> mCarAudioContextInfos = new ArrayList<>();
315 CarAudioContextInfo info = mCarAudioContextInfos.get(index); in loadCarAudioContexts()
341 CarAudioContextInfo context = null; in parseCarAudioContext()
358 context = new CarAudioContextInfo(attributes.toArray(new AudioAttributes[0]), in parseCarAudioContext()
DFocusEntry.java132 CarAudioContextInfo.dumpCarAudioAttributesProto(mAudioFocusInfo.getAttributes(), in dumpProto()
DZoneAudioPlaybackCallback.java261 CarAudioContextInfo.dumpCarAudioAttributesProto(mAudioAttributesStartTime.keyAt(i), in dumpProtoLastActiveConfigsAndAudioAttributesStartTime()
DCarVolume.java404 CarAudioContextInfo.dumpCarAudioAttributesProto(attributes[counter], in dumpProtoSortedContexts()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCoreAudioRoutingUtils.java264 static List<CarAudioContextInfo> getCarAudioContextInfos() { in getCarAudioContextInfos()
265 List<CarAudioContextInfo> carAudioContextInfos = new ArrayList<>(3); in getCarAudioContextInfos()
267 carAudioContextInfos.add(new CarAudioContextInfo( in getCarAudioContextInfos()
271 carAudioContextInfos.add(new CarAudioContextInfo( in getCarAudioContextInfos()
274 carAudioContextInfos.add(new CarAudioContextInfo( in getCarAudioContextInfos()
DCarAudioZonesHelperTest.java81 private static final CarAudioContextInfo OEM_CONTEXT_INFO_MUSIC =
82 new CarAudioContextInfo(new AudioAttributes[] {
88 private static final CarAudioContextInfo OEM_CONTEXT_INFO_NAVIGATION =
89 new CarAudioContextInfo(new AudioAttributes[] {
93 private static final CarAudioContextInfo OEM_CONTEXT_INFO_VOICE_COMMAND =
94 new CarAudioContextInfo(new AudioAttributes[] {
100 private static final CarAudioContextInfo OEM_CONTEXT_INFO_CALL_RING =
101 new CarAudioContextInfo(new AudioAttributes[] {
105 private static final CarAudioContextInfo OEM_CONTEXT_INFO_CALL =
106 new CarAudioContextInfo(new AudioAttributes[] {
[all …]