Lines Matching refs:base
58 android::base::SetProperty("sys.usb.config", state); in SetUsbConfig()
59 return android::base::WaitForProperty("sys.usb.state", state); in SetUsbConfig()
64 if (!android::base::StartsWith(message, kMinadbdCommandPrefix)) { in ParseMinadbdCommand()
70 auto cmd_code = android::base::get_unaligned<uint32_t>(cmd_code_string.c_str()); in ParseMinadbdCommand()
82 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), status); in WriteStatusToFd()
84 if (!android::base::WriteFully(fd, message, kMinadbdMessageSize)) { in WriteStatusToFd()
155 if (!android::base::ReadFully(socket_fd, buffer, kMinadbdMessageSize)) { in HandleMessageFromMinadbd()
167 << android::base::get_unaligned<unsigned int>( in HandleMessageFromMinadbd()
185 RecoveryUI* ui, pid_t minadbd_pid, android::base::unique_fd&& socket_fd, in ListenAndExecuteMinadbdCommands()
187 android::base::unique_fd epoll_fd(epoll_create1(O_CLOEXEC)); in ListenAndExecuteMinadbdCommands()
279 android::base::unique_fd recovery_socket; in CreateMinadbdServiceAndExecuteCommands()
280 android::base::unique_fd minadbd_socket; in CreateMinadbdServiceAndExecuteCommands()
281 if (!android::base::Socketpair(AF_UNIX, SOCK_STREAM, 0, &recovery_socket, &minadbd_socket)) { in CreateMinadbdServiceAndExecuteCommands()
336 std::string usb_state = android::base::GetProperty("sys.usb.state", "none"); in ApplyFromAdb()