OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mediaPlayer
(Results
1 - 12
of
12
) sorted by null
/cts/tests/tests/permission/src/android/permission/cts/
NoWakeLockPermissionTest.java
21
import android.media.
MediaPlayer
;
62
* Verify that
MediaPlayer
.start() requires permissions.
68
final
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
69
mediaPlayer
.setWakeMode(mContext, PowerManager.FULL_WAKE_LOCK);
71
mediaPlayer
.start();
72
fail("
MediaPlayer
.setWakeMode() did not throw SecurityException as expected");
77
mediaPlayer
.stop();
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
MediaPlayerTest.java
3
import android.media.
MediaPlayer
;
16
private
MediaPlayer
mediaPlayer
;
21
mediaPlayer
= Robolectric.newInstanceOf(
MediaPlayer
.class);
22
shadowMediaPlayer = Robolectric.shadowOf(
mediaPlayer
);
31
assertThat(
mediaPlayer
.getCurrentPosition(), equalTo(position));
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
MediaPlayerDataSource.java
20
import android.media.
MediaPlayer
;
31
* {@link android.media.
MediaPlayer
} easier, or the calling of the correct
53
public void setAsSourceFor(
MediaPlayer
mediaPlayer
) throws IOException {
55
mediaPlayer
.setDataSource(mContext, mUri);
57
mediaPlayer
.setDataSource(mPath);
VariableSpeed.java
22
import android.media.
MediaPlayer
;
36
* This class behaves in a similar fashion to the
MediaPlayer
, but by using
66
@GuardedBy("lock") private
MediaPlayer
.OnCompletionListener mCompletionListener;
88
public void setOnCompletionListener(
MediaPlayer
.OnCompletionListener listener) {
96
public void setOnErrorListener(
MediaPlayer
.OnErrorListener listener) {
227
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
228
mediaPlayer
.setAudioStreamType(audioStreamType);
229
dataSource.setAsSourceFor(
mediaPlayer
);
[
all
...]
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
ScoAudioTest.java
30
import android.media.
MediaPlayer
;
332
private
MediaPlayer
mMediaPlayer;
366
mMediaPlayer = new
MediaPlayer
();
386
mMediaPlayer.setOnCompletionListener(new
MediaPlayer
.OnCompletionListener() {
388
public void onCompletion(
MediaPlayer
mp) {
549
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
551
mediaPlayer
.setDataSource(mSampleFile.getPath());
552
mediaPlayer
.setAudioStreamType(AudioManager.STREAM_BLUETOOTH_SCO)
[
all
...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
MediaRecorderTest.java
30
import android.media.
MediaPlayer
;
398
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
400
mediaPlayer
.setDataSource(outputFilePath);
402
mediaPlayer
.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder());
404
mediaPlayer
.prepare();
406
mOutputDuration =
mediaPlayer
.getDuration();
409
mOutputVideoHeight =
mediaPlayer
.getVideoHeight();
410
mOutputVideoWidth =
mediaPlayer
.getVideoWidth()
[
all
...]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderVideo.cpp
37
#include "platform/graphics/media/
MediaPlayer
.h"
151
MediaPlayer
*
mediaPlayer
= mediaElement()->player();
153
if (!displayingPoster && !
mediaPlayer
)
173
mediaPlayer
->paint(context, pixelSnappedIntRect(rect));
206
MediaPlayer
*
mediaPlayer
= mediaElement()->player();
207
if (!
mediaPlayer
)
/packages/services/Telecomm/tests/src/com/android/server/telecom/testapps/
TestVideoProvider.java
35
import android.media.
MediaPlayer
;
61
private
MediaPlayer
mIncomingMediaPlayer;
206
* @return The {@code
MediaPlayer
}.
208
private
MediaPlayer
createMediaPlayer(Surface surface, int videoResource) {
209
MediaPlayer
mediaPlayer
=
MediaPlayer
.create(mContext.getApplicationContext(),
211
mediaPlayer
.setSurface(surface);
212
mediaPlayer
.setLooping(true);
213
return
mediaPlayer
;
[
all
...]
TestConnectionService.java
21
import android.media.
MediaPlayer
;
234
private
MediaPlayer
mMediaPlayer;
415
private
MediaPlayer
createMediaPlayer() {
417
MediaPlayer
mediaPlayer
=
MediaPlayer
.create(getApplicationContext(), R.raw.beep_boop);
418
mediaPlayer
.setLooping(true);
419
return
mediaPlayer
;
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
RecordingTest.java
33
import android.media.
MediaPlayer
;
[
all
...]
/packages/apps/MusicFX/src/com/android/musicfx/
ControlPanelEffect.java
21
import android.media.
MediaPlayer
;
182
final
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
183
final int session =
mediaPlayer
.getAudioSessionId();
194
mediaPlayer
.release();
209
//
MediaPlayer
and create effect on it to retrieve the invariable EQ properties
211
final
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
[
all
...]
/frameworks/base/media/java/android/media/
AudioService.java
49
import android.media.
MediaPlayer
.OnCompletionListener;
50
import android.media.
MediaPlayer
.OnErrorListener;
[
all
...]
Completed in 726 milliseconds