Home
last modified time | relevance | path

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

/development/tools/line_endings/
Dline_endings.c46 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/
Dfile_utils.py37 fd, path = tempfile.mkstemp(**kwargs)
38 os.close(fd)
/development/scripts/
Dnative_heapdump_viewer.py343 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)
Dusb-reset-by-serial.py60 fd = open(device, "wb")
65 fcntl.ioctl(fd, USBDEVFS_RESET, 0)
66 fd.close()
Dnative_heapdump_viewer_tests.py29 fd, self._tmp_file_name = tempfile.mkstemp()
30 os.write(fd, contents.encode())
31 os.close(fd)
/development/tools/privapp_permissions/
Dprivapp_permissions.py431 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/
DImageCache.java335 FileDescriptor fd = ((FileInputStream) inputStream).getFD(); in getBitmapFromDiskCache() local
340 fd, Integer.MAX_VALUE, Integer.MAX_VALUE, this); in getBitmapFromDiskCache()
/development/ndk/zlib/
Dzlib.h1247 ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));