Home
last modified time | relevance | path

Searched refs:afd (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/media/java/android/media/
DSoundPool.java193 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in load() local
195 if (afd != null) { in load()
196 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
198 afd.close(); in load()
214 public int load(AssetFileDescriptor afd, int priority) { in load() argument
215 if (afd != null) { in load()
216 long len = afd.getLength(); in load()
220 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
DJetPlayer.java224 public boolean loadJetFile(AssetFileDescriptor afd) { in loadJetFile() argument
225 long len = afd.getLength(); in loadJetFile()
230 afd.getFileDescriptor(), afd.getStartOffset(), len); in loadJetFile()
DMediaPlayer.java731 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid); in create() local
732 if (afd == null) return null; in create()
735 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in create()
736 afd.close(); in create()
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DVariableSpeedNative.java42 AssetFileDescriptor afd = context.getContentResolver().openAssetFileDescriptor(uri, "r"); in playFromContext() local
44 FileDescriptor fileDescriptor = afd.getFileDescriptor(); in playFromContext()
48 VariableSpeedNative.playFileDescriptor(fd, afd.getStartOffset(), afd.getLength()); in playFromContext()
59 MoreCloseables.closeQuietly(afd); in playFromContext()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java360 … AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(mFileResId); in playOrPause() local
361 … mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playOrPause()
362 afd.close(); in playOrPause()
/frameworks/base/core/java/android/content/
DContentResolver.java448 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode); in openFileDescriptor() local
449 if (afd == null) { in openFileDescriptor()
453 if (afd.getDeclaredLength() < 0) { in openFileDescriptor()
455 return afd.getParcelFileDescriptor(); in openFileDescriptor()
461 afd.close(); in openFileDescriptor()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java570 public static boolean resourcesPlayback(AssetFileDescriptor afd, int expectedDuration){ in resourcesPlayback() argument
574 mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); in resourcesPlayback()