Home
last modified time | relevance | path

Searched refs:CoreAudioHelper (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCoreAudioHelperTest.java67 super(CoreAudioHelper.TAG); in CoreAudioHelperTest()
86 .that(CoreAudioHelper.getStrategyForAudioAttributes(MUSIC_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
89 .that(CoreAudioHelper.getStrategyForAudioAttributes(NAV_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
92 .that(CoreAudioHelper.getStrategyForAudioAttributes(OEM_ATTRIBUTES)) in getStrategyForAudioAttributes_withValidAttributes_succeeds()
100 .that(CoreAudioHelper.getStrategyForAudioAttributes(UNSUPPORTED_ATTRIBUTES)) in getStrategyForAudioAttributes_withInvalidAttributes_returnsInvalidStrategy()
101 .isEqualTo(CoreAudioHelper.INVALID_STRATEGY); in getStrategyForAudioAttributes_withInvalidAttributes_returnsInvalidStrategy()
107 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(MUSIC_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
110 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(NAV_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
113 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault(OEM_ATTRIBUTES)) in getStrategyForAudioAttributesOrDefault_withValidAttributes_succeeds()
121 .that(CoreAudioHelper.getStrategyForAudioAttributesOrDefault( in getStrategyForAudioAttributesOrDefault_withInvalidAttributes_fallbacksOnDefault()
[all …]
DCoreAudioVolumeGroupTest.java113 session.spyStatic(CoreAudioHelper.class) in onSessionBuilder()
118 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes(MUSIC_ATTRIBUTES)); in setupMock()
120 .when(() -> CoreAudioHelper.getProductStrategyForAudioAttributes(MUSIC_ATTRIBUTES)); in setupMock()
122 .when(() -> CoreAudioHelper.getProductStrategyForAudioAttributes(MOVIE_ATTRIBUTES)); in setupMock()
124 CoreAudioHelper.selectAttributesForVolumeGroupName(eq(MUSIC_GROUP_NAME))); in setupMock()
137 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes(NAV_ATTRIBUTES)); in setupMock()
139 .when(() -> CoreAudioHelper in setupMock()
147 .when(() -> CoreAudioHelper in setupMock()
152 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in setupMock()
DCoreAudioVolumeGroupCallbackTest.java81 .spyStatic(CoreAudioHelper.class); in setUp()
153 .when(() -> CoreAudioHelper.getVolumeGroupNameFromCoreId( in onAudioVolumeGroupChanged_withValidGroupId_dispatchesVolumeChange()
171 .when(() -> CoreAudioHelper.getVolumeGroupNameFromCoreId( in onAudioVolumeGroupChanged_withValidGroupId_bailsOut()
DCarAudioContextTest.java141 .spyStatic(CoreAudioHelper.class) in onSessionBuilder()
152 .when(() -> CoreAudioHelper.getStrategyForAudioAttributes( in setupMock()
155 .when(() -> CoreAudioHelper.getStrategyForAudioAttributes( in setupMock()
158 .when(() -> CoreAudioHelper.getStrategyForAudioAttributes( in setupMock()
160 doReturn(CoreAudioHelper.INVALID_STRATEGY) in setupMock()
161 .when(() -> CoreAudioHelper.getStrategyForAudioAttributes( in setupMock()
DCarAudioServiceUnitTest.java542 .spyStatic(CoreAudioHelper.class) in onSessionBuilder()
6722 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in mockCoreAudioRoutingAndVolume()
6725 .when(() -> CoreAudioHelper.selectAttributesForVolumeGroupName( in mockCoreAudioRoutingAndVolume()
6729 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in mockCoreAudioRoutingAndVolume()
6732 .when(() -> CoreAudioHelper.selectAttributesForVolumeGroupName( in mockCoreAudioRoutingAndVolume()
6736 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in mockCoreAudioRoutingAndVolume()
6739 .when(() -> CoreAudioHelper.selectAttributesForVolumeGroupName( in mockCoreAudioRoutingAndVolume()
/packages/services/Car/service/src/com/android/car/audio/
DCoreAudioVolumeGroup.java25 import static com.android.car.audio.CoreAudioHelper.getProductStrategyForAudioAttributes;
74 mAudioAttributes = CoreAudioHelper.selectAttributesForVolumeGroupName(name); in CoreAudioVolumeGroup()
75 mAmId = CoreAudioHelper.getVolumeGroupIdForAudioAttributes(mAudioAttributes); in CoreAudioVolumeGroup()
DCoreAudioHelper.java39 final class CoreAudioHelper { class
45 private CoreAudioHelper() { in CoreAudioHelper() method in CoreAudioHelper
DCoreAudioVolumeGroupCallback.java63 String groupName = CoreAudioHelper.getVolumeGroupNameFromCoreId(groupId); in onAudioVolumeGroupChanged()
DCarAudioContext.java414 if (CoreAudioHelper.getStrategyForAudioAttributes(attributes) != contextId) { in CarAudioContext()
563 int strategyId = CoreAudioHelper.getStrategyForAudioAttributes(attributes); in getContextForAudioAttribute()
564 if ((strategyId != CoreAudioHelper.INVALID_STRATEGY) in getContextForAudioAttribute()
DCarAudioZonesHelper.java350 contextId = CoreAudioHelper.getStrategyForContextName(contextName); in parseCarAudioContext()
351 if (contextId == CoreAudioHelper.INVALID_STRATEGY) { in parseCarAudioContext()
372 AudioProductStrategy strategy = CoreAudioHelper.getStrategy(contextId); in validateCarAudioContextAttributes()
377 && !CoreAudioHelper.isDefaultStrategy(strategy.getId())) { in validateCarAudioContextAttributes()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java223 .spyStatic(CoreAudioHelper.class); in setUp()
2098 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in setupAudioManagerMock()
2101 .when(() -> CoreAudioHelper.selectAttributesForVolumeGroupName( in setupAudioManagerMock()
2105 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in setupAudioManagerMock()
2108 .when(() -> CoreAudioHelper.selectAttributesForVolumeGroupName( in setupAudioManagerMock()
2112 .when(() -> CoreAudioHelper.getVolumeGroupIdForAudioAttributes( in setupAudioManagerMock()
2115 .when(() -> CoreAudioHelper.selectAttributesForVolumeGroupName( in setupAudioManagerMock()