summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul McLean <pmclean@google.com> 2024-02-29 21:22:00 +0000
committer Paul McLean <pmclean@google.com> 2024-02-29 22:18:29 +0000
commit52352961f84843057fc640fecfca67c014d258a5 (patch)
tree16151c8918c7cf9febcec8f151a1b6d6a66cc4ab
parent2fd1981869cb2d78e21c8a1e45c8b8f83aa6dee2 (diff)
Add @Intdef annotations to AudioManager.getSupportedDeviceTypes API
Bug: 323262075 Test: cts Change-Id: I0d30d5bb51425fa14715d67b376680808fd9cb64
-rw-r--r--media/java/android/media/AudioManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/java/android/media/AudioManager.java b/media/java/android/media/AudioManager.java
index 8f3f82e06cf8..6f7024ae76b4 100644
--- a/media/java/android/media/AudioManager.java
+++ b/media/java/android/media/AudioManager.java
@@ -7878,9 +7878,9 @@ public class AudioManager {
*/
@FlaggedApi(FLAG_SUPPORTED_DEVICE_TYPES_API)
public @NonNull Set<Integer>
- getSupportedDeviceTypes(int direction) {
+ getSupportedDeviceTypes(@AudioDeviceRole int direction) {
if (direction != GET_DEVICES_OUTPUTS && direction != GET_DEVICES_INPUTS) {
- throw new IllegalArgumentException("AudioManager.getSupportedDeviceTypes("
+ throw new IllegalArgumentException("AudioManager.getSupportedDeviceTypes(0x"
+ Integer.toHexString(direction) + ") - Invalid.");
}