diff options
| author | Mathew Inwood <mathewi@google.com> | 2018-08-21 16:08:34 +0100 |
|---|---|---|
| committer | Mathew Inwood <mathewi@google.com> | 2018-08-21 16:08:34 +0100 |
| commit | a85f4eb6c674c54b5fd8cf12f1984812c655c585 (patch) | |
| tree | 3c266591303cde120b9b7f39fbbb978df3719951 /core/java/android/widget/VideoView.java | |
| parent | fc38791616b155d9bb1353fb217993381b890f46 (diff) | |
Add @UnsupportedAppUsage annotations
For packages:
android.widget
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug: 110868826
Test: m
Change-Id: Idf7ccc7a850fa984ea16f91cdd70159087274e5c
Merged-In: Ic61019b1df85448a158fc2ba55c326353222c6b9
Diffstat (limited to 'core/java/android/widget/VideoView.java')
| -rw-r--r-- | core/java/android/widget/VideoView.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/widget/VideoView.java b/core/java/android/widget/VideoView.java index 58a2b0f00877..14881eb60721 100644 --- a/core/java/android/widget/VideoView.java +++ b/core/java/android/widget/VideoView.java @@ -17,6 +17,7 @@ package android.widget; import android.annotation.NonNull; +import android.annotation.UnsupportedAppUsage; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; @@ -84,6 +85,7 @@ public class VideoView extends SurfaceView // all possible internal states private static final int STATE_ERROR = -1; + @UnsupportedAppUsage private static final int STATE_IDLE = 0; private static final int STATE_PREPARING = 1; private static final int STATE_PREPARED = 2; @@ -94,7 +96,9 @@ public class VideoView extends SurfaceView private final Vector<Pair<InputStream, MediaFormat>> mPendingSubtitleTracks = new Vector<>(); // settable by the client + @UnsupportedAppUsage private Uri mUri; + @UnsupportedAppUsage private Map<String, String> mHeaders; // mCurrentState is a VideoView object's current state. @@ -102,20 +106,28 @@ public class VideoView extends SurfaceView // For instance, regardless the VideoView object's current state, // calling pause() intends to bring the object to a target state // of STATE_PAUSED. + @UnsupportedAppUsage private int mCurrentState = STATE_IDLE; + @UnsupportedAppUsage private int mTargetState = STATE_IDLE; // All the stuff we need for playing and showing a video + @UnsupportedAppUsage private SurfaceHolder mSurfaceHolder = null; + @UnsupportedAppUsage private MediaPlayer mMediaPlayer = null; private int mAudioSession; + @UnsupportedAppUsage private int mVideoWidth; + @UnsupportedAppUsage private int mVideoHeight; private int mSurfaceWidth; private int mSurfaceHeight; + @UnsupportedAppUsage private MediaController mMediaController; private OnCompletionListener mOnCompletionListener; private MediaPlayer.OnPreparedListener mOnPreparedListener; + @UnsupportedAppUsage private int mCurrentBufferPercentage; private OnErrorListener mOnErrorListener; private OnInfoListener mOnInfoListener; @@ -462,6 +474,7 @@ public class VideoView extends SurfaceView } }; + @UnsupportedAppUsage MediaPlayer.OnPreparedListener mPreparedListener = new MediaPlayer.OnPreparedListener() { public void onPrepared(MediaPlayer mp) { mCurrentState = STATE_PREPARED; @@ -551,6 +564,7 @@ public class VideoView extends SurfaceView } }; + @UnsupportedAppUsage private MediaPlayer.OnErrorListener mErrorListener = new MediaPlayer.OnErrorListener() { public boolean onError(MediaPlayer mp, int framework_err, int impl_err) { @@ -655,6 +669,7 @@ public class VideoView extends SurfaceView mOnInfoListener = l; } + @UnsupportedAppUsage SurfaceHolder.Callback mSHCallback = new SurfaceHolder.Callback() { public void surfaceChanged(SurfaceHolder holder, int format, @@ -690,6 +705,7 @@ public class VideoView extends SurfaceView /* * release the media player in any state */ + @UnsupportedAppUsage private void release(boolean cleartargetstate) { if (mMediaPlayer != null) { mMediaPlayer.reset(); |
