Home
last modified time | relevance | path

Searched refs:AudioContext (Results 1 – 25 of 32) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeTest.java45 import com.android.car.audio.CarAudioContext.AudioContext;
165 @AudioContext int suggestedContext = in getSuggestedAudioContext_withNoActivePlaybackAndIdleTelephony_returnsDefault()
178 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withOneConfiguration_returnsAssociatedContext()
188 @AudioContext int suggestedContext = in getSuggestedAudioContext_withCallStateOffHook_returnsCallContext()
201 @AudioContext int suggestedContext = in getSuggestedAudioContext_withV1AndCallStateRinging_returnsCallRingContext()
215 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withActivePlayback_returnsHighestPriorityContext()
229 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withLowerPriorityActivePlaybackAndCall_returnsCall()
243 @AudioContext int suggestedContext = carVolume in getSuggestedAudioContext_withV1AndNavigationConfigurationAndCall_returnsNav()
255 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withV2AndNavigationConfigurationAndCall_returnsCall()
268 @AudioContext int suggestedContext = mCarVolume in getSuggestedAudioContext_withUnprioritizedAttribute_returnsDefault()
[all …]
DCarAudioContextTest.java52 import com.android.car.audio.CarAudioContext.AudioContext;
113 public static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT =
115 public static final @CarAudioContext.AudioContext int TEST_ALARM_CONTEXT =
117 public static final @CarAudioContext.AudioContext int TEST_CALL_CONTEXT =
119 public static final @CarAudioContext.AudioContext int TEST_CALL_RING_CONTEXT =
121 public static final @CarAudioContext.AudioContext int TEST_EMERGENCY_CONTEXT =
123 public static final @CarAudioContext.AudioContext int TEST_NAVIGATION_CONTEXT =
125 public static final @CarAudioContext.AudioContext int TEST_NOTIFICATION_CONTEXT =
127 public static final @CarAudioContext.AudioContext int TEST_ANNOUNCEMENT_CONTEXT =
129 public static final @CarAudioContext.AudioContext int TEST_SAFETY_CONTEXT =
[all …]
DCarDuckingUtilsTest.java58 private static final @CarAudioContext.AudioContext int TEST_MEDIA_AUDIO_CONTEXT =
61 private static final @CarAudioContext.AudioContext int TEST_EMERGENCY_AUDIO_CONTEXT =
64 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_AUDIO_CONTEXT =
67 private static final @CarAudioContext.AudioContext int TEST_CALL_AUDIO_CONTEXT =
DVolumeGroupBuilder.java75 public VolumeGroupBuilder addDeviceAddressAndContexts(@CarAudioContext.AudioContext int context, in addDeviceAddressAndContexts()
132 @CarAudioContext.AudioContext int[] contexts = new int[mDeviceAddresses.size()]; in build()
135 @CarAudioContext.AudioContext int context = mDeviceAddresses.keyAt(index); in build()
DCarVolumeGroupMutingTest.java67 private static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT =
70 private static final @CarAudioContext.AudioContext int TEST_ASSISTANT_CONTEXT =
73 private static final @CarAudioContext.AudioContext int TEST_EMERGENCY_CONTEXT =
76 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_CONTEXT =
79 private static final @CarAudioContext.AudioContext int TEST_SAFETY_CONTEXT =
DCarAudioVolumeGroupTest.java117 private static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT_ID =
120 private static final @CarAudioContext.AudioContext int TEST_ALARM_CONTEXT_ID =
123 private static final @CarAudioContext.AudioContext int TEST_CALL_CONTEXT_ID =
126 private static final @CarAudioContext.AudioContext int TEST_CALL_RING_CONTEXT_ID =
129 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_CONTEXT_ID =
132 private static final @CarAudioContext.AudioContext int TEST_NOTIFICATION_CONTEXT_ID =
DZoneAudioPlaybackCallbackTest.java82 @CarAudioContext.AudioContext
86 @CarAudioContext.AudioContext
90 @CarAudioContext.AudioContext
DCarVolumeGroupFactoryTest.java58 private static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT_ID =
61 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_CONTEXT_ID =
DCarAudioZoneUnitTest.java25 import static com.android.car.audio.CarAudioContext.AudioContext;
132 @AudioContext
135 @AudioContext
138 @AudioContext
141 @AudioContext
DFocusEntryTest.java55 private static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT =
DCarDuckingTest.java68 private static final @CarAudioContext.AudioContext int TEST_MEDIA_AUDIO_CONTEXT =
71 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_AUDIO_CONTEXT =
DCarHalAudioUtilsTest.java84 private static final @CarAudioContext.AudioContext int TEST_MEDIA_AUDIO_CONTEXT =
87 private static final @CarAudioContext.AudioContext int TEST_NOTIFICATION_AUDIO_CONTEXT =
DCarVolumeGroupUnitTest.java112 private static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT_ID =
115 private static final @CarAudioContext.AudioContext int TEST_ALARM_CONTEXT_ID =
118 private static final @CarAudioContext.AudioContext int TEST_CALL_CONTEXT_ID =
121 private static final @CarAudioContext.AudioContext int TEST_CALL_RING_CONTEXT_ID =
124 private static final @CarAudioContext.AudioContext int TEST_EMERGENCY_CONTEXT_ID =
127 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_CONTEXT_ID =
130 private static final @CarAudioContext.AudioContext int TEST_NOTIFICATION_CONTEXT_ID =
DCarAudioZoneConfigUnitTest.java29 import static com.android.car.audio.CarAudioContext.AudioContext;
94 @AudioContext
97 @AudioContext
100 @AudioContext
/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java48 import com.android.car.audio.CarAudioContext.AudioContext;
106 @AudioContext private int mLastActiveContext;
129 @AudioContext int[] contextVolumePriority = in CarVolume()
195 @AudioContext int getSuggestedAudioContextAndSaveIfFound( in getSuggestedAudioContextAndSaveIfFound()
209 @AudioContext int context = findActiveContextWithHighestPriority(activeAttributes, in getSuggestedAudioContextAndSaveIfFound()
217 private @AudioContext int findActiveContextWithHighestPriority( in findActiveContextWithHighestPriority()
228 @AudioContext int context = mCarAudioContext.getContextForAudioAttribute( in findActiveContextWithHighestPriority()
265 private void setAudioContextStillActive(@AudioContext int context) { in setAudioContextStillActive()
272 boolean isAnyContextActive(@AudioContext int [] contexts, in isAnyContextActive()
323 private @AudioContext int getAudioContextStillActive() { in getAudioContextStillActive()
[all …]
DCarAudioContext.java135 public @interface AudioContext { annotation in CarAudioContext
482 boolean isOemExtensionAudioContext(@AudioContext int audioContext) { in isOemExtensionAudioContext()
541 void preconditionCheckAudioContext(@AudioContext int audioContext) { in preconditionCheckAudioContext()
548 AudioAttributes[] getAudioAttributesForContext(@AudioContext int carAudioContext) { in getAudioAttributesForContext()
553 @AudioContext int getContextForAttributes(AudioAttributes attributes) { in getContextForAttributes()
561 public @AudioContext int getContextForAudioAttribute(AudioAttributes attributes) { in getContextForAudioAttribute()
665 String toString(@AudioContext int audioContext) { in toString()
742 static @AudioContext int getInvalidContext() { in getInvalidContext()
746 static boolean isInvalidContextId(@AudioContext int id) { in isInvalidContextId()
DCarAudioContextInfo.java42 private final @CarAudioContext.AudioContext int mId;
47 @CarAudioContext.AudioContext int id) { in CarAudioContextInfo()
65 @CarAudioContext.AudioContext int getId() { in getId()
DFocusEntry.java29 import com.android.car.audio.CarAudioContext.AudioContext;
46 FocusEntry(@NonNull AudioFocusInfo audioFocusInfo, @AudioContext int context, in FocusEntry()
56 @AudioContext
DCarVolumeGroupFactory.java20 import com.android.car.audio.CarAudioContext.AudioContext;
114 @AudioContext int audioContext = nonLegacyCarSystemContexts.get(index); in setNonLegacyContexts()
DCarAudioZonesHelper.java54 import com.android.car.audio.CarAudioContext.AudioContext;
977 @AudioContext int carAudioContextId = parseCarAudioContextId(
1012 private @AudioContext int parseCarAudioContextId(String context) {
1017 private void validateCarAudioContextSupport(@AudioContext int audioContext) {
DCarAudioDynamicRouting.java135 @CarAudioContext.AudioContext int contextId = in setupAudioDynamicRoutingForGroup()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperLegacyTest.java75 private static final @CarAudioContext.AudioContext int TEST_MEDIA_CONTEXT =
78 private static final @CarAudioContext.AudioContext int TEST_ALARM_CONTEXT =
81 private static final @CarAudioContext.AudioContext int TEST_CALL_CONTEXT =
84 private static final @CarAudioContext.AudioContext int TEST_CALL_RING_CONTEXT =
87 private static final @CarAudioContext.AudioContext int TEST_EMERGENCY_CONTEXT =
90 private static final @CarAudioContext.AudioContext int TEST_NAVIGATION_CONTEXT =
93 private static final @CarAudioContext.AudioContext int TEST_NOTIFICATION_CONTEXT =
96 private static final @CarAudioContext.AudioContext int TEST_ANNOUNCEMENT_CONTEXT =
99 private static final @CarAudioContext.AudioContext int TEST_SYSTEM_SOUND_CONTEXT =
102 private static final @CarAudioContext.AudioContext int TEST_VEHICLE_STATUS_CONTEXT =
[all …]
DCarAudioDynamicRoutingTest.java21 import static com.android.car.audio.CarAudioContext.AudioContext;
71 private static final @AudioContext int TEST_MEDIA_CONTEXT =
73 private static final @AudioContext int TEST_NAVIGATION_CONTEXT =
343 VolumeGroupBuilder addDeviceAddressAndContexts(@AudioContext int context, String address) { in addDeviceAddressAndContexts()
356 @AudioContext int[] contexts = new int[mDeviceAddresses.size()]; in build()
359 @AudioContext int context = mDeviceAddresses.keyAt(index); in build()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV1.java162 public int getBusForContext(@CarAudioContext.AudioContext int audioContext) { in getBusForContext()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dle_audio_utils_unittest.cc131 audio::AudioContext::GAME | in PrepareReferenceMetadata()
133 audio::AudioContext::CONVERSATIONAL}); in PrepareReferenceMetadata()
144 bluetooth::audio::AudioContext::GAME}); in PrepareReferenceMetadata()
1074 auto aidl_context = ::aidl::android::hardware::bluetooth::audio::AudioContext{ in TEST()
1075 .bitmask = ::aidl::android::hardware::bluetooth::audio::AudioContext:: in TEST()

12