summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2024-12-13 15:32:02 +0000
committer Eric Laurent <elaurent@google.com> 2024-12-13 15:35:40 +0000
commit35871ed71a64db136c35c1a9438ac6fa4573a85c (patch)
tree7b9f0a853546d24866a7191854ca3e59601df8cc
parentc3fc17ebaa433f3df0c00e69213e86a91fd6a35e (diff)
AudioManager: fix javadoc for setAudioServerStateCallback
Fix the documentation that was indicating the wrong method to unregister a callback. Test: make Flag: EXEMPT, doc fix Bug: 383228294 Change-Id: I1560fc61c64209742d37bdd78374257298f1b1b4
-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 9beeef4c160f..2b05ca832f9e 100644
--- a/media/java/android/media/AudioManager.java
+++ b/media/java/android/media/AudioManager.java
@@ -8469,9 +8469,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,