summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2024-12-13 09:33:33 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2024-12-13 09:33:33 -0800
commit84e03f80df08dea72cf3f74b69832ba1afb05aa0 (patch)
treed77ef353f0674c6ba26073f66493d0d2bf5dd63b
parentbd0648d549c8742920953bf9c96612a49bffe807 (diff)
parent35871ed71a64db136c35c1a9438ac6fa4573a85c (diff)
Merge "AudioManager: fix javadoc for setAudioServerStateCallback" into main
-rw-r--r--media/java/android/media/AudioManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/media/java/android/media/AudioManager.java b/media/java/android/media/AudioManager.java
index 04fa90514dc9..52eae43f7db9 100644
--- a/media/java/android/media/AudioManager.java
+++ b/media/java/android/media/AudioManager.java
@@ -8466,9 +8466,13 @@ public class AudioManager {
/**
* @hide
* Registers a callback for notification of audio server state changes.
- * @param executor {@link Executor} to handle the callbacks
- * @param stateCallback the callback to receive the audio server state changes
- * To remove the callabck, pass a null reference for both executor and stateCallback.
+ * @param executor {@link Executor} to handle the callbacks. Must be non null.
+ * @param stateCallback the callback to receive the audio server state changes.
+ * Must be non null. To remove the callabck,
+ * call {@link #clearAudioServerStateCallback()}
+ * @throws IllegalArgumentException If a null argument is specified.
+ * @throws IllegalStateException If a callback is already registered
+ * *
*/
@SystemApi
public void setAudioServerStateCallback(@NonNull Executor executor,