/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 20 import static android.media.AudioAttributes.USAGE_MEDIA; 90 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_notifiesHalOfFocusChange() 92 verify(mAudioControlWrapper).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, in requestAudioFocus_notifiesHalOfFocusChange() 100 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesUsage() 103 assertThat(actualRequest.getAudioAttributes().getUsage()).isEqualTo(USAGE_MEDIA); in requestAudioFocus_specifiesUsage() 110 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesFocusGain() 120 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesZoneId() 132 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_providesFocusChangeListener() 143 () -> mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, INVALID_ZONE_ID, in requestAudioFocus_withInvalidZone_throws() 151 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withSameZoneAndUsage_keepsExistingRequest() [all …]
|
D | AudioControlWrapperV1Test.java | 45 private static final int USAGE = AudioAttributes.USAGE_MEDIA;
|
D | AudioControlWrapperV2Test.java | 45 private static final int USAGE = AudioAttributes.USAGE_MEDIA;
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioFocusUnitTest.java | 22 import static android.media.AudioAttributes.USAGE_MEDIA; 353 AudioFocusInfo firstRequestWithDelayedFocus = getInfo(USAGE_MEDIA, SECOND_CLIENT_ID, in onAudioFocus_multipleRequestWithDelayedFocus_requestsDelayed() 361 AudioFocusInfo secondRequestWithDelayedFocus = getInfo(USAGE_MEDIA, THIRD_CLIENT_ID, in onAudioFocus_multipleRequestWithDelayedFocus_requestsDelayed() 377 AudioFocusInfo firstRequestWithDelayedFocus = getInfo(USAGE_MEDIA, SECOND_CLIENT_ID, in onAudioFocus_multipleRequestWithDelayedFocus_firstRequestReceivesFocusLoss() 385 AudioFocusInfo secondRequestWithDelayedFocus = getInfo(USAGE_MEDIA, THIRD_CLIENT_ID, in onAudioFocus_multipleRequestWithDelayedFocus_firstRequestReceivesFocusLoss() 401 AudioFocusInfo firstRequestWithDelayedFocus = getInfo(USAGE_MEDIA, SECOND_CLIENT_ID, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_delayedFocusNotChanged() 409 AudioFocusInfo secondRequestWithNoDelayedFocus = getInfo(USAGE_MEDIA, THIRD_CLIENT_ID, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_delayedFocusNotChanged() 428 AudioFocusInfo mediaRequestWithOutDelayedFocus = getInfo(USAGE_MEDIA, SECOND_CLIENT_ID, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_nonTransientRequestReceivesLoss() 435 AudioFocusInfo mediaRequestWithDelayedFocus = getInfo(USAGE_MEDIA, THIRD_CLIENT_ID, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_nonTransientRequestReceivesLoss() 465 AudioFocusInfo mediaRequestWithDelayedFocus = getInfo(USAGE_MEDIA, THIRD_CLIENT_ID, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_duckedRequestReceivesLoss() [all …]
|
D | CarAudioContextTest.java | 20 import static android.media.AudioAttributes.USAGE_MEDIA; 48 assertThat(CarAudioContext.getContextForUsage(USAGE_MEDIA)) in getContextForUsage_forValidUsage_returnsContext() 61 assertThat(usages).asList().containsExactly(USAGE_UNKNOWN, USAGE_GAME, USAGE_MEDIA); in getUsagesForContext_withValidContext_returnsUsages()
|
D | CarVolumeTest.java | 21 import static android.media.AudioAttributes.USAGE_MEDIA; 160 private @AttributeUsage int mUsage = USAGE_MEDIA;
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTest.java | 20 import static android.media.AudioAttributes.USAGE_MEDIA; 99 AudioFocusInfo audioFocusInfo = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_withNoCurrentFocusHolder_requestGranted() 113 AudioFocusInfo audioFocusInfoClient1 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 120 AudioFocusInfo audioFocusInfoClient2 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 137 AudioFocusInfo audioFocusInfoClient1 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 144 AudioFocusInfo audioFocusInfoClient2 = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 168 AudioFocusInfo audioFocusInfoClient = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_withBundleFocusRequest_requestGranted() 182 AudioFocusInfo audioFocusInfoMediaClient = new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_repeatForSameZone_requestGranted() 280 new AudioFocusInfoBuilder().setUsage(USAGE_MEDIA) in onAudioFocusRequest_forMediaWhileOnCall_withDelayedEnable_delayedSucceeds()
|
D | CarAudioFocusTest.java | 73 .setUsage(AudioAttributes.USAGE_MEDIA)
|
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/media/ |
D | CarAudioManagerPermissionTest.java | 24 import static android.media.AudioAttributes.USAGE_MEDIA; 142 () -> mCarAudioManager.createAudioPatch("address", USAGE_MEDIA, 0)); in createAudioPatchPermission() 170 () -> mCarAudioManager.getVolumeGroupIdForUsage(USAGE_MEDIA)); in getVolumeGroupIdForUsagePermission() 177 () -> mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getVolumeGroupIdForUsageWithZonePermission() 219 () -> mCarAudioManager.getOutputDeviceForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getOutputDeviceForUsagePermission()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManagerTest.java | 20 import static android.media.AudioAttributes.USAGE_MEDIA; 55 private static final int TEST_USAGE_ID = USAGE_MEDIA; 88 new int[] {USAGE_MEDIA}, in getRingtoneUri_defaultsToDefaultRingtoneUriIfUsageNotInConfig() 100 @AttributeUsage int usage = USAGE_MEDIA; in getRingtoneUri_usesConfigValuesForUsageRingtoneMapping()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputIndicatorWorkerTest.java | 220 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in initPlayback() 234 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 253 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in getActiveLocalMediaController_localMediaStopped_returnNull()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 342 .setUsage(AudioAttributes.USAGE_MEDIA) in initializePlayers() 354 .setUsage(AudioAttributes.USAGE_MEDIA) in initializePlayers() 361 .setUsage(AudioAttributes.USAGE_MEDIA) in initializePlayers() 647 .getOutputDeviceForUsage(audioZoneId, AudioAttributes.USAGE_MEDIA); in setUpDeviceAddressPlayer() 678 .setUsage(AudioAttributes.USAGE_MEDIA) in createDeviceAddressAudioPlayer()
|
D | CarAudioZoneInputFragment.java | 79 .setUsage(AudioAttributes.USAGE_MEDIA) in CarAudioZoneInputFragment() 201 AudioAttributes.USAGE_MEDIA, 0); in startAudioLocked()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 267 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA) in requestAudioFocus() 300 .setUsage(AudioAttributes.USAGE_MEDIA) in requestMediaKeyFocus()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioDynamicRouting.java | 43 AudioAttributes.USAGE_MEDIA,
|
D | CarAudioContext.java | 140 AudioAttributes.USAGE_MEDIA in CONTEXT_TO_USAGES.put() argument
|
D | CarAudioService.java | 102 static final @AttributeUsage int DEFAULT_AUDIO_USAGE = AudioAttributes.USAGE_MEDIA;
|
/packages/apps/TV/src/com/android/tv/audio/ |
D | AudioManagerHelper.java | 51 .setUsage(AudioAttributes.USAGE_MEDIA) in AudioManagerHelper()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/ |
D | VideoPlayerActivity.java | 74 .setUsage(AudioAttributesCompat.USAGE_MEDIA) in onCreate()
|
D | AudioPlayerActivity.java | 126 .setUsage(AudioAttributesCompat.USAGE_MEDIA) in onCreate()
|
/packages/apps/Car/Radio/src/com/android/car/radio/audio/ |
D | AudioStreamController.java | 115 .setUsage(AudioAttributes.USAGE_MEDIA) in AudioStreamController()
|
/packages/apps/Car/Radio/src/com/android/car/radio/platform/ |
D | RadioTunerExt.java | 90 .setUsage(AudioAttributes.USAGE_MEDIA) in RadioTunerExt()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 158 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in setUp()
|