Searched refs:fd (Results 1 – 8 of 8) sorted by relevance
/development/tools/line_endings/ |
D | line_endings.c | 46 int fd; in main() local 52 fd = open(argv[i], O_RDWR); in main() 53 if (fd < 0) { in main() 58 len = lseek(fd, 0, SEEK_END); in main() 59 lseek(fd, 0, SEEK_SET); in main() 74 amt = read(fd, buf, amt2); in main() 91 (void)ftruncate(fd, 0); in main() 92 lseek(fd, 0, SEEK_SET); in main() 96 ssize_t amt = write(fd, root->buf, amt2); in main() 107 close(fd); in main()
|
/development/gsi/gsi_util/gsi_util/utils/ |
D | file_utils.py | 37 fd, path = tempfile.mkstemp(**kwargs) 38 os.close(fd)
|
/development/scripts/ |
D | native_heapdump_viewer.py | 343 fd = FrameDescription("???", "???", lib) 345 resolved_addrs[addr] = fd 373 fd = Addr2Line(resolved_addrs, node.addr) 380 …total_percent, parent_percent, node.number, indent, node.addr, fd.library, fd.function, fd.locatio… 386 fd = Addr2Line(resolved_addrs, node.addr) 388 lib = fd.library 390 lib = os.path.basename(fd.library) 394 …f%% %6d %s%s %s %s" % (node.size, total_percent, node.number, extra, lib, fd.function, fd.location)
|
D | usb-reset-by-serial.py | 60 fd = open(device, "wb") 65 fcntl.ioctl(fd, USBDEVFS_RESET, 0) 66 fd.close()
|
D | native_heapdump_viewer_tests.py | 29 fd, self._tmp_file_name = tempfile.mkstemp() 30 os.write(fd, contents.encode()) 31 os.close(fd)
|
/development/tools/privapp_permissions/ |
D | privapp_permissions.py | 431 def print_xml(results, apps_redefine_base, fd=sys.stdout): argument 433 fd.write('<?xml version="1.0" encoding="utf-8"?>\n<permissions>\n') 436 fd.write(' <!-- Additional permissions on top of %s -->\n' % 438 fd.write(' <privapp-permissions package="%s">\n' % package_name) 440 fd.write(' <permission name="%s"/>\n' % p) 441 fd.write(' </privapp-permissions>\n') 442 fd.write('\n') 444 fd.write('</permissions>\n')
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | ImageCache.java | 335 FileDescriptor fd = ((FileInputStream) inputStream).getFD(); in getBitmapFromDiskCache() local 340 fd, Integer.MAX_VALUE, Integer.MAX_VALUE, this); in getBitmapFromDiskCache()
|
/development/ndk/zlib/ |
D | zlib.h | 1247 ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
|