Home
last modified time | relevance | path

Searched refs:CarAudioManager (Results 1 – 25 of 48) sorted by relevance

12

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/media/
DCarAudioManagerTest.java25 import android.car.media.CarAudioManager;
41 private CarAudioManager mCarAudioManager;
45 mCarAudioManager = (CarAudioManager) getCar().getCarManager(Car.AUDIO_SERVICE); in setUp()
55 assertThat(zoneIds).contains(CarAudioManager.PRIMARY_AUDIO_ZONE); in test_getAudioZoneIds()
61 mCarAudioManager.isAudioFeatureEnabled(CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING); in test_isAudioFeatureEnabled()
62 mCarAudioManager.isAudioFeatureEnabled(CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING); in test_isAudioFeatureEnabled()
69 mCarAudioManager.getVolumeGroupCount(CarAudioManager.PRIMARY_AUDIO_ZONE)).isEqualTo( in test_getVolumeGroupCount()
77 assertThat(mCarAudioManager.getGroupVolume(CarAudioManager.PRIMARY_AUDIO_ZONE, in test_getGroupVolume()
80 assertThat(mCarAudioManager.getGroupMaxVolume(CarAudioManager.PRIMARY_AUDIO_ZONE, in test_getGroupVolume()
83 assertThat(mCarAudioManager.getGroupMinVolume(CarAudioManager.PRIMARY_AUDIO_ZONE, in test_getGroupVolume()
[all …]
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/media/
DCarAudioManagerPublicPermissionTest.java26 import android.car.media.CarAudioManager;
27 import android.car.media.CarAudioManager.CarVolumeCallback;
43 private CarAudioManager mCarAudioManager;
49 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); in setUp()
64 CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING); in isAudioFeatureEnabled_withVolumeGroupMuteFeature_succeeds()
73 CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING); in isAudioFeatureEnabled_withDynamicRoutingFeature_succeeds()
DCarAudioManagerPermissionTest.java23 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
31 import android.car.media.CarAudioManager;
52 private CarAudioManager mCarAudioManager;
59 mCarAudioManager = (CarAudioManager) car.getCarManager(AUDIO_SERVICE); in setUp()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/
DVolumeUI.java20 import android.car.media.CarAudioManager;
51 private final CarAudioManager.CarVolumeCallback mVolumeChangeCallback =
52 new CarAudioManager.CarVolumeCallback() {
75 private CarAudioManager mCarAudioManager;
104 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); in start()
DCarVolumeDialogImpl.java27 import android.car.media.CarAudioManager;
108 private CarAudioManager mCarAudioManager;
117 private final CarAudioManager.CarVolumeCallback mVolumeChangeCallback =
118 new CarAudioManager.CarVolumeCallback() {
162 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE);
211 private static int getSeekbarValue(CarAudioManager carAudioManager, int volumeGroupId) { in getSeekbarValue()
215 private static int getMaxSeekbarValue(CarAudioManager carAudioManager, int volumeGroupId) { in getMaxSeekbarValue()
625 private final CarAudioManager mCarAudioManager;
627 private VolumeSeekBarChangeListener(int volumeGroupId, CarAudioManager carAudioManager) { in VolumeSeekBarChangeListener()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceController.java24 import android.car.media.CarAudioManager;
66 final CarAudioManager.CarVolumeCallback mVolumeChangeCallback =
67 new CarAudioManager.CarVolumeCallback() {
100 private CarAudioManager mCarAudioManager;
120 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE); in VolumeSettingsPreferenceController()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioInputTestFragment.java22 import android.car.media.CarAudioManager;
52 private CarAudioManager mCarAudioManager;
74 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE);
113 CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING)) { in initInputInfo()
DAudioSystemPlayerFragment.java26 import android.car.media.CarAudioManager;
55 private final CarAudioManager mCarAudioManager;
61 AudioSystemPlayerFragment(CarAudioManager carAudioManager, AudioManager audioManager) { in AudioSystemPlayerFragment()
DCarAudioZoneInputFragment.java21 import android.car.media.CarAudioManager;
58 private final CarAudioManager mCarAudioManager;
75 public CarAudioZoneInputFragment(int audioZoneId, CarAudioManager carAudioManager, in CarAudioZoneInputFragment()
DAudioTestFragment.java23 import static android.car.media.CarAudioManager.AUDIOFOCUS_EXTRA_REQUEST_ZONE_ID;
24 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING;
25 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
54 import android.car.media.CarAudioManager;
136 private CarAudioManager mCarAudioManager;
200 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); in connectCar()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarAudioManagerTest.java19 import android.car.media.CarAudioManager;
34 private CarAudioManager mCarAudioManager;
40 mCarAudioManager = (CarAudioManager) getCar().getCarManager(Car.AUDIO_SERVICE); in setUp()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java18 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING;
19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING;
20 import static android.car.media.CarAudioManager.CarAudioFeature;
21 import static android.car.media.CarAudioManager.INVALID_VOLUME_GROUP_ID;
22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
36 import android.car.media.CarAudioManager;
162 final int zoneId = CarAudioManager.PRIMARY_AUDIO_ZONE;
834 int groupId = getVolumeGroupIdForUsage(CarAudioManager.PRIMARY_AUDIO_ZONE, usage); in createAudioPatchLocked()
835 setGroupVolume(CarAudioManager.PRIMARY_AUDIO_ZONE, groupId, in createAudioPatchLocked()
836 getGroupVolume(CarAudioManager.PRIMARY_AUDIO_ZONE, groupId), 0); in createAudioPatchLocked()
[all …]
DFocusEntry.java22 import android.car.media.CarAudioManager;
99 if (!bundle.getBoolean(CarAudioManager.AUDIOFOCUS_EXTRA_RECEIVE_DUCKING_EVENTS)) { in receivesDuckEvents()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING;
22 import android.car.media.CarAudioManager;
59 private final CarAudioManager mCarAudioManager;
116 public CarAudioZoneVolumeFragment(int zoneId, CarAudioManager carAudioManager, in CarAudioZoneVolumeFragment()
202 if (mZoneId == CarAudioManager.PRIMARY_AUDIO_ZONE) { in requestFocus()
DVolumeTestFragment.java20 import android.car.media.CarAudioManager;
21 import android.car.media.CarAudioManager.CarVolumeCallback;
53 private CarAudioManager mCarAudioManager;
122 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE);
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
24 import android.car.media.CarAudioManager;
48 private final CarAudioManager mCarAudioManager;
82 @NonNull CarAudioManager carAudioManager, in CustomInputEventListener()
DSampleCustomInputService.java23 import android.car.media.CarAudioManager;
76 (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE), in connectToCarService()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java24 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING;
40 import android.car.media.CarAudioManager;
69 private CarAudioManager mCarAudioManager;
112 mCarAudioManager = (CarAudioManager) car.getCarManager(AUDIO_SERVICE); in connectCar()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarZonesAudioFocusUnitTest.java32 import android.car.media.CarAudioManager;
56 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
57 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1;
254 bundle.putInt(CarAudioManager.AUDIOFOCUS_EXTRA_REQUEST_ZONE_ID, zoneId); in generateAudioFocusInfoWithBundledZoneId()
DCarVolumeGroupMutingTest.java31 import android.car.media.CarAudioManager;
57 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
58 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1;
59 private static final int TERTIARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 2;
DCarAudioSettingsUnitTest.java21 import android.car.media.CarAudioManager;
37 private static final int TEST_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
DFocusEntryTest.java24 import android.car.media.CarAudioManager;
120 bundle.putBoolean(CarAudioManager.AUDIOFOCUS_EXTRA_RECEIVE_DUCKING_EVENTS, in getInfoThatReceivesDuckingEvents()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarZonesAudioFocusTest.java36 import android.car.media.CarAudioManager;
65 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
66 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1;
158 bundle.putInt(CarAudioManager.AUDIOFOCUS_EXTRA_REQUEST_ZONE_ID, in onAudioFocusRequest_withBundleFocusRequest_requestGranted()
DCarAudioZonesValidatorTest.java20 import android.car.media.CarAudioManager;
110 when(zoneMock.getId()).thenReturn(CarAudioManager.PRIMARY_AUDIO_ZONE); in getMockPrimaryZone()
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java20 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
35 import android.car.media.CarAudioManager;
79 @Mock private CarAudioManager mCarAudioManager;

12