Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DSoundPool.java216 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in load() local
218 if (afd != null) { in load()
219 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
221 afd.close(); in load()
237 public int load(AssetFileDescriptor afd, int priority) { in load() argument
238 if (afd != null) { in load()
239 long len = afd.getLength(); in load()
243 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
DRingtone.java469 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd( in playFallbackRingtone() local
471 if (afd != null) { in playFallbackRingtone()
473 if (afd.getDeclaredLength() < 0) { in playFallbackRingtone()
474 mLocalPlayer.setDataSource(afd.getFileDescriptor()); in playFallbackRingtone()
476 mLocalPlayer.setDataSource(afd.getFileDescriptor(), in playFallbackRingtone()
477 afd.getStartOffset(), in playFallbackRingtone()
478 afd.getDeclaredLength()); in playFallbackRingtone()
489 afd.close(); in playFallbackRingtone()
DMediaExtractor.java219 public final void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument
221 Preconditions.checkNotNull(afd); in setDataSource()
225 if (afd.getDeclaredLength() < 0) { in setDataSource()
226 setDataSource(afd.getFileDescriptor()); in setDataSource()
228 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
DJetPlayer.java230 public boolean loadJetFile(AssetFileDescriptor afd) { in loadJetFile() argument
231 long len = afd.getLength(); in loadJetFile()
236 afd.getFileDescriptor(), afd.getStartOffset(), len); in loadJetFile()
DRingtoneManager.java1057 AssetFileDescriptor afd = null; in openDefaultRingtoneUri() local
1059 afd = resolver.openAssetFileDescriptor(cacheUri, "r"); in openDefaultRingtoneUri()
1060 if (afd != null) { in openDefaultRingtoneUri()
1061 return afd; in openDefaultRingtoneUri()
1065 afd = resolver.openAssetFileDescriptor(actualUri, "r"); in openDefaultRingtoneUri()
1067 return afd; in openDefaultRingtoneUri()
DMediaPlayer.java968 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid); in create() local
969 if (afd == null) return null; in create()
978 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in create()
979 afd.close(); in create()
1104 try (AssetFileDescriptor afd = resolver.openAssetFileDescriptor(uri, "r")) { in attemptDataSource() argument
1105 setDataSource(afd); in attemptDataSource()
1203 public void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument
1205 Preconditions.checkNotNull(afd); in setDataSource()
1209 if (afd.getDeclaredLength() < 0) { in setDataSource()
1210 setDataSource(afd.getFileDescriptor()); in setDataSource()
[all …]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DSimplePlayer.java118 … 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/
Dservice.cpp229 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/
DAnimatedImageDrawable.java81 State(long nativePtr, InputStream is, AssetFileDescriptor afd) { in State() argument
84 mAssetFd = afd; in State()
295 Rect cropRect, InputStream inputStream, AssetFileDescriptor afd) in AnimatedImageDrawable() argument
313 extended, cropRect), inputStream, afd); in AnimatedImageDrawable()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java369 … 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/
DContentResolverTest.java87 final AssetFileDescriptor afd = new AssetFileDescriptor( in initImage() local
90 afd); in initImage()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java578 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/android/content/
DContentResolver.java1631 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode, cancellationSignal);
1632 if (afd == null) {
1636 if (afd.getDeclaredLength() < 0) {
1638 return afd.getParcelFileDescriptor();
1644 afd.close();
4040 final AssetFileDescriptor afd = content.openTypedAssetFile(uri, "image/*", opts,
4042 final Bundle extras = afd.getExtras();
4044 return afd;
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...