Searched refs:audioContext (Results 1 – 9 of 9) sorted by relevance
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioContext.java | 214 @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()
|
D | CarAudioZonesHelper.java | 106 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()
|
D | FocusInteraction.java | 406 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()
|
D | CarAudioZone.java | 170 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()
|
D | CarVolumeGroup.java | 88 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()
|
D | CarAudioService.java | 799 @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/ |
D | CarAudioContextTest.java | 74 for (@AudioContext int audioContext : CarAudioContext.CONTEXTS) { in getUsagesForContext_returnsUniqueValuesForAllContexts() 75 @AttributeUsage int[] usages = CarAudioContext.getUsagesForContext(audioContext); in getUsagesForContext_returnsUniqueValuesForAllContexts()
|
D | FocusInteractionTest.java | 274 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/ |
D | AudioControlWrapperV1.java | 119 public int getBusForContext(@CarAudioContext.AudioContext int audioContext) { in getBusForContext() argument 121 return mAudioControlV1.getBusForContext(audioContext); in getBusForContext()
|