Searched refs:block_device (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/ApkVerityTest/block_device_writer/ |
D | block_device_writer.cpp | 54 const char* block_device; member 81 ssize_t get_logical_block_size(const char* block_device) { in get_logical_block_size() argument 82 android::base::unique_fd fd(open(block_device, O_RDONLY)); in get_logical_block_size() 84 fprintf(stderr, "open %s failed\n", block_device); in get_logical_block_size() 195 args->block_device = *(arg++); in parse_args() 211 ssize_t block_size = get_logical_block_size(args->block_device); in main() 234 if (read_block_from_device(args->block_device, physical_block_offset, block_size, in main() 242 if (write_block_to_device(args->block_device, physical_block_offset, block_size, in main()
|
/frameworks/native/cmds/installd/ |
D | otapreopt_chroot.cpp | 107 std::string block_device = StringPrintf("/dev/block/by-name/%s", partition_name.c_str()); in TryExtraMount() local 108 int mount_result = mount(block_device.c_str(), in TryExtraMount()
|