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.java50 private CarAudioManager mCarAudioManager; field in VolumeTestFragment
120 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE);
147 mCarAudioManager.setFadeTowardFront(percent); in onCreateView()
149 mCarAudioManager.setBalanceTowardRight(percent); in onCreateView()
170 if (mCarAudioManager == null) { in adjustVolumeByOne()
174 int current = mCarAudioManager.getGroupVolume(groupId); in adjustVolumeByOne()
176 mCarAudioManager.setGroupVolume(groupId, volume, in adjustVolumeByOne()
186 int volumeGroupCount = mCarAudioManager.getVolumeGroupCount(); in initVolumeInfo()
202 int current = mCarAudioManager.getGroupVolume(groupId); in initVolumeInfo()
203 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.java94 private CarAudioManager mCarAudioManager; field in AudioTestFragment
142 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE); in connectCar()
145 int[] zoneList = mCarAudioManager.getAudioZoneIds(); in connectCar()
153 if (mCarAudioManager.isDynamicRoutingEnabled()) { in connectCar()
387 if (mCarAudioManager.setZoneIdForUid(zone, uid)) { in handleZoneSelection()
544 int zoneIdForDisplayId = mCarAudioManager.getZoneIdForDisplayPortId(selectedDisplayPortId); in createDisplayAudioPlayer()
565 int zoneIdForDisplayId = mCarAudioManager.getZoneIdForDisplayPortId(selectedDisplayPortId); in startDisplayAudio()