/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CodecTest.java | 90 MediaPlayer mp = new MediaPlayer(); 92 mp.setDataSource(filePath); 93 mp.prepare(); 97 int duration = mp.getDuration(); 99 mp.release(); 109 MediaPlayer mp = new MediaPlayer(); 111 mp.setDataSource(filePath); 113 mp.prepare(); 114 mp.start(); 117 mp [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
H A D | MediaPlayerPowerTest.java | 51 MediaPlayer mp = new MediaPlayer(); 52 mp.setDataSource(filePath); 53 mp.prepare(); 54 mp.start(); 56 mp.stop(); 57 mp.release();
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaPlayer.cpp | 152 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 153 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0); 179 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 180 if (mp == NULL ) { 208 mp->setDataSource( 226 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 227 if (mp == NULL ) { 238 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." ); 250 sp<MediaPlayer> mp local 264 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 305 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 322 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 340 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 352 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 364 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 375 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 389 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 401 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 418 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 436 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 450 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 465 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 477 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 489 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 501 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 513 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 629 sp<MediaPlayer> mp = new MediaPlayer(); local 648 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0); local 660 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 669 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 679 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 692 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 702 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 729 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local 748 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); local [all...] |
H A D | android_media_MediaScanner.cpp | 241 MediaScanner *mp = getNativeScanner_l(env, thiz); local 242 if (mp == NULL) { 258 MediaScanResult result = mp->processDirectory(pathStr, myClient); 273 MediaScanner *mp = getNativeScanner_l(env, thiz); local 274 if (mp == NULL) { 298 MediaScanResult result = mp->processFile(pathStr, mimeTypeStr, myClient); 313 MediaScanner *mp = getNativeScanner_l(env, thiz); local 314 if (mp == NULL) { 327 mp->setLocale(localeStr); 337 MediaScanner *mp local 393 MediaScanner *mp = new StagefrightMediaScanner; local 407 MediaScanner *mp = getNativeScanner_l(env, thiz); local [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
H A D | MediaPresetReverbTest.java | 199 MediaPlayer mp = null; 217 mp = new MediaPlayer(); 218 mp.setDataSource(MediaNames.SINE_200_1000); 219 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 220 mp.attachAuxEffect(mReverb.getId()); 221 mp.setAuxEffectSendLevel(1.0f); 224 mp.prepare(); 225 mp.start(); 227 mp.stop(); 247 if (mp ! [all...] |
H A D | MediaEnvReverbTest.java | 354 MediaPlayer mp = null; 372 mp = new MediaPlayer(); 373 mp.setDataSource(MediaNames.SINE_200_1000); 374 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 375 mp.attachAuxEffect(mReverb.getId()); 376 mp.setAuxEffectSendLevel(1.0f); 381 mp.prepare(); 382 mp.start(); 384 mp.stop(); 404 if (mp ! [all...] |
H A D | MediaVisualizerTest.java | 201 MediaPlayer mp = null; 218 mp = new MediaPlayer(); 219 mp.setDataSource(MediaNames.SINE_200_1000); 220 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 221 getVisualizer(mp.getAudioSessionId()); 233 mp.prepare(); 234 mp.start(); 260 if (mp != null) { 261 mp.release(); 277 MediaPlayer mp [all...] |
H A D | MediaAudioEffectTest.java | 283 MediaPlayer mp = new MediaPlayer(); 284 mp.setDataSource(MediaNames.SHORTMP3); 289 mp.getAudioSessionId()); 300 mp.release(); 320 MediaPlayer mp = new MediaPlayer(); 321 mp.setDataSource(MediaNames.SHORTMP3); 328 mp.attachAuxEffect(effect.getId()); 329 mp.setAuxEffectSendLevel(1.0f); 332 mp.release();
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | RIL.java | 81 Parcel mp; field in class:RILRequest 112 rr.mp = Parcel.obtain(); 119 rr.mp.writeInt(request); 120 rr.mp.writeInt(rr.mSerial); 185 if (mp != null) { 186 mp.recycle(); 187 mp = null; 323 data = rr.mp.marshall(); 324 rr.mp.recycle(); 325 rr.mp [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 694 MediaPlayer mp = new MediaPlayer(); 695 mp.setDataSource(context, uri); 697 mp.setDisplay(holder); 699 mp.prepare(); 700 return mp; 734 MediaPlayer mp = new MediaPlayer(); 735 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 737 mp.prepare(); 738 return mp; 1509 public EventHandler(MediaPlayer mp, Loope argument 1625 onPrepared(MediaPlayer mp) argument 1652 onCompletion(MediaPlayer mp) argument 1686 onBufferingUpdate(MediaPlayer mp, int percent) argument 1713 onSeekComplete(MediaPlayer mp) argument 1742 onVideoSizeChanged(MediaPlayer mp, int width, int height) argument 1773 onTimedText(MediaPlayer mp, TimedText text) argument 1834 onError(MediaPlayer mp, int what, int extra) argument 1919 onInfo(MediaPlayer mp, int what, int extra) argument [all...] |
H A D | AudioService.java | 2149 public void onCompletion(MediaPlayer mp) { 2150 cleanupPlayer(mp); 2154 public boolean onError(MediaPlayer mp, int what, int extra) { 2155 cleanupPlayer(mp); 2177 private void cleanupPlayer(MediaPlayer mp) { argument 2178 if (mp != null) { 2180 mp.stop(); 2181 mp.release();
|
/frameworks/base/core/java/android/webkit/ |
H A D | HTML5Audio.java | 139 public void onBufferingUpdate(MediaPlayer mp, int percent) { argument 144 public void onCompletion(MediaPlayer mp) { argument 151 public boolean onError(MediaPlayer mp, int what, int extra) { argument 159 public void onPrepared(MediaPlayer mp) { argument 165 nativeOnPrepared(mp.getDuration(), 0, 0, mNativePointer); 173 public void onSeekComplete(MediaPlayer mp) { argument 174 nativeOnTimeupdate(mp.getCurrentPosition(), mNativePointer);
|
H A D | HTML5VideoFullScreen.java | 167 public void onPrepared(MediaPlayer mp) { argument 168 super.onPrepared(mp); 172 Metadata data = mp.getMetadata(MediaPlayer.METADATA_ALL, 200 mVideoWidth = mp.getVideoWidth(); 201 mVideoHeight = mp.getVideoHeight(); 312 public void onBufferingUpdate(MediaPlayer mp, int percent) {
|
H A D | HTML5VideoViewProxy.java | 259 public void onPrepared(MediaPlayer mp) { argument 263 map.put("dur", new Integer(mp.getDuration())); 264 map.put("width", new Integer(mp.getVideoWidth())); 265 map.put("height", new Integer(mp.getVideoHeight())); 271 public void onCompletion(MediaPlayer mp) { argument 280 public boolean onError(MediaPlayer mp, int what, int extra) { argument 704 public boolean onInfo(MediaPlayer mp, int what, int extra) { argument
|
H A D | HTML5VideoView.java | 260 public void onPrepared(MediaPlayer mp) { argument 264 mProxy.onPrepared(mp);
|
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
H A D | AwaitableCompletionListener.java | 36 public void onCompletion(MediaPlayer mp) { argument
|
H A D | AwaitableErrorListener.java | 35 public boolean onError(MediaPlayer mp, int what, int extra) { argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
H A D | MediaRecorderStressTest.java | 296 MediaPlayer mp = new MediaPlayer(); 297 mp.setDataSource(recorded_file); 298 mp.prepare(); 299 int duration = mp.getDuration(); 303 mp.release(); 375 MediaPlayer mp = new MediaPlayer(); 376 mp.setDataSource(filename); 377 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); 378 mp.prepare(); 379 mp [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | BlockingMediaPlayer.java | 112 public boolean onError(MediaPlayer mp, int what, int extra) { 120 public void onCompletion(MediaPlayer mp) {
|
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 265 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 266 mVideoWidth = mp.getVideoWidth(); 267 mVideoHeight = mp.getVideoHeight(); 275 public void onPrepared(MediaPlayer mp) { 279 Metadata data = mp.getMetadata(MediaPlayer.METADATA_ALL, 299 mVideoWidth = mp.getVideoWidth(); 300 mVideoHeight = mp.getVideoHeight(); 338 public void onCompletion(MediaPlayer mp) { 352 public boolean onError(MediaPlayer mp, int framework_err, int impl_err) { 405 public void onBufferingUpdate(MediaPlayer mp, in [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
H A D | MediaPlayerPerformance.java | 189 MediaPlayer mp = new MediaPlayer(); 191 mp.setDataSource(testFilePath); 192 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); 193 mp.prepare(); 194 mp.start(); 196 mp.release(); 198 mp.release();
|
/frameworks/base/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 296 MediaPlayer* mp = new MediaPlayer(); local 297 if (mp->setDataSource(file, NULL) == NO_ERROR) { 298 mp->setAudioStreamType(mAudioStreamType); 299 mp->prepare(); 304 return mp;
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
H A D | ScoAudioTest.java | 379 public void onCompletion(MediaPlayer mp) { 549 public void onCompletion(MediaPlayer mp) { 550 mp.release();
|
/frameworks/base/services/java/com/android/server/ |
H A D | NotificationPlayer.java | 209 public void onCompletion(MediaPlayer mp) { argument
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PackageManagerService.java | 8465 MoveParams mp = new MoveParams(srcArgs, observer, newFlags, packageName, 8467 msg.obj = mp; 8473 private void processPendingMove(final MoveParams mp, final int currentStatus) { argument 8485 PackageParser.Package pkg = mPackages.get(mp.packageName); 8487 Slog.w(TAG, " Package " + mp.packageName 8490 } else if (!mp.srcArgs.getCodePath().equals(pkg.applicationInfo.sourceDir)) { 8491 Slog.w(TAG, "Package " + mp.packageName + " code path changed from " 8492 + mp.srcArgs.getCodePath() + " to " 8501 pkgList.add(mp.packageName); 8510 PackageParser.Package pkg = mPackages.get(mp [all...] |