Searched refs:afd (Results 1 – 11 of 11) sorted by relevance
129 AssetFileDescriptor afd = null; in createReadOnlyBinaryDictionary() local134 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()
94 AssetFileDescriptor afd = null; in loadFallbackResource() local96 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()
268 AssetFileDescriptor afd = null; in installWordListToStaging() local272 afd = openAssetFileDescriptor(providerClient, wordListUri); in installWordListToStaging()274 if (null == afd) return; in installWordListToStaging()275 originalSourceStream = afd.createInputStream(); in installWordListToStaging()353 closeAssetFileDescriptorAndReportAnyException(afd); in installWordListToStaging()
344 AssetFileDescriptor afd; in testOpenFile() local346 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() local412 assertNull(afd); in testOpenThumbnail()421 afd = mMockResolver.openAssetFileDescriptor(thumb1Uri, "r"); in testOpenThumbnail()422 assertNull(afd); in testOpenThumbnail()[all …]
163 AssetFileDescriptor afd = in doStart() local165 if (afd == null) { in doStart()168 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in doStart()169 afd.getLength()); in doStart()170 afd.close(); in doStart()
40 final AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in playSound() local42 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playSound()43 afd.close(); in playSound()
342 AssetFileDescriptor afd = null; in getUriContentLength() local344 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()
479 AssetFileDescriptor afd = resources.openRawResourceFd(res); in setDataSourceFromResource() local480 if (afd != null) { in setDataSourceFromResource()481 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in setDataSourceFromResource()482 afd.getLength()); in setDataSourceFromResource()483 afd.close(); in setDataSourceFromResource()
948 AssetFileDescriptor afd = openVideoThumbnailCleared(id, signal); in openOrCreateVideoThumbnailCleared() local949 if (afd == null) { in openOrCreateVideoThumbnailCleared()956 afd = openVideoThumbnailCleared(id, signal); in openOrCreateVideoThumbnailCleared()959 return afd; in openOrCreateVideoThumbnailCleared()
313 final AssetFileDescriptor afd = getContext().getResources().openRawResourceFd( in openAssetFile() local315 return afd; in openAssetFile()
1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...