Home
last modified time | relevance | path

Searched refs:contexts (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java187 public static boolean isAnyContextActive(@NonNull @AudioContext int [] contexts, in isAnyContextActive() argument
190 Objects.nonNull(contexts); in isAnyContextActive()
191 Preconditions.checkArgument(contexts.length != 0, in isAnyContextActive()
195 for (@AudioContext int context : contexts) { in isAnyContextActive()
208 Set<Integer> contexts = CarAudioContext.getUniqueContextsForUsages(activeHalUsages); in getActiveContexts() local
212 contexts.add(CarAudioContext.CALL_RING); in getActiveContexts()
215 contexts.add(CarAudioContext.CALL); in getActiveContexts()
219 contexts.addAll(activePlaybackContexts); in getActiveContexts()
220 return contexts; in getActiveContexts()
DCarDuckingUtils.java147 private static Set<Integer> getUnduckedContexts(Set<Integer> contexts, in getUnduckedContexts() argument
149 Set<Integer> unduckedContexts = new HashSet<>(contexts); in getUnduckedContexts()
154 private static Set<String> getAddressesForContexts(Set<Integer> contexts, CarAudioZone zone) { in getAddressesForContexts() argument
156 for (Integer context : contexts) { in getAddressesForContexts()
162 private static Set<Integer> getContextsToDuck(Set<Integer> contexts) { in getContextsToDuck() argument
165 for (Integer context : contexts) { in getContextsToDuck()
173 contextsToDuck.retainAll(contexts); in getContextsToDuck()
DCarAudioZone.java125 Set<Integer> contexts = new HashSet<>(); in validateVolumeGroups() local
131 if (!contexts.add(context)) { in validateVolumeGroups()
147 if (contexts.size() != CarAudioContext.CONTEXTS.length) { in validateVolumeGroups()
149 Slog.e(CarLog.TAG_AUDIO, "Assigned contexts " + contexts); in validateVolumeGroups()
DCarAudioZonesHelperLegacy.java205 List<Integer> contexts = new ArrayList<>(); in parseAudioContexts() local
216 contexts.add(c.getInt(R.styleable.volumeGroups_context_context, -1)); in parseAudioContexts()
221 return contexts; in parseAudioContexts()
DCarAudioService.java923 Set<Integer> contexts = in getUsagesForVolumeGroupId() local
926 for (@AudioContext int context : contexts) { in getUsagesForVolumeGroupId()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DVolumeGroupBuilder.java62 int[] contexts = new int[mDeviceAddresses.size()]; in build() local
72 contexts[index] = context; in build()
75 when(carVolumeGroup.getContexts()).thenReturn(contexts); in build()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperLegacyTest.java127 List<Integer> contexts = IntStream.of(mediaVolumeGroup.getContexts()).boxed().collect( in loadAudioZones_associatesLegacyContextsWithCorrectBuses() local
129 assertThat(contexts).contains(CarAudioContext.MUSIC); in loadAudioZones_associatesLegacyContextsWithCorrectBuses()
154 List<Integer> contexts = IntStream.of(mediaVolumeGroup.getContexts()).boxed().collect( in loadAudioZones_associatesNonLegacyContextsWithMediaBus() local
156 assertThat(contexts).containsAtLeast(CarAudioService.DEFAULT_AUDIO_CONTEXT, in loadAudioZones_associatesNonLegacyContextsWithMediaBus()
DCarAudioZoneTest.java316 @AudioContext int[] contexts = new int[mDeviceAddresses.size()]; in build() local
326 contexts[index] = context; in build()
329 when(carVolumeGroup.getContexts()).thenReturn(contexts); in build()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowPermissionControllerManager.java34 protected void __constructor__(Context contexts, Handler handler) { in __constructor__() argument
/packages/apps/Camera2/src/com/android/camera/data/
DCameraFilmstripDataAdapter.java391 protected QueryTaskResult doInBackground(Context... contexts) { in doInBackground() argument
392 final Context context = contexts[0]; in doInBackground()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Ddom.md172 …s" or "in place" to describe an event where it takes place, and is used in many different contexts.
/packages/modules/Virtualization/microdroid/
Dmicrodroid_file_contexts495 # NOTE: For additional vendor file contexts for vendor overlay files,
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt3314 Landroid/icu/text/LocaleDisplayNames$LastResortLocaleDisplayNames;->contexts:[Landroid/icu/text/Dis…
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...