Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/
DTimerRingService.java130 AssetFileDescriptor afd = getAssets().openFd("sounds/Timer_Expire.ogg"); in play() local
132 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in play()
173 AssetFileDescriptor afd = resources.openRawResourceFd(res); in setDataSourceFromResource() local
174 if (afd != null) { in setDataSourceFromResource()
175 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in setDataSourceFromResource()
176 afd.getLength()); in setDataSourceFromResource()
177 afd.close(); in setDataSourceFromResource()
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryFactory.java148 AssetFileDescriptor afd = null; in createReadOnlyBinaryDictionary() local
153 afd = context.getResources().openRawResourceFd(resId); in createReadOnlyBinaryDictionary()
154 if (afd == null) { in createReadOnlyBinaryDictionary()
165 return new ReadOnlyBinaryDictionary(sourceDir, afd.getStartOffset(), afd.getLength(), in createReadOnlyBinaryDictionary()
171 if (null != afd) { in createReadOnlyBinaryDictionary()
173 afd.close(); in createReadOnlyBinaryDictionary()
DBinaryDictionaryGetter.java90 final AssetFileDescriptor afd = context.getResources().openRawResourceFd(fallbackResId); in loadFallbackResource() local
91 if (afd == null) { in loadFallbackResource()
98 context.getApplicationInfo().sourceDir, afd.getStartOffset(), afd.getLength()); in loadFallbackResource()
101 afd.close(); in loadFallbackResource()
DBinaryDictionaryFileDumper.java260 AssetFileDescriptor afd = null; in cacheWordList() local
264 afd = openAssetFileDescriptor(providerClient, wordListUri); in cacheWordList()
266 if (null == afd) return; in cacheWordList()
267 originalSourceStream = afd.createInputStream(); in cacheWordList()
339 closeAssetFileDescriptorAndReportAnyException(afd); in cacheWordList()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmKlaxon.java148 AssetFileDescriptor afd = context.getResources().openRawResourceFd(res); in setDataSourceFromResource() local
149 if (afd != null) { in setDataSourceFromResource()
150 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in setDataSourceFromResource()
151 afd.close(); in setDataSourceFromResource()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java365 AssetFileDescriptor afd = resources.openRawResourceFd(res); in setDataSourceFromResource() local
366 if (afd != null) { in setDataSourceFromResource()
367 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in setDataSourceFromResource()
368 afd.getLength()); in setDataSourceFromResource()
369 afd.close(); in setDataSourceFromResource()
/packages/apps/Browser/src/com/android/browser/homepages/
DHomeProvider.java80 AssetFileDescriptor afd = new AssetFileDescriptor(write, 0, -1); in openFile() local
81 new RequestHandler(getContext(), uri, afd.createOutputStream()).start(); in openFile()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java884 AssetFileDescriptor afd = openVideoThumbnailCleared(id, signal); in openOrCreateVideoThumbnailCleared() local
885 if (afd == null) { in openOrCreateVideoThumbnailCleared()
892 afd = openVideoThumbnailCleared(id, signal); in openOrCreateVideoThumbnailCleared()
895 return afd; in openOrCreateVideoThumbnailCleared()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java319 final AssetFileDescriptor afd = getContext().getResources().openRawResourceFd( in openAssetFile() local
321 return afd; in openAssetFile()
/packages/inputmethods/LatinIME/dictionaries/
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...