Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DSoundPool.java227 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in load() local
229 if (afd != null) { in load()
230 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
232 afd.close(); in load()
248 public int load(AssetFileDescriptor afd, int priority) { in load() argument
249 if (afd != null) { in load()
250 long len = afd.getLength(); in load()
254 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
DMediaExtractor.java216 public final void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument
218 Preconditions.checkNotNull(afd); in setDataSource()
222 if (afd.getDeclaredLength() < 0) { in setDataSource()
223 setDataSource(afd.getFileDescriptor()); in setDataSource()
225 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
DRingtone.java615 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd( in playFallbackRingtone() local
617 if (afd == null) { in playFallbackRingtone()
622 if (afd.getDeclaredLength() < 0) { in playFallbackRingtone()
623 mLocalPlayer.setDataSource(afd.getFileDescriptor()); in playFallbackRingtone()
625 mLocalPlayer.setDataSource(afd.getFileDescriptor(), in playFallbackRingtone()
626 afd.getStartOffset(), in playFallbackRingtone()
627 afd.getDeclaredLength()); in playFallbackRingtone()
638 afd.close(); in playFallbackRingtone()
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.java1136 AssetFileDescriptor afd = null; in openDefaultRingtoneUri() local
1138 afd = resolver.openAssetFileDescriptor(cacheUri, "r"); in openDefaultRingtoneUri()
1139 if (afd != null) { in openDefaultRingtoneUri()
1140 return afd; in openDefaultRingtoneUri()
1144 afd = resolver.openAssetFileDescriptor(actualUri, "r"); in openDefaultRingtoneUri()
1146 return afd; in openDefaultRingtoneUri()
DMediaPlayer.java1013 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid); in create() local
1014 if (afd == null) return null; in create()
1021 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in create()
1022 afd.close(); in create()
1151 try (AssetFileDescriptor afd = optimize in attemptDataSource() argument
1154 setDataSource(afd); in attemptDataSource()
1253 public void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource() argument
1255 Preconditions.checkNotNull(afd); in setDataSource()
1259 if (afd.getDeclaredLength() < 0) { in setDataSource()
1260 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/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStaging.java136 final AssetFileDescriptor afd = openAssetFileDescriptor(packageUri); in onResume() local
138 ParcelFileDescriptor pfd = afd != null ? afd.getParcelFileDescriptor() : null; in onResume()
147 PackageUtil.safeClose(afd); in onResume()
287 try (AssetFileDescriptor afd = openAssetFileDescriptor(getIntent().getData())) { in getContentSizeBytes() argument
288 return afd != null ? afd.getLength() : UNKNOWN_LENGTH; in getContentSizeBytes()
/frameworks/av/media/audioaidlconversion/tests/
Daudio_aidl_ndk_cpp_conversion_tests.cpp103 auto afd = make_AFD_Encap(); in make_AFD_Encap_with_Enc() local
104 afd.encoding += "+example"; in make_AFD_Encap_with_Enc()
105 return afd; in make_AFD_Encap_with_Enc()
/frameworks/av/media/libaudioclient/include/media/
DAudioCommonTypes.h80 const android::media::audio::common::AudioFormatDescription& afd) const noexcept {
82 std::hash<android::media::audio::common::AudioFormatType>{}(afd.type),
84 std::hash<android::media::audio::common::PcmType>{}(afd.pcm),
85 std::hash<std::string>{}(afd.encoding)));
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DSessionStager.kt100 .use { afd -> afd?.length ?: AssetFileDescriptor.UNKNOWN_LENGTH } in <lambda>() method
DInstallRepository.kt309 context.contentResolver.openAssetFileDescriptor(uri, "r").use { afd -> in <lambda>() method
310 val pfd: ParcelFileDescriptor? = afd?.parcelFileDescriptor in <lambda>()
/frameworks/native/cmds/service/
Dservice.cpp212 int afd = ashmem_create_region("test", statbuf.st_size); in main() local
214 PROT_READ | PROT_WRITE, MAP_SHARED, afd, 0); in main()
217 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.java89 final AssetFileDescriptor afd = new AssetFileDescriptor( in initImage() local
92 afd); in initImage()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java571 public static boolean resourcesPlayback(AssetFileDescriptor afd, int expectedDuration){ in resourcesPlayback() argument
575 mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); in resourcesPlayback()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java543 final AssetFileDescriptor afd = in openFileForRead() local
545 if (afd == null) { in openFileForRead()
550 return afd.getParcelFileDescriptor(); in openFileForRead()
/frameworks/base/core/java/android/content/
DContentResolver.java1689 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode, cancellationSignal);
1690 if (afd == null) {
1694 if (afd.getDeclaredLength() < 0) {
1696 return afd.getParcelFileDescriptor();
1702 afd.close();
4172 final AssetFileDescriptor afd = content.openTypedAssetFile(uri, "image/*", opts,
4174 final Bundle extras = afd.getExtras();
4176 return afd;
/frameworks/av/media/libaudioclient/tests/
Daudio_aidl_legacy_conversion_tests.cpp244 auto afd = make_AFD_Encap(); in make_AFD_Encap_with_Enc() local
245 afd.encoding += "+example"; in make_AFD_Encap_with_Enc()
246 return afd; in make_AFD_Encap_with_Enc()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java980 AssetFileDescriptor afd = new AssetFileDescriptor(
984 FileInputStream is = afd.createInputStream();
/frameworks/av/media/libstagefright/httplive/fuzzer/corpus/
Dmeta15901 �H�PW�0��������a������afd^��q5����4��!����������_��IGL��e�M�����;�����
15902 �H�PW�0��������a������afd^��q5����4��!����������_�����
19202 fv��afd�w)p�rBe�r����3��i�E��޲�z�f�q��Z�Ԯ=�� ����FdT`i@q7XE��I�T�;FQ�� r��MV'���\)���]���ܥ�y…
51315 �H�PW�0��������a������afd^��q5����4��!����������_��IGL��e�M�����;�����
51316 �H�PW�0��������a������afd^��q5����4��!����������_�����
54616 fv��afd�w)p�rBe�r����3��i�E��޲�z�f�q��Z�Ԯ=�� ����FdT`i@q7XE��I�T�;FQ�� r��MV'���\)���]���ܥ�y…
Dmeta215943 �H�PW�0��������a������afd^��q5����4��!����������_��IGL��e�M�����;�����
15944 �H�PW�0��������a������afd^��q5����4��!����������_�����
19244 fv��afd�w)p�rBe�r����3��i�E��޲�z�f�q��Z�Ԯ=�� ����FdT`i@q7XE��I�T�;FQ�� r��MV'���\)���]���ܥ�y…