Home
last modified time | relevance | path

Searched refs:CoreAudioRoutingUtils (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCoreAudioHelperTest.java19 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_CONTEXT_NAME;
20 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_GROUP_ID;
21 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_GROUP_NAME;
22 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_STRATEGY;
23 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_STRATEGY_ID;
24 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
25 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_CONTEXT_NAME;
26 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP;
27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_ID;
28 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_NAME;
[all …]
DCoreAudioVolumeGroupTest.java25 import static com.android.car.audio.CoreAudioRoutingUtils.MEDIA_CONTEXT_INFO;
26 import static com.android.car.audio.CoreAudioRoutingUtils.MOVIE_ATTRIBUTES;
27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_AM_INIT_INDEX;
28 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
29 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_CAR_GROUP_ID;
30 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_DEVICE_ADDRESS;
31 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_ID;
32 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_NAME;
33 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_MAX_INDEX;
34 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_MIN_INDEX;
[all …]
DCarAudioContextTest.java146 doReturn(CoreAudioRoutingUtils.getProductStrategies()) in setupMock()
148 doReturn(CoreAudioRoutingUtils.getVolumeGroups()) in setupMock()
151 doReturn(CoreAudioRoutingUtils.MUSIC_STRATEGY_ID) in setupMock()
153 eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))); in setupMock()
154 doReturn(CoreAudioRoutingUtils.NAV_STRATEGY_ID) in setupMock()
156 eq(CoreAudioRoutingUtils.NAV_ATTRIBUTES))); in setupMock()
157 doReturn(CoreAudioRoutingUtils.OEM_STRATEGY_ID) in setupMock()
159 eq(CoreAudioRoutingUtils.OEM_ATTRIBUTES))); in setupMock()
162 eq(CoreAudioRoutingUtils.UNSUPPORTED_ATTRIBUTES))); in setupMock()
177 CoreAudioRoutingUtils.getCarAudioContextInfos(), /* useCoreAudioRouting= */ true); in getContextForAudioAttribute_usingCoreRouting()
[all …]
DCarAudioServiceUnitTest.java4135 .isEqualTo(CoreAudioRoutingUtils.getVolumeGroups().size()); in getVolumeGroupAndContextCount()
4138 .isEqualTo(CoreAudioRoutingUtils.getProductStrategies().size()); in getVolumeGroupAndContextCount()
4141 .containsExactly(CoreAudioRoutingUtils.NAV_STRATEGY_ID, in getVolumeGroupAndContextCount()
4142 CoreAudioRoutingUtils.MUSIC_STRATEGY_ID, in getVolumeGroupAndContextCount()
4143 CoreAudioRoutingUtils.OEM_STRATEGY_ID); in getVolumeGroupAndContextCount()
5374 PRIMARY_AUDIO_ZONE, CoreAudioRoutingUtils.MUSIC_CAR_GROUP_ID); in onAudioVolumeGroupChanged_dispatchCallbackEvent()
5376 when(mAudioManager.getVolumeIndexForAttributes(eq(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES))) in onAudioVolumeGroupChanged_dispatchCallbackEvent()
5378 when(mAudioManager.getLastAudibleVolumeForVolumeGroup(CoreAudioRoutingUtils.MUSIC_GROUP_ID)) in onAudioVolumeGroupChanged_dispatchCallbackEvent()
5380 when(mAudioManager.isVolumeGroupMuted(CoreAudioRoutingUtils.MUSIC_GROUP_ID)) in onAudioVolumeGroupChanged_dispatchCallbackEvent()
5384 CoreAudioRoutingUtils.MUSIC_GROUP_NAME, /* flags= */ 0); in onAudioVolumeGroupChanged_dispatchCallbackEvent()
[all …]
DCarHalAudioUtilsTest.java27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
28 import static com.android.car.audio.CoreAudioRoutingUtils.OEM_ATTRIBUTES;
29 import static com.android.car.audio.CoreAudioRoutingUtils.OEM_FORMATTED_TAGS;
DCoreAudioRoutingUtils.java35 public final class CoreAudioRoutingUtils { class
308 private CoreAudioRoutingUtils() { in CoreAudioRoutingUtils() method in CoreAudioRoutingUtils
DAudioManagerWrapperTest.java473 List<AudioVolumeGroup> groups = CoreAudioRoutingUtils.getVolumeGroups(); in getAudioVolumeGroups()
482 List<AudioProductStrategy> strategies = CoreAudioRoutingUtils.getProductStrategies(); in getAudioProductStrategies()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java63 import com.android.car.audio.CoreAudioRoutingUtils;
90 CoreAudioRoutingUtils.MOVIE_ATTRIBUTES);
269 CoreAudioRoutingUtils.getCarAudioContextInfos(), /* useCoreAudioRouting= */ true)); in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
270 doReturn(CoreAudioRoutingUtils.MUSIC_STRATEGY_ID).when(carAudioContextUsingCoreRouting) in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
272 doReturn(CoreAudioRoutingUtils.MUSIC_STRATEGY_ID).when(carAudioContextUsingCoreRouting) in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
273 .getContextForAudioAttribute(CoreAudioRoutingUtils.MOVIE_ATTRIBUTES); in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java2092 doReturn(CoreAudioRoutingUtils.getProductStrategies()) in setupAudioManagerMock()
2094 doReturn(CoreAudioRoutingUtils.getVolumeGroups()) in setupAudioManagerMock()
2097 doReturn(CoreAudioRoutingUtils.MUSIC_GROUP_ID) in setupAudioManagerMock()
2099 CoreAudioRoutingUtils.MUSIC_ATTRIBUTES)); in setupAudioManagerMock()
2100 doReturn(CoreAudioRoutingUtils.MUSIC_ATTRIBUTES) in setupAudioManagerMock()
2102 CoreAudioRoutingUtils.MUSIC_GROUP_NAME)); in setupAudioManagerMock()
2104 doReturn(CoreAudioRoutingUtils.NAV_GROUP_ID) in setupAudioManagerMock()
2106 CoreAudioRoutingUtils.NAV_ATTRIBUTES)); in setupAudioManagerMock()
2107 doReturn(CoreAudioRoutingUtils.NAV_ATTRIBUTES) in setupAudioManagerMock()
2109 CoreAudioRoutingUtils.NAV_GROUP_NAME)); in setupAudioManagerMock()
[all …]
DCoreAudioRoutingUtils.java35 final class CoreAudioRoutingUtils { class
252 private CoreAudioRoutingUtils() { in CoreAudioRoutingUtils() method in CoreAudioRoutingUtils