Searched defs:afd (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CodecTest.java | 578 public static boolean resourcesPlayback(AssetFileDescriptor afd, int expectedDuration){ argument 582 mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength());
|
/frameworks/base/media/java/android/media/ |
H A D | MediaExtractor.java | 214 * @param afd the AssetFileDescriptor for the file you want to extract from. 216 public final void setDataSource(@NonNull AssetFileDescriptor afd) argument 218 Preconditions.checkNotNull(afd); 222 if (afd.getDeclaredLength() < 0) { 223 setDataSource(afd.getFileDescriptor()); 225 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength());
|
H A D | JetPlayer.java | 223 * @param afd the asset file descriptor. 226 public boolean loadJetFile(AssetFileDescriptor afd) { argument 227 long len = afd.getLength(); 232 afd.getFileDescriptor(), afd.getStartOffset(), len);
|
H A D | SoundPool.java | 224 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); 226 if (afd != null) { 227 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); 229 afd.close(); 240 * @param afd an asset file descriptor 245 public int load(AssetFileDescriptor afd, int priority) { argument 246 if (afd != null) { 247 long len = afd [all...] |
H A D | MediaPlayer.java | 965 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid); 966 if (afd == null) return null; 975 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 976 afd.close(); 1084 try (AssetFileDescriptor afd = resolver.openAssetFileDescriptor(uri, "r")) { 1085 setDataSource(afd); 1181 * @param afd the AssetFileDescriptor for the file you want to play 1183 * @throws IllegalArgumentException if afd i 1186 setDataSource(@onNull AssetFileDescriptor afd) argument [all...] |
Completed in 447 milliseconds