Home
last modified time | relevance | path

Searched refs:MUSIC_ATTRIBUTES (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCoreAudioVolumeGroupTest.java28 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
118 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes(MUSIC_ATTRIBUTES)); in setupMock()
120 .when(() -> CoreAudioHelper.getProductStrategyForAudioAttributes(MUSIC_ATTRIBUTES)); in setupMock()
123 doReturn(MUSIC_ATTRIBUTES).when(() -> in setupMock()
125 when(mMockAudioManager.getMinVolumeIndexForAttributes(MUSIC_ATTRIBUTES)) in setupMock()
127 when(mMockAudioManager.getMaxVolumeIndexForAttributes(MUSIC_ATTRIBUTES)) in setupMock()
129 when(mMockAudioManager.getVolumeIndexForAttributes(MUSIC_ATTRIBUTES)) in setupMock()
315 when(mMockAudioManager.getMinVolumeIndexForAttributes(MUSIC_ATTRIBUTES)) in setMute_whenNotMutable()
343 when(mMockAudioManager.getVolumeIndexForAttributes(MUSIC_ATTRIBUTES)).thenReturn(amIndex); in audioManagerIndexSynchronization()
363 when(mMockAudioManager.getVolumeIndexForAttributes(MUSIC_ATTRIBUTES)) in audioManagerMuteStateSynchronization()
[all …]
DCoreAudioHelperTest.java24 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
86 .that(CoreAudioHelper.getStrategyForAudioAttributes(MUSIC_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
107 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(MUSIC_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
129 .that(CoreAudioHelper.getProductStrategyForAudioAttributes(MUSIC_ATTRIBUTES)) in getProductStrategyForAudioAttributes_withValidAttributes_succeeds()
219 .isEqualTo(MUSIC_ATTRIBUTES); in selectAttributesForVolumeGroupName_withValidName_succeeds()
241 MUSIC_ATTRIBUTES) in getVolumeGroupNameForAudioAttributes_withSupportedAttributes_succeeds()
242 .that(CoreAudioHelper.getVolumeGroupNameForAudioAttributes(MUSIC_ATTRIBUTES)) in getVolumeGroupNameForAudioAttributes_withSupportedAttributes_succeeds()
264 MUSIC_ATTRIBUTES) in getVolumeGroupIdForAudioAttributes_withSupportedAttributes_succeeds()
265 .that(CoreAudioHelper.getVolumeGroupIdForAudioAttributes(MUSIC_ATTRIBUTES)) in getVolumeGroupIdForAudioAttributes_withSupportedAttributes_succeeds()
DCarHalAudioUtilsTest.java27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
68 private static final AudioAttributes MEDIA_AUDIO_ATTRIBUTE = MUSIC_ATTRIBUTES;
241 .isEqualTo(MUSIC_ATTRIBUTES); in metadataToAudioAttribute_withMusic_succeeds()
DCoreAudioRoutingUtils.java53 public static final AudioAttributes MUSIC_ATTRIBUTES = new AudioAttributes.Builder() field in CoreAudioRoutingUtils
297 AudioAttributes[] musicAttributesArray = { MUSIC_ATTRIBUTES, MOVIE_ATTRIBUTES };
DCarAudioContextTest.java153 eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))); in setupMock()
181 CoreAudioRoutingUtils.MUSIC_ATTRIBUTES)) in getContextForAudioAttribute_usingCoreRouting()
934 CoreAudioRoutingUtils.MUSIC_ATTRIBUTES); in getAudioAttributeWrapperFromAttributes_withMusic_hashCode_succeeds()
DCarAudioServiceUnitTest.java5376 when(mAudioManager.getVolumeIndexForAttributes(eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))) in onAudioVolumeGroupChanged_dispatchCallbackEvent()
5413 when(mAudioManager.getVolumeIndexForAttributes(eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))) in onAudioVolumeGroupChanged_dispatchCallbackEvent_whenMuted()
6695 eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))) in mockCoreAudioRoutingAndVolume()
6698 eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))) in mockCoreAudioRoutingAndVolume()
6700 when(mAudioManager.getVolumeIndexForAttributes(eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))) in mockCoreAudioRoutingAndVolume()
6723 CoreAudioRoutingUtils.MUSIC_ATTRIBUTES)); in mockCoreAudioRoutingAndVolume()
6724 doReturn(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES) in mockCoreAudioRoutingAndVolume()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCoreAudioRoutingUtils.java40 static final AudioAttributes MUSIC_ATTRIBUTES = new AudioAttributes.Builder() field in CoreAudioRoutingUtils
268 new AudioAttributes[] { MUSIC_ATTRIBUTES }, MUSIC_CONTEXT_NAME, in getCarAudioContextInfos()
DCarAudioZonesHelperTest.java2099 CoreAudioRoutingUtils.MUSIC_ATTRIBUTES)); in setupAudioManagerMock()
2100 doReturn(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES) in setupAudioManagerMock()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/focus/
DFocusInteraction.java72 static final AudioAttributes[] MUSIC_ATTRIBUTES = new AudioAttributes[] { field in FocusInteraction
332 MUSIC_ATTRIBUTES,