diff options
| author | 2024-09-18 12:58:56 +0000 | |
|---|---|---|
| committer | 2024-09-18 12:58:56 +0000 | |
| commit | cb7519503e600b3c2bea3c5043c08ea6160b3550 (patch) | |
| tree | 77b9a2b54457e8636745baf06c9f9c6061d178f5 | |
| parent | 2aa24f454a8481a23f081d1dc3e4bb820751d517 (diff) | |
| parent | 14d11fb699ec762472aeb903f73d9e135e7ec49a (diff) | |
Merge "Update doc to reuse getDevicesForAttributes for get input devices" into main
| -rw-r--r-- | media/java/android/media/AudioManager.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/media/java/android/media/AudioManager.java b/media/java/android/media/AudioManager.java index e2e7a46a0ad0..cdb517b3fd3e 100644 --- a/media/java/android/media/AudioManager.java +++ b/media/java/android/media/AudioManager.java @@ -6318,7 +6318,14 @@ public class AudioManager { /** * @hide * Get the audio devices that would be used for the routing of the given audio attributes. - * @param attributes the {@link AudioAttributes} for which the routing is being queried + * @param attributes the {@link AudioAttributes} for which the routing is being queried. + * For queries about output devices (playback use cases), a valid usage must be specified in + * the audio attributes via AudioAttributes.Builder.setUsage(). The capture preset MUST NOT + * be changed from default. + * For queries about input devices (capture use case), a valid capture preset MUST be + * specified in the audio attributes via AudioAttributes.Builder.setCapturePreset(). If a + * capture preset is present, then this has precedence over any usage or content type also + * present in the audio attrirutes. * @return an empty list if there was an issue with the request, a list of audio devices * otherwise (typically one device, except for duplicated paths). */ |