/frameworks/base/media/java/android/media/ |
D | SoundPool.java | 225 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in load() local 227 if (afd != null) { in load() 228 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load() 230 afd.close(); in load() 246 public int load(AssetFileDescriptor afd, int priority) { in load() argument 247 if (afd != null) { in load() 248 long len = afd.getLength(); in load() 252 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
|
D | Ringtone.java | 514 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd( in playFallbackRingtone() local 516 if (afd != null) { in playFallbackRingtone() 518 if (afd.getDeclaredLength() < 0) { in playFallbackRingtone() 519 mLocalPlayer.setDataSource(afd.getFileDescriptor()); in playFallbackRingtone() 521 mLocalPlayer.setDataSource(afd.getFileDescriptor(), in playFallbackRingtone() 522 afd.getStartOffset(), in playFallbackRingtone() 523 afd.getDeclaredLength()); in playFallbackRingtone() 534 afd.close(); in playFallbackRingtone()
|
D | MediaExtractor.java | 217 public final void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument 219 Preconditions.checkNotNull(afd); in setDataSource() 223 if (afd.getDeclaredLength() < 0) { in setDataSource() 224 setDataSource(afd.getFileDescriptor()); in setDataSource() 226 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
|
D | JetPlayer.java | 231 public boolean loadJetFile(AssetFileDescriptor afd) { in loadJetFile() argument 232 long len = afd.getLength(); in loadJetFile() 237 afd.getFileDescriptor(), afd.getStartOffset(), len); in loadJetFile()
|
D | RingtoneManager.java | 1064 AssetFileDescriptor afd = null; in openDefaultRingtoneUri() local 1066 afd = resolver.openAssetFileDescriptor(cacheUri, "r"); in openDefaultRingtoneUri() 1067 if (afd != null) { in openDefaultRingtoneUri() 1068 return afd; in openDefaultRingtoneUri() 1072 afd = resolver.openAssetFileDescriptor(actualUri, "r"); in openDefaultRingtoneUri() 1074 return afd; in openDefaultRingtoneUri()
|
D | MediaPlayer.java | 991 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid); in create() local 992 if (afd == null) return null; in create() 1001 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in create() 1002 afd.close(); in create() 1131 try (AssetFileDescriptor afd = optimize in attemptDataSource() argument 1134 setDataSource(afd); in attemptDataSource() 1232 public void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument 1234 Preconditions.checkNotNull(afd); in setDataSource() 1238 if (afd.getDeclaredLength() < 0) { in setDataSource() 1239 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/native/cmds/service/ |
D | service.cpp | 229 int afd = ashmem_create_region("test", statbuf.st_size); in main() local 231 PROT_READ | PROT_WRITE, MAP_SHARED, afd, 0); in main() 234 data.writeFileDescriptor(afd, true /* take ownership */); in main()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedImageDrawable.java | 80 State(long nativePtr, InputStream is, AssetFileDescriptor afd) { in State() argument 83 mAssetFd = afd; in State() 294 Rect cropRect, InputStream inputStream, AssetFileDescriptor afd) in AnimatedImageDrawable() argument 312 extended, cropRect), inputStream, afd); in AnimatedImageDrawable()
|
/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/core/tests/coretests/src/android/content/ |
D | ContentResolverTest.java | 87 final AssetFileDescriptor afd = new AssetFileDescriptor( in initImage() local 90 afd); in initImage()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 578 public static boolean resourcesPlayback(AssetFileDescriptor afd, int expectedDuration){ in resourcesPlayback() argument 582 mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); in resourcesPlayback()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | FileSystemProvider.java | 538 final AssetFileDescriptor afd = in openFileForRead() local 540 if (afd == null) { in openFileForRead() 545 return afd.getParcelFileDescriptor(); in openFileForRead()
|
/frameworks/base/core/java/android/content/ |
D | ContentResolver.java | 1675 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode, cancellationSignal); 1676 if (afd == null) { 1680 if (afd.getDeclaredLength() < 0) { 1682 return afd.getParcelFileDescriptor(); 1688 afd.close(); 4101 final AssetFileDescriptor afd = content.openTypedAssetFile(uri, "image/*", opts, 4103 final Bundle extras = afd.getExtras(); 4105 return afd;
|
/frameworks/base/apex/media/framework/java/android/media/ |
D | MediaTranscodingManager.java | 348 AssetFileDescriptor afd = mContentResolver.openAssetFileDescriptor(uri, 350 if (afd != null) { 351 return afd.getParcelFileDescriptor();
|