/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioPlaybackCallbackTest.java | 116 .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 …]
|
D | CarAudioContextTest.java | 71 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()
|
D | CarZonesAudioFocusUnitTest.java | 248 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/ |
D | CarZonesAudioFocusTest.java | 116 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 …]
|
D | CarAudioZoneTest.java | 125 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 …]
|
D | CarAudioFocusTest.java | 68 .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/ |
D | MediaOutputUtilsTest.java | 85 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()
|
D | MediaOutputIndicatorWorkerTest.java | 218 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/ |
D | AudioTestFragment.java | 388 .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()
|
D | AudioTrackPlayer.java | 46 .setUsage(USAGE_ASSISTANCE_ACCESSIBILITY)
|
D | AudioTransientPlayersFragment.java | 94 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(usage).build(); in getCarSoundsPlayer()
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | NotificationChannelManager.java | 127 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()
|
D | VoicemailChannelUtils.java | 200 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/ |
D | SoundPreferenceControllerTest.java | 260 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/ |
D | A2dpSinkStreamHandler.java | 268 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA) in requestAudioFocus() 301 .setUsage(AudioAttributes.USAGE_MEDIA) in requestMediaKeyFocus()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.kt | 291 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>() 486 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | SoundPlayer.java | 46 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) in SoundPlayer()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerKlaxon.kt | 80 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmKlaxon.kt | 78 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | EmergencyTonePlayer.java | 48 .setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION)
|
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/ |
D | EmergencyActionAlarmHelper.java | 63 .setUsage(AudioAttributes.USAGE_ALARM) in playWarningSound()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioDynamicRouting.java | 111 attributesBuilder.setUsage(usage); in buildAttributesWithUsage()
|
/packages/apps/TV/src/com/android/tv/audio/ |
D | AudioManagerHelper.java | 51 .setUsage(AudioAttributes.USAGE_MEDIA) in AudioManagerHelper()
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManager.java | 116 ringtone.setAudioAttributes(new AudioAttributes.Builder().setUsage(usage).build()); in lazyLoadRingtone()
|
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/ |
D | CallAudioTestInCallService.java | 102 .setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION).build(); in startPlaying()
|