Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/PinyinIME/jni/share/
Duserdict.cpp1241 int fd = open(dict_file_, O_WRONLY); in _get_lpis() local
1242 if (fd == -1) in _get_lpis()
1246 write_back_all(fd); in _get_lpis()
1249 write_back_lemma(fd); in _get_lpis()
1252 write_back_offset(fd); in _get_lpis()
1255 write_back_score(fd); in _get_lpis()
1259 write_back_sync(fd); in _get_lpis()
1267 off_t cur = lseek(fd, 0, SEEK_CUR); in _get_lpis()
1268 ftruncate(fd, cur); in _get_lpis()
1269 close(fd); in _get_lpis()
[all …]
/packages/inputmethods/PinyinIME/jni/include/
Duserdict.h381 void write_back_sync(int fd);
383 void write_back_score(int fd);
384 void write_back_offset(int fd);
385 void write_back_lemma(int fd);
386 void write_back_all(int fd);
/packages/apps/Gallery/src/com/android/camera/
DBitmapManager.java131 public Bitmap decodeFileDescriptor(FileDescriptor fd, in decodeFileDescriptor() argument
144 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, options); in decodeFileDescriptor()
DUtil.java311 FileDescriptor fd = pfd.getFileDescriptor(); in makeBitmap() local
313 BitmapManager.instance().decodeFileDescriptor(fd, options); in makeBitmap()
324 return BitmapManager.instance().decodeFileDescriptor(fd, options); in makeBitmap()
/packages/apps/Camera/src/com/android/camera/
DBitmapManager.java131 public Bitmap decodeFileDescriptor(FileDescriptor fd, in decodeFileDescriptor() argument
144 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, options); in decodeFileDescriptor()
DUtil.java309 FileDescriptor fd = pfd.getFileDescriptor(); in makeBitmap() local
311 BitmapManager.instance().decodeFileDescriptor(fd, options); in makeBitmap()
322 return BitmapManager.instance().decodeFileDescriptor(fd, options); in makeBitmap()
/packages/apps/Music/src/com/android/music/
DMusicUtils.java823 ParcelFileDescriptor fd = null; in getArtworkQuick() local
825 fd = res.openFileDescriptor(uri, "r"); in getArtworkQuick()
833 fd.getFileDescriptor(), null, sBitmapOptionsCache); in getArtworkQuick()
845 fd.getFileDescriptor(), null, sBitmapOptionsCache); in getArtworkQuick()
861 if (fd != null) in getArtworkQuick()
862 fd.close(); in getArtworkQuick()
938 FileDescriptor fd = pfd.getFileDescriptor(); in getArtworkFromFile() local
939 bm = BitmapFactory.decodeFileDescriptor(fd); in getArtworkFromFile()
945 FileDescriptor fd = pfd.getFileDescriptor(); in getArtworkFromFile() local
946 bm = BitmapFactory.decodeFileDescriptor(fd); in getArtworkFromFile()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java718 ParcelFileDescriptor fd; in openFile() local
727 fd = getTempStoreFd(); in openFile()
731 fd = openFileHelper(uri, mode); in openFile()
734 return fd; in openFile()
/packages/inputmethods/PinyinIME/jni/android/
Dcom_android_inputmethod_pinyin_PinyinDecoderService.cpp70 jint fd = env->GetIntField(fd_sys_dict, gFileDescriptorOffsets.mDescriptor); in nativeImOpenDecoderFd() local
75 int newfd = dup(fd); in nativeImOpenDecoderFd()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DPinyinDecoderService.java42 native static boolean nativeImOpenDecoderFd(FileDescriptor fd, in nativeImOpenDecoderFd() argument
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DLatinIME.java1141 @Override protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
1142 super.dump(fd, fout, args); in dump()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java4315 AssetFileDescriptor fd = null; in buildAssetFileDescriptor() local
4326 fd = AssetFileDescriptor.fromMemoryFile(memoryFile); in buildAssetFileDescriptor()
4330 return fd; in buildAssetFileDescriptor()