Home
last modified time | relevance | path

Searched refs:mCarAudioManager (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java48 private CarAudioManager mCarAudioManager; field in VolumeTestFragment
119 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE);
140 mCarAudioManager.setFadeTowardFront(percent); in onCreateView()
142 mCarAudioManager.setBalanceTowardRight(percent); in onCreateView()
163 if (mCarAudioManager == null) { in adjustVolumeByOne()
167 int current = mCarAudioManager.getGroupVolume(groupId); in adjustVolumeByOne()
169 mCarAudioManager.setGroupVolume(groupId, volume, in adjustVolumeByOne()
179 int volumeGroupCount = mCarAudioManager.getVolumeGroupCount(); in initVolumeInfo()
195 int current = mCarAudioManager.getGroupVolume(groupId); in initVolumeInfo()
196 int max = mCarAudioManager.getGroupMaxVolume(groupId); in initVolumeInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceController.java68 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE);
69 int volumeGroupCount = mCarAudioManager.getVolumeGroupCount();
74 mCarAudioManager.getUsagesForVolumeGroupId(groupId));
95 private CarAudioManager mCarAudioManager; field in VolumeSettingsPreferenceController
148 preference.setValue(mCarAudioManager.getGroupVolume(volumeGroupId)); in createVolumeSeekBarPreference()
149 preference.setMin(mCarAudioManager.getGroupMinVolume(volumeGroupId)); in createVolumeSeekBarPreference()
150 preference.setMax(mCarAudioManager.getGroupMaxVolume(volumeGroupId)); in createVolumeSeekBarPreference()
172 mCarAudioManager.setGroupVolume(volumeGroupId, newVolume, /* flags= */ 0); in setGroupVolume()
180 mCarAudioManager = null; in cleanupAudioManager()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceControllerTest.java67 private CarAudioManager mCarAudioManager; field in VolumeSettingsPreferenceControllerTest
89 ShadowCar.setCarManager(Car.AUDIO_SERVICE, mCarAudioManager); in setUp()
98 when(mCarAudioManager.getVolumeGroupCount()).thenReturn(1); in setUp()
99 when(mCarAudioManager.getUsagesForVolumeGroupId(GROUP_ID)).thenReturn(new int[]{1, 2}); in setUp()
100 when(mCarAudioManager.getGroupMinVolume(GROUP_ID)).thenReturn(TEST_MIN_VOLUME); in setUp()
101 when(mCarAudioManager.getGroupVolume(GROUP_ID)).thenReturn(TEST_VOLUME); in setUp()
102 when(mCarAudioManager.getGroupMaxVolume(GROUP_ID)).thenReturn(TEST_MAX_VOLUME); in setUp()
159 verify(mCarAudioManager).setGroupVolume(GROUP_ID, TEST_NEW_VOLUME, 0); in testOnPreferenceChange_audioManagerSet()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarAudioManagerTest.java34 private CarAudioManager mCarAudioManager; field in CarAudioManagerTest
40 mCarAudioManager = (CarAudioManager) getCar().getCarManager(Car.AUDIO_SERVICE); in setUp()
45 String[] sources = mCarAudioManager.getExternalSources(); in testGetExternalSources()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java91 private CarAudioManager mCarAudioManager; field in AudioTestFragment
141 mCarAudioManager = (CarAudioManager) car.getCarManager(Car.AUDIO_SERVICE); in connectCar()
144 int[] zoneList = mCarAudioManager.getAudioZoneIds(); in connectCar()
153 if (mCarAudioManager.isDynamicRoutingEnabled()) { in connectCar()
391 if (mCarAudioManager.setZoneIdForUid(zone, uid)) { in handleZoneSelection()
548 int zoneIdForDisplayId = mCarAudioManager.getZoneIdForDisplayPortId(selectedDisplayPortId); in createDisplayAudioPlayer()
569 int zoneIdForDisplayId = mCarAudioManager.getZoneIdForDisplayPortId(selectedDisplayPortId); in startDisplayAudio()