Searched refs:fd (Results 1 - 25 of 30) sorted by relevance

12

/packages/experimental/procstatlog/
H A Dprocstatlog.c75 int fd = open(filename, O_RDONLY); local
76 if (fd < 0) {
81 int len = read(fd, buf, sizeof(buf));
84 close(fd);
89 close(fd);
107 int fd = open(filename, O_RDONLY); local
108 if (fd < 0) return 0;
110 int len = read(fd, buf, sizeof(buf) - 1);
113 close(fd);
117 close(fd);
162 int fd = open("/proc/yaffs", O_RDONLY); local
244 int fd = open(filename, O_RDONLY); local
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDecodeUtils.java59 public static Bitmap requestDecode(JobContext jc, FileDescriptor fd, Options options) { argument
63 BitmapFactory.decodeFileDescriptor(fd, null, options));
84 FileDescriptor fd = fis.getFD();
85 return requestDecode(jc, fd, options, targetSize);
94 public static Bitmap requestDecode(JobContext jc, FileDescriptor fd, argument
100 BitmapFactory.decodeFileDescriptor(fd, null, options);
107 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
186 JobContext jc, FileDescriptor fd, boolean shareable) {
188 return BitmapRegionDecoder.newInstance(fd, shareable);
185 requestCreateBitmapRegionDecoder( JobContext jc, FileDescriptor fd, boolean shareable) argument
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp42 void releaseDictBuf(void* dictBuf, const size_t length, int fd);
55 int fd = 0; local
60 fd = open(sourceDirChars, O_RDONLY);
61 if (fd < 0) {
69 dictBuf = mmap(NULL, sizeof(char) * adjDictSize, PROT_READ, MAP_PRIVATE, fd, adjDictOffset);
114 releaseDictBuf(((char*)dictBuf) - adjust, adjDictSize, fd);
119 dictionary = new Dictionary(dictBuf, dictSize, fd, adjust, typedLetterMultiplier,
204 void releaseDictBuf(void* dictBuf, const size_t length, int fd) { argument
210 ret = close(fd);
/packages/apps/Mms/src/com/android/mms/
H A DTempFileProvider.java98 ParcelFileDescriptor fd = null;
107 fd = getTempStoreFd();
111 return fd;
/packages/apps/Email/src/com/android/email/provider/
H A DWidgetProvider.java105 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
106 WidgetManager.getInstance().dump(fd, writer, args);
/packages/inputmethods/PinyinIME/jni/share/
H A Duserdict.cpp1241 int fd = open(dict_file_, O_WRONLY);
1242 if (fd == -1)
1246 write_back_all(fd);
1249 write_back_lemma(fd);
1252 write_back_offset(fd);
1255 write_back_score(fd);
1259 write_back_sync(fd);
1267 off_t cur = lseek(fd, 0, SEEK_CUR);
1268 ftruncate(fd, cur);
1269 close(fd);
[all...]
/packages/inputmethods/PinyinIME/jni/include/
H A 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/Contacts/src/com/android/contacts/interactions/
H A DTestLoaderManager.java222 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
223 mDelegate.dump(prefix, fd, writer, args);
/packages/apps/Gallery/src/com/android/camera/
H A DBitmapManager.java177 public Bitmap decodeFileDescriptor(FileDescriptor fd, argument
190 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, options);
H A DUtil.java311 FileDescriptor fd = pfd.getFileDescriptor();
313 BitmapManager.instance().decodeFileDescriptor(fd, options);
324 return BitmapManager.instance().decodeFileDescriptor(fd, options);
/packages/apps/Camera/src/com/android/camera/
H A DThumbnail.java248 public static Bitmap createVideoThumbnail(FileDescriptor fd, int targetWidth) { argument
249 return createVideoThumbnail(null, fd, targetWidth);
256 private static Bitmap createVideoThumbnail(String filePath, FileDescriptor fd, int targetWidth) { argument
263 retriever.setDataSource(fd);
H A DEffectsRecorder.java185 public void setOutputFile(FileDescriptor fd) { argument
196 mFd = fd;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DUtils.java224 public static void closeSilently(ParcelFileDescriptor fd) { argument
226 if (fd != null) fd.close();
/packages/apps/Email/src/com/android/email/widget/
H A DWidgetManager.java110 public void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
/packages/apps/Music/src/com/android/music/
H A DMusicUtils.java935 ParcelFileDescriptor fd = null;
937 fd = res.openFileDescriptor(uri, "r");
945 fd.getFileDescriptor(), null, sBitmapOptionsCache);
957 fd.getFileDescriptor(), null, sBitmapOptionsCache);
973 if (fd != null)
974 fd.close();
1062 FileDescriptor fd = pfd.getFileDescriptor();
1063 bm = BitmapFactory.decodeFileDescriptor(fd);
1069 FileDescriptor fd = pfd.getFileDescriptor();
1070 bm = BitmapFactory.decodeFileDescriptor(fd);
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DVoicemailProviderTest.java267 ParcelFileDescriptor fd = mResolver.openFileDescriptor(uri, "r");
268 assertNotNull(fd);
269 fd.close();
/packages/inputmethods/PinyinIME/jni/android/
H A Dcom_android_inputmethod_pinyin_PinyinDecoderService.cpp70 jint fd = env->GetIntField(fd_sys_dict, gFileDescriptorOffsets.mDescriptor); local
75 int newfd = dup(fd);
/packages/apps/Nfc/src/com/android/nfc/
H A DNfceeAccessControl.java271 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
H A DNfcService.java773 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
774 NfcService.this.dump(fd, pw, args);
1875 void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
1893 mP2pLinkManager.dump(fd, pw, args);
1894 mNfceeAccessControl.dump(fd, pw, args);
H A DP2pLinkManager.java566 void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DPinyinDecoderService.java42 native static boolean nativeImOpenDecoderFd(FileDescriptor fd, argument
137 + ", length=" + afd.getLength() + ", fd="
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsProvider.java724 ParcelFileDescriptor fd;
733 fd = openFileHelper(uri, mode);
736 return fd;
/packages/apps/Contacts/src/com/android/contacts/
H A DContactLoader.java767 AssetFileDescriptor fd = getContext().getContentResolver()
770 FileInputStream fis = fd.createInputStream();
780 fd.close();
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadService.java563 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DQuickContactActivity.java416 AssetFileDescriptor fd = getContentResolver()
418 return BitmapFactory.decodeStream(fd.createInputStream());

Completed in 538 milliseconds

12