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 | 649 def print_xml(results, apps_redefine_base, partition, fd=sys.stdout): argument 651 fd.write('<?xml version="1.0" encoding="utf-8"?>\n') 652 fd.write('<!-- for the partition: /%s -->\n' % partition) 653 fd.write('<permissions>\n') 656 fd.write(' <!-- Additional permissions on top of %s -->\n' % 658 fd.write(' <privapp-permissions package="%s">\n' % package_name) 660 fd.write(' <permission name="%s"/>\n' % p) 661 fd.write(' </privapp-permissions>\n') 662 fd.write('\n') 664 fd.write('</permissions>\n')
|
/development/samples/ReceiveContentDemo/src/com/example/android/receivecontent/ |
D | MyReceiver.java | 131 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); in showMessage() local 132 lengthBytes = fd.getLength(); in showMessage()
|
/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()
|