Searched refs:setDataSource (Results 1 - 25 of 59) sorted by relevance

123

/frameworks/base/media/java/android/media/
H A DMediaMetadataRetriever.java58 public native void setDataSource(String path) throws IllegalArgumentException; method in class:MediaMetadataRetriever
73 public native void setDataSource(FileDescriptor fd, long offset, long length) method in class:MediaMetadataRetriever
85 public void setDataSource(FileDescriptor fd) method in class:MediaMetadataRetriever
88 setDataSource(fd, 0, 0x7ffffffffffffffL);
101 public void setDataSource(Context context, Uri uri) method in class:MediaMetadataRetriever
109 setDataSource(uri.getPath());
132 setDataSource(descriptor);
134 setDataSource(descriptor, fd.getStartOffset(), fd.getDeclaredLength());
146 setDataSource(uri.toString());
150 * Call this method after setDataSource()
[all...]
H A DMediaPlayer.java138 * {@link #prepareAsync()}, or one of the overloaded <code>setDataSource
143 * {@link #setDataSource(FileDescriptor)}, or
144 * {@link #setDataSource(String)}, or
145 * {@link #setDataSource(Context, Uri)}, or
146 * {@link #setDataSource(FileDescriptor, long, long)} transfers a
151 * setDataSource() is called in any other state.</li>
155 * <code>setDataSource</code> methods.</li>
279 * <td>This method must be called after setDataSource.
358 * calling setDataSource. Calling it does not change the object state. </p></td></tr>
370 * <tr><td>setDataSource </
690 public void setDataSource(Context context, Uri uri) method in class:MediaPlayer
704 public void setDataSource(Context context, Uri uri, Map<String, String> headers) method in class:MediaPlayer
747 public native void setDataSource(String path) throws IOException, IllegalArgumentException, IllegalStateException; method in class:MediaPlayer
757 public native void setDataSource(String path, Map<String, String> headers) method in class:MediaPlayer
767 public void setDataSource(FileDescriptor fd) method in class:MediaPlayer
783 public native void setDataSource(FileDescriptor fd, long offset, long length) method in class:MediaPlayer
[all...]
H A DRingtone.java171 mAudio.setDataSource(mContext, mUri);
173 mAudio.setDataSource(mFileDescriptor);
179 mAudio.setDataSource(mAssetFileDescriptor.getFileDescriptor());
181 mAudio.setDataSource(mAssetFileDescriptor.getFileDescriptor(),
/frameworks/base/media/libmediaplayerservice/
H A DMidiMetadataRetriever.h34 virtual status_t setDataSource(const char *url);
35 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A DMidiMetadataRetriever.cpp38 status_t MidiMetadataRetriever::setDataSource(const char *url) function in class:android::MidiMetadataRetriever
40 LOGV("setDataSource: %s", url? url: "NULL pointer");
47 return mMidiPlayer->setDataSource(url, NULL /* headers */);
50 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) function in class:android::MidiMetadataRetriever
52 LOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
58 return mMidiPlayer->setDataSource(fd, offset, length);;
H A DMetadataRetrieverClient.h44 virtual status_t setDataSource(const char *url);
45 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A DStagefrightPlayer.h34 virtual status_t setDataSource(
37 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A DStagefrightPlayer.cpp34 status_t StagefrightPlayer::setDataSource( function in class:android::StagefrightPlayer
36 LOGI("setDataSource('%s')", url);
37 return mPlayer->setDataSource(url, headers);
42 status_t StagefrightPlayer::setDataSource(int fd, int64_t offset, int64_t length) { function in class:android::StagefrightPlayer
43 LOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
44 return mPlayer->setDataSource(dup(fd), offset, length);
H A DMidiFile.h34 virtual status_t setDataSource(
37 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A DTestPlayerStub.h28 // The URL passed to setDataSource has this format:
30 // test:<name of the .so>?url=<url for the real setDataSource impl.>
36 // TestPlayerStub::setDataSource loads the library in the test url. 2
43 // Once the test player has been loaded, its setDataSource
50 // p.setDataSource("test:invoke_mock_media_player.so?url=http://youtube.com");
68 virtual status_t setDataSource(
72 virtual status_t setDataSource(int, int64_t, int64_t) { function in class:android::TestPlayerStub
H A DTestPlayerStub.cpp79 // * The url to be passed to the real setDataSource impl.
83 // test:<name of the .so>?url=<url for setDataSource>
114 // Call setDataSource on the test player with the url in param.
115 status_t TestPlayerStub::setDataSource( function in class:android::TestPlayerStub
165 return mPlayer->setDataSource(mContentUrl, headers);
/frameworks/base/include/media/
H A DIMediaMetadataRetriever.h33 virtual status_t setDataSource(const char* srcUrl) = 0;
34 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
H A DMediaMetadataRetrieverInterface.h33 virtual status_t setDataSource(const char *url) = 0;
34 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
H A DPVMetadataRetriever.h35 virtual status_t setDataSource(const char *url);
36 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A Dmediametadataretriever.h59 status_t setDataSource(const char* dataSourceUrl);
60 status_t setDataSource(int fd, int64_t offset, int64_t length);
H A DPVPlayer.h42 virtual status_t setDataSource(
45 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
H A Dmediaplayer.h143 status_t setDataSource(
147 status_t setDataSource(int fd, int64_t offset, int64_t length);
183 status_t setDataSource(const sp<IMediaPlayer>& player);
/frameworks/base/media/libstagefright/include/
H A DStagefrightMetadataRetriever.h35 virtual status_t setDataSource(const char *url);
36 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaMetadataRetrieverTest.java54 retriever.setDataSource(MediaNames.ALBUMART_TEST_FILES[i]);
65 Log.e(TAG, "Fails to setDataSource for " + MediaNames.ALBUMART_TEST_FILES[i]);
93 retriever.setDataSource(MediaNames.THUMBNAIL_CAPTURE_TEST_FILES[i]);
105 Log.e(TAG, "Fails to setDataSource for file " + MediaNames.THUMBNAIL_CAPTURE_TEST_FILES[i]);
131 retriever.setDataSource(MediaNames.METADATA_RETRIEVAL_TEST_FILES[i]);
134 Log.e(TAG, "Fails to setDataSource for file " + MediaNames.METADATA_RETRIEVAL_TEST_FILES[i]);
150 retriever.setDataSource(MediaNames.TEST_PATH_1);
162 Log.e(TAG, "Fails to setDataSource for " + MediaNames.TEST_PATH_1, e);
169 // If setDataSource() has not been called, both getFrameAtTime() and extractMetadata() must
186 // Test setDataSource()
[all...]
H A DMediaPlayerStateUnitTestTemplate.java177 mMediaPlayer.setDataSource(TEST_PATH);
189 mMediaPlayer.setDataSource(TEST_PATH);
199 mMediaPlayer.setDataSource(TEST_PATH);
210 mMediaPlayer.setDataSource(TEST_PATH);
224 mMediaPlayer.setDataSource(TEST_PATH);
236 mMediaPlayer.setDataSource(TEST_PATH);
261 mMediaPlayer.setDataSource(TEST_PATH);
274 mMediaPlayer.setDataSource(TEST_PATH);
287 mMediaPlayer.setDataSource(TEST_PATH);
313 mMediaPlayer.setDataSource(TEST_PAT
[all...]
/frameworks/base/media/libmedia/
H A Dmediametadataretriever.cpp95 status_t MediaMetadataRetriever::setDataSource(const char* srcUrl) function in class:android::MediaMetadataRetriever
97 LOGV("setDataSource");
108 return mRetriever->setDataSource(srcUrl);
111 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) function in class:android::MediaMetadataRetriever
113 LOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
123 return mRetriever->setDataSource(fd, offset, length);
H A DIMediaMetadataRetriever.cpp105 status_t setDataSource(const char* srcUrl) function in class:android::BpMediaMetadataRetriever
114 status_t setDataSource(int fd, int64_t offset, int64_t length) function in class:android::BpMediaMetadataRetriever
191 reply->writeInt32(setDataSource(srcUrl));
199 reply->writeInt32(setDataSource(fd, offset, length));
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java86 mp.setDataSource(filePath);
105 mp.setDataSource(filePath);
138 mp.setDataSource(filePath);
165 mp.setDataSource(filePath);
202 mp.setDataSource(filePath);
227 mp.setDataSource(filePath);
236 mp.setDataSource(filePath);
266 mMediaPlayer.setDataSource(filePath);
302 mMediaPlayer.setDataSource(filePath);
330 mp.setDataSource(filePat
[all...]
/frameworks/base/core/java/android/webkit/
H A DHTML5Audio.java166 private void setDataSource(String url) { method in class:HTML5Audio
172 mMediaPlayer.setDataSource(url);
184 setDataSource(mUrl);
/frameworks/base/media/tests/players/
H A Dinvoke_mock_media_player.cpp58 virtual status_t setDataSource( function in class:__anon654::Player
61 LOGV("setDataSource %s", url);
69 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) {return OK;} function in class:__anon654::Player

Completed in 1295 milliseconds

123