Home
last modified time | relevance | path

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

/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.java342 AssetFileDescriptor afd = null; in getUriContentLength() local
344 afd = context.getContentResolver().openAssetFileDescriptor(contentUri, "r"); in getUriContentLength()
345 return afd.getLength(); in getUriContentLength()
349 if (afd != null) { in getUriContentLength()
351 afd.close(); in getUriContentLength()
/packages/apps/Email/tests/src/com/android/email/provider/
DAttachmentProviderTests.java344 AssetFileDescriptor afd; in testOpenFile() local
346 afd = mMockResolver.openAssetFileDescriptor(file1Uri, "r"); in testOpenFile()
360 afd = mMockResolver.openAssetFileDescriptor(file1Uri, "r"); in testOpenFile()
379 afd = mMockResolver.openAssetFileDescriptor(file2Uri, "r"); in testOpenFile()
380 assertNotNull(afd); in testOpenFile()
382 afd.close(); in testOpenFile()
411 AssetFileDescriptor afd = mMockResolver.openAssetFileDescriptor(thumb1Uri, "r"); in testOpenThumbnail() local
412 assertNull(afd); in testOpenThumbnail()
421 afd = mMockResolver.openAssetFileDescriptor(thumb1Uri, "r"); in testOpenThumbnail()
422 assertNull(afd); in testOpenThumbnail()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java192 AssetFileDescriptor afd = in doStart() local
194 if (afd == null) { in doStart()
197 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in doStart()
198 afd.getLength()); in doStart()
199 afd.close(); in doStart()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java476 AssetFileDescriptor afd = resources.openRawResourceFd(res); in setDataSourceFromResource() local
477 if (afd != null) { in setDataSourceFromResource()
478 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in setDataSourceFromResource()
479 afd.getLength()); in setDataSourceFromResource()
480 afd.close(); in setDataSourceFromResource()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java1250 AssetFileDescriptor afd = openImageThumbnailCleared(id, size, signal); in openOrCreateImageThumbnailCleared() local
1252 if (afd == null) { in openOrCreateImageThumbnailCleared()
1259 afd = openImageThumbnailCleared(id, size, signal); in openOrCreateImageThumbnailCleared()
1262 if (afd != null) { in openOrCreateImageThumbnailCleared()
1263 return afd; in openOrCreateImageThumbnailCleared()
1324 AssetFileDescriptor afd = openVideoThumbnailCleared(id, size, signal); in openOrCreateVideoThumbnailCleared() local
1325 if (afd == null) { in openOrCreateVideoThumbnailCleared()
1332 afd = openVideoThumbnailCleared(id, size, signal); in openOrCreateVideoThumbnailCleared()
1334 return afd; in openOrCreateVideoThumbnailCleared()
/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/inputmethods/LatinIME/dictionaries/
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...