Lines Matching refs:socket

199 static bool write_status_to_socket(int status, int socket) {  in write_status_to_socket()  argument
202 if (socket == -1) { in write_status_to_socket()
206 return android::base::WriteFully(socket, &status_out, sizeof(int)); in write_status_to_socket()
244 const std::string& blk_dev, bool encrypted, bool f2fs_fs, int socket) { in ProductBlockMap() argument
258 if (!write_status_to_socket(0, socket)) { in ProductBlockMap()
259 LOG(ERROR) << "failed to write to socket " << socket; in ProductBlockMap()
339 write_status_to_socket(progress, socket); in ProductBlockMap()
469 static int Uncrypt(const std::string& input_path, const std::string& map_file, int socket) { in Uncrypt() argument
501 return ProductBlockMap(path, map_file, blk_dev, encrypted, f2fs_fs, socket); in Uncrypt()
514 static bool uncrypt_wrapper(const char* input_path, const char* map_file, const int socket) { in uncrypt_wrapper() argument
521 write_status_to_socket(-1, socket); in uncrypt_wrapper()
531 int status = Uncrypt(input_path, map_file, socket); in uncrypt_wrapper()
543 write_status_to_socket(-1, socket); in uncrypt_wrapper()
551 write_status_to_socket(100, socket); in uncrypt_wrapper()
556 static bool clear_bcb(const int socket) { in clear_bcb() argument
560 write_status_to_socket(-1, socket); in clear_bcb()
563 write_status_to_socket(100, socket); in clear_bcb()
567 static bool setup_bcb(const int socket) { in setup_bcb() argument
570 if (!android::base::ReadFully(socket, &length, 4)) { in setup_bcb()
579 if (!android::base::ReadFully(socket, &content[0], length)) { in setup_bcb()
601 write_status_to_socket(-1, socket); in setup_bcb()
606 write_status_to_socket(-1, socket); in setup_bcb()
610 write_status_to_socket(100, socket); in setup_bcb()