Home
last modified time | relevance | path

Searched refs:CarVolumeGroupInfo (Results 1 – 25 of 52) sorted by relevance

123

/packages/services/Car/tests/carservice_unit_test/src/android/car/media/
DCarVolumeGroupInfoUnitTest.java63 private static final CarVolumeGroupInfo TEST_VOLUME_INFO =
64 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, TEST_ZONE_ID, TEST_PRIMARY_GROUP_ID)
74 private final CarVolumeGroupInfo.Builder mTestGroupInfoBuilder =
75 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME,
91 CarVolumeGroupInfo info = new CarVolumeGroupInfo in build_buildsGroupInfo()
111 CarVolumeGroupInfo info = new CarVolumeGroupInfo in build_buildsGroupInfo_withoutAudioDevices_succeeds()
127 CarVolumeGroupInfo info = new CarVolumeGroupInfo in build_buildsGroupInfo_withAudioDevices_succeeds()
145 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, TEST_ZONE_ID, in build_buildsGroupInfo_withNullAudioDevices_fails()
157 CarVolumeGroupInfo info = new CarVolumeGroupInfo in build_buildsGroupInfo_withMinMaxActivationVolume_succeeds()
176 CarVolumeGroupInfo.Builder infoBuilder = mTestGroupInfoBuilder in build_buildsGroupInfo_withMinActivationVolumeOutOfMinMaxRange_fails()
[all …]
/packages/services/Car/car-lib/src/android/car/oem/
DOemCarVolumeChangeInfo.java25 import android.car.media.CarVolumeGroupInfo;
50 private final CarVolumeGroupInfo mChangedVolumeGroup;
75 @Nullable CarVolumeGroupInfo changedVolumeGroup) { in OemCarVolumeChangeInfo()
102 public @Nullable CarVolumeGroupInfo getChangedVolumeGroup() { in getChangedVolumeGroup()
173 CarVolumeGroupInfo _changedVolumeGroup = (flg & 0x2) == 0 in OemCarVolumeChangeInfo()
174 ? null : (CarVolumeGroupInfo) in.readTypedObject(CarVolumeGroupInfo.CREATOR); in OemCarVolumeChangeInfo()
211 private @Nullable CarVolumeGroupInfo changedVolumeGroup;
223 public @NonNull Builder setChangedVolumeGroup(@NonNull CarVolumeGroupInfo value) { in setChangedVolumeGroup()
DOemCarAudioFocusEvaluationRequest.java26 import android.car.media.CarVolumeGroupInfo;
47 private @NonNull final List<CarVolumeGroupInfo> mMutedVolumeGroups;
62 in.readParcelableList(mMutedVolumeGroups, CarVolumeGroupInfo.class.getClassLoader()); in OemCarAudioFocusEvaluationRequest()
136 public @NonNull List<CarVolumeGroupInfo> getMutedVolumeGroups() { in getMutedVolumeGroups()
204 @NonNull List<CarVolumeGroupInfo> mutedVolumeGroups, in OemCarAudioFocusEvaluationRequest()
249 private @NonNull List<CarVolumeGroupInfo> mMutedVolumeGroups;
256 @NonNull List<CarVolumeGroupInfo> mutedVolumeGroups, in Builder()
311 @NonNull List<CarVolumeGroupInfo> mutedVolumeGroups) { in setMutedVolumeGroups()
320 public @NonNull Builder addMutedVolumeGroups(@NonNull CarVolumeGroupInfo mutedVolumeGroup) { in addMutedVolumeGroups()
DOemCarAudioVolumeRequest.java24 import android.car.media.CarVolumeGroupInfo;
57 private final List<CarVolumeGroupInfo> mCarVolumeGroupInfos;
88 @NonNull List<CarVolumeGroupInfo> carVolumeGroupInfos) { in OemCarAudioVolumeRequest()
142 public @NonNull List<CarVolumeGroupInfo> getCarVolumeGroupInfos() { in getCarVolumeGroupInfos()
228 List<CarVolumeGroupInfo> carVolumeGroupInfos = new ArrayList<>(); in OemCarAudioVolumeRequest()
229 in.readParcelableList(carVolumeGroupInfos, CarVolumeGroupInfo.class.getClassLoader()); in OemCarAudioVolumeRequest()
268 private @NonNull List<CarVolumeGroupInfo> mCarVolumeGroupInfos = new ArrayList<>();;
342 public @NonNull Builder setCarVolumeGroupInfos(@NonNull List<CarVolumeGroupInfo> value) { in setCarVolumeGroupInfos()
352 public @NonNull Builder addCarVolumeGroupInfos(@NonNull CarVolumeGroupInfo value) { in addCarVolumeGroupInfos()
/packages/services/Car/car-lib/src/android/car/media/
DCarVolumeGroupInfo.java45 public final class CarVolumeGroupInfo implements Parcelable { class
66 private CarVolumeGroupInfo( in CarVolumeGroupInfo() method in CarVolumeGroupInfo
105 public CarVolumeGroupInfo(Parcel in) { in CarVolumeGroupInfo() method in CarVolumeGroupInfo
141 public static final Creator<CarVolumeGroupInfo> CREATOR = new Creator<>() {
144 public CarVolumeGroupInfo createFromParcel(@NonNull Parcel in) {
145 return new CarVolumeGroupInfo(in);
150 public CarVolumeGroupInfo[] newArray(int size) {
151 return new CarVolumeGroupInfo[size];
319 public boolean isSameVolumeGroup(@Nullable CarVolumeGroupInfo group) { in isSameVolumeGroup()
330 if (!(o instanceof CarVolumeGroupInfo)) { in equals()
[all …]
DCarAudioZoneConfigInfo.java54 private final List<CarVolumeGroupInfo> mConfigVolumeGroups;
83 public CarAudioZoneConfigInfo(String name, List<CarVolumeGroupInfo> groups, int zoneId, in CarAudioZoneConfigInfo()
108 List<CarVolumeGroupInfo> volumeGroups = new ArrayList<>(); in CarAudioZoneConfigInfo()
109 in.readParcelableList(volumeGroups, CarVolumeGroupInfo.class.getClassLoader(), in CarAudioZoneConfigInfo()
110 CarVolumeGroupInfo.class); in CarAudioZoneConfigInfo()
207 private boolean hasSameVolumeGroup(List<CarVolumeGroupInfo> carVolumeGroupInfos) { in hasSameVolumeGroup()
211 Set<CarVolumeGroupInfo> groups = new ArraySet<>(carVolumeGroupInfos); in hasSameVolumeGroup()
303 public List<CarVolumeGroupInfo> getConfigVolumeGroups() { in getConfigVolumeGroups()
328 private List<CarVolumeGroupInfo> mConfigVolumeGroups = new ArrayList<>();
351 public Builder setConfigVolumeGroups(List<CarVolumeGroupInfo> configVolumeGroups) { in setConfigVolumeGroups()
DCarVolumeGroupEvent.java240 private final @NonNull List<CarVolumeGroupInfo> mCarVolumeGroupInfos;
242 private CarVolumeGroupEvent(@NonNull List<CarVolumeGroupInfo> volumeGroupInfos, in CarVolumeGroupEvent()
256 public @NonNull List<CarVolumeGroupInfo> getCarVolumeGroupInfos() { in getCarVolumeGroupInfos()
529 List<CarVolumeGroupInfo> volumeGroupInfos = new ArrayList<>(); in CarVolumeGroupEvent()
530 in.readParcelableList(volumeGroupInfos, CarVolumeGroupInfo.class.getClassLoader(), in CarVolumeGroupEvent()
531 CarVolumeGroupInfo.class); in CarVolumeGroupEvent()
566 private @NonNull List<CarVolumeGroupInfo> mCarVolumeGroupInfos;
572 public Builder(@NonNull List<CarVolumeGroupInfo> volumeGroupInfos, in Builder()
580 public Builder(@NonNull List<CarVolumeGroupInfo> volumeGroupInfos, in Builder()
595 public Builder addCarVolumeGroupInfo(@NonNull CarVolumeGroupInfo volumeGroupInfo) { in addCarVolumeGroupInfo()
DICarAudio.aidl22 import android.car.media.CarVolumeGroupInfo;
64 CarVolumeGroupInfo getVolumeGroupInfo(int zoneId, int groupId); in getVolumeGroupInfo()
65 List<CarVolumeGroupInfo> getVolumeGroupInfosForZone(int zoneId); in getVolumeGroupInfosForZone()
67 List<AudioAttributes> getAudioAttributesForVolumeGroup(in CarVolumeGroupInfo groupInfo); in getAudioAttributesForVolumeGroup()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioUtils.java43 import android.car.media.CarVolumeGroupInfo;
68 static CarVolumeGroupEvent convertVolumeChangeToEvent(CarVolumeGroupInfo info, int flags, in convertVolumeChangeToEvent()
75 static CarVolumeGroupEvent convertVolumeChangesToEvents(List<CarVolumeGroupInfo> infoList, in convertVolumeChangesToEvents()
125 List<CarVolumeGroupInfo> carVolumeInfos = zoneConfig.getConfigVolumeGroups(); in excludesDynamicDevices()
150 List<CarVolumeGroupInfo> groups = info.getConfigVolumeGroups(); in getAudioAttributesForDynamicDevices()
152 CarVolumeGroupInfo groupInfo = groups.get(c); in getAudioAttributesForDynamicDevices()
162 List<CarVolumeGroupInfo> volumeGroups, AudioManagerWrapper manager) { in getDynamicAudioDevices()
170 private static List<AudioDeviceInfo> getDynamicDevices(CarVolumeGroupInfo carVolumeGroupInfo, in getDynamicDevices()
DCarVolumeInfoWrapper.java20 import android.car.media.CarVolumeGroupInfo;
59 public List<CarVolumeGroupInfo> getMutedVolumeGroups(int zoneId) { in getMutedVolumeGroups()
63 public CarVolumeGroupInfo getVolumeGroupInfo(int zoneId, int groupId) { in getVolumeGroupInfo()
71 public List<CarVolumeGroupInfo> getVolumeGroupInfosForZone(int zoneId) { in getVolumeGroupInfosForZone()
DCarAudioPolicyVolumeCallback.java35 import android.car.media.CarVolumeGroupInfo;
103 CarVolumeGroupInfo info = changedVolume.getChangedVolumeGroup(); in evaluateVolumeAdjustmentExternal()
120 CarVolumeGroupInfo currentInfo = in evaluateVolumeAdjustmentExternal()
135 List<CarVolumeGroupInfo> infos = mCarVolumeInfo.getVolumeGroupInfosForZone(zoneId); in getCarAudioVolumeRequest()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/volume/
DVolumeInteractions.java25 import android.car.media.CarVolumeGroupInfo;
91 List<CarVolumeGroupInfo> volumeInfos = in getAudioAttributeToGroupIdMapping()
96 CarVolumeGroupInfo info = volumeInfos.get(group); in getAudioAttributeToGroupIdMapping()
115 CarVolumeGroupInfo currentVolumeInfo = in getVolumeGroupToChange()
122 CarVolumeGroupInfo.Builder builder = new CarVolumeGroupInfo.Builder(currentVolumeInfo); in getVolumeGroupToChange()
161 private static CarVolumeGroupInfo getCurrentVolumeGroup( in getCurrentVolumeGroup()
162 List<CarVolumeGroupInfo> volumeGroupInfos, int groupId) { in getCurrentVolumeGroup()
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DOemCarAudioVolumeRequestUnitTest.java26 import android.car.media.CarVolumeGroupInfo;
49 private static final CarVolumeGroupInfo TEST_VOLUME_INFO =
50 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, PRIMARY_AUDIO_ZONE,
55 private static final CarVolumeGroupInfo TEST_VOLUME_INFO_2 =
56 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, PRIMARY_AUDIO_ZONE,
DOemCarVolumeChangeInfoUnitTest.java21 import android.car.media.CarVolumeGroupInfo;
33 private static final CarVolumeGroupInfo TEST_VOLUME_INFO =
34 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, TEST_ZONE_ID, TEST_PRIMARY_GROUP_ID)
DOemCarAudioFocusEvaluationRequestUnitTest.java30 import android.car.media.CarVolumeGroupInfo;
60 private static final CarVolumeGroupInfo TEST_MUTED_VOLUME_GROUP =
61 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, CarAudioManager.PRIMARY_AUDIO_ZONE,
66 private static final CarVolumeGroupInfo TEST_MUTED_VOLUME_GROUP_2 =
67 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, TEST_ZONE_ID,
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeInfoWrapperTest.java31 import android.car.media.CarVolumeGroupInfo;
59 private static final CarVolumeGroupInfo TEST_PRIMARY_GROUP_INFO =
60 new CarVolumeGroupInfo.Builder("group id " + TEST_GROUP_ID, PRIMARY_AUDIO_ZONE,
66 private static final CarVolumeGroupInfo TEST_SECONDARY_VOLUME_INFO =
67 new CarVolumeGroupInfo.Builder("group id " + TEST_SECONDARY_GROUP,
DCarAudioUtilsTest.java49 import android.car.media.CarVolumeGroupInfo;
113 private static final CarVolumeGroupInfo TEST_MEDIA_VOLUME_INFO =
114 new CarVolumeGroupInfo.Builder(TEST_MEDIA_GROUP_NAME, TEST_ZONE_ID, TEST_BT_GROUP_ID)
121 private static final CarVolumeGroupInfo TEST_NAV_VOLUME_INFO =
122 new CarVolumeGroupInfo.Builder(TEST_NAV_GROUP_NAME, TEST_ZONE_ID, TEST_NAV_GROUP_ID)
129 private static final CarVolumeGroupInfo TEST_BT_VOLUME_INFO =
130 new CarVolumeGroupInfo.Builder(TEST_BT_GROUP_NAME, TEST_ZONE_ID, TEST_MEDIA_GROUP_ID)
DCarAudioPolicyVolumeCallbackTest.java42 import android.car.media.CarVolumeGroupInfo;
94 private static final CarVolumeGroupInfo TEST_PRIMARY_GROUP_INFO =
95 new CarVolumeGroupInfo.Builder("group id " + TEST_VOLUME_GROUP, PRIMARY_AUDIO_ZONE,
435 CarVolumeGroupInfo changedInfo = in onVolumeAdjustment_onSame_withOemVolumeService_muteChanged()
436 new CarVolumeGroupInfo.Builder(TEST_PRIMARY_GROUP_INFO) in onVolumeAdjustment_onSame_withOemVolumeService_muteChanged()
454 CarVolumeGroupInfo changedInfo = in onVolumeAdjustment_onSame_withOemVolumeService_gainChanged()
455 new CarVolumeGroupInfo.Builder(TEST_PRIMARY_GROUP_INFO) in onVolumeAdjustment_onSame_withOemVolumeService_gainChanged()
DCarAudioGainMonitorTest.java42 import android.car.media.CarVolumeGroupInfo;
86 private static final CarVolumeGroupInfo TEST_PRIMARY_VOLUME_INFO =
87 new CarVolumeGroupInfo.Builder("group id " + TEST_GROUP_ID, PRIMARY_ZONE_ID,
94 private static final CarVolumeGroupInfo TEST_PASSENGER_VOLUME_INFO =
95 new CarVolumeGroupInfo.Builder("group id " + TEST_GROUP_ID, PASSENGER_ZONE_ID,
102 private static final CarVolumeGroupInfo TEST_REAR_VOLUME_INFO =
103 new CarVolumeGroupInfo.Builder("group id " + TEST_GROUP_ID, REAR_ZONE_ID,
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeCarAudioService.java27 import android.car.media.CarVolumeGroupInfo;
112 public CarVolumeGroupInfo getVolumeGroupInfo(int zoneId, int groupId) { in getVolumeGroupInfo()
117 public List<CarVolumeGroupInfo> getVolumeGroupInfosForZone(int zoneId) { in getVolumeGroupInfosForZone()
122 public List<AudioAttributes> getAudioAttributesForVolumeGroup(CarVolumeGroupInfo groupInfo) { in getAudioAttributesForVolumeGroup()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/
DCarOemAudioVolumeProxyServiceTest.java26 import android.car.media.CarVolumeGroupInfo;
43 private static final CarVolumeGroupInfo TEST_CAR_VOLUME_INFO =
44 new CarVolumeGroupInfo.Builder("Group name", PRIMARY_AUDIO_ZONE,
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceControllerTest.java45 import android.car.media.CarVolumeGroupInfo;
101 private static final CarVolumeGroupInfo TEST_PRIMARY_ZONE_DEFAULT_VOLUME_INFO =
102 new CarVolumeGroupInfo.Builder("group id " + TEST_PRIMARY_ZONE_GROUP_0,
108 private static final CarVolumeGroupInfo TEST_PRIMARY_ZONE_SECOND_VOLUME_INFO =
109 new CarVolumeGroupInfo.Builder("group id " + TEST_PRIMARY_ZONE_GROUP_1,
115 private static final CarVolumeGroupInfo TEST_PRIMARY_ZONE_NEW_VOLUME_INFO =
116 new CarVolumeGroupInfo.Builder("group id " + TEST_PRIMARY_ZONE_GROUP_0,
122 private static final CarVolumeGroupInfo TEST_PRIMARY_ZONE_MUTED_GROUP_INFO =
123 new CarVolumeGroupInfo.Builder("group id " + TEST_PRIMARY_ZONE_GROUP_0,
469 CarVolumeGroupInfo invalidGroupInfo = in onVolumeGroupEvent_invalidGroupInfo_doesNotUpdateVolumeSeekbar()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DAudioRoutesManager.java26 import android.car.media.CarVolumeGroupInfo;
124 List<CarVolumeGroupInfo> carVolumeGroupInfoList = in updateAudioRoutesList()
126 for (CarVolumeGroupInfo carVolumeGroupInfo : carVolumeGroupInfoList) { in updateAudioRoutesList()
242 for (CarVolumeGroupInfo carVolumeGroupInfo : in setAudioRouteActive()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java25 import android.car.media.CarVolumeGroupInfo;
180 CarVolumeGroupInfo groupInfo = mCarAudioManager.getVolumeGroupInfo(mZoneId, groupId); in initVolumeInfo()
188 private CarAudioZoneVolumeInfo createCarAudioZoneVolumeInfo(CarVolumeGroupInfo info) { in createCarAudioZoneVolumeInfo()
371 List<CarVolumeGroupInfo> infos = event.getCarVolumeGroupInfos(); in handleVolumeGroupEventReceived()
373 CarVolumeGroupInfo info = infos.get(index); in handleVolumeGroupEventReceived()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/media/
DCarAudioManagerTest.java32 import android.car.media.CarVolumeGroupInfo;
66 CarVolumeGroupInfo info = in getVolumeGroupInfo()
81 List<CarVolumeGroupInfo> infos = in getVolumeGroupInfosForZone()
87 CarVolumeGroupInfo info = in getVolumeGroupInfosForZone()

123