diff options
author | Glenn Kasten <gkasten@google.com> | 2012-09-20 08:08:07 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-09-20 12:28:20 -0700 |
commit | 62796aac596f556a1871358bb8ce93af9d55c5a5 (patch) | |
tree | e782025ea858a8779cffeee0ea3c60964f26fec0 /media/java | |
parent | e0de5bfff2e74ee566ac2d053052de09aa25e54b (diff) | |
download | frameworks_base-62796aac596f556a1871358bb8ce93af9d55c5a5.zip frameworks_base-62796aac596f556a1871358bb8ce93af9d55c5a5.tar.gz frameworks_base-62796aac596f556a1871358bb8ce93af9d55c5a5.tar.bz2 |
Expose android.media.AudioManager.getProperty()
Also fix minor documentation errors.
Bug: 6635041
Change-Id: I6bbbf1b7c5ab705ac374436ea0c098cb3c27fd4a
Diffstat (limited to 'media/java')
-rw-r--r-- | media/java/android/media/AudioManager.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/media/java/android/media/AudioManager.java b/media/java/android/media/AudioManager.java index c848f0f..b3beaa6 100644 --- a/media/java/android/media/AudioManager.java +++ b/media/java/android/media/AudioManager.java @@ -2445,30 +2445,29 @@ public class AudioManager { } /** - * Used as a key for #getProperty to request the native or optimal output sample rate for - * this device, in decimal Hz. - * {@hide} + * Used as a key for {@link #getProperty} to request the native or optimal output sample rate + * for this device's primary output stream, in decimal Hz. */ public static final String PROPERTY_OUTPUT_SAMPLE_RATE = "android.media.property.OUTPUT_SAMPLE_RATE"; /** - * Used as a key for #getProperty to request the native or optimal output buffer size for - * this device, in decimal PCM frames. - * {@hide} + * Used as a key for {@link #getProperty} to request the native or optimal output buffer size + * for this device's primary output stream, in decimal PCM frames. */ public static final String PROPERTY_OUTPUT_FRAMES_PER_BUFFER = "android.media.property.OUTPUT_FRAMES_PER_BUFFER"; /** + * Returns the value of the property with the specified key. * @param key One of the strings corresponding to a property key: either - * #PROPERTY_OUTPUT_SAMPLE_RATE or #PROPERTY_OUTPUT_FRAMES_PER_BUFFER + * {@link #PROPERTY_OUTPUT_SAMPLE_RATE} or + * {@link #PROPERTY_OUTPUT_FRAMES_PER_BUFFER} * @return A string representing the associated value for that property key, * or null if there is no value for that key. - * {@hide} */ public String getProperty(String key) { - // uses android.os.SystemProperties.get for selected keys, with suitable defaults + // implementation to be written return null; } |