/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 99 static MinadbdErrorCode RunAdbFuseSideload(int sfd, const std::string& args, in RunAdbFuseSideload() argument 101 auto pieces = android::base::Split(args, ":"); in RunAdbFuseSideload() 106 LOG(ERROR) << "bad sideload-host arguments: " << args; in RunAdbFuseSideload() 146 static void SideloadHostService(unique_fd sfd, const std::string& args) { in SideloadHostService() argument 148 exit(RunAdbFuseSideload(sfd.get(), args, &status)); in SideloadHostService() 152 static void RescueInstallHostService(unique_fd sfd, const std::string& args) { in RescueInstallHostService() argument 154 if (auto result = RunAdbFuseSideload(sfd.get(), args, &status); result != kMinadbdSuccess) { in RescueInstallHostService() 211 static void WipeDeviceService(unique_fd fd, const std::string& args) { in WipeDeviceService() argument 212 auto pieces = android::base::Split(args, ":"); in WipeDeviceService() 214 LOG(ERROR) << "Failed to parse wipe device command arguments " << args; in WipeDeviceService() [all …]
|
/bootable/recovery/updater/ |
D | install.cpp | 100 std::vector<std::string> args; in UIPrintFn() local 101 if (!ReadArgs(state, argv, &args)) { in UIPrintFn() 105 std::string buffer = android::base::Join(args, ""); in UIPrintFn() 124 std::vector<std::string> args; in PackageExtractFileFn() local 125 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 129 const std::string& zip_path = args[0]; in PackageExtractFileFn() 130 const std::string& dest_path = args[1]; in PackageExtractFileFn() 169 std::vector<std::string> args; in PackageExtractFileFn() local 170 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 174 const std::string& zip_path = args[0]; in PackageExtractFileFn() [all …]
|
D | dynamic_partitions.cpp | 71 std::vector<std::unique_ptr<Value>> args; in ReadStringArgs() local 72 if (!ReadValueArgs(state, argv, &args)) { in ReadStringArgs() 76 CHECK_EQ(args.size(), arg_names.size()); in ReadStringArgs() 79 if (args[i]->type != Value::Type::STRING) { in ReadStringArgs() 87 std::transform(args.begin(), args.end(), std::back_inserter(ret), in ReadStringArgs() 122 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn() local 123 if (args.empty()) return StringValue(""); in UnmapPartitionFn() 125 return UnmapPartitionOnDeviceMapper(args[0]) ? StringValue("t") : StringValue(""); in UnmapPartitionFn() 130 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn() local 131 if (args.empty()) return StringValue(""); in MapPartitionFn() [all …]
|
D | blockimg.cpp | 196 uint64_t args[2] = { static_cast<uint64_t>(offset), size }; in discard_blocks() local 197 if (ioctl(fd, BLKDISCARD, &args) == -1) { in discard_blocks() 1639 std::vector<std::unique_ptr<Value>> args; in PerformBlockImageUpdate() local 1640 if (!ReadValueArgs(state, argv, &args)) { in PerformBlockImageUpdate() 1649 const std::unique_ptr<Value>& blockdev_filename = args[0]; in PerformBlockImageUpdate() 1650 const std::unique_ptr<Value>& transfer_list_value = args[1]; in PerformBlockImageUpdate() 1651 const std::unique_ptr<Value>& new_data_fn = args[2]; in PerformBlockImageUpdate() 1652 const std::unique_ptr<Value>& patch_data_fn = args[3]; in PerformBlockImageUpdate() 2065 std::vector<std::unique_ptr<Value>> args; in RangeSha1Fn() local 2066 if (!ReadValueArgs(state, argv, &args)) { in RangeSha1Fn() [all …]
|
/bootable/recovery/tests/component/ |
D | applypatch_modes_test.cpp | 80 static int InvokeApplyPatchModes(const std::vector<std::string>& args) { in InvokeApplyPatchModes() argument 81 auto args_to_call = StringVectorToNullTerminatedArray(args); in InvokeApplyPatchModes() 104 std::vector<std::string> args{ in TEST_F() local 115 ASSERT_EQ(0, InvokeApplyPatchModes(args)); in TEST_F() 122 std::vector<std::string> args{ in TEST_F() local 128 ASSERT_EQ(0, InvokeApplyPatchModes(args)); in TEST_F() 147 std::vector<std::string> args{ in TEST_F() local 150 ASSERT_EQ(0, InvokeApplyPatchModes(args)); in TEST_F() 156 std::vector<std::string> args{ in TEST_F() local 160 ASSERT_NE(0, InvokeApplyPatchModes(args)); in TEST_F() [all …]
|
D | imgdiff_test.cpp | 128 std::vector<const char*> args = { in TEST() local 131 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 173 std::vector<const char*> args = { in TEST() local 176 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 227 std::vector<const char*> args = { in TEST() local 230 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 275 std::vector<const char*> args = { in TEST() local 278 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 323 std::vector<const char*> args = { in TEST() local 326 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() [all …]
|
D | verifier_test.cpp | 252 std::vector<std::string> args = GetParam(); in SetUp() local 253 std::string path = from_testdata_base(args[0]); in SetUp() 259 for (auto it = ++args.cbegin(); it != args.cend(); ++it) { in SetUp()
|
D | updater_test.cpp | 149 std::vector<std::unique_ptr<Value>> args; in BlobToString() local 150 if (!ReadValueArgs(state, argv, &args)) { in BlobToString() 154 if (args[0]->type != Value::Type::BLOB) { in BlobToString() 158 args[0]->type = Value::Type::STRING; in BlobToString() 159 return args[0].release(); in BlobToString()
|
/bootable/recovery/updater_sample/tools/ |
D | gen_update_config.py | 153 args = parser.parse_args() 155 if not args.out.endswith('.json'): 160 package=args.package, 161 url=args.url, 162 ab_install_type=args.ab_install_type, 163 ab_force_switch_slot=args.ab_force_switch_slot, 164 ab_verify_payload_metadata=args.ab_verify_payload_metadata) 166 gen.write(args.out) 167 print('Config is written to ' + args.out)
|
/bootable/recovery/edify/ |
D | expr.cpp | 261 std::vector<std::string> args; in LessThanIntFn() local 262 if (!ReadArgs(state, argv, &args)) { in LessThanIntFn() 268 if (!android::base::ParseInt(args[0].c_str(), &l_int)) { in LessThanIntFn() 269 state->errmsg = "failed to parse int in " + args[0]; in LessThanIntFn() 274 if (!android::base::ParseInt(args[1].c_str(), &r_int)) { in LessThanIntFn() 275 state->errmsg = "failed to parse int in " + args[1]; in LessThanIntFn() 289 std::vector<std::string> args; in GreaterThanIntFn() local 290 if (!ReadArgs(state, argv, &args)) { in GreaterThanIntFn() 296 if (!android::base::ParseInt(args[0].c_str(), &l_int)) { in GreaterThanIntFn() 297 state->errmsg = "failed to parse int in " + args[0]; in GreaterThanIntFn() [all …]
|
D | parser.yy | 62 std::vector<std::unique_ptr<Expr>>* args; 68 %type <args> arglist
|
/bootable/recovery/update_verifier/ |
D | care_map_generator.py | 108 args = parser.parse_args(argv) 111 logging.basicConfig(level=logging.INFO if args.verbose else logging.WARNING, 114 with open(args.input_care_map, 'r') as input_care_map: 117 if args.parse_proto: 118 result = ParseProtoMessage(content, args.fingerprint_enabled) 121 content.rstrip().splitlines(), args.fingerprint_enabled) 124 with open(args.output_file, 'w') as output:
|
/bootable/recovery/ |
D | interlace-frames.py | 104 args = parser.parse_args(argv) 106 if args.deinterlace: 108 deinterlace(args.output, args.input[0]) 110 interlace(args.output, args.input)
|
D | recovery_main.cpp | 115 std::vector<std::string> args(argv, argv + argc); in get_args() local 118 if (args.size() == 1) { in get_args() 125 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args() 127 LOG(INFO) << "Got " << args.size() << " arguments from boot message"; in get_args() 134 if (args.size() == 1 && has_cache) { in get_args() 143 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args() 145 LOG(INFO) << "Got " << args.size() << " arguments from " << COMMAND_FILE; in get_args() 152 std::vector<std::string> options(args.cbegin() + 1, args.cend()); in get_args() 159 if (args.size() == 1 && boot_command == "boot-fastboot") { in get_args() 160 args.emplace_back("--fastboot"); in get_args() [all …]
|
D | fsck_unshare_blocks.cpp | 84 std::vector<std::string> args = { TMP_E2FSCK_BIN, "-p", "-E", "unshare_blocks", in run_e2fsck() local 86 std::vector<char*> argv(args.size()); in run_e2fsck() 87 std::transform(args.cbegin(), args.cend(), argv.begin(), in run_e2fsck()
|
D | recovery.h | 24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
|
D | recovery.cpp | 678 static void set_retry_bootloader_message(int retry_count, const std::vector<std::string>& args) { in set_retry_bootloader_message() argument 680 for (const auto& arg : args) { in set_retry_bootloader_message() 725 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args) { in start_recovery() argument 764 auto args_to_parse = StringVectorToNullTerminatedArray(args); in start_recovery() 844 for (const auto& arg : args) { in start_recovery() 881 set_retry_bootloader_message(retry_count + 1, args); in start_recovery() 894 set_retry_bootloader_message(retry_count, args); in start_recovery()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 130 std::vector<std::string>* args); 132 std::vector<std::string>* args, size_t start, size_t len); 137 std::vector<std::unique_ptr<Value>>* args); 139 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len);
|
/bootable/recovery/fastboot/ |
D | fastboot.h | 24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 225 std::vector<char*> StringVectorToNullTerminatedArray(const std::vector<std::string>& args) { in StringVectorToNullTerminatedArray() argument 226 std::vector<char*> result(args.size()); in StringVectorToNullTerminatedArray() 227 std::transform(args.cbegin(), args.cend(), result.begin(), in StringVectorToNullTerminatedArray()
|
D | roots.cpp | 91 static int exec_cmd(const std::vector<std::string>& args) { in exec_cmd() argument 92 CHECK(!args.empty()); in exec_cmd() 93 auto argv = StringVectorToNullTerminatedArray(args); in exec_cmd() 104 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd()
|
/bootable/recovery/install/ |
D | install.cpp | 388 std::vector<std::string> args; in try_update_binary() local 390 is_ab ? SetUpAbUpdateCommands(package, zip, pipe_write.get(), &args) in try_update_binary() 391 : SetUpNonAbUpdateCommands(package, zip, retry_count, pipe_write.get(), &args); in try_update_binary() 409 auto chr_args = StringVectorToNullTerminatedArray(args); in try_update_binary() 434 std::string args = space == std::string::npos ? "" : android::base::Trim(line.substr(space)); in try_update_binary() local 437 std::vector<std::string> tokens = android::base::Split(args, " "); in try_update_binary() 447 std::vector<std::string> tokens = android::base::Split(args, " "); in try_update_binary() 455 ui->PrintOnScreenOnly("%s\n", args.c_str()); in try_update_binary() 469 if (!args.empty()) { in try_update_binary() 471 log_buffer->push_back(args); in try_update_binary()
|
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/ |
D | UpdateManagerTest.java | 128 doAnswer(args -> { in mockContextStartServiceAnswer() 129 Intent intent = args.getArgument(0); in mockContextStartServiceAnswer()
|
/bootable/recovery/otautil/include/otautil/ |
D | sysutil.h | 111 std::vector<char*> StringVectorToNullTerminatedArray(const std::vector<std::string>& args);
|
/bootable/recovery/tests/unit/ |
D | sysutil_test.cpp | 192 std::vector<std::string> args{ "foo", "bar", "baz" }; in TEST() local 193 auto args_with_nullptr = StringVectorToNullTerminatedArray(args); in TEST()
|