/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/media/ |
D | CarAudioManagerTest.java | 22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 63 int groupCount = mCarAudioManager.getVolumeGroupCount(PRIMARY_AUDIO_ZONE); in getVolumeGroupInfo() 67 mCarAudioManager.getVolumeGroupInfo(PRIMARY_AUDIO_ZONE, index); in getVolumeGroupInfo() 71 .that(info.getZoneId()).isEqualTo(PRIMARY_AUDIO_ZONE); in getVolumeGroupInfo() 79 int groupCount = mCarAudioManager.getVolumeGroupCount(PRIMARY_AUDIO_ZONE); in getVolumeGroupInfosForZone() 82 mCarAudioManager.getVolumeGroupInfosForZone(PRIMARY_AUDIO_ZONE); in getVolumeGroupInfosForZone() 88 mCarAudioManager.getVolumeGroupInfo(PRIMARY_AUDIO_ZONE, index); in getVolumeGroupInfosForZone() 100 assertThat(zoneIds).contains(PRIMARY_AUDIO_ZONE); in test_getAudioZoneIds() 114 mCarAudioManager.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)).isEqualTo( in test_getVolumeGroupCount() 122 assertThat(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, groudId)) in test_getGroupVolume() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeInfoWrapperTest.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 60 new CarVolumeGroupInfo.Builder("group id " + TEST_GROUP_ID, PRIMARY_AUDIO_ZONE, 68 PRIMARY_AUDIO_ZONE, TEST_SECONDARY_GROUP) 88 when(mMockCarAudioService.getSuggestedAudioContextForZone(PRIMARY_AUDIO_ZONE)) in setUp() 90 when(mMockCarAudioService.getVolumeGroupIdForAudioContext(PRIMARY_AUDIO_ZONE, CALL)) in setUp() 92 when(mMockCarAudioService.getVolumeGroupIdForAudioAttribute(PRIMARY_AUDIO_ZONE, in setUp() 94 when(mMockCarAudioService.getGroupVolume(PRIMARY_AUDIO_ZONE, TEST_GROUP_ID)) in setUp() 96 when(mMockCarAudioService.getGroupMinVolume(PRIMARY_AUDIO_ZONE, TEST_GROUP_ID)) in setUp() 98 when(mMockCarAudioService.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, TEST_GROUP_ID)) in setUp() 100 when(mMockCarAudioService.isVolumeGroupMuted(PRIMARY_AUDIO_ZONE, TEST_GROUP_ID)) in setUp() [all …]
|
D | CarAudioServiceUnitTest.java | 35 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 616 .thenReturn(PRIMARY_AUDIO_ZONE); in setUpService() 679 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_0).setMuted(true) in setUpAudioManager() 690 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_0).setMuted(false) in setUpAudioManager() 701 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_1).setMuted(true) in setUpAudioManager() 951 audioServiceWithDynamicDevices.getAudioZoneConfigInfos(PRIMARY_AUDIO_ZONE); in init_withDynamicDevices() 1016 .containsExactly(PRIMARY_AUDIO_ZONE, TEST_REAR_LEFT_ZONE_ID, in getAudioZoneIds_withBaseConfiguration_returnAllTheZones() 1025 .that(service.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_onPrimaryZone_returnsAllGroups() 1035 .that(nonDynamicAudioService.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_onPrimaryZone_withNonDynamicRouting_returnsAllGroups() 1044 .that(service.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)) in getVolumeGroupIdForUsage_forMusicUsage() [all …]
|
D | CarAudioPolicyVolumeCallbackTest.java | 20 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 95 new CarVolumeGroupInfo.Builder("group id " + TEST_VOLUME_GROUP, PRIMARY_AUDIO_ZONE, 106 when(mMockVolumeInfoWrapper.getSuggestedAudioContextForZone(PRIMARY_AUDIO_ZONE)) in setUp() 114 when(mMockVolumeInfoWrapper.getVolumeGroupInfosForZone(PRIMARY_AUDIO_ZONE)) in setUp() 116 when(mMockVolumeInfoWrapper.getActiveAudioAttributesForZone(PRIMARY_AUDIO_ZONE)) in setUp() 185 verify(mVolumeCallbackInternal).onGroupVolumeChange(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustRaise_increasesGroupVolume() 195 verify(mVolumeCallbackInternal).onGroupVolumeChange(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustLower_decreasesGroupVolume() 205 verify(mVolumeCallbackInternal).onGroupVolumeChange(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustLower_atMinVolume_setsGroupVolumeToMin() 215 verify(mVolumeCallbackInternal).onGroupVolumeChange(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustRaise_atMaxVolume_setsGroupVolumeToMax() 231 verify(mVolumeCallbackInternal).onGroupVolumeChange(PRIMARY_AUDIO_ZONE, in onVolumeAdjustment_withAdjustRaise_whileMuted_setsGroupVolumeToMin() [all …]
|
D | CarAudioZoneConfigUnitTest.java | 20 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 125 PRIMARY_AUDIO_ZONE, TEST_ZONE_CONFIG_ID, /* isDefault= */ true); in setUp() 153 .isEqualTo(PRIMARY_AUDIO_ZONE); in getZoneId_fromBuilder() 167 .that(zoneConfig.getZoneId()).isEqualTo(PRIMARY_AUDIO_ZONE); in getZoneId() 237 PRIMARY_AUDIO_ZONE, TEST_ZONE_CONFIG_ID, /* isDefault= */ false) in isDefault_forNonDefaultConfig_returnsFalse() 730 musicGainInfo.zoneId = PRIMARY_AUDIO_ZONE; in onAudioGainChanged_withDeviceAddressesInZone() 762 navGainInfo.zoneId = PRIMARY_AUDIO_ZONE; in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup() 766 voiceGainInfo.zoneId = PRIMARY_AUDIO_ZONE; in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup() 792 musicGainInfo.zoneId = PRIMARY_AUDIO_ZONE; in onAudioGainChanged_withInvalidEventType() 814 musicGainInfo.zoneId = PRIMARY_AUDIO_ZONE; in onAudioGainChanged_withInvalidAddress() [all …]
|
D | CarAudioFocusUnitTest.java | 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 345 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, in onAudioFocusRequest_concurrentRequestWithoutDucking_holderLosesFocusWithFade() 365 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, cafcEnabled, in onAudioFocusRequest_forPrimaryZone_holderLosesFocus_withNullFadeConfig() 414 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, in onAudioFocusRequest_forPrimaryZone_holderLosesFocus_withTransientFadeConfig() 471 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, cafcEnabled, in onAudioFocusRequest_exclusiveRequest_holderLosesFocus_withNullTransient() 571 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, in onAudioFocus_withFadeMgrConfig_exclusiveWithSystemUsage_holderLosesFocus() 687 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, in requestAudioFocusWithDelayed_whileInCallAndNav_thenCallStop_navLosesWithFade() 1030 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_nonTransientReceivesLossWithFade() 1085 CarAudioFocus carAudioFocus = getCarAudioFocus(PRIMARY_AUDIO_ZONE, in onAudioFocus_multipleRequestOnlyOneWithDelayedFocus_duckedRequestReceiveLosswithFade() 1689 when(mMockCarVolumeInfoWrapper.getVolumeGroupIdForAudioAttribute(PRIMARY_AUDIO_ZONE, in onAudioFocusRequest_withOemServiceEnabled_capturesFocusRequest() [all …]
|
D | CarAudioMirrorRequestHandlerTest.java | 22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 45 private static final int TEST_ZONE_1 = PRIMARY_AUDIO_ZONE + 1; 46 private static final int TEST_ZONE_2 = PRIMARY_AUDIO_ZONE + 2; 47 private static final int TEST_ZONE_3 = PRIMARY_AUDIO_ZONE + 3;
|
D | CoreAudioVolumeGroupCallbackTest.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 159 verify(mMockVolumeInfoWrapper).onAudioVolumeGroupChanged(PRIMARY_AUDIO_ZONE, in onAudioVolumeGroupChanged_withValidGroupId_dispatchesVolumeChange()
|
D | CoreAudioVolumeGroupTest.java | 20 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 178 mSettingsMock, musicContextToDeviceInfo, PRIMARY_AUDIO_ZONE, ZONE_CONFIG_ID, in setUp() 186 mSettingsMock, navContextToDeviceInfo, PRIMARY_AUDIO_ZONE, ZONE_CONFIG_ID, in setUp() 195 PRIMARY_AUDIO_ZONE, ZONE_CONFIG_ID, OEM_CAR_GROUP_ID, OEM_GROUP_NAME, in setUp() 321 PRIMARY_AUDIO_ZONE, ZONE_CONFIG_ID, MUSIC_CAR_GROUP_ID, MUSIC_GROUP_NAME, in setMute_whenNotMutable()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/ |
D | OemCarAudioFocusEvaluationRequestUnitTest.java | 54 private static final int TEST_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1; 61 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, CarAudioManager.PRIMARY_AUDIO_ZONE, 80 List.of(TEST_NAV_AUDIO_FOCUS_ENTRY), CarAudioManager.PRIMARY_AUDIO_ZONE) in build() 92 .isEqualTo(CarAudioManager.PRIMARY_AUDIO_ZONE); in build() 119 List.of(TEST_NAV_AUDIO_FOCUS_ENTRY), CarAudioManager.PRIMARY_AUDIO_ZONE) in createRequestAndWriteToParcel() 131 CarAudioManager.PRIMARY_AUDIO_ZONE) in builder_withReuse_fails() 148 List.of(TEST_NAV_AUDIO_FOCUS_ENTRY), CarAudioManager.PRIMARY_AUDIO_ZONE) in builder_withNullFocusRequest_succeeds() 154 /* carAudioFeaturesInfo= */ null, CarAudioManager.PRIMARY_AUDIO_ZONE); in builder_withNullFocusRequest_succeeds() 167 CarAudioManager.PRIMARY_AUDIO_ZONE).setAudioZoneId(TEST_ZONE_ID).build(); in setAudioZoneId_succeeds() 177 new ArrayList<>(), new ArrayList<>(), CarAudioManager.PRIMARY_AUDIO_ZONE) in setFocusHolders() [all …]
|
D | OemCarAudioVolumeRequestUnitTest.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 50 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, PRIMARY_AUDIO_ZONE, 56 new CarVolumeGroupInfo.Builder(TEST_GROUP_NAME, PRIMARY_AUDIO_ZONE, 70 new OemCarAudioVolumeRequest.Builder(PRIMARY_AUDIO_ZONE) 76 new OemCarAudioVolumeRequest.Builder(PRIMARY_AUDIO_ZONE); 81 PRIMARY_AUDIO_ZONE).build(); in build() 84 .that(request.getAudioZoneId()).isEqualTo(PRIMARY_AUDIO_ZONE); in build() 217 .that(request.toString()).contains(Integer.toString(PRIMARY_AUDIO_ZONE)); in toString_forContent()
|
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/ |
D | CustomInputEventListenerTest.java | 20 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 218 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseVolumeAndAssert() 220 when(mCarAudioManager.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, in doTestIncreaseVolumeAndAssert() 223 when(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, SOME_MEDIA_GROUP_ID)).thenReturn( in doTestIncreaseVolumeAndAssert() 252 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestIncreaseMaxVolumeAndAssert() 254 when(mCarAudioManager.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, in doTestIncreaseMaxVolumeAndAssert() 256 when(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, SOME_MEDIA_GROUP_ID)).thenReturn( in doTestIncreaseMaxVolumeAndAssert() 282 when(mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage)).thenReturn( in doTestDecreaseVolumeAndAssert() 284 when(mCarAudioManager.getGroupMinVolume(PRIMARY_AUDIO_ZONE, in doTestDecreaseVolumeAndAssert() 287 when(mCarAudioManager.getGroupVolume(PRIMARY_AUDIO_ZONE, SOME_MEDIA_GROUP_ID)).thenReturn( in doTestDecreaseVolumeAndAssert() [all …]
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/ |
D | CarAudioManagerUnitTest.java | 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 205 verify(mServiceMock).setGroupVolume(PRIMARY_AUDIO_ZONE, TEST_VOLUME_GROUP_ID, in setGroupVolume_withoutZoneId() 231 when(mServiceMock.getGroupMaxVolume(PRIMARY_AUDIO_ZONE, TEST_VOLUME_GROUP_ID)) in getGroupMaxVolume_withoutZoneId() 261 when(mServiceMock.getGroupMinVolume(PRIMARY_AUDIO_ZONE, TEST_VOLUME_GROUP_ID)) in getGroupMinVolume_withoutZoneId() 291 when(mServiceMock.getGroupVolume(PRIMARY_AUDIO_ZONE, TEST_VOLUME_GROUP_ID)) in getGroupVolume_withoutZoneId() 358 when(mServiceMock.getVolumeGroupCount(PRIMARY_AUDIO_ZONE)) in getVolumeGroupCount_withoutZoneId() 386 when(mServiceMock.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, TEST_USAGE)) in getVolumeGroupIdForUsage_withoutZoneId() 417 when(mServiceMock.getUsagesForVolumeGroupId(PRIMARY_AUDIO_ZONE, TEST_VOLUME_GROUP_ID)) in getUsagesForVolumeGroupId_withoutZoneId() 535 int[] expectedZoneIds = new int[]{PRIMARY_AUDIO_ZONE, TEST_REAR_LEFT_ZONE_ID, in getAudioZoneIds() 540 .containsExactly(PRIMARY_AUDIO_ZONE, TEST_REAR_LEFT_ZONE_ID, in getAudioZoneIds() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/ |
D | CarOemAudioVolumeProxyServiceTest.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 44 new CarVolumeGroupInfo.Builder("Group name", PRIMARY_AUDIO_ZONE, 76 new OemCarAudioVolumeRequest.Builder(PRIMARY_AUDIO_ZONE).build(), in getSuggestedGroupForVolumeChange()
|
D | CarOemAudioDuckingProxyServiceTest.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 75 new OemCarAudioVolumeRequest.Builder(PRIMARY_AUDIO_ZONE).build()); in testFeatureDisabled()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZonesHelperLegacy.java | 18 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 159 PRIMARY_AUDIO_ZONE, ZONE_CONFIG_ID, /* isDefault= */ true); in loadAudioZones() 164 CarAudioZone zone = new CarAudioZone(mCarAudioContext, zoneName, PRIMARY_AUDIO_ZONE); in loadAudioZones() 169 carAudioZones.put(PRIMARY_AUDIO_ZONE, zone); in loadAudioZones() 214 mCarAudioContext, PRIMARY_AUDIO_ZONE, ZONE_CONFIG_ID, id, in parseVolumeGroup()
|
D | CarAudioZonesHelper.java | 18 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 194 mNextSecondaryZoneId = PRIMARY_AUDIO_ZONE + 1; in CarAudioZonesHelper() 404 CarAudioZone primaryAudioZone = carAudioZones.get(PRIMARY_AUDIO_ZONE); in addRemainingMicrophonesToPrimaryZone() 414 if (!zones.contains(PRIMARY_AUDIO_ZONE)) { in verifyPrimaryZonePresent() 465 return isPrimary ? PRIMARY_AUDIO_ZONE in getZoneId() 470 return PRIMARY_AUDIO_ZONE; in getZoneId() 477 Preconditions.checkArgument(zoneId == PRIMARY_AUDIO_ZONE, in getZoneId() 479 ATTR_ZONE_ID, PRIMARY_AUDIO_ZONE); in getZoneId() 481 Preconditions.checkArgument(zoneId != PRIMARY_AUDIO_ZONE, in getZoneId() 483 ATTR_ZONE_ID, PRIMARY_AUDIO_ZONE); in getZoneId() [all …]
|
D | CoreAudioVolumeGroupCallback.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 59 int zoneId = PRIMARY_AUDIO_ZONE; in onAudioVolumeGroupChanged()
|
D | CarAudioZonesValidator.java | 18 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 75 CarAudioZone primaryZone = carAudioZones.get(PRIMARY_AUDIO_ZONE); in validatePrimaryZoneHasInputDevice()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioConfigurationTestFragment.java | 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 113 int zoneId = PRIMARY_AUDIO_ZONE; in handleSetUpConfigurationInfoTabs() 127 int zoneId = PRIMARY_AUDIO_ZONE; in handleSetUpConfigurationAutoSelection() 252 int zoneId = PRIMARY_AUDIO_ZONE; in configurationSelected()
|
/packages/services/Car/car-lib/src/android/car/media/ |
D | CarAudioManager.java | 97 public static final int PRIMARY_AUDIO_ZONE = 0x0; field in CarAudioManager 475 setGroupVolume(PRIMARY_AUDIO_ZONE, groupId, index, flags); in setGroupVolume() 508 return getGroupMaxVolume(PRIMARY_AUDIO_ZONE, groupId); in getGroupMaxVolume() 538 return getGroupMinVolume(PRIMARY_AUDIO_ZONE, groupId); in getGroupMinVolume() 568 return getGroupVolume(PRIMARY_AUDIO_ZONE, groupId); in getGroupVolume() 729 return getVolumeGroupCount(PRIMARY_AUDIO_ZONE); in getVolumeGroupCount() 758 return getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, usage); in getVolumeGroupIdForUsage() 788 return getUsagesForVolumeGroupId(PRIMARY_AUDIO_ZONE, groupId); in getUsagesForVolumeGroupId()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioDynamicRoutingTest.java | 299 CarAudioManager.PRIMARY_AUDIO_ZONE, /* zoneConfigId= */ 0, in getTestCarAudioZones() 306 CarAudioManager.PRIMARY_AUDIO_ZONE, /* zoneConfigId= */ 1, in getTestCarAudioZones() 312 CarAudioManager.PRIMARY_AUDIO_ZONE); in getTestCarAudioZones() 316 zones.put(CarAudioManager.PRIMARY_AUDIO_ZONE, carAudioZone); in getTestCarAudioZones()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/ |
D | VolumeSettingsPreferenceControllerTest.java | 22 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 83 private static final int ZONE_ID = PRIMARY_AUDIO_ZONE; 103 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_0).setMuted(false) 110 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_1).setMuted(false) 117 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_0).setMuted(false) 124 PRIMARY_AUDIO_ZONE, TEST_PRIMARY_ZONE_GROUP_0).setMuted(true)
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/statusicon/ui/ |
D | MediaVolumeStatusIconController.java | 19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 81 occupantZoneInfo != null ? occupantZoneInfo.zoneId : PRIMARY_AUDIO_ZONE;
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/ |
D | VolumeUI.java | 21 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE; 177 mAudioZoneId = PRIMARY_AUDIO_ZONE; in start()
|