Home
last modified time | relevance | path

Searched refs:audioContext (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioContext.java214 @AudioContext int audioContext = CONTEXT_TO_USAGES.keyAt(i);
217 USAGE_TO_CONTEXT.put(usage, audioContext); in USAGE_TO_CONTEXT.put() argument
225 static void preconditionCheckAudioContext(@AudioContext int audioContext) { in preconditionCheckAudioContext() argument
226 Preconditions.checkArgument(Arrays.binarySearch(CONTEXTS, audioContext) >= 0, in preconditionCheckAudioContext()
227 "audioContext %d is invalid", audioContext); in preconditionCheckAudioContext() local
243 static String toString(@AudioContext int audioContext) { in toString() argument
244 String name = CONTEXT_NAMES.get(audioContext); in toString()
248 return "Unsupported Context 0x" + Integer.toHexString(audioContext); in toString()
DCarAudioZonesHelper.java106 private static boolean isLegacyContext(@AudioContext int audioContext) { in isLegacyContext() argument
107 return Arrays.binarySearch(LEGACY_CONTEXTS, audioContext) >= 0; in isLegacyContext()
114 for (@AudioContext int audioContext : CarAudioContext.CONTEXTS) {
115 if (!isLegacyContext(audioContext)) {
116 NON_LEGACY_CONTEXTS.add(audioContext);
122 for (@AudioContext int audioContext : NON_LEGACY_CONTEXTS) { in bindNonLegacyContexts()
123 group.bind(audioContext, info); in bindNonLegacyContexts()
459 private void validateCarAudioContextSupport(@AudioContext int audioContext) { in validateCarAudioContextSupport() argument
460 if (isVersionOne() && NON_LEGACY_CONTEXTS.contains(audioContext)) { in validateCarAudioContextSupport()
464 CarAudioContext.toString(audioContext), SUPPORTED_VERSION_1)); in validateCarAudioContextSupport()
DFocusInteraction.java406 for (int audioContext = 0; audioContext < matrixToClone.length; audioContext++) { in cloneInteractionMatrix()
407 System.arraycopy(matrixToClone[audioContext], 0, in cloneInteractionMatrix()
408 interactionMatrixClone[audioContext], 0, matrixToClone.length); in cloneInteractionMatrix()
DCarAudioZone.java170 String getAddressForContext(int audioContext) { in getAddressForContext() argument
171 CarAudioContext.preconditionCheckAudioContext(audioContext); in getAddressForContext()
174 deviceAddress = volumeGroup.getAddressForContext(audioContext); in getAddressForContext()
182 + " for audio context " + audioContext); in getAddressForContext()
DCarVolumeGroup.java88 for (int audioContext : contexts) { in CarVolumeGroup()
89 mContextToAddress.put(audioContext, null); in CarVolumeGroup()
117 String getAddressForContext(int audioContext) { in getAddressForContext() argument
118 return mContextToAddress.get(audioContext); in getAddressForContext()
DCarAudioService.java799 @AudioContext int audioContext = CarAudioContext.getContextForUsage(usage); in getVolumeGroupIdForUsage() local
800 return getVolumeGroupIdForAudioContextLocked(zoneId, audioContext); in getVolumeGroupIdForUsage()
804 private int getVolumeGroupIdForAudioContextLocked(int zoneId, @AudioContext int audioContext) { in getVolumeGroupIdForAudioContextLocked() argument
809 if (audioContext == groupAudioContext) { in getVolumeGroupIdForAudioContextLocked()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextTest.java74 for (@AudioContext int audioContext : CarAudioContext.CONTEXTS) { in getUsagesForContext_returnsUniqueValuesForAllContexts()
75 @AttributeUsage int[] usages = CarAudioContext.getUsagesForContext(audioContext); in getUsagesForContext_returnsUniqueValuesForAllContexts()
DFocusInteractionTest.java274 private FocusEntry newMockFocusEntryWithContext(@AudioContext int audioContext) { in newMockFocusEntryWithContext() argument
276 when(focusEntry.getAudioContext()).thenReturn(audioContext); in newMockFocusEntryWithContext()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV1.java119 public int getBusForContext(@CarAudioContext.AudioContext int audioContext) { in getBusForContext() argument
121 return mAudioControlV1.getBusForContext(audioContext); in getBusForContext()