Fix for bug 2158794. Hide MediaPlayer.invoke() and MediaPlayer.newRequest(), and Fix bad links in ToneGenerator documentation.
diff --git a/api/current.xml b/api/current.xml
index 7ebf058..3e3434a 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -77986,21 +77986,6 @@
  visibility="public"
 >
 </method>
-<method name="invoke"
- return="int"
- abstract="false"
- native="false"
- synchronized="false"
- static="false"
- final="false"
- deprecated="not deprecated"
- visibility="public"
->
-<parameter name="request" type="android.os.Parcel">
-</parameter>
-<parameter name="reply" type="android.os.Parcel">
-</parameter>
-</method>
 <method name="isLooping"
  return="boolean"
  abstract="false"
@@ -78023,17 +78008,6 @@
  visibility="public"
 >
 </method>
-<method name="newRequest"
- return="android.os.Parcel"
- abstract="false"
- native="false"
- synchronized="false"
- static="false"
- final="false"
- deprecated="not deprecated"
- visibility="public"
->
-</method>
 <method name="pause"
  return="void"
  abstract="false"
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index 472542d..a676782 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -522,6 +522,7 @@
      *
      * @return A parcel suitable to hold a request for the native
      * player.
+     * {@hide}
      */
     public Parcel newRequest() {
         Parcel parcel = Parcel.obtain();
@@ -543,6 +544,7 @@
      * native player.
      *
      * @return The status code see utils/Errors.h
+     * {@hide}
      */
     public int invoke(Parcel request, Parcel reply) {
         int retcode = native_invoke(request, reply);
diff --git a/media/java/android/media/ToneGenerator.java b/media/java/android/media/ToneGenerator.java
index d4ae80f..d232265 100644
--- a/media/java/android/media/ToneGenerator.java
+++ b/media/java/android/media/ToneGenerator.java
@@ -852,10 +852,10 @@
 
     /**
      * This method starts the playback of a tone of the specified type for the specified duration.
-     * @param toneType   The type of tone generated @see #startTone(int).
+     * @param toneType   The type of tone generated @see {@link #startTone(int)}.
      * @param durationMs  The tone duration in milliseconds. If the tone is limited in time by definition,
      * the actual duration will be the minimum of durationMs and the defined tone duration. Setting durationMs to -1,
-     * is equivalent to calling #startTone(int).
+     * is equivalent to calling {@link #startTone(int)}.
     */
     public native boolean startTone(int toneType, int durationMs);