Home
last modified time | relevance | path

Searched refs:PRIMARY_AUDIO_ZONE (Results 1 – 21 of 21) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/media/
DCarAudioManagerTest.java55 assertThat(zoneIds).contains(CarAudioManager.PRIMARY_AUDIO_ZONE); in test_getAudioZoneIds()
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()
94 mCarAudioManager.setGroupVolume(CarAudioManager.PRIMARY_AUDIO_ZONE, groudId, volume, 0); in test_setGroupVolume()
103 CarAudioManager.PRIMARY_AUDIO_ZONE); in test_getInputDevicesForZoneId()
112 CarAudioManager.PRIMARY_AUDIO_ZONE, AudioAttributes.USAGE_MEDIA); in test_getOutputDeviceForUsage()
119 assertThat(mCarAudioManager.getVolumeGroupIdForUsage(CarAudioManager.PRIMARY_AUDIO_ZONE, in test_getVolumeGroupIdForUsage()
130 CarAudioManager.PRIMARY_AUDIO_ZONE); in test_getZoneIdForUid()
[all …]
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java20 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
224 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseVolumeAndAssert()
226 when(mCarAudioManager.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, in doTestIncreaseVolumeAndAssert()
229 when(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, SOME_MEDIA_GROUP_ID)).thenReturn( in doTestIncreaseVolumeAndAssert()
258 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseMaxVolumeAndAssert()
260 when(mCarAudioManager.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, in doTestIncreaseMaxVolumeAndAssert()
262 when(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, SOME_MEDIA_GROUP_ID)).thenReturn( in doTestIncreaseMaxVolumeAndAssert()
288 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestDecreaseVolumeAndAssert()
290 when(mCarAudioManager.getGroupMinVolume(PRIMARY_AUDIO_ZONE, in doTestDecreaseVolumeAndAssert()
293 when(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, SOME_MEDIA_GROUP_ID)).thenReturn( in doTestDecreaseVolumeAndAssert()
[all …]
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/media/
DCarAudioManagerPermissionTest.java23 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
72 () -> mCarAudioManager.setGroupVolume(PRIMARY_AUDIO_ZONE, GROUP_ID, 0, 0)); in setGroupVolumeWithZonePermission()
86 () -> mCarAudioManager.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, GROUP_ID)); in getGroupMaxVolumeWithZonePermission()
100 () -> mCarAudioManager.getGroupMinVolume(PRIMARY_AUDIO_ZONE, GROUP_ID)); in getGroupMinVolumeWithZonePermission()
114 () -> mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, GROUP_ID)); in getGroupVolumeWithZonePermission()
163 () -> mCarAudioManager.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)); in getVolumeGroupCountWithZonePermission()
177 () -> mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getVolumeGroupIdForUsageWithZonePermission()
184 () -> mCarAudioManager.isPlaybackOnVolumeGroupActive(PRIMARY_AUDIO_ZONE, GROUP_ID)); in isPlaybackOnVolumeGroupActivePermission()
212 () -> mCarAudioManager.setZoneIdForUid(PRIMARY_AUDIO_ZONE, UID)); in setZoneIdForUidPermission()
226 () -> mCarAudioManager.getOutputDeviceForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getOutputDeviceForUsagePermission()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPolicyVolumeCallbackTest.java19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
121 verify(mMockCarAudioService).setGroupVolume(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustRaise_increasesGroupVolume()
131 verify(mMockCarAudioService).setGroupVolume(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustLower_decreasesGroupVolume()
141 verify(mMockCarAudioService).setGroupVolume(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustLower_atMinVolume_setsGroupVolumeToMin()
151 verify(mMockCarAudioService).setGroupVolume(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustRaise_atMaxVolume_setsGroupVolumeToMax()
204 verify(mMockCarAudioService).setVolumeGroupMute(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_forGroupMute_withAdjustMute_mutesVolumeGroup()
217 verify(mMockCarAudioService).setVolumeGroupMute(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_forGroupMute_withAdjustToggleMute_togglesMutesVolumeGroup()
229 verify(mMockCarAudioService).setVolumeGroupMute(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_forGroupMute_withAdjustUnMute_UnMutesVolumeGroup()
DCarVolumeGroupMutingTest.java57 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;
DCarZonesAudioFocusUnitTest.java56 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
57 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1;
DCarAudioSettingsUnitTest.java37 private static final int TEST_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java18 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
157 mNextSecondaryZoneId = PRIMARY_AUDIO_ZONE + 1; in CarAudioZonesHelper()
245 if (newZone.getId() == PRIMARY_AUDIO_ZONE && zones.contains(PRIMARY_AUDIO_ZONE)) { in verifyOnlyOnePrimaryZone()
247 + PRIMARY_AUDIO_ZONE); in verifyOnlyOnePrimaryZone()
252 if (!zones.contains(PRIMARY_AUDIO_ZONE)) { in verifyPrimaryZonePresent()
286 return isPrimary ? PRIMARY_AUDIO_ZONE in getZoneId()
291 return PRIMARY_AUDIO_ZONE; in getZoneId()
298 Preconditions.checkArgument(zoneId == PRIMARY_AUDIO_ZONE, in getZoneId()
300 ATTR_ZONE_ID, PRIMARY_AUDIO_ZONE); in getZoneId()
302 Preconditions.checkArgument(zoneId != PRIMARY_AUDIO_ZONE, in getZoneId()
[all …]
DCarAudioPolicyVolumeCallback.java19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
68 int zoneId = PRIMARY_AUDIO_ZONE; in onVolumeAdjustment()
106 setMute(!mCarAudioService.isVolumeGroupMuted(PRIMARY_AUDIO_ZONE, groupId), groupId, in toggleMute()
115 mCarAudioService.setVolumeGroupMute(PRIMARY_AUDIO_ZONE, groupId, mute, flags); in setMute()
DCarAudioZonesHelperLegacy.java18 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
133 CarAudioZone zone = new CarAudioZone(PRIMARY_AUDIO_ZONE, "Primary zone"); in loadAudioZones()
138 carAudioZones.put(PRIMARY_AUDIO_ZONE, zone); in loadAudioZones()
180 CarVolumeGroup.Builder builder = new CarVolumeGroup.Builder(PRIMARY_AUDIO_ZONE, id, in parseVolumeGroup()
DCarAudioService.java22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
162 final int zoneId = CarAudioManager.PRIMARY_AUDIO_ZONE;
440 callbackMasterMuteChange(PRIMARY_AUDIO_ZONE, flags); in setMasterMute()
656 new CarAudioPlaybackCallback(getCarAudioZone(PRIMARY_AUDIO_ZONE), in setupAudioConfigurationCallbackLocked()
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()
1021 + CarAudioManager.PRIMARY_AUDIO_ZONE); in getZoneIdForUserIdLocked()
1022 return CarAudioManager.PRIMARY_AUDIO_ZONE; in getZoneIdForUserIdLocked()
1289 int zoneId = CarAudioManager.PRIMARY_AUDIO_ZONE; in getAudioPort()
[all …]
DCarAudioZone.java73 return mId == CarAudioManager.PRIMARY_AUDIO_ZONE; in isPrimaryZone()
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioManager.java74 public static final int PRIMARY_AUDIO_ZONE = 0x0; field in CarAudioManager
200 setGroupVolume(PRIMARY_AUDIO_ZONE, groupId, index, flags); in setGroupVolume()
233 return getGroupMaxVolume(PRIMARY_AUDIO_ZONE, groupId); in getGroupMaxVolume()
263 return getGroupMinVolume(PRIMARY_AUDIO_ZONE, groupId); in getGroupMinVolume()
293 return getGroupVolume(PRIMARY_AUDIO_ZONE, groupId); in getGroupVolume()
437 return getVolumeGroupCount(PRIMARY_AUDIO_ZONE); in getVolumeGroupCount()
466 return getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage); in getVolumeGroupIdForUsage()
496 return getUsagesForVolumeGroupId(PRIMARY_AUDIO_ZONE, groupId); in getUsagesForVolumeGroupId()
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
139 return PRIMARY_AUDIO_ZONE; in getOccupantZoneIdForDisplayId()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java172 assertThat(zones.contains(CarAudioManager.PRIMARY_AUDIO_ZONE)).isTrue(); in loadAudioZones_parsesAudioZoneId()
187 assertThat(audioZoneIdToOccupantZoneIdMapping.get(CarAudioManager.PRIMARY_AUDIO_ZONE)) in loadAudioZones_parsesOccupantZoneId()
308 assertThat(zones.contains(CarAudioManager.PRIMARY_AUDIO_ZONE)).isTrue(); in loadAudioZones_passesOnMissingAudioZoneIdForPrimary()
DCarZonesAudioFocusTest.java65 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE;
66 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1;
DCarAudioZonesValidatorTest.java110 when(zoneMock.getId()).thenReturn(CarAudioManager.PRIMARY_AUDIO_ZONE); in getMockPrimaryZone()
DCarAudioZoneTest.java75 new CarAudioZone(CarAudioManager.PRIMARY_AUDIO_ZONE, "Primary zone");
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java25 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
567 if (IS_EMULATOR && zone != PRIMARY_AUDIO_ZONE) { in handleZoneSelection()
580 .filter(i -> i != PRIMARY_AUDIO_ZONE).toArray(Integer[]::new); in handleSetUpZoneSelection()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java202 if (mZoneId == CarAudioManager.PRIMARY_AUDIO_ZONE) { in requestFocus()
/packages/services/Car/car-lib/api/
Dsystem-current.txt1017 field public static final int PRIMARY_AUDIO_ZONE = 0; // 0x0