Unhide Visualizer scaling mode definitions and methods

Unhide Visualizer set/get methods, and associated constant
 definitions.

Change-Id: Iaafe5f7a2f1273f72c3f7f842b416b93614dfa65
diff --git a/api/current.txt b/api/current.txt
index afcca224..7bbe660 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -11756,11 +11756,13 @@
     method public int getFft(byte[]) throws java.lang.IllegalStateException;
     method public static int getMaxCaptureRate();
     method public int getSamplingRate() throws java.lang.IllegalStateException;
+    method public int getScalingMode() throws java.lang.IllegalStateException;
     method public int getWaveForm(byte[]) throws java.lang.IllegalStateException;
     method public void release();
     method public int setCaptureSize(int) throws java.lang.IllegalStateException;
     method public int setDataCaptureListener(android.media.audiofx.Visualizer.OnDataCaptureListener, int, boolean, boolean);
     method public int setEnabled(boolean) throws java.lang.IllegalStateException;
+    method public int setScalingMode(int) throws java.lang.IllegalStateException;
     field public static final int ALREADY_EXISTS = -2; // 0xfffffffe
     field public static final int ERROR = -1; // 0xffffffff
     field public static final int ERROR_BAD_VALUE = -4; // 0xfffffffc
@@ -11768,6 +11770,8 @@
     field public static final int ERROR_INVALID_OPERATION = -5; // 0xfffffffb
     field public static final int ERROR_NO_INIT = -3; // 0xfffffffd
     field public static final int ERROR_NO_MEMORY = -6; // 0xfffffffa
+    field public static final int SCALING_MODE_AS_PLAYED = 1; // 0x1
+    field public static final int SCALING_MODE_NORMALIZED = 0; // 0x0
     field public static final int STATE_ENABLED = 2; // 0x2
     field public static final int STATE_INITIALIZED = 1; // 0x1
     field public static final int STATE_UNINITIALIZED = 0; // 0x0
diff --git a/media/java/android/media/audiofx/Visualizer.java b/media/java/android/media/audiofx/Visualizer.java
index 47c0d57..9197ed8 100755
--- a/media/java/android/media/audiofx/Visualizer.java
+++ b/media/java/android/media/audiofx/Visualizer.java
@@ -83,13 +83,11 @@
 
     // to keep in sync with system/media/audio_effects/include/audio_effects/effect_visualizer.h
     /**
-     * @hide
      * Defines a capture mode where amplification is applied based on the content of the captured
      * data. This is the default Visualizer mode, and is suitable for music visualization.
      */
     public static final int SCALING_MODE_NORMALIZED = 0;
     /**
-     * @hide
      * Defines a capture mode where the playback volume will affect (scale) the range of the
      * captured data. A low playback volume will lead to low sample and fft values, and vice-versa.
      */
@@ -316,7 +314,6 @@
     }
 
     /**
-     * @hide
      * Set the type of scaling applied on the captured visualization data.
      * @param mode see {@link #SCALING_MODE_NORMALIZED}
      *     and {@link #SCALING_MODE_AS_PLAYED}
@@ -336,7 +333,6 @@
     }
 
     /**
-     * @hide
      * Returns the current scaling mode on the captured visualization data.
      * @return the scaling mode, see {@link #SCALING_MODE_NORMALIZED}
      *     and {@link #SCALING_MODE_AS_PLAYED}.