Home
last modified time | relevance | path

Searched refs:zoneId (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java111 static String getVolumeSettingsKeyForGroup(int zoneId, int groupId) { in getVolumeSettingsKeyForGroup() argument
112 final int maskedGroupId = (zoneId << 8) + groupId; in getVolumeSettingsKeyForGroup()
133 final int zoneId = CarAudioManager.PRIMARY_AUDIO_ZONE;
134 final int groupId = getVolumeGroupIdForUsage(zoneId, usage);
135 final int currentVolume = getGroupVolume(zoneId, groupId);
139 int minValue = Math.max(currentVolume - 1, getGroupMinVolume(zoneId, groupId));
140 setGroupVolume(zoneId, groupId, minValue , flags);
143 int maxValue = Math.min(currentVolume + 1, getGroupMaxVolume(zoneId, groupId));
144 setGroupVolume(zoneId, groupId, maxValue, flags);
148 callbackMasterMuteChange(zoneId, flags);
[all …]
DCarZonesAudioFocus.java75 ArrayList<AudioFocusInfo> getAudioFocusLosersForUid(int uid, int zoneId) { in getAudioFocusLosersForUid() argument
76 CarAudioFocus focus = mFocusZones.get(zoneId); in getAudioFocusLosersForUid()
86 ArrayList<AudioFocusInfo> getAudioFocusHoldersForUid(int uid, int zoneId) { in getAudioFocusHoldersForUid() argument
87 CarAudioFocus focus = mFocusZones.get(zoneId); in getAudioFocusHoldersForUid()
97 int zoneId) { in transientlyLoseInFocusInZone() argument
98 CarAudioFocus focus = mFocusZones.get(zoneId); in transientlyLoseInFocusInZone()
123 for (int zoneId : mFocusZones.keySet()) { in setOwningPolicy()
124 mFocusZones.get(zoneId).setOwningPolicy(mCarAudioService, mAudioPolicy); in setOwningPolicy()
149 int zoneId = mCarAudioService.getZoneIdForUid(afi.getClientUid()); in getFocusForAudioFocusInfo() local
162 zoneId = bundleZoneId; in getFocusForAudioFocusInfo()
[all …]
DCarVolumeGroup.java64 CarVolumeGroup(Context context, int zoneId, int id) { in CarVolumeGroup() argument
66 mZoneId = zoneId; in CarVolumeGroup()
81 CarVolumeGroup(Context context, int zoneId, int id, @NonNull int[] contexts) { in CarVolumeGroup() argument
82 this(context, zoneId, id); in CarVolumeGroup()
DCarAudioZonesHelper.java216 private CarVolumeGroup parseVolumeGroup(XmlPullParser parser, int zoneId, int groupId) in parseVolumeGroup() argument
218 final CarVolumeGroup group = new CarVolumeGroup(mContext, zoneId, groupId); in parseVolumeGroup()
269 int zoneId = mNextSecondaryZoneId; in getNextSecondaryZoneId() local
271 return zoneId; in getNextSecondaryZoneId()
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioManager.java94 public void onGroupVolumeChanged(int zoneId, int groupId, int flags) {
96 callback.onGroupVolumeChanged(zoneId, groupId, flags);
101 public void onMasterMuteChanged(int zoneId, int flags) {
103 callback.onMasterMuteChanged(zoneId, flags);
146 public void setGroupVolume(int zoneId, int groupId, int index, int flags) { in setGroupVolume() argument
148 mService.setGroupVolume(zoneId, groupId, index, flags); in setGroupVolume()
176 public int getGroupMaxVolume(int zoneId, int groupId) { in getGroupMaxVolume() argument
178 return mService.getGroupMaxVolume(zoneId, groupId); in getGroupMaxVolume()
206 public int getGroupMinVolume(int zoneId, int groupId) { in getGroupMinVolume() argument
208 return mService.getGroupMinVolume(zoneId, groupId); in getGroupMinVolume()
[all …]
DICarAudio.aidl29 void setGroupVolume(int zoneId, int groupId, int index, int flags); in setGroupVolume() argument
30 int getGroupMaxVolume(int zoneId, int groupId); in getGroupMaxVolume() argument
31 int getGroupMinVolume(int zoneId, int groupId); in getGroupMinVolume() argument
32 int getGroupVolume(int zoneId, int groupId); in getGroupVolume() argument
41 int getVolumeGroupCount(int zoneId); in getVolumeGroupCount() argument
42 int getVolumeGroupIdForUsage(int zoneId, int usage); in getVolumeGroupIdForUsage() argument
43 int[] getUsagesForVolumeGroupId(int zoneId, int groupId); in getUsagesForVolumeGroupId() argument
47 boolean setZoneIdForUid(int zoneId, int uid); in setZoneIdForUid() argument
DICarVolumeCallback.aidl30 void onGroupVolumeChanged(int zoneId, int groupId, int flags); in onGroupVolumeChanged() argument
37 void onMasterMuteChanged(int zoneId, int flags); in onMasterMuteChanged() argument
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java601 int zoneId = Integer.decode(zone); in injectVhalEvent() local
602 VehiclePropValue v = createPropValue(propId, zoneId); in injectVhalEvent()
643 int zoneId = Integer.decode(zone); in injectOnPropertySetError() local
645 onPropertySetError(errorId, propId, zoneId); in injectOnPropertySetError()