Home
last modified time | relevance | path

Searched refs:setUsage (Results 1 – 25 of 60) sorted by relevance

123

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPlaybackCallbackTest.java116 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext()
137 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts()
141 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts()
162 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext()
166 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext()
188 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts()
193 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts()
215 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withInactiveConfig_beforeTimeout_returnsContexts()
219 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAllActiveContextsForPrimaryZone_withInactiveConfig_beforeTimeout_returnsContexts()
226 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withInactiveConfig_beforeTimeout_returnsContexts()
[all …]
DCarAudioContextTest.java71 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getContextForAudioAttributes_forAttributeWithValidUsage_returnsContext()
78 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(USAGE_VIRTUAL_SOURCE) in getContextForAudioAttributes_forAttributesWithInvalidUsage_returnsInvalidContext()
DCarZonesAudioFocusUnitTest.java248 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in generateAudioFocusRequest()
257 .setUsage(USAGE_MEDIA) in generateAudioFocusInfoWithBundledZoneId()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarZonesAudioFocusTest.java116 AudioFocusInfo audioFocusInfoClient2 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_requestGranted()
137 AudioFocusInfo audioFocusInfoClient2 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted()
160 AudioFocusInfo audioFocusInfoClient = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_withBundleFocusRequest_requestGranted()
179 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_repeatForSameZone_requestGranted()
203 .setUsage(USAGE_VOICE_COMMUNICATION) in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed()
212 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed()
232 .setUsage(USAGE_VOICE_COMMUNICATION) in onAudioFocusRequest_forNavigationWhileOnCall_noRejectNavOnCall_requestSucceeds()
241 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_forNavigationWhileOnCall_noRejectNavOnCall_requestSucceeds()
260 .setUsage(USAGE_VOICE_COMMUNICATION) in onAudioFocusRequest_forMediaWhileOnCall_withDelayedEnable_delayedSucceeds()
268 new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forMediaWhileOnCall_withDelayedEnable_delayedSucceeds()
[all …]
DCarAudioZoneTest.java125 new Builder().setUsage(USAGE_MEDIA).setDeviceAddress(MUSIC_ADDRESS).build(), in findActiveContextsFromPlaybackConfigurations_returnsAllActiveContext()
126 new Builder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in findActiveContextsFromPlaybackConfigurations_returnsAllActiveContext()
142 new Builder().setUsage(USAGE_ASSISTANT) in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts()
144 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts()
163 new Builder().setUsage(USAGE_ASSISTANT) in findActiveContextsFromPlaybackConfigurations_withMultiDevices_returnsContexts()
165 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_withMultiDevices_returnsContexts()
184 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext()
186 new Builder().setUsage(USAGE_MEDIA) in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext()
205 new Builder().setUsage(USAGE_ASSISTANCE_SONIFICATION) in findActiveContextsFromPlaybackConfigurations_withNonMatchingContext_returnsContext()
224 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_withMultiGroupMatch_returnsContexts()
[all …]
DCarAudioFocusTest.java68 .setUsage(AudioAttributes.USAGE_VIRTUAL_SOURCE)
73 .setUsage(AudioAttributes.USAGE_MEDIA)
78 .setUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE)
83 .setUsage(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY)
88 .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE)
93 .setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION)
98 .setUsage(AudioAttributes.USAGE_ALARM)
103 .setUsage(AudioAttributes.USAGE_NOTIFICATION)
108 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputUtilsTest.java85 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
104 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaStopped_returnNull()
124 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
150 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull()
174 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in initPlayback()
DMediaOutputIndicatorWorkerTest.java218 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in initPlayback()
232 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
251 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaStopped_returnNull()
270 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java388 .setUsage(USAGE_MEDIA) in initializePlayers()
391 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in initializePlayers()
394 .setUsage(USAGE_VOICE_COMMUNICATION) in initializePlayers()
397 .setUsage(USAGE_ASSISTANT) in initializePlayers()
400 .setUsage(USAGE_MEDIA) in initializePlayers()
403 .setUsage(USAGE_ASSISTANCE_SONIFICATION) in initializePlayers()
407 .setUsage(USAGE_MEDIA) in initializePlayers()
779 .setUsage(USAGE_MEDIA) in createDeviceAddressAudioPlayer()
855 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in FocusHandler()
DAudioTrackPlayer.java46 .setUsage(USAGE_ASSISTANCE_ACCESSIBILITY)
DAudioTransientPlayersFragment.java94 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(usage).build(); in getCarSoundsPlayer()
/packages/apps/Dialer/java/com/android/dialer/notification/
DNotificationChannelManager.java127 null, new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in createIncomingCallChannel()
141 null, new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in createOngoingCallChannel()
155 null, new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in createMissedCallChannel()
DVoicemailChannelUtils.java200 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in migrateVoicemailSoundSettings()
231 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()); in newChannel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DSoundPreferenceControllerTest.java260 channel.setSound(null, new AudioAttributes.Builder().setUsage( in testOnPreferenceTreeClick_alarmSound()
281 channel.setSound(null, new AudioAttributes.Builder().setUsage( in testOnPreferenceTreeClick_ringtoneSound()
302 channel.setSound(null, new AudioAttributes.Builder().setUsage( in testOnPreferenceTreeClick_otherSound()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java268 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA) in requestAudioFocus()
301 .setUsage(AudioAttributes.USAGE_MEDIA) in requestMediaKeyFocus()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt291 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>()
486 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>()
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java46 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) in SoundPlayer()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerKlaxon.kt80 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmKlaxon.kt78 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java48 .setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION)
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/
DEmergencyActionAlarmHelper.java63 .setUsage(AudioAttributes.USAGE_ALARM) in playWarningSound()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDynamicRouting.java111 attributesBuilder.setUsage(usage); in buildAttributesWithUsage()
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java51 .setUsage(AudioAttributes.USAGE_MEDIA) in AudioManagerHelper()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsRingtoneManager.java116 ringtone.setAudioAttributes(new AudioAttributes.Builder().setUsage(usage).build()); in lazyLoadRingtone()
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/
DCallAudioTestInCallService.java102 .setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION).build(); in startPlaying()

123