Home
last modified time | relevance | path

Searched refs:message (Results 1 – 16 of 16) sorted by relevance

/bootable/recovery/install/
Dadb_install.cpp63 static MinadbdCommand ParseMinadbdCommand(const std::string& message) { in ParseMinadbdCommand() argument
64 if (!android::base::StartsWith(message, kMinadbdCommandPrefix)) { in ParseMinadbdCommand()
65 LOG(ERROR) << "Failed to parse command in message " << message; in ParseMinadbdCommand()
69 auto cmd_code_string = message.substr(strlen(kMinadbdCommandPrefix)); in ParseMinadbdCommand()
80 char message[kMinadbdMessageSize]; in WriteStatusToFd() local
81 memcpy(message, kMinadbdStatusPrefix, strlen(kMinadbdStatusPrefix)); in WriteStatusToFd()
82 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), status); in WriteStatusToFd()
84 if (!android::base::WriteFully(fd, message, kMinadbdMessageSize)) { in WriteStatusToFd()
85 PLOG(ERROR) << "Failed to write message " << message; in WriteStatusToFd()
164 std::string message(buffer, buffer + kMinadbdMessageSize); in HandleMessageFromMinadbd() local
[all …]
Dinstall.cpp687 LOG(ERROR) << "Failed to get canonical of " << package_path << ", " << ec.message(); in SetupPackageMount()
/bootable/recovery/tests/unit/
Duncrypt_test.cpp80 void SetupOrClearBcb(bool isSetup, const std::string& message, in SetupOrClearBcb() argument
109 int length = static_cast<int>(message.size()); in SetupOrClearBcb()
113 ASSERT_TRUE(android::base::WriteFully(sockfd, message.data(), length)) in SetupOrClearBcb()
185 std::string message = "--update_message=abc value"; in TEST_F() local
187 SetupOrClearBcb(true, message, message_in_bcb); in TEST_F()
195 message = "--wipe_ab\n--wipe_package="s + wipe_package.path + "\n--reason=wipePackage"s; in TEST_F()
197 SetupOrClearBcb(true, message, message_in_bcb); in TEST_F()
Dscreen_ui_test.cpp79 std::string message; in TEST_F() local
80 ASSERT_FALSE(menu.ItemsOverflow(&message)); in TEST_F()
94 std::string message; in TEST_F() local
95 ASSERT_FALSE(menu.ItemsOverflow(&message)); in TEST_F()
109 std::string message; in TEST_F() local
110 ASSERT_FALSE(menu.ItemsOverflow(&message)); in TEST_F()
124 std::string message; in TEST_F() local
125 ASSERT_TRUE(menu.ItemsOverflow(&message)); in TEST_F()
126 ASSERT_EQ("Current item: 1/5", message); in TEST_F()
/bootable/recovery/minadbd/
Dminadbd_services.cpp68 char message[kMinadbdMessageSize]; in WriteCommandToFd() local
69 memcpy(message, kMinadbdCommandPrefix, strlen(kMinadbdStatusPrefix)); in WriteCommandToFd()
70 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), cmd); in WriteCommandToFd()
72 if (!android::base::WriteFully(fd, message, kMinadbdMessageSize)) { in WriteCommandToFd()
73 PLOG(ERROR) << "Failed to write message " << message; in WriteCommandToFd()
88 std::string message(buffer, buffer + kMinadbdMessageSize); in WaitForCommandStatus() local
89 if (!android::base::StartsWith(message, kMinadbdStatusPrefix)) { in WaitForCommandStatus()
90 LOG(ERROR) << "Failed to parse status in " << message; in WaitForCommandStatus()
95 message.substr(strlen(kMinadbdStatusPrefix)).c_str()); in WaitForCommandStatus()
/bootable/recovery/edify/include/edify/
Dupdater_interface.h34 virtual void WriteToCommandPipe(const std::string_view message, bool flush = false) const = 0;
37 virtual void UiPrint(const std::string_view message) const = 0;
/bootable/recovery/updater/
Dupdater.cpp98 void Updater::WriteToCommandPipe(const std::string_view message, bool flush) const { in WriteToCommandPipe() argument
99 fprintf(cmd_pipe_.get(), "%s\n", std::string(message).c_str()); in WriteToCommandPipe()
105 void Updater::UiPrint(const std::string_view message) const { in UiPrint()
108 std::vector<std::string> lines = android::base::Split(std::string(message), "\n"); in UiPrint()
118 LOG(INFO) << message; in UiPrint()
Dupdater_main.cpp44 const char* message) { in UpdaterLogger() argument
45 fprintf(stdout, "%s\n", message); in UpdaterLogger()
/bootable/recovery/update_verifier/
Dcare_map.proto22 message CareMap {
23 message PartitionInfo {
Dcare_map_generator.py62 def ParseProtoMessage(message, fingerprint_enabled): argument
74 care_map_proto.MergeFromString(message)
/bootable/recovery/updater/include/updater/
Dupdater.h49 void WriteToCommandPipe(const std::string_view message, bool flush = false) const override;
52 void UiPrint(const std::string_view message) const override;
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp297 bool ReadMiscVirtualAbMessage(misc_virtual_ab_message* message, std::string* err) { in ReadMiscVirtualAbMessage() argument
298 return ReadMiscPartitionSystemSpace(message, sizeof(*message), in ReadMiscVirtualAbMessage()
302 bool WriteMiscVirtualAbMessage(const misc_virtual_ab_message& message, std::string* err) { in WriteMiscVirtualAbMessage() argument
303 return WriteMiscPartitionSystemSpace(&message, sizeof(message), in WriteMiscVirtualAbMessage()
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h172 bool ReadMiscVirtualAbMessage(misc_virtual_ab_message* message, std::string* err);
173 bool WriteMiscVirtualAbMessage(const misc_virtual_ab_message& message, std::string* err);
/bootable/recovery/
Drecovery_main.cpp78 const char* message) { in UiLogger() argument
81 ui->Print("E:%s\n", message); in UiLogger()
83 fprintf(stdout, "%c:%s\n", log_characters[severity], message); in UiLogger()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/services/
DPrepareUpdateService.java304 PreparationFailedException(String message) { in PreparationFailedException() argument
305 super(message); in PreparationFailedException()
/bootable/recovery/tools/image_generator/
DImageGenerator.java160 public LocalizedStringNotFoundException(String message) { in LocalizedStringNotFoundException() argument
161 super(message); in LocalizedStringNotFoundException()
164 public LocalizedStringNotFoundException(String message, Throwable cause) { in LocalizedStringNotFoundException() argument
165 super(message, cause); in LocalizedStringNotFoundException()