/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | ZoneAudioPlaybackCallbackTest.java | 74 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); 76 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE).build(); 160 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext() 180 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withNullPlaybackMonitor() 200 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts() 204 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts() 227 .setUsage(USAGE_MEDIA) in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext() 231 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext() 269 .setUsage(USAGE_MEDIA) in getAudioPlaybackConfigurations() 274 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in getAudioPlaybackConfigurations() [all …]
|
D | CarAudioPlaybackCallbackTest.java | 68 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); 147 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_singleConfig_returnsActiveContextForPrimaryZoneOnly() 177 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withNullPlaybackMonitor() 198 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleConfigs_returnsActiveConfigsForTwoZones() 203 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleConfigs_returnsActiveConfigsForTwoZones() 231 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleConfigs_onIncorrectConfigurations() 236 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleConfigs_onIncorrectConfigurations() 265 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleInactiveConfigs_beforeTimeout() 270 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleInactiveConfigs_beforeTimeout() 277 .setUsage(USAGE_MEDIA) in onPlaybackConfigChanged_withMultipleInactiveConfigs_beforeTimeout() [all …]
|
D | CarAudioPlaybackMonitorTest.java | 63 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); 65 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE).build(); 67 new AudioAttributes.Builder().setUsage(USAGE_NOTIFICATION_RINGTONE).build(); 69 new AudioAttributes.Builder().setUsage(USAGE_VOICE_COMMUNICATION).build(); 225 new AudioAttributes.Builder().setUsage(USAGE_NOTIFICATION_RINGTONE).build(); in onActiveAudioPlaybackAttributesAdded_withNoVolumeGroupFound()
|
D | AudioPlaybackConfigurationBuilder.java | 40 AudioPlaybackConfigurationBuilder setUsage(@AudioAttributes.AttributeUsage int usage) { in setUsage() method in AudioPlaybackConfigurationBuilder 62 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(mUsage).build(); in build()
|
D | CoreAudioRoutingUtils.java | 54 .setUsage(AudioAttributes.USAGE_MEDIA) 70 .setUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) 99 .setUsage(AudioAttributes.USAGE_GAME) 105 .setUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE)
|
D | CarAudioFocusUnitTest.java | 403 .setUsage(USAGE_MEDIA).build(); in onAudioFocusRequest_forPrimaryZone_holderLosesFocus_withTransientFadeConfig() 1566 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getActiveAudioFocusForUserAndAudioAttributes_forActiveMedia_returnMedia() 1583 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getActiveAudioFocusForUserAndAudioAttributes_forInactiveMedia_returnsEmpty() 1602 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getActiveAudioFocusForUserAndAudioAttributes_forActiveMedia_forDifferentUser() 1619 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getInactiveAudioFocusForUserAndAudioAttributes_forActiveMedia_returnsEmpty() 1636 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getInactiveAudioFocusForUserAndAudioAttributes_forInactiveMedia_returnsMedia() 1657 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getInactiveAudioFocusForUserAndAudioAttributes_forActiveMedia_forDifferentUser() 1681 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in onAudioFocusRequest_withOemServiceEnabled_capturesFocusRequest() 1715 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in onAudioFocusRequest_withOemServiceEnabledAndEnabledFadeManager() 1757 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in onAudioFocusRequest_withOemServiceEnabledAndEnableIsolatedFocus() [all …]
|
D | CarAudioContextTest.java | 210 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getContextForAudioAttributes_forAttributeWithValidUsage_returnsContext() 554 AudioAttributes attributes = new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in getAudioAttributeFromUsage_withNonCriticalUsage_succeeds() 807 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in audioAttributeMatches_onWrapper_withMatchingAudioAttributes() 809 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in audioAttributeMatches_onWrapper_withMatchingAudioAttributes() 821 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); in audioAttributeMatches_onWrapper_withNonMatchingAudioAttributes() 823 new AudioAttributes.Builder().setUsage(USAGE_GAME).build(); in audioAttributeMatches_onWrapper_withNonMatchingAudioAttributes()
|
D | CarVolumeInfoWrapperTest.java | 74 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); 76 new AudioAttributes.Builder().setUsage(USAGE_ALARM).build();
|
D | CarAudioUtilsTest.java | 76 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); 78 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE).build(); 80 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANT).build();
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusConcurrentTest.java | 179 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusLossSent() 186 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusLossSent() 205 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusNotGained() 212 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in concurrentInteractionsForFocusGainNoPause_requestGrantedAndFocusNotGained() 253 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in concurrentInteractionsTransientMayDuckNoPause_requestGrantedAndFocusLossSent() 260 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in concurrentInteractionsTransientMayDuckNoPause_requestGrantedAndFocusLossSent() 278 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in concurrentInteractionsTransientMayDuckNoPause_abandonSucceedAndFocusNotGained() 285 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in concurrentInteractionsTransientMayDuckNoPause_abandonSucceedAndFocusNotGained() 304 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in concurrentInteractionsTransientMayDuckPause_requestGrantedAndFocusLossSent() 311 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in concurrentInteractionsTransientMayDuckPause_requestGrantedAndFocusLossSent() [all …]
|
D | CarZonesAudioFocusExclusiveTest.java | 161 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in testExclusiveNonTransientInteractions() 168 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in testExclusiveNonTransientInteractions() 193 new AudioFocusInfoBuilder().setUsage(mExcludedAudioClientInfo.getUsage()) in testExclusiveTransientInteractions() 200 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in testExclusiveTransientInteractions()
|
D | CarZonesAudioFocusTest.java | 88 AudioFocusInfo audioFocusInfoClient2 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 110 AudioFocusInfo audioFocusInfoClient2 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 129 AudioFocusInfo audioFocusInfoClient = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_withBundleFocusRequest_requestGranted() 150 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_repeatForSameZone_requestGranted() 179 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() 204 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_forNavigationWhileOnCall_noRejectNavOnCall_requestSucceeds() 369 new AudioFocusInfoBuilder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in onAudioFocusRequest_multipleTimesForDifferentContextSameClient_delayedFocusFailed()
|
D | CoreAudioRoutingUtils.java | 41 .setUsage(AudioAttributes.USAGE_MEDIA) 55 .setUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) 85 .setUsage(AudioAttributes.USAGE_GAME) 91 .setUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE)
|
D | AudioFocusInfoBuilder.java | 42 public AudioFocusInfoBuilder setUsage(int usage) { in setUsage() method in AudioFocusInfoBuilder 98 builder.setUsage(mUsage); in createAudioFocusInfo()
|
D | CarZonesAudioFocusUsageTest.java | 92 new AudioFocusInfoBuilder().setUsage(mAudioClientInfo.getUsage()) in requestFocus_forEveryUsage_requestGranted() 109 new AudioFocusInfoBuilder().setUsage(mAudioClientInfo.getUsage()) in requestAndAbandonFocus_forEveryUsage_abandonSucceeds()
|
D | CarZonesAudioFocusRejectedTest.java | 139 new AudioFocusInfoBuilder().setUsage(mAcceptedAudioClientInfo.getUsage()) in rejectedInteractionsFocusTest() 146 new AudioFocusInfoBuilder().setUsage(mRejectedAudioClientInfo.getUsage()) in rejectedInteractionsFocusTest()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputUtilsTest.java | 96 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 115 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaStopped_returnNull() 134 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaNone_returnNull() 153 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaError_returnNull() 173 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull() 199 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull() 223 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in initPlayback()
|
D | MediaOutputIndicatorWorkerTest.java | 229 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in initPlayback() 243 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 262 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaStopped_returnNull() 281 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
|
/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()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/media/ |
D | CarAudioZoneConfigInfoUnitTest.java | 52 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build(); 54 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE).build(); 56 new AudioAttributes.Builder().setUsage(USAGE_ASSISTANT).build();
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/ |
D | CarOemAudioDuckingProxyServiceTest.java | 44 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(); 46 .setUsage(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE).build();
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 485 .setUsage(USAGE_MEDIA) in initializePlayers() 488 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in initializePlayers() 491 .setUsage(USAGE_VOICE_COMMUNICATION) in initializePlayers() 494 .setUsage(USAGE_ASSISTANT) in initializePlayers() 497 .setUsage(USAGE_MEDIA) in initializePlayers() 500 .setUsage(USAGE_ASSISTANCE_SONIFICATION) in initializePlayers() 504 .setUsage(USAGE_MEDIA) in initializePlayers() 891 .setUsage(USAGE_MEDIA) in createDeviceAddressAudioPlayer() 974 .setUsage(USAGE_ASSISTANCE_NAVIGATION_GUIDANCE) in FocusHandler()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 249 .setUsage(AudioAttributes.USAGE_MEDIA) in requestAudioFocus() 285 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(); in requestMediaKeyFocus()
|
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/ |
D | AudioUtils.java | 37 builder.setUsage(usage); in getAudioAttributeFromUsage()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/ |
D | OemFocusUtils.java | 36 builder.setUsage(usage); in getAudioFocusEntry()
|