/frameworks/base/media/java/android/media/ |
D | SoundPool.java | 247 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in load() local 249 if (afd != null) { in load() 250 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load() 252 afd.close(); in load() 268 public int load(AssetFileDescriptor afd, int priority) { in load() argument 269 if (afd != null) { in load() 270 long len = afd.getLength(); in load() 274 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
|
D | Ringtone.java | 420 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd( in playFallbackRingtone() local 422 if (afd != null) { in playFallbackRingtone() 424 if (afd.getDeclaredLength() < 0) { in playFallbackRingtone() 425 mLocalPlayer.setDataSource(afd.getFileDescriptor()); in playFallbackRingtone() 427 mLocalPlayer.setDataSource(afd.getFileDescriptor(), in playFallbackRingtone() 428 afd.getStartOffset(), in playFallbackRingtone() 429 afd.getDeclaredLength()); in playFallbackRingtone() 437 afd.close(); in playFallbackRingtone()
|
D | MediaExtractor.java | 200 public final void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument 202 Preconditions.checkNotNull(afd); in setDataSource() 206 if (afd.getDeclaredLength() < 0) { in setDataSource() 207 setDataSource(afd.getFileDescriptor()); in setDataSource() 209 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
|
D | JetPlayer.java | 226 public boolean loadJetFile(AssetFileDescriptor afd) { in loadJetFile() argument 227 long len = afd.getLength(); in loadJetFile() 232 afd.getFileDescriptor(), afd.getStartOffset(), len); in loadJetFile()
|
D | MediaPlayer.java | 931 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid); in create() local 932 if (afd == null) return null; in create() 941 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in create() 942 afd.close(); in create() 1015 try (AssetFileDescriptor afd = resolver.openAssetFileDescriptor(uri, "r")) { in attemptDataSource() argument 1016 setDataSource(afd); in attemptDataSource() 1111 public void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument 1113 Preconditions.checkNotNull(afd); in setDataSource() 1117 if (afd.getDeclaredLength() < 0) { in setDataSource() 1118 setDataSource(afd.getFileDescriptor()); in setDataSource() [all …]
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | SimplePlayer.java | 118 … AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(mFileResId); in playOrPause() local 119 … mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playOrPause() 120 afd.close(); in playOrPause()
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsContract.java | 987 AssetFileDescriptor afd = null; in getDocumentThumbnail() local 990 afd = client.openTypedAssetFileDescriptor(documentUri, "image/*", openOpts, signal); in getDocumentThumbnail() 992 final FileDescriptor fd = afd.getFileDescriptor(); in getDocumentThumbnail() 993 final long offset = afd.getStartOffset(); in getDocumentThumbnail() 1035 final Bundle extras = afd.getExtras(); in getDocumentThumbnail() 1046 IoUtils.closeQuietly(afd); in getDocumentThumbnail()
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 369 … AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(mFileResId); in playOrPause() local 370 … mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playOrPause() 371 afd.close(); in playOrPause()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 571 public static boolean resourcesPlayback(AssetFileDescriptor afd, int expectedDuration){ in resourcesPlayback() argument 575 mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); in resourcesPlayback()
|
/frameworks/base/docs/html/training/contacts-provider/ |
D | display-contact-badge.jd | 244 AssetFileDescriptor afd = null; 277 afd = getActivity().getContentResolver(). 283 FileDescriptor fileDescriptor = afd.getFileDescriptor(); 298 if (afd != null) { 300 afd.close();
|
/frameworks/base/core/java/android/content/ |
D | ContentResolver.java | 835 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode, cancellationSignal); in openFileDescriptor() local 836 if (afd == null) { in openFileDescriptor() 840 if (afd.getDeclaredLength() < 0) { in openFileDescriptor() 842 return afd.getParcelFileDescriptor(); in openFileDescriptor() 848 afd.close(); in openFileDescriptor()
|