Home
last modified time | relevance | path

Searched refs:fadeableUsages (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeConfigurationsTest.java244 private static FadeManagerConfiguration createFadeMgrConfig(List<Integer> fadeableUsages, in createFadeMgrConfig() argument
248 if (fadeableUsages != null) { in createFadeMgrConfig()
249 builder.setFadeableUsages(fadeableUsages); in createFadeMgrConfig()
260 if (fadeableUsages != null) { in createFadeMgrConfig()
261 for (int index = 0; index < fadeableUsages.size(); index++) { in createFadeMgrConfig()
263 createGenericAudioAttributesForUsage(fadeableUsages.get(index)), in createFadeMgrConfig()
267 if (fadeableUsages != null) { in createFadeMgrConfig()
268 for (int index = 0; index < fadeableUsages.size(); index++) { in createFadeMgrConfig()
270 createGenericAudioAttributesForUsage(fadeableUsages.get(index)), in createFadeMgrConfig()
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DFadeManagerConfigurationUnitTest.java442 final List<Integer> fadeableUsages = List.of( in testSetFadeableUsages() local
455 .setFadeableUsages(fadeableUsages) in testSetFadeableUsages()
470 .that(fmc.getFadeableUsages()).isEqualTo(fadeableUsages); in testSetFadeableUsages()
475 final List<Integer> fadeableUsages = List.of( in testSetFadeableUsages_withInvalidUsage_fails() local
482 new FadeManagerConfiguration.Builder().setFadeableUsages(fadeableUsages).build() in testSetFadeableUsages_withInvalidUsage_fails()
502 final List<Integer> fadeableUsages = List.of( in testSetFadeableUsages_withEmptyListClears_addsNewUsage() local
508 .setFadeableUsages(fadeableUsages); in testSetFadeableUsages_withEmptyListClears_addsNewUsage()
/frameworks/base/media/java/android/media/
DFadeManagerConfiguration.java178 @NonNull IntArray fadeableUsages, @NonNull IntArray unfadeableContentTypes, in FadeManagerConfiguration() argument
189 mFadeableUsages = Objects.requireNonNull(fadeableUsages, in FadeManagerConfiguration()
637 int[] fadeableUsages = in.createIntArray(); in FadeManagerConfiguration() local
650 this.mFadeableUsages = IntArray.wrap(fadeableUsages); in FadeManagerConfiguration()