Home
last modified time | relevance | path

Searched refs:USAGE_MEDIA (Results 1 – 23 of 23) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java20 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 …]
DAudioControlWrapperV1Test.java45 private static final int USAGE = AudioAttributes.USAGE_MEDIA;
DAudioControlWrapperV2Test.java45 private static final int USAGE = AudioAttributes.USAGE_MEDIA;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioFocusUnitTest.java22 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 …]
DCarAudioContextTest.java20 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()
DCarVolumeTest.java21 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/
DCarZonesAudioFocusTest.java20 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()
DCarAudioFocusTest.java73 .setUsage(AudioAttributes.USAGE_MEDIA)
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/media/
DCarAudioManagerPermissionTest.java24 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/
DVolumeSettingsRingtoneManagerTest.java20 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/
DMediaOutputIndicatorWorkerTest.java220 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/
DAudioTestFragment.java342 .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()
DCarAudioZoneInputFragment.java79 .setUsage(AudioAttributes.USAGE_MEDIA) in CarAudioZoneInputFragment()
201 AudioAttributes.USAGE_MEDIA, 0); in startAudioLocked()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java267 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/
DCarAudioDynamicRouting.java43 AudioAttributes.USAGE_MEDIA,
DCarAudioContext.java140 AudioAttributes.USAGE_MEDIA in CONTEXT_TO_USAGES.put() argument
DCarAudioService.java102 static final @AttributeUsage int DEFAULT_AUDIO_USAGE = AudioAttributes.USAGE_MEDIA;
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java51 .setUsage(AudioAttributes.USAGE_MEDIA) in AudioManagerHelper()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DVideoPlayerActivity.java74 .setUsage(AudioAttributesCompat.USAGE_MEDIA) in onCreate()
DAudioPlayerActivity.java126 .setUsage(AudioAttributesCompat.USAGE_MEDIA) in onCreate()
/packages/apps/Car/Radio/src/com/android/car/radio/audio/
DAudioStreamController.java115 .setUsage(AudioAttributes.USAGE_MEDIA) in AudioStreamController()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DRadioTunerExt.java90 .setUsage(AudioAttributes.USAGE_MEDIA) in RadioTunerExt()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java158 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(), in setUp()