HomeSort by relevance Sort by last modified time
    Searched refs:MediaPlayer (Results 51 - 75 of 174) sorted by null

1 23 4 5 6 7

  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
Playback.java 24 import android.media.MediaPlayer;
36 import static android.media.MediaPlayer.OnCompletionListener;
37 import static android.media.MediaPlayer.OnErrorListener;
38 import static android.media.MediaPlayer.OnPreparedListener;
39 import static android.media.MediaPlayer.OnSeekCompleteListener;
43 * A class that implements local media playback using {@link android.media.MediaPlayer}
76 private MediaPlayer mMediaPlayer;
160 relaxResources(false); // release everything except MediaPlayer
206 // while paused, retain the MediaPlayer but give up audio focus
265 * Reconfigures MediaPlayer according to audio focus settings an
    [all...]
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
Playback.java 24 import android.media.MediaPlayer;
36 import static android.media.MediaPlayer.OnCompletionListener;
37 import static android.media.MediaPlayer.OnErrorListener;
38 import static android.media.MediaPlayer.OnPreparedListener;
39 import static android.media.MediaPlayer.OnSeekCompleteListener;
43 * A class that implements local media playback using {@link android.media.MediaPlayer}
76 private MediaPlayer mMediaPlayer;
160 relaxResources(false); // release everything except MediaPlayer
206 // while paused, retain the MediaPlayer but give up audio focus
265 * Reconfigures MediaPlayer according to audio focus settings an
    [all...]
  /development/samples/Support4Demos/src/com/example/android/supportv4/media/
Playback.java 24 import android.media.MediaPlayer;
37 import static android.media.MediaPlayer.OnCompletionListener;
38 import static android.media.MediaPlayer.OnErrorListener;
39 import static android.media.MediaPlayer.OnPreparedListener;
40 import static android.media.MediaPlayer.OnSeekCompleteListener;
44 * A class that implements local media playback using {@link android.media.MediaPlayer}
77 private MediaPlayer mMediaPlayer;
161 relaxResources(false); // release everything except MediaPlayer
207 // while paused, retain the MediaPlayer but give up audio focus
266 * Reconfigures MediaPlayer according to audio focus settings an
    [all...]
