Home
last modified time | relevance | path

Searched refs:CarAudioZoneConfigInfo (Results 1 – 25 of 33) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/android/car/media/
DCarAudioZoneConfigInfoUnitTest.java70 private static final CarAudioZoneConfigInfo TEST_ZONE_CONFIG_INFO =
71 new CarAudioZoneConfigInfo(TEST_CONFIG_NAME, List.of(TEST_VOLUME_INFO),
81 new CarAudioZoneConfigInfo(/* name= */ null, TEST_ZONE_ID, TEST_CONFIG_ID) in constructor_withNullName_fails()
91 new CarAudioZoneConfigInfo(TEST_CONFIG_NAME, /* groups= */ null , TEST_ZONE_ID, in constructor_withNullVolumeGroups_fails()
158 .that(CarAudioZoneConfigInfo.CREATOR.createFromParcel(parcel)) in writeToParcel_createFromParcel()
164 CarAudioZoneConfigInfo[] infos = CarAudioZoneConfigInfo.CREATOR.newArray(/* size= */ 3); in newArray()
172 CarAudioZoneConfigInfo infoWithSameContent = new CarAudioZoneConfigInfo(TEST_CONFIG_NAME, in equals_forSameContent()
182 CarAudioZoneConfigInfo infoWithSameContent = new CarAudioZoneConfigInfo(TEST_CONFIG_NAME, in equals_forSameContent_withDynamicFlagEnabled()
193 CarAudioZoneConfigInfo infoWithSameContent = new CarAudioZoneConfigInfo(TEST_CONFIG_NAME, in equals_forDifferentContent_withDynamicFlagEnabled()
210 CarAudioZoneConfigInfo infoWithSameContent = new CarAudioZoneConfigInfo(TEST_CONFIG_NAME, in hasSameConfigInfo_forSameContent()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DZoneConfigSelectionController.java28 import android.car.media.CarAudioZoneConfigInfo;
75 private CarAudioZoneConfigInfo mZoneConfigInfoSelected;
101 List<CarAudioZoneConfigInfo> zoneConfigInfos = mCarAudioManager.getAudioZoneConfigInfos( in ZoneConfigSelectionController()
119 CarAudioZoneConfigInfo info = getItem(position).getZoneConfigInfo(); in ZoneConfigSelectionController()
120 CarAudioZoneConfigInfo updatedInfo = getUpdatedConfigInfo(info); in ZoneConfigSelectionController()
141 CarAudioZoneConfigInfo currentZoneConfigInfo = in ZoneConfigSelectionController()
158 List<CarAudioZoneConfigInfo> configs, int status) { in ZoneConfigSelectionController()
166 CarAudioZoneConfigInfo zoneConfigInfoSelected; in switchToZoneConfigSelected()
176 private void switchToAudioConfiguration(CarAudioZoneConfigInfo zoneConfigInfoSelected) { in switchToAudioConfiguration()
177 CarAudioZoneConfigInfo info = getUpdatedConfigInfo(zoneConfigInfoSelected); in switchToAudioConfiguration()
[all …]
DZoneConfigInfoFragment.java24 import android.car.media.CarAudioZoneConfigInfo;
44 private CarAudioZoneConfigInfo mInfo;
46 public ZoneConfigInfoFragment(CarAudioZoneConfigInfo info) { in ZoneConfigInfoFragment()
54 CarAudioZoneConfigInfo info; in onCreateView()
79 boolean isSameConfig(CarAudioZoneConfigInfo info) { in isSameConfig()
85 void updateConfigInfo(CarAudioZoneConfigInfo info) { in updateConfigInfo()
97 private void updateConfigInfoInternal(CarAudioZoneConfigInfo info, Context context) { in updateConfigInfoInternal()
DAudioConfigurationTestFragment.java30 import android.car.media.CarAudioZoneConfigInfo;
136 CarAudioZoneConfigInfo info = in handleSetUpConfigurationAutoSelection()
166 List<CarAudioZoneConfigInfo> configurations = in setUpAutoConnectConfiguration()
168 CarAudioZoneConfigInfo autoConnectInfo = in setUpAutoConnectConfiguration()
175 List<CarAudioZoneConfigInfo> infos = mCarAudioManager.getAudioZoneConfigInfos(zoneId); in showConfigSelectionDialog()
180 CarAudioZoneConfigInfo selectedInfo = infos.get(which); in showConfigSelectionDialog()
186 private void setAutoConnectConfiguration(@Nullable CarAudioZoneConfigInfo info) { in setAutoConnectConfiguration()
217 private void configsUpdatedListener(List<CarAudioZoneConfigInfo> configs) { in configsUpdatedListener()
233 CarAudioZoneConfigInfo info = getCarAudioZoneConfigInfoOrNull(configs, zoneId, configId); in configsUpdatedListener()
243 private void handleUpdateConfigTabs(List<CarAudioZoneConfigInfo> configs) { in handleUpdateConfigTabs()
DAudioConfigurationInformationTabs.java20 import android.car.media.CarAudioZoneConfigInfo;
45 List<CarAudioZoneConfigInfo> configs = carAudioManager.getAudioZoneConfigInfos(zoneId); in AudioConfigurationInformationTabs()
47 for (CarAudioZoneConfigInfo info : configs) { in AudioConfigurationInformationTabs()
56 void updateConfigs(List<CarAudioZoneConfigInfo> infos) { in updateConfigs()
58 for (CarAudioZoneConfigInfo info : infos) { in updateConfigs()
DAudioUtils.java20 import android.car.media.CarAudioZoneConfigInfo;
41 static CarAudioZoneConfigInfo getCarAudioZoneConfigInfoOrNull( in getCarAudioZoneConfigInfoOrNull()
42 List<CarAudioZoneConfigInfo> configs, int zoneId, int configId) { in getCarAudioZoneConfigInfoOrNull()
43 CarAudioZoneConfigInfo info = configs.stream() in getCarAudioZoneConfigInfoOrNull()
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioZoneConfigInfo.java46 public final class CarAudioZoneConfigInfo implements Parcelable { class
65 public CarAudioZoneConfigInfo(String name, int zoneId, int configId) { in CarAudioZoneConfigInfo() method in CarAudioZoneConfigInfo
83 public CarAudioZoneConfigInfo(String name, List<CarVolumeGroupInfo> groups, int zoneId, in CarAudioZoneConfigInfo() method in CarAudioZoneConfigInfo
101 public CarAudioZoneConfigInfo(Parcel in) { in CarAudioZoneConfigInfo() method in CarAudioZoneConfigInfo
115 public static final Creator<CarAudioZoneConfigInfo> CREATOR = new Creator<>() {
118 public CarAudioZoneConfigInfo createFromParcel(@NonNull Parcel in) {
119 return new CarAudioZoneConfigInfo(in);
124 public CarAudioZoneConfigInfo[] newArray(int size) {
125 return new CarAudioZoneConfigInfo[size];
193 if (!(o instanceof CarAudioZoneConfigInfo)) { in equals()
[all …]
DICarAudio.aidl21 import android.car.media.CarAudioZoneConfigInfo;
88 CarAudioZoneConfigInfo getCurrentAudioZoneConfigInfo(int zoneId); in getCurrentAudioZoneConfigInfo()
89 List<CarAudioZoneConfigInfo> getAudioZoneConfigInfos(int zoneId); in getAudioZoneConfigInfos()
90 void switchZoneToConfig(in CarAudioZoneConfigInfo zoneConfig, in switchZoneToConfig()
DISwitchAudioZoneConfigCallback.aidl19 import android.car.media.CarAudioZoneConfigInfo;
34 void onAudioZoneConfigSwitched(in CarAudioZoneConfigInfo zoneConfig, in onAudioZoneConfigSwitched()
DIAudioZoneConfigurationsChangeCallback.aidl19 import android.car.media.CarAudioZoneConfigInfo;
42 void onAudioZoneConfigurationsChanged(in List<CarAudioZoneConfigInfo> configs, int status); in onAudioZoneConfigurationsChanged()
DCarAudioZoneConfigInfo.aidl24 parcelable CarAudioZoneConfigInfo;
DSwitchAudioZoneConfigCallback.java36 void onAudioZoneConfigSwitched(@NonNull CarAudioZoneConfigInfo zoneConfig, in onAudioZoneConfigSwitched()
DAudioZoneConfigurationsChangeCallback.java51 default void onAudioZoneConfigurationsChanged(@NonNull List<CarAudioZoneConfigInfo> configs, in onAudioZoneConfigurationsChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioUtilsTest.java48 import android.car.media.CarAudioZoneConfigInfo;
228 CarAudioZoneConfigInfo testNoDynamicDevicesConfig = getCarAudioZoneConfigInfo(); in excludesDynamicDevices_withOutDynamicDevices()
237 CarAudioZoneConfigInfo testDynamicDevicesConfig = getTestDynamicDevicesConfig(); in excludesDynamicDevices_withDynamicDevices()
246 CarAudioZoneConfigInfo testNoDynamicDevicesConfig = getCarAudioZoneConfigInfo(); in excludesDynamicDevices_withOutDynamicDevices_withDynamicFlagsDisabled()
255 CarAudioZoneConfigInfo testDynamicDevicesConfig = getTestDynamicDevicesConfig(); in excludesDynamicDevices_withDynamicDevices_withDynamicFlagsDisabled()
265 CarAudioZoneConfigInfo testDynamicDevicesConfig = getTestDynamicDevicesConfig(); in getDynamicDevicesInConfig_withDynamicDevices()
276 CarAudioZoneConfigInfo testDynamicDevicesConfig = getCarAudioZoneConfigInfo(); in getDynamicDevicesInConfig_withoutDynamicDevices()
286 CarAudioZoneConfigInfo testDynamicDevicesConfig = getTestDynamicDevicesConfig(); in getDynamicDevicesInConfig_withDynamicDevices_andFlagDisabled()
296 CarAudioZoneConfigInfo testNonDynamicDevicesConfig = getCarAudioZoneConfigInfo(); in getDynamicDevicesInConfig_withoutDynamicDevices_andFlagDisabled()
305 CarAudioZoneConfigInfo testNonDynamicDevicesConfig = getCarAudioZoneConfigInfo(); in getAudioAttributesForDynamicDevices_withoutDynamicDevicesAndFlagDisabled()
[all …]
DCarAudioZoneUnitTest.java42 import android.car.media.CarAudioZoneConfigInfo;
223 CarAudioZoneConfigInfo defaultInfo = new CarAudioZoneConfigInfo(TEST_ZONE_CONFIG_NAME_0, in getDefaultAudioZoneConfigInfo()
255 CarAudioZoneConfigInfo currentZoneConfigInfo = mTestAudioZone in isCurrentZoneConfig_forCurrentConfig_returnsTrue()
267 CarAudioZoneConfigInfo nonCurrentZoneConfigInfo = getFirstNonCurrentZoneConfigInfo(); in isCurrentZoneConfig_forCurrentConfig_returnsFalse()
278 CarAudioZoneConfigInfo currentZoneConfigInfoToSwitch = getFirstNonCurrentZoneConfigInfo(); in setCurrentCarZoneConfig_withCoreAudioRoutingDisabled()
294 CarAudioZoneConfigInfo currentZoneConfigInfo = mTestAudioZone in setCurrentCarZoneConfig_withCurrentZoneConfig()
313 CarAudioZoneConfigInfo currentZoneConfigInfoToSwitch = in setCurrentCarZoneConfig_withCoreAudioRoutingEnabled()
911 private CarAudioZoneConfigInfo getFirstNonCurrentZoneConfigInfo(CarAudioZone audioZone) { in getFirstNonCurrentZoneConfigInfo()
912 CarAudioZoneConfigInfo currentZoneConfigInfo = audioZone.getCurrentCarAudioZoneConfig() in getFirstNonCurrentZoneConfigInfo()
914 List<CarAudioZoneConfigInfo> zoneConfigInfoList = audioZone.getCarAudioZoneConfigInfos(); in getFirstNonCurrentZoneConfigInfo()
[all …]
DCarAudioServiceUnitTest.java133 import android.car.media.CarAudioZoneConfigInfo;
950 List<CarAudioZoneConfigInfo> zoneConfigInfos = in init_withDynamicDevices()
956 CarAudioZoneConfigInfo btConfig = zoneConfigInfos.stream() in init_withDynamicDevices()
3588 List<CarAudioZoneConfigInfo> zoneConfigInfos = in onKeyEvent_forDynamicDevKeyEventEnabledForDynamicDeviceConfigForZoneWithDynamicDevices()
3590 CarAudioZoneConfigInfo zoneConfigSwitchTo = zoneConfigInfos.stream() in onKeyEvent_forDynamicDevKeyEventEnabledForDynamicDeviceConfigForZoneWithDynamicDevices()
3628 List<CarAudioZoneConfigInfo> zoneConfigInfos = in onKeyEvent_forDynDevKeyEventDisabledForDynamicDeviceConfigForZoneWithDynamicDevices()
3630 CarAudioZoneConfigInfo zoneConfigSwitchTo = zoneConfigInfos.stream() in onKeyEvent_forDynDevKeyEventDisabledForDynamicDeviceConfigForZoneWithDynamicDevices()
4470 List<CarAudioZoneConfigInfo> zoneConfigInfos = in getAudioZoneConfigInfos()
4482 CarAudioZoneConfigInfo currentZoneConfigInfo = in getCurrentAudioZoneConfigInfo()
4494 CarAudioZoneConfigInfo zoneConfigSwitchTo = getZoneConfigToSwitch(service, in switchZoneToConfig()
[all …]
DCarAudioZoneConfigUnitTest.java42 import android.car.media.CarAudioZoneConfigInfo;
871 CarAudioZoneConfigInfo zoneConfigInfoExpected = new CarAudioZoneConfigInfo( in getCarAudioZoneConfigInfo_withDynamicDevicesDisabled()
874 CarAudioZoneConfigInfo zoneConfigInfo = zoneConfig.getCarAudioZoneConfigInfo(); in getCarAudioZoneConfigInfo_withDynamicDevicesDisabled()
884 CarAudioZoneConfigInfo zoneConfigInfoExpected = new CarAudioZoneConfigInfo( in getCarAudioZoneConfigInfo_withDynamicDevicesEnabled()
888 CarAudioZoneConfigInfo zoneConfigInfo = zoneConfig.getCarAudioZoneConfigInfo(); in getCarAudioZoneConfigInfo_withDynamicDevicesEnabled()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DCarAudioZoneConfigInfoTestBuilder.java19 import android.car.media.CarAudioZoneConfigInfo;
61 public CarAudioZoneConfigInfo build() { in build()
62 return new CarAudioZoneConfigInfo(mName, mZoneId, mConfigId); in build()
DFakeCarAudioService.java26 import android.car.media.CarAudioZoneConfigInfo;
280 public CarAudioZoneConfigInfo getCurrentAudioZoneConfigInfo(int audioZoneId) { in getCurrentAudioZoneConfigInfo()
285 public List<CarAudioZoneConfigInfo> getAudioZoneConfigInfos(int audioZoneId) { in getAudioZoneConfigInfos()
290 public void switchZoneToConfig(CarAudioZoneConfigInfo zoneConfig, in switchZoneToConfig()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DAudioRoutesManager.java25 import android.car.media.CarAudioZoneConfigInfo;
77 @NonNull List<CarAudioZoneConfigInfo> configs, int status) {
118 List<CarAudioZoneConfigInfo> carAudioZoneConfigInfoList = in updateAudioRoutesList()
120 for (CarAudioZoneConfigInfo carAudioZoneConfigInfo : carAudioZoneConfigInfoList) { in updateAudioRoutesList()
239 List<CarAudioZoneConfigInfo> zoneConfigInfoList = in setAudioRouteActive()
241 for (CarAudioZoneConfigInfo carAudioZoneConfigInfo : zoneConfigInfoList) { in setAudioRouteActive()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java23 import android.car.media.CarAudioZoneConfigInfo;
102 CarAudioZoneConfigInfo getDefaultAudioZoneConfigInfo() { in getDefaultAudioZoneConfigInfo()
204 boolean isCurrentZoneConfig(CarAudioZoneConfigInfo configInfoSwitchedTo) { in isCurrentZoneConfig()
211 void setCurrentCarZoneConfig(CarAudioZoneConfigInfo configInfoSwitchedTo) { in setCurrentCarZoneConfig()
417 List<CarAudioZoneConfigInfo> getCarAudioZoneConfigInfos() { in getCarAudioZoneConfigInfos()
418 List<CarAudioZoneConfigInfo> zoneConfigInfos = new ArrayList<>(mCarAudioZoneConfigs.size()); in getCarAudioZoneConfigInfos()
DCarAudioUtils.java41 import android.car.media.CarAudioZoneConfigInfo;
115 static List<AudioDeviceInfo> getDynamicDevicesInConfig(CarAudioZoneConfigInfo zoneConfig, in getDynamicDevicesInConfig()
121 static boolean excludesDynamicDevices(CarAudioZoneConfigInfo zoneConfig) { in excludesDynamicDevices()
145 static List<AudioAttributes> getAudioAttributesForDynamicDevices(CarAudioZoneConfigInfo info) { in getAudioAttributesForDynamicDevices()
DCarAudioService.java81 import android.car.media.CarAudioZoneConfigInfo;
3074 public CarAudioZoneConfigInfo getCurrentAudioZoneConfigInfo(int zoneId) {
3084 public List<CarAudioZoneConfigInfo> getAudioZoneConfigInfos(int zoneId) {
3093 public void switchZoneToConfig(CarAudioZoneConfigInfo zoneConfig,
3101 CarAudioZoneConfigInfo updatedInfo = getAudioZoneConfigInfo(zoneConfig);
3132 private CarAudioZoneConfigInfo getAudioZoneConfigInfo(CarAudioZoneConfigInfo zoneConfig) {
3133 List<CarAudioZoneConfigInfo> infos = getAudioZoneConfigInfos(zoneConfig.getZoneId());
3143 private void verifyCanSwitchZoneConfigs(CarAudioZoneConfigInfo zoneConfig) {
3149 CarAudioZoneConfigInfo updatedInfo = getAudioZoneConfigInfo(zoneConfig);
3184 private boolean handleSwitchZoneConfig(CarAudioZoneConfigInfo zoneConfig) {
[all …]
DCarAudioZoneConfig.java26 import android.car.media.CarAudioZoneConfigInfo;
494 CarAudioZoneConfigInfo getCarAudioZoneConfigInfo() { in getCarAudioZoneConfigInfo()
496 return new CarAudioZoneConfigInfo.Builder(mName, mZoneId, mZoneConfigId) in getCarAudioZoneConfigInfo()
501 return new CarAudioZoneConfigInfo(mName, mZoneId, mZoneConfigId); in getCarAudioZoneConfigInfo()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DAudioRoutesManagerTest.java32 import android.car.media.CarAudioZoneConfigInfo;
87 private CarAudioZoneConfigInfo mCarAudioZoneConfigInfo;

12