OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mediaPlayer
(Results
1 - 15
of
15
) sorted by null
/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
...]
/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/chromium_org/third_party/WebKit/Source/core/rendering/
RenderVideo.cpp
39
#include "platform/graphics/media/
MediaPlayer
.h"
102
MediaPlayer
* player = mediaElement()->player();
153
MediaPlayer
*
mediaPlayer
= mediaElement()->player();
155
if (!displayingPoster && !
mediaPlayer
)
175
mediaPlayer
->paint(context, pixelSnappedIntRect(rect));
210
MediaPlayer
*
mediaPlayer
= mediaElement()->player();
211
if (!
mediaPlayer
)
/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
...]
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
NativeMedia.java
21
import android.media.
MediaPlayer
;
38
import android.media.
MediaPlayer
.OnPreparedListener;
39
import android.media.
MediaPlayer
;
48
MediaPlayer
mMediaPlayer;
125
mMediaPlayer = new
MediaPlayer
();
128
mMediaPlayer.setOnPreparedListener(new
MediaPlayer
.OnPreparedListener() {
130
public void onPrepared(
MediaPlayer
mediaPlayer
) {
131
int width =
mediaPlayer
.getVideoWidth();
132
int height =
mediaPlayer
.getVideoHeight()
[
all
...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
MediaRecorderTest.java
26
import android.media.
MediaPlayer
;
213
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
215
mediaPlayer
.setDataSource(outputFilePath);
217
mediaPlayer
.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder());
219
mediaPlayer
.prepare();
221
mOutputDuration =
mediaPlayer
.getDuration();
224
mOutputVideoHeight =
mediaPlayer
.getVideoHeight();
225
mOutputVideoWidth =
mediaPlayer
.getVideoWidth()
[
all
...]
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
ScoAudioTest.java
30
import android.media.
MediaPlayer
;
323
private
MediaPlayer
mMediaPlayer;
357
mMediaPlayer = new
MediaPlayer
();
377
mMediaPlayer.setOnCompletionListener(new
MediaPlayer
.OnCompletionListener() {
379
public void onCompletion(
MediaPlayer
mp) {
540
MediaPlayer
mediaPlayer
= new
MediaPlayer
();
542
mediaPlayer
.setDataSource(mSampleFile.getPath());
543
mediaPlayer
.setAudioStreamType(AudioManager.STREAM_BLUETOOTH_SCO)
[
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
...]
/development/samples/ApiDemos/src/com/example/android/apis/media/
AudioFxDemo.java
29
import android.media.
MediaPlayer
;
49
private
MediaPlayer
mMediaPlayer;
71
// Create the
MediaPlayer
72
mMediaPlayer =
MediaPlayer
.create(this, R.raw.test_cbr);
73
Log.d(TAG, "
MediaPlayer
audio session ID: " + mMediaPlayer.getAudioSessionId());
85
mMediaPlayer.setOnCompletionListener(new
MediaPlayer
.OnCompletionListener() {
86
public void onCompletion(
MediaPlayer
mediaPlayer
) {
/external/chromium_org/third_party/WebKit/Source/web/
WebMediaPlayerClientImpl.h
35
#include "platform/graphics/media/
MediaPlayer
.h"
59
// This class serves as a bridge between WebCore::
MediaPlayer
and
61
class WebMediaPlayerClientImpl : public WebCore::
MediaPlayer
, public WebMediaPlayerClient {
64
static PassOwnPtr<WebCore::
MediaPlayer
> create(WebCore::MediaPlayerClient*);
67
WebMediaPlayer*
mediaPlayer
() const;
95
//
MediaPlayer
methods:
116
virtual WebCore::
MediaPlayer
::NetworkState networkState() const OVERRIDE;
117
virtual WebCore::
MediaPlayer
::ReadyState readyState() const OVERRIDE;
123
virtual void setPreload(WebCore::
MediaPlayer
::Preload) OVERRIDE;
140
virtual WebCore::
MediaPlayer
::MediaKeyException generateKeyRequest(const String& keySystem, const unsigned char* initData, unsi (…)
[
all
...]
WebMediaPlayerClientImpl.cpp
62
WebMediaPlayer* WebMediaPlayerClientImpl::
mediaPlayer
() const
206
//
MediaPlayer
-------------------------------------------------
224
if (m_preload ==
MediaPlayer
::None) {
299
MediaPlayer
::MediaKeyException WebMediaPlayerClientImpl::generateKeyRequest(const String& keySystem, const unsigned char* initData, unsigned initDataLength)
302
return
MediaPlayer
::InvalidPlayerState;
305
return static_cast<
MediaPlayer
::MediaKeyException>(result);
308
MediaPlayer
::MediaKeyException WebMediaPlayerClientImpl::addKey(const String& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const String& sessionId)
311
return
MediaPlayer
::InvalidPlayerState;
314
return static_cast<
MediaPlayer
::MediaKeyException>(result);
317
MediaPlayer
::MediaKeyException WebMediaPlayerClientImpl::cancelKeyRequest(const String& keySystem, const Strin (…)
[
all
...]
/packages/apps/Dialer/src/com/android/dialer/voicemail/
VoicemailPlaybackPresenter.java
22
import android.media.
MediaPlayer
;
383
private class MediaPlayerErrorListener implements
MediaPlayer
.OnErrorListener {
385
public boolean onError(
MediaPlayer
mp, int what, int extra) {
389
handleError(new IllegalStateException("
MediaPlayer
error listener invoked"));
396
private class MediaPlayerCompletionListener implements
MediaPlayer
.OnCompletionListener {
398
public void onCompletion(final
MediaPlayer
mp) {
508
public void handleCompletion(
MediaPlayer
mediaPlayer
) {
/frameworks/base/media/java/android/media/
AudioService.java
49
import android.media.
MediaPlayer
.OnCompletionListener;
50
import android.media.
MediaPlayer
.OnErrorListener;
[
all
...]
Completed in 1628 milliseconds