TransportControllerActivity.java 26 import android.media.MediaPlayer;
108 ActionBar.OnMenuVisibilityListener, MediaPlayer.OnPreparedListener,
109 MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener {
197 public void onPrepared(MediaPlayer mp) {
202 public void onCompletion(MediaPlayer mp) {
208 public boolean onError(MediaPlayer mp, int what, int extra) {
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
Playback.java 24 import android.media.MediaPlayer;
36 import static android.media.MediaPlayer.OnCompletionListener;
37 import static android.media.MediaPlayer.OnErrorListener;
38 import static android.media.MediaPlayer.OnPreparedListener;
39 import static android.media.MediaPlayer.OnSeekCompleteListener;
43 * A class that implements local media playback using {@link android.media.MediaPlayer}
76 private MediaPlayer mMediaPlayer;
160 relaxResources(false); // release everything except MediaPlayer
206 // while paused, retain the MediaPlayer but give up audio focus
265 * Reconfigures MediaPlayer according to audio focus settings an
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/media/
NotificationPlayer.java 22 import android.media.MediaPlayer;
23 import android.media.MediaPlayer.OnCompletionListener;
24 import android.media.MediaPlayer.OnErrorListener;
65 * NotificationPlayer resides in the creation of the MediaPlayer. For the completion callback,
66 * OnCompletionListener, to be called at the end of the playback, the MediaPlayer needs to
83 MediaPlayer player = new MediaPlayer();
140 // MediaPlayer in a new thread with which we're synchronized
227 public void onCompletion(MediaPlayer mp) {
250 public boolean onError(MediaPlayer mp, int what, int extra)
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
StagefrightTest.java 36 import android.media.MediaPlayer;
193 implements MediaPlayer.OnErrorListener,
194 MediaPlayer.OnPreparedListener,
195 MediaPlayer.OnCompletionListener {
197 public boolean onError(MediaPlayer mp, int newWhat, int extra) {
200 if (what != MediaPlayer.MEDIA_ERROR_SERVER_DIED) {
211 public void onPrepared(MediaPlayer mp) {
216 public void onCompletion(MediaPlayer mp) {
265 Log.i(TAG, "start mediaplayer test for: " + name);
274 MediaPlayer mp = new MediaPlayer()
    [all...]
  /development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
NativeMedia.java 21 import android.media.MediaPlayer;
41 MediaPlayer mMediaPlayer;
115 mMediaPlayer = new MediaPlayer();
118 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
120 public void onPrepared(MediaPlayer mediaPlayer) {
121 int width = mediaPlayer.getVideoWidth();
122 int height = mediaPlayer.getVideoHeight();
128 mediaPlayer.start();
133 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener()
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
VideoViewTest.java 28 import android.media.MediaPlayer;
29 import android.media.MediaPlayer.OnCompletionListener;
30 import android.media.MediaPlayer.OnErrorListener;
31 import android.media.MediaPlayer.OnPreparedListener;
84 public void onPrepared(MediaPlayer mp) {
90 public boolean onError(MediaPlayer mp, int what, int extra) {
98 public void onCompletion(MediaPlayer mp) {
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
VideoViewTest.java 12 import android.media.MediaPlayer;
141 private class TestPreparedListener implements MediaPlayer.OnPreparedListener {
143 public void onPrepared(MediaPlayer mp) {}
146 private class TestErrorListener implements MediaPlayer.OnErrorListener {
148 public boolean onError(MediaPlayer mp, int what, int extra) {
153 private class TestCompletionListener implements MediaPlayer.OnCompletionListener {
155 public void onCompletion(MediaPlayer mp) {}
  /packages/apps/SoundRecorder/src/com/android/soundrecorder/
Recorder.java 24 import android.media.MediaPlayer;
26 import android.media.MediaPlayer.OnCompletionListener;
27 import android.media.MediaPlayer.OnErrorListener;
59 MediaPlayer mPlayer = null;
214 mPlayer = new MediaPlayer();
250 public boolean onError(MediaPlayer mp, int what, int extra) {
256 public void onCompletion(MediaPlayer mp) {
  /development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/
MediaPlayerGlue.java 22 import android.media.MediaPlayer;
45 * This glue extends the {@link PlaybackControlGlue} with a {@link MediaPlayer} synchronization. It
64 private final MediaPlayer mPlayer = new MediaPlayer();
70 private boolean mInitialized = false; // true when the MediaPlayer is prepared/initialized
95 * Will reset the {@link MediaPlayer} and the glue such that a new file can be played. You are
121 * @see MediaPlayer#setDisplay(SurfaceHolder)
290 * @see MediaPlayer#setDataSource(String)
304 * @see MediaPlayer#setDataSource(String)
325 mPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener()
    [all...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java 26 import android.media.MediaPlayer;
27 import android.media.MediaPlayer.OnErrorListener;
28 import android.media.MediaPlayer.OnCompletionListener;
114 private MediaPlayer mMediaPlayer;
377 mMediaPlayer = new MediaPlayer();
379 public boolean onError(MediaPlayer mp, int what, int extra) {
389 public void onCompletion(MediaPlayer mp) {
428 private static void startAlarm(MediaPlayer player, boolean looping)
437 MediaPlayer player, int res) throws java.io.IOException {
  /packages/apps/Messaging/src/com/android/messaging/ui/
AudioAttachmentView.java 24 import android.media.MediaPlayer;
25 import android.media.MediaPlayer.OnCompletionListener;
26 import android.media.MediaPlayer.OnErrorListener;
27 import android.media.MediaPlayer.OnPreparedListener;
68 private MediaPlayer mMediaPlayer;
82 // should the MediaPlayer be prepared lazily when the user chooses to play the audio (as
116 // Has the MediaPlayer already been prepared?
130 // The user is (starting and) pausing before the MediaPlayer is prepared
219 * Prepare the MediaPlayer, and if mPrepareOnPlayback, start playing the audio
225 mMediaPlayer = new MediaPlayer();
    [all...]
VideoThumbnailView.java 21 import android.media.MediaPlayer;
98 mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
100 public void onPrepared(final MediaPlayer mediaPlayer) {
102 mVideoWidth = mediaPlayer.getVideoWidth();
103 mVideoHeight = mediaPlayer.getVideoHeight();
104 mediaPlayer.setLooping(loop);
108 mVideoView.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
110 public void onCompletion(final MediaPlayer mediaPlayer) {
    [all...]
  /developers/build/prebuilts/gradle/FindMyPhone/Application/src/main/java/com/example/android/wearable/findphone/
SoundAlarmListenerService.java 20 import android.media.MediaPlayer;
45 private MediaPlayer mMediaPlayer;
54 mMediaPlayer = new MediaPlayer();
  /developers/samples/android/wearable/wear/FindMyPhone/Application/src/main/java/com/example/android/wearable/findphone/
SoundAlarmListenerService.java 20 import android.media.MediaPlayer;
45 private MediaPlayer mMediaPlayer;
54 mMediaPlayer = new MediaPlayer();
  /development/samples/browseable/FindMyPhone/Application/src/com.example.android.wearable.findphone/
SoundAlarmListenerService.java 20 import android.media.MediaPlayer;
45 private MediaPlayer mMediaPlayer;
54 mMediaPlayer = new MediaPlayer();
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
MediaSource.java 33 import android.media.MediaPlayer;
60 /** The context for the MediaPlayer to resolve the sourceUrl.
97 private MediaPlayer mMediaPlayer;
214 throw new RuntimeException("Error setting up MediaPlayer!");
251 throw new RuntimeException("MediaPlayer timed out while preparing!");
373 // If updating only sourceUrl/sourceAsset, MediaPlayer gets reset if the current player
445 if (mLogVerbose) Log.v(TAG, "Resetting existing MediaPlayer.");
449 if (mLogVerbose) Log.v(TAG, "Creating new MediaPlayer.");
450 mMediaPlayer = new MediaPlayer();
454 throw new RuntimeException("Unable to create a MediaPlayer!");
    [all...]
  /frameworks/av/include/media/
mediaplayer.h 72 // 1xx: Android Player errors. Something went wrong inside the MediaPlayer.
117 // MediaPlayer is temporarily pausing playback internally in order to
120 // MediaPlayer is resuming playback after filling buffers.
153 // Keep KEY_PARAMETER_* in sync with MediaPlayer.java.
172 // Keep INVOKE_ID_* in sync with MediaPlayer.java.
183 // Keep MEDIA_TRACK_TYPE_* in sync with MediaPlayer.java.
203 class MediaPlayer : public BnMediaPlayerClient,
207 MediaPlayer();
208 ~MediaPlayer();
256 status_t setNextMediaPlayer(const sp<MediaPlayer>& player)
    [all...]
  /frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/
BrowserService.java 29 import android.media.MediaPlayer;
30 import android.media.MediaPlayer.OnCompletionListener;
31 import android.media.MediaPlayer.OnErrorListener;
32 import android.media.MediaPlayer.OnPreparedListener;
  /frameworks/wilhelm/tools/mphtogen/
mphtogen.c 64 _(MediaPlayer)
  /cts/tests/tests/media/src/android/media/cts/
MediaRandomTest.java 22 import android.media.MediaPlayer;
33 * Tests for the MediaPlayer.java and MediaRecorder.java APIs
53 private MediaPlayer mPlayer;
75 mPlayer = new MediaPlayer();
182 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {
184 public boolean onError(MediaPlayer mp, int what, int extra) {
186 what == MediaPlayer.MEDIA_ERROR_SERVER_DIED) {
  /packages/apps/Messaging/src/com/android/messaging/util/
NotificationPlayer.java 21 import android.media.MediaPlayer;
22 import android.media.MediaPlayer.OnCompletionListener;
69 * NotificationPlayer resides in the creation of the MediaPlayer. For the completion callback,
70 * OnCompletionListener, to be called at the end of the playback, the MediaPlayer needs to
89 final MediaPlayer player = new MediaPlayer();
127 // MediaPlayer in a new thread with which we're synchronized
221 public void onCompletion(final MediaPlayer mp) {
242 private MediaPlayer mPlayer;
269 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)}
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaPlayerStateUnitTestTemplate.java 23 import android.media.MediaPlayer;
29 * states of a MediaPlayer object.
47 private MediaPlayer mMediaPlayer = null;
56 // messages from MediaPlayer objects.
74 * Runs the given method under test in all possible states of a MediaPlayer
100 * Initializes the message looper so that the MediaPlayer object can
114 mMediaPlayer = new MediaPlayer();
115 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {
116 public boolean onError(MediaPlayer player, int what, int extra) {
129 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener()
    [all...]

Completed in 1697 milliseconds

1 23 4 5 6 7