Home
last modified time | relevance | path

Searched refs:fmc (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DFadeManagerConfigurationUnitTest.java161 FadeManagerConfiguration fmc = new FadeManagerConfiguration in build_withFadeDurations_succeeds() local
164 expect.withMessage("Fade state for builder with duration").that(fmc.getFadeState()) in build_withFadeDurations_succeeds()
167 .that(fmc.getFadeableUsages()) in build_withFadeDurations_succeeds()
170 .that(fmc.getUnfadeableContentTypes()) in build_withFadeDurations_succeeds()
173 .that(fmc.getUnfadeablePlayerTypes()) in build_withFadeDurations_succeeds()
176 .that(fmc.getUnfadeableUids()).isEmpty(); in build_withFadeDurations_succeeds()
178 .that(fmc.getUnfadeableAudioAttributes()).isEmpty(); in build_withFadeDurations_succeeds()
180 .that(fmc.getFadeOutVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build_withFadeDurations_succeeds()
183 .that(fmc.getFadeOutDurationForUsage(AudioAttributes.USAGE_GAME)) in build_withFadeDurations_succeeds()
186 .that(fmc.getFadeInVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build_withFadeDurations_succeeds()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeConfigurationsTest.java184 FadeManagerConfiguration fmc = createFadeMgrConfig(/* fadeableUsages= */ usageList, in testGetFadeableUsages_withFadeManagerConfigurations_equals() local
189 fadeConfigs.setFadeManagerConfiguration(fmc); in testGetFadeableUsages_withFadeManagerConfigurations_equals()
192 .that(fadeConfigs.getFadeableUsages()).isEqualTo(fmc.getFadeableUsages()); in testGetFadeableUsages_withFadeManagerConfigurations_equals()
200 FadeManagerConfiguration fmc = createFadeMgrConfig(/* fadeableUsages= */ null, in testGetUnfadeableContentTypes_withFadeManagerConfigurations_equals() local
205 fadeConfigs.setFadeManagerConfiguration(fmc); in testGetUnfadeableContentTypes_withFadeManagerConfigurations_equals()
209 .isEqualTo(fmc.getUnfadeableContentTypes()); in testGetUnfadeableContentTypes_withFadeManagerConfigurations_equals()
217 FadeManagerConfiguration fmc = createFadeMgrConfig(/* fadeableUsages= */ null, in testGetUnfadeableAudioAttributes_withFadeManagerConfigurations_equals() local
222 fadeConfigs.setFadeManagerConfiguration(fmc); in testGetUnfadeableAudioAttributes_withFadeManagerConfigurations_equals()
226 .isEqualTo(fmc.getUnfadeableAudioAttributes()); in testGetUnfadeableAudioAttributes_withFadeManagerConfigurations_equals()
233 FadeManagerConfiguration fmc = createFadeMgrConfig(/* fadeableUsages= */ null, in testGetUnfadeableUids_withFadeManagerConfigurations_equals() local
[all …]
/frameworks/base/media/java/android/media/
DFadeManagerConfiguration.java837 public Builder(@NonNull FadeManagerConfiguration fmc) { in Builder() argument
838 mFadeState = fmc.mFadeState; in Builder()
839 copyUsageToFadeWrapperMapInternal(fmc.mUsageToFadeWrapperMap); in Builder()
841 fmc.mAttrToFadeWrapperMap); in Builder()
842 mFadeableUsages = fmc.mFadeableUsages.clone(); in Builder()
844 mUnfadeableContentTypes = fmc.mUnfadeableContentTypes.clone(); in Builder()
846 mUnfadeablePlayerTypes = fmc.mUnfadeablePlayerTypes.clone(); in Builder()
847 mUnfadeableUids = fmc.mUnfadeableUids.clone(); in Builder()
848 mUnfadeableAudioAttributes = new ArrayList<>(fmc.mUnfadeableAudioAttributes); in Builder()
849 mFadeOutDurationMillis = fmc.mFadeOutDurationMillis; in Builder()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DFgsManagerControllerTest.java323 FgsManagerController fmc = new FgsManagerControllerImpl( in testShowUserVisibleJobsOnCreation() local
338 fmc.init(); in testShowUserVisibleJobsOnCreation()
339 Assert.assertTrue(fmc.getIncludesUserVisibleJobs()); in testShowUserVisibleJobsOnCreation()
350 fmc = new FgsManagerControllerImpl( in testShowUserVisibleJobsOnCreation()
365 fmc.init(); in testShowUserVisibleJobsOnCreation()
366 Assert.assertFalse(fmc.getIncludesUserVisibleJobs()); in testShowUserVisibleJobsOnCreation()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java13192 private void validateFadeManagerConfiguration(FadeManagerConfiguration fmc) { in validateFadeManagerConfiguration() argument
13194 List<AudioAttributes> attrs = fmc.getAudioAttributesWithVolumeShaperConfigs(); in validateFadeManagerConfiguration()