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

123

/packages/services/Telephony/src/com/android/phone/
H A DTelephonyDebugService.java49 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
50 mDebugService.dump(fd, pw, args);
/packages/apps/Camera/src/com/android/camera/
H A DThumbnail.java25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { argument
26 return createVideoThumbnailBitmap(null, fd, targetWidth);
33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, argument
41 retriever.setDataSource(fd);
/packages/apps/Camera2/src/com/android/camera/
H A DThumbnail.java25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { argument
26 return createVideoThumbnailBitmap(null, fd, targetWidth);
33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, argument
41 retriever.setDataSource(fd);
/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 DBytesBufferPool.java40 public void readFrom(JobContext jc, FileDescriptor fd) throws IOException { argument
41 FileInputStream fis = new FileInputStream(fd);
H A DDecodeUtils.java61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { argument
66 BitmapFactory.decodeFileDescriptor(fd, null, options));
69 public static void decodeBounds(JobContext jc, FileDescriptor fd, argument
74 BitmapFactory.decodeFileDescriptor(fd, null, options);
105 FileDescriptor fd = fis.getFD();
106 return decodeThumbnail(jc, fd, options, targetSize, type);
116 JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) {
121 BitmapFactory.decodeFileDescriptor(fd, null, options);
149 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
228 JobContext jc, FileDescriptor fd, boolea
115 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument
227 createBitmapRegionDecoder( JobContext jc, FileDescriptor fd, boolean shareable) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Dfile_utils.cpp32 const int fd = open(filePath, O_RDONLY); local
33 if (fd == -1) {
37 if (fstat(fd, &statBuf) != 0) {
38 close(fd);
41 close(fd);
H A Ddict_file_writing_utils.cpp104 const int fd = open(filePath, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); local
105 if (fd == -1) {
110 FILE *const file = fdopen(fd, "wb");
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DThumbnailLoadTask.java104 AssetFileDescriptor fd = null;
106 fd = mHolder.getResolver().openAssetFileDescriptor(thumbnailUri, "r");
107 if (isCancelled() || fd == null) {
115 BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, opts);
132 fd.getFileDescriptor(), null, opts);
144 if (fd != null) {
146 fd.close();
H A DAbstractConversationWebViewClient.java127 final ParcelFileDescriptor fd = cr.openFileDescriptor(target.contentUri, "r");
128 final InputStream stream = new FileInputStream(fd.getFileDescriptor());
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java152 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r");
153 long statLength = fd.getLength();
163 is = fd.createInputStream();
166 fd.close();
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DStorageUtils.java90 public static void ensureAvailableSpace(Context context, FileDescriptor fd, long bytes) argument
93 long availBytes = getAvailableBytes(fd);
103 dev = Os.fstat(fd).st_dev;
133 availBytes = getAvailableBytes(fd);
179 private static long getAvailableBytes(FileDescriptor fd) throws IOException { argument
181 final StructStatVfs stat = Os.fstatvfs(fd);
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapUtils.java191 AssetFileDescriptor fd = context.getContentResolver()
194 if(fd == null)
198 is = fd.createInputStream();
/packages/apps/Mms/src/com/android/mms/
H A DTempFileProvider.java104 ParcelFileDescriptor fd = null;
113 fd = getTempStoreFd(mode);
117 return fd;
/packages/apps/UnifiedEmail/src/com/android/mail/
H A DMailLogService.java165 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
180 super.dump(fd, writer,args);
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DTestLoaderManager.java223 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
224 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);
/packages/apps/UnifiedEmail/src/com/android/mail/content/
H A DObjectCursorLoader.java172 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
173 super.dump(prefix, fd, writer, args);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DThumbnail.java256 public static Bitmap createVideoThumbnail(FileDescriptor fd, int targetWidth) { argument
257 return createVideoThumbnail(null, fd, targetWidth);
264 private static Bitmap createVideoThumbnail(String filePath, FileDescriptor fd, int targetWidth) { argument
271 retriever.setDataSource(fd);
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_hdp.cpp63 int channel_id, bthl_channel_state_t state, int fd) {
75 // TODO(BT) check if fd is only valid for BTHH_CONN_STATE_CONNECTED state
77 fileDescriptor = jniCreateFileDescriptor(sCallbackEnv, fd);
79 ALOGE("Failed to convert file descriptor, fd: %d", fd);
62 channel_state_callback(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int channel_id, bthl_channel_state_t state, int fd) argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DUtils.java202 public static void closeSilently(ParcelFileDescriptor fd) { argument
204 if (fd != null) fd.close();
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
H A DUtils.java202 public static void closeSilently(ParcelFileDescriptor fd) { argument
204 if (fd != null) fd.close();
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
H A Dver4_dict_buffers.cpp116 const int fd = open(bodyFilePath, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); local
117 if (fd == -1) {
122 FILE *const file = fdopen(fd, "wb");
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
H A DCardEmulationManager.java106 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
107 mServiceCache.dump(fd, pw, args);
108 mPreferredServices.dump(fd, pw, args);
109 mAidCache.dump(fd, pw, args);
110 mHostEmulationManager.dump(fd, pw, args);
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_security/src/
H A Ddm_security.c86 int fd; local
88 while ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
92 int b = read(fd, &pbBuffer[count], wLength - count);
99 close(fd);

Completed in 1065 milliseconds

123