Lines Matching refs:base
146 if (!android::base::WriteFully(wfd, buffer, size)) { in write_at_offset()
215 return android::base::WriteFully(socket, &status_out, sizeof(int)); in write_status_to_socket()
222 if (!android::base::ReadFileToString(uncrypt_path_file, &uncrypt_path)) { in find_uncrypt_package()
228 *package_name = android::base::Trim(uncrypt_path); in find_uncrypt_package()
235 if (!android::base::RemoveFileIfExists(map_file, &err)) { in produce_block_map()
265 std::string s = android::base::StringPrintf("%s\n%" PRId64 " %ld\n", in produce_block_map()
267 if (!android::base::WriteStringToFd(s, mapfd.get())) { in produce_block_map()
326 if (!android::base::ReadFully(fd.get(), buffers[tail].data(), to_read)) { in produce_block_map()
358 if (!android::base::WriteStringToFd( in produce_block_map()
359 android::base::StringPrintf("%zu\n", ranges.size() / 2), mapfd.get())) { in produce_block_map()
364 if (!android::base::WriteStringToFd( in produce_block_map()
365 android::base::StringPrintf("%d %d\n", ranges[i], ranges[i+1]), mapfd.get())) { in produce_block_map()
492 if (!android::base::ReadFully(socket, &length, 4)) { in setup_bcb()
501 if (!android::base::ReadFully(socket, &content[0], length)) { in setup_bcb()
590 if (android::base::ReadFully(socket_fd.get(), &code, 4)) { in main()