/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/ |
D | OemCarAudioFocusEvaluationRequestUnitTest.java | 29 import android.car.media.CarAudioManager; 54 private static final int TEST_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1; 61 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, CarAudioManager.PRIMARY_AUDIO_ZONE, 80 List.of(TEST_NAV_AUDIO_FOCUS_ENTRY), CarAudioManager.PRIMARY_AUDIO_ZONE) in build() 92 .isEqualTo(CarAudioManager.PRIMARY_AUDIO_ZONE); in build() 119 List.of(TEST_NAV_AUDIO_FOCUS_ENTRY), CarAudioManager.PRIMARY_AUDIO_ZONE) in createRequestAndWriteToParcel() 131 CarAudioManager.PRIMARY_AUDIO_ZONE) in builder_withReuse_fails() 148 List.of(TEST_NAV_AUDIO_FOCUS_ENTRY), CarAudioManager.PRIMARY_AUDIO_ZONE) in builder_withNullFocusRequest_succeeds() 154 /* carAudioFeaturesInfo= */ null, CarAudioManager.PRIMARY_AUDIO_ZONE); in builder_withNullFocusRequest_succeeds() 167 CarAudioManager.PRIMARY_AUDIO_ZONE).setAudioZoneId(TEST_ZONE_ID).build(); in setAudioZoneId_succeeds() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | BaseVolumeSliderWorker.java | 21 import android.car.media.CarAudioManager; 39 private final CarAudioManager.CarVolumeCallback mVolumeChangeCallback = 40 new CarAudioManager.CarVolumeCallback() { 71 CarAudioManager carAudioManager = getCarAudioManager(); in onQCItemSubscribe() 79 CarAudioManager carAudioManager = getCarAudioManager(); in onQCItemUnsubscribe() 90 CarAudioManager.CarVolumeCallback getVolumeChangeCallback() { in getVolumeChangeCallback() 99 CarAudioManager carAudioManager = getCarAudioManager(); in updateVolumeAndMute() 116 private CarAudioManager getCarAudioManager() { in getCarAudioManager()
|
D | BaseVolumeSlider.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING; 27 import android.car.media.CarAudioManager; 77 CarAudioManager carAudioManager = getCarAudioManager(); in getQCItem() 79 if (carAudioManager == null || zoneId == CarAudioManager.INVALID_AUDIO_ZONE) { in getQCItem() 153 CarAudioManager carAudioManager = getCarAudioManager(); in setGroupVolume() 155 if (carAudioManager == null || zoneId == CarAudioManager.INVALID_AUDIO_ZONE) { in setGroupVolume() 175 private CarAudioManager getCarAudioManager() { in getCarAudioManager()
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | VolumeSettingsPreferenceController.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 20 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_EVENTS; 21 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING; 36 import android.car.media.CarAudioManager; 85 final CarAudioManager.CarVolumeCallback mVolumeChangeCallback = 86 new CarAudioManager.CarVolumeCallback() { 129 CarAudioManager carAudioManager = getCarAudioManager(); in VolumeSettingsPreferenceController() 142 private void generateVolumePreferences(CarAudioManager carAudioManager) { in generateVolumePreferences() 210 CarAudioManager carAudioManager = getCarAudioManager(); in createVolumeSeekBarPreference() 242 private boolean isGroupMuted(CarAudioManager carAudioManager, int volumeGroupId) { in isGroupMuted() [all …]
|
D | AudioRoutesManager.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 24 import android.car.media.CarAudioManager; 55 private CarAudioManager mCarAudioManager; 80 if (status == CarAudioManager.CONFIG_STATUS_CHANGED) { 200 public CarAudioManager getCarAudioManager() { in getCarAudioManager()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/ |
D | VolumeUI.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_EVENTS; 20 import static android.car.media.CarAudioManager.INVALID_AUDIO_ZONE; 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 28 import android.car.media.CarAudioManager; 68 private final CarAudioManager.CarVolumeCallback mVolumeChangeCallback = 69 new CarAudioManager.CarVolumeCallback() { 130 private CarAudioManager mCarAudioManager; 183 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); in start()
|
D | CarVolumeDialogImpl.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_EVENTS; 20 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING; 21 import static android.car.media.CarAudioManager.INVALID_AUDIO_ZONE; 22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 41 import android.car.media.CarAudioManager; 135 private CarAudioManager mCarAudioManager; 146 private final CarAudioManager.CarVolumeCallback mVolumeChangeCallback = 147 new CarAudioManager.CarVolumeCallback() { 219 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); 300 private static int getSeekbarValue(CarAudioManager carAudioManager, int volumeZoneId, in getSeekbarValue() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioMirrorTestFragment.java | 21 import static android.car.media.CarAudioManager.AUDIO_FEATURE_AUDIO_MIRRORING; 22 import static android.car.media.CarAudioManager.AUDIO_MIRROR_CAN_ENABLE; 23 import static android.car.media.CarAudioManager.AUDIO_REQUEST_STATUS_APPROVED; 24 import static android.car.media.CarAudioManager.INVALID_AUDIO_ZONE; 25 import static android.car.media.CarAudioManager.INVALID_REQUEST_ID; 26 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 32 import android.car.media.CarAudioManager; 62 private CarAudioManager mCarAudioManager; 217 mCarAudioManager = car.getCarManager(CarAudioManager.class); in onCarReady()
|
D | AudioUserAssignmentFragment.java | 22 import static android.car.media.CarAudioManager.AUDIO_FEATURE_AUDIO_MIRRORING; 23 import static android.car.media.CarAudioManager.INVALID_REQUEST_ID; 28 import android.car.media.CarAudioManager; 63 private CarAudioManager mCarAudioManager; 78 @CarAudioManager.MediaAudioRequestStatus int status) { 79 if (status == CarAudioManager.AUDIO_REQUEST_STATUS_CANCELLED) { 88 if (status == CarAudioManager.AUDIO_REQUEST_STATUS_APPROVED) { 346 mCarAudioManager = car.getCarManager(CarAudioManager.class); in onCarReady()
|
D | AudioConfigurationTestFragment.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 20 import static android.car.media.CarAudioManager.INVALID_AUDIO_ZONE; 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 29 import android.car.media.CarAudioManager; 60 private CarAudioManager mCarAudioManager; 90 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); in connectCar()
|
D | CarAudioInputTestFragment.java | 22 import android.car.media.CarAudioManager; 56 private CarAudioManager mCarAudioManager; 78 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); 117 CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING)) { in initInputInfo()
|
D | ZoneConfigSelectionController.java | 21 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 22 import static android.car.media.CarAudioManager.CONFIG_STATUS_CHANGED; 27 import android.car.media.CarAudioManager; 60 private final CarAudioManager mCarAudioManager; 77 ZoneConfigSelectionController(View view, CarAudioManager carAudioManager, Context context, in ZoneConfigSelectionController()
|
/packages/apps/Car/Settings/src/com/android/car/settings/ |
D | CarSettingsApplication.java | 28 import android.car.media.CarAudioManager; 48 private int mAudioZoneId = CarAudioManager.INVALID_AUDIO_ZONE; 52 private CarAudioManager mCarAudioManager = null; 86 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); 137 public final CarAudioManager getCarAudioManager() { in getCarAudioManager()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/statusicon/ui/ |
D | MediaVolumeStatusIconController.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 24 import android.car.media.CarAudioManager; 55 private CarAudioManager mCarAudioManager; 83 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); 155 private final CarAudioManager.CarVolumeCallback mVolumeChangeCallback = 156 new CarAudioManager.CarVolumeCallback() {
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioMirrorRequestHandlerTest.java | 19 import static android.car.media.CarAudioManager.AUDIO_MIRROR_CAN_ENABLE; 20 import static android.car.media.CarAudioManager.AUDIO_MIRROR_OUT_OF_OUTPUT_DEVICES; 21 import static android.car.media.CarAudioManager.INVALID_REQUEST_ID; 22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 27 import android.car.media.CarAudioManager; 330 .isEqualTo(CarAudioManager.AUDIO_REQUEST_STATUS_APPROVED); in enableMirrorForZones_afterRegisteringCallback() 357 .isEqualTo(CarAudioManager.AUDIO_REQUEST_STATUS_REJECTED); in rejectMirrorForZones() 401 .isEqualTo(CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED); in updateMirrorConfigurationForZones() 423 CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED); in updateMirrorConfigurationForZones_forSingleZone_inThreeZoneConfig()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | VolumeButton.java | 23 import android.car.media.CarAudioManager; 31 CarAudioManager carAudioManager = car.getCarManager(CarAudioManager.class); in VolumeButton()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | VolumeTestFragment.java | 18 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_EVENTS; 23 import android.car.media.CarAudioManager; 24 import android.car.media.CarAudioManager.CarVolumeCallback; 60 private CarAudioManager mCarAudioManager; 140 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE);
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/ |
D | CarAudioManagerUnitTest.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 20 import static android.car.media.CarAudioManager.CONFIG_STATUS_CHANGED; 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 134 private CarAudioManager.CarVolumeCallback mVolumeCallbackMock1; 136 private CarAudioManager.CarVolumeCallback mVolumeCallbackMock2; 156 private CarAudioManager mCarAudioManager; 169 mCarAudioManager = new CarAudioManager(mCar, mBinderMock); in setUp() 1254 CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED); in onMediaAudioRequestStatusChanged_forIPrimaryZoneMediaAudioRequestCallback() 1258 CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED); in onMediaAudioRequestStatusChanged_forIPrimaryZoneMediaAudioRequestCallback() 1263 int expectedRequestStatus = CarAudioManager.AUDIO_REQUEST_STATUS_APPROVED; in requestMediaAudioOnPrimaryZone() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioMirrorRequestHandler.java | 19 import static android.car.media.CarAudioManager.AUDIO_MIRROR_CAN_ENABLE; 20 import static android.car.media.CarAudioManager.AUDIO_MIRROR_OUT_OF_OUTPUT_DEVICES; 21 import static android.car.media.CarAudioManager.INVALID_REQUEST_ID; 27 import android.car.media.CarAudioManager; 148 handleInformCallbacks(audioZones, CarAudioManager.AUDIO_REQUEST_STATUS_APPROVED)); in enableMirrorForZones() 191 handleInformCallbacks(audioZones, CarAudioManager.AUDIO_REQUEST_STATUS_REJECTED)); in rejectMirrorForZones() 220 CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED)); in updateRemoveMirrorConfigurationForZones()
|
D | MediaRequestHandler.java | 19 import static android.car.media.CarAudioManager.INVALID_REQUEST_ID; 27 import android.car.media.CarAudioManager; 175 requestId, CarAudioManager.AUDIO_REQUEST_STATUS_CANCELLED); in cancelMediaAudioOnPrimaryZone() 181 CarAudioManager.AUDIO_REQUEST_STATUS_CANCELLED); in cancelMediaAudioOnPrimaryZone() 193 requestId, CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED); in stopMediaAudioOnPrimaryZone() 199 CarAudioManager.AUDIO_REQUEST_STATUS_STOPPED); in stopMediaAudioOnPrimaryZone() 357 int status = allowed ? CarAudioManager.AUDIO_REQUEST_STATUS_APPROVED : in informMediaAudioRequestCallbackAndApprovers() 358 CarAudioManager.AUDIO_REQUEST_STATUS_REJECTED; in informMediaAudioRequestCallbackAndApprovers()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/ |
D | MediaVolumeStatusIconControllerTest.java | 31 import android.car.media.CarAudioManager; 67 CarAudioManager mCarAudioManager; 80 private CarAudioManager.CarVolumeCallback mVolumeChangeCallback; 227 ArgumentCaptor<CarAudioManager.CarVolumeCallback> callbackCaptor = in attachAndSetAudioMocks() 228 ArgumentCaptor.forClass(CarAudioManager.CarVolumeCallback.class); in attachAndSetAudioMocks()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/media/ |
D | CarAudioManagerTest.java | 20 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING; 21 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING; 22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 31 import android.car.media.CarAudioManager; 51 private CarAudioManager mCarAudioManager; 55 mCarAudioManager = (CarAudioManager) getCar().getCarManager(AUDIO_SERVICE); in setUp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | VolumeSliderTestCase.java | 19 import static android.car.media.CarAudioManager.AUDIO_FEATURE_VOLUME_GROUP_MUTING; 30 import android.car.media.CarAudioManager; 52 protected CarAudioManager mCarAudioManager;
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | AudioAutoStartActivity.java | 24 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/SampleCustomInputService/src/com/android/car/custominput/sample/ |
D | CustomInputEventListener.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 24 import android.car.media.CarAudioManager; 54 private final CarAudioManager mCarAudioManager; 97 @NonNull CarAudioManager carAudioManager, in CustomInputEventListener()
|