Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp78 const struct afd { struct
134 static struct addrinfo* get_ai(const struct addrinfo*, const struct afd*, const char*);
137 static const struct afd* find_afd(int);
179 #define GET_AI(ai, afd, addr) \ argument
182 (ai) = get_ai(pai, (afd), (addr)); \
486 const struct afd* afd; in explore_null() local
516 afd = find_afd(pai->ai_family); in explore_null()
517 if (afd == NULL) return 0; in explore_null()
520 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null()
523 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryFactory.java129 AssetFileDescriptor afd = null; in createReadOnlyBinaryDictionary() local
134 afd = context.getResources().openRawResourceFd(resId); in createReadOnlyBinaryDictionary()
135 if (afd == null) { in createReadOnlyBinaryDictionary()
146 return new ReadOnlyBinaryDictionary(sourceDir, afd.getStartOffset(), afd.getLength(), in createReadOnlyBinaryDictionary()
152 if (null != afd) { in createReadOnlyBinaryDictionary()
154 afd.close(); in createReadOnlyBinaryDictionary()
DBinaryDictionaryGetter.java94 AssetFileDescriptor afd = null; in loadFallbackResource() local
96 afd = context.getResources().openRawResourceFd(fallbackResId); in loadFallbackResource()
101 if (afd == null) { in loadFallbackResource()
107 context.getApplicationInfo().sourceDir, afd.getStartOffset(), afd.getLength()); in loadFallbackResource()
110 afd.close(); in loadFallbackResource()
DBinaryDictionaryFileDumper.java268 AssetFileDescriptor afd = null; in installWordListToStaging() local
272 afd = openAssetFileDescriptor(providerClient, wordListUri); in installWordListToStaging()
274 if (null == afd) return; in installWordListToStaging()
275 originalSourceStream = afd.createInputStream(); in installWordListToStaging()
353 closeAssetFileDescriptorAndReportAnyException(afd); in installWordListToStaging()
/packages/apps/Messaging/src/com/android/messaging/util/
DMediaUtilImpl.java40 final AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in playSound() local
42 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playSound()
43 afd.close(); in playSound()
DUriUtil.java378 AssetFileDescriptor afd = null; in getUriContentLength() local
380 afd = context.getContentResolver().openAssetFileDescriptor(contentUri, "r"); in getUriContentLength()
381 return afd.getLength(); in getUriContentLength()
385 if (afd != null) { in getUriContentLength()
387 afd.close(); in getUriContentLength()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/glide/
DPhotopickerMediaFetcher.kt64 private var afd: AssetFileDescriptor? = null variable in com.android.photopicker.core.glide.PhotopickerMediaFetcher
85 afd = in loadData()
92 if (afd == null) { in loadData()
98 inputStream = afd?.createInputStream() in loadData()
112 afd?.close() in cleanup()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java283 AssetFileDescriptor afd = in doStart() local
285 if (afd == null) { in doStart()
288 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in doStart()
289 afd.getLength()); in doStart()
290 afd.close(); in doStart()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DCmpApiResult.java41 CmpApiResult(String api, AssetFileDescriptor afd, Point dimensions) { in CmpApiResult() argument
43 mAssetFileDescriptor = afd; in CmpApiResult()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPickerUriResolverTest.java562 try (AssetFileDescriptor afd = sTestPickerUriResolver.openTypedAssetFile( in testPickerUriResolver_thumbnailRequest() argument
566 assertThat(afd).isNotNull(); in testPickerUriResolver_thumbnailRequest()
602 try (AssetFileDescriptor afd = sTestPickerUriResolver.openTypedAssetFile(sTestPickerUri, in testPickerUriResolver_pickerUri_fileOpenWithRequireOriginal() argument
610 try (AssetFileDescriptor afd = sTestPickerUriResolver.openTypedAssetFile(sTestPickerUri, in testPickerUriResolver_pickerUri_fileOpenWithRequireOriginal() argument
649 try (AssetFileDescriptor afd = sTestPickerUriResolver.openTypedAssetFile(sTestPickerUri, in testPickerUriResolver_pickerGetContentUri_fileOpenWithRequireOriginal() argument
654 assertThat(afd).isNotNull(); in testPickerUriResolver_pickerGetContentUri_fileOpenWithRequireOriginal()
656 try (AssetFileDescriptor afd = sTestPickerUriResolver.openTypedAssetFile(sTestPickerUri, in testPickerUriResolver_pickerGetContentUri_fileOpenWithRequireOriginal() argument
759 try (AssetFileDescriptor afd = sTestPickerUriResolver.openTypedAssetFile(uri, "image/*", in testOpenTypedAssetFile() argument
763 assertThat(afd).isNotNull(); in testOpenTypedAssetFile()
DMediaProviderTest.java1806 try (AssetFileDescriptor afd = sContext.getContentResolver().openTypedAssetFile(mediaUri, in testOpenTypedAssetFile_setModeInBundle_failsWrite() argument
1809 Os.write(afd.getFileDescriptor(), rawText.getBytes(StandardCharsets.UTF_8), in testOpenTypedAssetFile_setModeInBundle_failsWrite()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java621 AssetFileDescriptor afd = resources.openRawResourceFd(res); in setDataSourceFromResource() local
622 if (afd != null) { in setDataSourceFromResource()
623 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in setDataSourceFromResource()
624 afd.getLength()); in setDataSourceFromResource()
625 afd.close(); in setDataSourceFromResource()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java176 AssetFileDescriptor afd = getResources().openRawResourceFd(R.raw.testmp3_2); in createPlayer() local
178 mediaPlayer.setDataSource(afd); in createPlayer()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java191 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(resId); in createDmStream() local
192 FileInputStream body = afd.createInputStream(); in createDmStream()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java313 final AssetFileDescriptor afd = getContext().getResources().openRawResourceFd( in openAssetFile() local
315 return afd; in openAssetFile()
/packages/modules/Media/apex/framework/java/android/media/
DMediaTranscodingManager.java338 AssetFileDescriptor afd = mContentResolver.openAssetFileDescriptor(uri,
340 if (afd != null) {
341 return afd.getParcelFileDescriptor();
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java1064 AssetFileDescriptor afd = in openFile() local
1067 if (afd == null) { in openFile()
1071 return afd.getParcelFileDescriptor(); in openFile()
/packages/inputmethods/LatinIME/dictionaries/
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...