Home
last modified time | relevance | path

Searched refs:getAudioAttributeFromUsage (Results 1 – 25 of 37) sorted by relevance

12

/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/ducking/
DDuckingInteractions.java19 import static com.android.car.oem.utils.AudioUtils.getAudioAttributeFromUsage;
47 getAudioAttributeFromUsage(AudioAttributes.USAGE_EMERGENCY),
48 getAudioAttributeFromUsage(AudioAttributes.USAGE_SAFETY),
49 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY),
50 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANT),
51 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE),
52 getAudioAttributeFromUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION),
53 getAudioAttributeFromUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION_SIGNALLING),
54 getAudioAttributeFromUsage(AudioAttributes.USAGE_CALL_ASSISTANT),
55 getAudioAttributeFromUsage(AudioAttributes.USAGE_VEHICLE_STATUS),
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java60 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
63 CarAudioContext.getAudioAttributeFromUsage(USAGE_EMERGENCY));
66 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
69 .getAudioAttributeFromUsage(USAGE_CALL_ASSISTANT));
85 audioAttributes.add(CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION)); in getAudioAttributesHoldingFocus_removesDuplicateUsages()
86 audioAttributes.add(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA)); in getAudioAttributesHoldingFocus_removesDuplicateUsages()
87 audioAttributes.add(CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION)); in getAudioAttributesHoldingFocus_removesDuplicateUsages()
96 .containsExactly(CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION), in getAudioAttributesHoldingFocus_removesDuplicateUsages()
97 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA)); in getAudioAttributesHoldingFocus_removesDuplicateUsages()
103 audioAttributes.add(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA)); in getAudioAttributesHoldingFocus_includesSystemAudioAttributes()
[all …]
DCarAudioContextTest.java75 CarAudioContext.getAudioAttributeFromUsage(USAGE_UNKNOWN);
77 CarAudioContext.getAudioAttributeFromUsage(USAGE_GAME);
79 CarAudioContext.getAudioAttributeFromUsage(USAGE_VOICE_COMMUNICATION);
81 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION_RINGTONE);
83 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA);
85 CarAudioContext.getAudioAttributeFromUsage(USAGE_EMERGENCY);
87 CarAudioContext.getAudioAttributeFromUsage(AudioManagerHelper
90 CarAudioContext.getAudioAttributeFromUsage(
93 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANT);
95 CarAudioContext.getAudioAttributeFromUsage(USAGE_ALARM);
[all …]
DCarVolumeTest.java77 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANT);
79 CarAudioContext.getAudioAttributeFromUsage(USAGE_ALARM);
81 CarAudioContext.getAudioAttributeFromUsage(USAGE_VOICE_COMMUNICATION);
83 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION_RINGTONE);
85 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE);
87 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA);
89 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION);
91 CarAudioContext.getAudioAttributeFromUsage(USAGE_ANNOUNCEMENT);
227 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION)); in getSuggestedAudioContext_withLowerPriorityActivePlaybackAndCall_returnsCall()
241 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE)); in getSuggestedAudioContext_withV1AndNavigationConfigurationAndCall_returnsNav()
[all …]
DCarHalAudioUtilsTest.java70 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION);
86 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
89 .getAudioAttributeFromUsage(USAGE_NOTIFICATION));
383 .getAudioAttributeFromUsage(playbackTrackMetadata.usage)); in metadataToAudioAttribute_succeeds()
394 .containsExactly(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA), in metadatasToAudioAttributes_succeeds()
395 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION)); in metadatasToAudioAttributes_succeeds()
405 .getAudioAttributeFromUsage(playbackTrackMetadata.usage)); in metadatasToAudioAttributes_succeeds()
DCarDuckingTest.java70 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
73 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
157 .containsExactly(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA)); in onFocusChange_forPrimaryZone_updatesUsagesHoldingFocus()
209 .containsExactly(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA)); in onFocusChange_notifiesHalOfUsagesHoldingFocus()
301 .thenReturn(List.of(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA))); in onFocusChange_withOemDuckingAndReturnMedia_ducksMedia()
318 .thenReturn(List.of(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA))) in onFocusChange_withOemDuckingCalledTwice_unducksMedia()
DCarAudioContextInfoTest.java39 .getAudioAttributeFromUsage(AudioAttributes.USAGE_MEDIA);
42 .getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE);
45 .getAudioAttributeFromUsage(AudioAttributes.USAGE_NOTIFICATION);
DCarVolumeGroupMutingTest.java69 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
72 .getAudioAttributeFromUsage(USAGE_ASSISTANT));
75 CarAudioContext.getAudioAttributeFromUsage(USAGE_EMERGENCY));
78 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
81 .getAudioAttributeFromUsage(USAGE_SAFETY));
DCarDuckingInfoTest.java44 List.of(CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA),
45 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION));
DCarAudioVolumeGroupTest.java119 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
122 CarAudioContext.getAudioAttributeFromUsage(USAGE_ALARM));
125 CarAudioContext.getAudioAttributeFromUsage(USAGE_VOICE_COMMUNICATION));
128 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION_RINGTONE));
131 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
134 .getAudioAttributeFromUsage(USAGE_NOTIFICATION));
DCarVolumeGroupUnitTest.java114 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
117 CarAudioContext.getAudioAttributeFromUsage(USAGE_ALARM));
120 CarAudioContext.getAudioAttributeFromUsage(USAGE_VOICE_COMMUNICATION));
123 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION_RINGTONE));
126 CarAudioContext.getAudioAttributeFromUsage(USAGE_EMERGENCY));
129 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
132 .getAudioAttributeFromUsage(USAGE_NOTIFICATION));
2032 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA), in getAudioAttributes()
2033 CarAudioContext.getAudioAttributeFromUsage(USAGE_GAME), in getAudioAttributes()
2034 CarAudioContext.getAudioAttributeFromUsage(USAGE_UNKNOWN)); in getAudioAttributes()
[all …]
DCarAudioZoneConfigUnitTest.java31 import static com.android.car.audio.CarAudioContext.getAudioAttributeFromUsage;
85 getAudioAttributeFromUsage(USAGE_MEDIA);
87 getAudioAttributeFromUsage(USAGE_ASSISTANT);
89 getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE);
582 new AudioAttributes[] {getAudioAttributeFromUsage(AudioAttributes.USAGE_UNKNOWN), in validateVolumeGroups_withUnsupportedAudioContext_fails()
583 getAudioAttributeFromUsage(AudioAttributes.USAGE_GAME), in validateVolumeGroups_withUnsupportedAudioContext_fails()
584 getAudioAttributeFromUsage(AudioAttributes.USAGE_MEDIA)}, in validateVolumeGroups_withUnsupportedAudioContext_fails()
DCarVolumeGroupFactoryTest.java60 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
63 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
DFocusInteractionTest.java370 AudioAttributes audioAttributes = getAudioAttributeFromUsage(usage, receivesDuckingEvents); in newMockFocusEntryWithUsage()
378 private static AudioAttributes getAudioAttributeFromUsage(int usage, in getAudioAttributeFromUsage() method in FocusInteractionTest
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/volume/
DVolumeInteractions.java21 import static com.android.car.oem.utils.AudioUtils.getAudioAttributeFromUsage;
50 getAudioAttributeFromUsage(USAGE_MEDIA));
54 getAudioAttributeFromUsage(AudioAttributes.USAGE_EMERGENCY),
55 getAudioAttributeFromUsage(AudioAttributes.USAGE_SAFETY),
56 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY),
57 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANT),
58 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE),
59 getAudioAttributeFromUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION),
60 getAudioAttributeFromUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION_SIGNALLING),
61 getAudioAttributeFromUsage(AudioAttributes.USAGE_CALL_ASSISTANT),
[all …]
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/focus/
DFocusInteraction.java26 import static com.android.car.oem.utils.AudioUtils.getAudioAttributeFromUsage;
73 getAudioAttributeFromUsage(AudioAttributes.USAGE_UNKNOWN),
74 getAudioAttributeFromUsage(AudioAttributes.USAGE_GAME),
75 getAudioAttributeFromUsage(AudioAttributes.USAGE_MEDIA)
79 getAudioAttributeFromUsage(AudioAttributes
84 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY),
85 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANT)
89 getAudioAttributeFromUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE),
93 getAudioAttributeFromUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION),
94 getAudioAttributeFromUsage(AudioAttributes.USAGE_CALL_ASSISTANT),
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioContext.java178 getAudioAttributeFromUsage(AudioAttributes.USAGE_CALL_ASSISTANT),
179 getAudioAttributeFromUsage(AudioAttributes.USAGE_EMERGENCY),
180 getAudioAttributeFromUsage(AudioAttributes.USAGE_SAFETY),
181 getAudioAttributeFromUsage(AudioAttributes.USAGE_VEHICLE_STATUS),
182 getAudioAttributeFromUsage(AudioAttributes.USAGE_ANNOUNCEMENT)
187 getAudioAttributeFromUsage(AudioAttributes.USAGE_UNKNOWN),
188 getAudioAttributeFromUsage(AudioAttributes.USAGE_GAME),
189 getAudioAttributeFromUsage(AudioAttributes.USAGE_MEDIA)
194 getAudioAttributeFromUsage(AudioAttributes
200 getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY),
[all …]
DCarVolume.java76 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE),
77 CarAudioContext.getAudioAttributeFromUsage(USAGE_VOICE_COMMUNICATION),
78 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA),
79 CarAudioContext.getAudioAttributeFromUsage(USAGE_ANNOUNCEMENT),
80 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANT),
81 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION_RINGTONE),
82 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANCE_SONIFICATION),
83 CarAudioContext.getAudioAttributeFromUsage(USAGE_SAFETY),
84 CarAudioContext.getAudioAttributeFromUsage(USAGE_ALARM),
85 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION),
[all …]
DCarHalAudioUtils.java106 AudioAttributes attributes = CarAudioContext.getAudioAttributeFromUsage(usage); in usageToMetadata()
111 AudioAttributes attributes = CarAudioContext.getAudioAttributeFromUsage(usage); in usageToMetadata()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperLegacyTest.java77 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA));
80 CarAudioContext.getAudioAttributeFromUsage(USAGE_ALARM));
83 CarAudioContext.getAudioAttributeFromUsage(USAGE_VOICE_COMMUNICATION));
86 CarAudioContext.getAudioAttributeFromUsage(USAGE_NOTIFICATION_RINGTONE));
89 CarAudioContext.getAudioAttributeFromUsage(USAGE_EMERGENCY));
92 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE));
95 .getAudioAttributeFromUsage(USAGE_NOTIFICATION));
98 .getAudioAttributeFromUsage(USAGE_ANNOUNCEMENT));
101 .getAudioAttributeFromUsage(USAGE_ASSISTANCE_SONIFICATION));
104 .getAudioAttributeFromUsage(USAGE_VEHICLE_STATUS));
[all …]
DCarAudioZonesHelperTest.java83 CarAudioContext.getAudioAttributeFromUsage(AudioAttributes.USAGE_UNKNOWN),
84 CarAudioContext.getAudioAttributeFromUsage(AudioAttributes.USAGE_GAME),
85 CarAudioContext.getAudioAttributeFromUsage(AudioAttributes.USAGE_MEDIA)
90 CarAudioContext.getAudioAttributeFromUsage(AudioAttributes
95 CarAudioContext.getAudioAttributeFromUsage(
97 CarAudioContext.getAudioAttributeFromUsage(AudioAttributes.USAGE_ASSISTANT)
102 CarAudioContext.getAudioAttributeFromUsage(
107 CarAudioContext.getAudioAttributeFromUsage(
109 CarAudioContext.getAudioAttributeFromUsage(
111 CarAudioContext.getAudioAttributeFromUsage(AudioAttributes
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DOemCarAudioVolumeRequestUnitTest.java63 CarAudioContext.getAudioAttributeFromUsage(USAGE_MEDIA);
65 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE);
67 CarAudioContext.getAudioAttributeFromUsage(USAGE_ASSISTANT);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java30 import static com.android.car.audio.CarAudioContext.getAudioAttributeFromUsage;
83 private static final AudioAttributes ATTR_MEDIA = getAudioAttributeFromUsage(USAGE_MEDIA);
85 getAudioAttributeFromUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE);
87 getAudioAttributeFromUsage(USAGE_NOTIFICATION);
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/
DOemCarServiceHelper.java22 import static com.android.car.oem.utils.AudioUtils.getAudioAttributeFromUsage;
321 return getAudioAttributeFromUsage(AudioAttributes.USAGE_NOTIFICATION_EVENT); in getAudioAttributeFromString()
323 return getAudioAttributeFromUsage(AudioAttributes.xsdStringToUsage(stringAudioAttribute)); in getAudioAttributeFromString()
DAudioUtils.java32 public static AudioAttributes getAudioAttributeFromUsage(int usage) { in getAudioAttributeFromUsage() method in AudioUtils

12