/bootable/recovery/updater/ |
D | install.cpp | 86 std::vector<std::string> args; in UIPrintFn() local 87 if (!ReadArgs(state, argv, &args)) { in UIPrintFn() 91 std::string buffer = android::base::Join(args, ""); in UIPrintFn() 110 std::vector<std::string> args; in PackageExtractFileFn() local 111 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 115 const std::string& zip_path = args[0]; in PackageExtractFileFn() 116 std::string dest_path = args[1]; in PackageExtractFileFn() 161 std::vector<std::string> args; in PackageExtractFileFn() local 162 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 166 const std::string& zip_path = args[0]; in PackageExtractFileFn() [all …]
|
D | dynamic_partitions.cpp | 45 std::vector<std::unique_ptr<Value>> args; in ReadStringArgs() local 46 if (!ReadValueArgs(state, argv, &args)) { in ReadStringArgs() 50 CHECK_EQ(args.size(), arg_names.size()); in ReadStringArgs() 53 if (args[i]->type != Value::Type::STRING) { in ReadStringArgs() 61 std::transform(args.begin(), args.end(), std::back_inserter(ret), in ReadStringArgs() 68 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn() local 69 if (args.empty()) return StringValue(""); in UnmapPartitionFn() 72 return updater_runtime->UnmapPartitionOnDeviceMapper(args[0]) ? StringValue("t") in UnmapPartitionFn() 78 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn() local 79 if (args.empty()) return StringValue(""); in MapPartitionFn() [all …]
|
D | updater_runtime.cpp | 156 int UpdaterRuntime::RunProgram(const std::vector<std::string>& args, bool is_vfork) const { in RunProgram() argument 157 CHECK(!args.empty()); in RunProgram() 158 auto argv = StringVectorToNullTerminatedArray(args); in RunProgram() 159 LOG(INFO) << "about to run program [" << args[0] << "] with " << argv.size() << " args"; in RunProgram() 181 int UpdaterRuntime::Tune2Fs(const std::vector<std::string>& args) const { in Tune2Fs() 182 auto tune2fs_args = StringVectorToNullTerminatedArray(args); in Tune2Fs()
|
D | simulator_runtime.cpp | 74 int SimulatorRuntime::RunProgram(const std::vector<std::string>& args, bool /* is_vfork */) const { in RunProgram() argument 75 LOG(INFO) << "Running program with args " << android::base::Join(args, " "); in RunProgram() 79 int SimulatorRuntime::Tune2Fs(const std::vector<std::string>& args) const { in Tune2Fs() 80 LOG(INFO) << "Running Tune2Fs with args " << android::base::Join(args, " "); in Tune2Fs()
|
D | blockimg.cpp | 201 uint64_t args[2] = { static_cast<uint64_t>(offset), size }; in discard_blocks() local 202 if (ioctl(fd, BLKDISCARD, &args) == -1) { in discard_blocks() 1644 std::vector<std::unique_ptr<Value>> args; in PerformBlockImageUpdate() local 1645 if (!ReadValueArgs(state, argv, &args)) { in PerformBlockImageUpdate() 1654 const std::unique_ptr<Value>& blockdev_filename = args[0]; in PerformBlockImageUpdate() 1655 const std::unique_ptr<Value>& transfer_list_value = args[1]; in PerformBlockImageUpdate() 1656 const std::unique_ptr<Value>& new_data_fn = args[2]; in PerformBlockImageUpdate() 1657 const std::unique_ptr<Value>& patch_data_fn = args[3]; in PerformBlockImageUpdate() 2074 std::vector<std::unique_ptr<Value>> args; in RangeSha1Fn() local 2075 if (!ReadValueArgs(state, argv, &args)) { in RangeSha1Fn() [all …]
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 100 static MinadbdErrorCode RunAdbFuseSideload(int sfd, const std::string& args, in RunAdbFuseSideload() argument 102 auto pieces = android::base::Split(args, ":"); in RunAdbFuseSideload() 107 LOG(ERROR) << "bad sideload-host arguments: " << args; in RunAdbFuseSideload() 175 static void SideloadHostService(unique_fd sfd, const std::string& args) { in SideloadHostService() argument 178 auto error = RunAdbFuseSideload(sfd.get(), args, &status); in SideloadHostService() 191 static void RescueInstallHostService(unique_fd sfd, const std::string& args) { in RescueInstallHostService() argument 193 if (auto result = RunAdbFuseSideload(sfd.get(), args, &status); result != kMinadbdSuccess) { in RescueInstallHostService() 280 static void WipeDeviceService(unique_fd fd, const std::string& args) { in WipeDeviceService() argument 281 auto pieces = android::base::Split(args, ":"); in WipeDeviceService() 283 LOG(ERROR) << "Failed to parse wipe device command arguments " << args; in WipeDeviceService() [all …]
|
/bootable/recovery/tests/unit/ |
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 …]
|
/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 …]
|
/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).encode() 121 content.rstrip().splitlines(), args.fingerprint_enabled) 124 with open(args.output_file, 'wb') 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 | 121 std::vector<std::string> args(argv, argv + argc); in get_args() local 124 if (args.size() == 1) { in get_args() 131 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args() 133 LOG(INFO) << "Got " << args.size() << " arguments from boot message"; in get_args() 140 if (args.size() == 1 && HasCache()) { in get_args() 149 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args() 151 LOG(INFO) << "Got " << args.size() << " arguments from " << COMMAND_FILE; in get_args() 158 std::vector<std::string> options(args.cbegin() + 1, args.cend()); in get_args() 165 if (args.size() == 1 && boot_command == "boot-fastboot") { in get_args() 166 args.emplace_back("--fastboot"); in get_args() [all …]
|
D | recovery.h | 24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
|
D | recovery.cpp | 546 static void set_retry_bootloader_message(int retry_count, const std::vector<std::string>& args) { in set_retry_bootloader_message() argument 548 for (const auto& arg : args) { in set_retry_bootloader_message() 593 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args) { in start_recovery() argument 632 auto args_to_parse = StringVectorToNullTerminatedArray(args); in start_recovery() 713 for (const auto& arg : args) { in start_recovery() 746 set_retry_bootloader_message(retry_count + 1, args); in start_recovery() 779 set_retry_bootloader_message(retry_count, args); in start_recovery()
|
/bootable/recovery/tests/unit/host/ |
D | imgdiff_test.cpp | 127 std::vector<const char*> args = { in TEST() local 130 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 172 std::vector<const char*> args = { in TEST() local 175 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 226 std::vector<const char*> args = { in TEST() local 229 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 274 std::vector<const char*> args = { in TEST() local 277 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() 322 std::vector<const char*> args = { in TEST() local 325 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST() [all …]
|
/bootable/recovery/edify/include/edify/ |
D | updater_runtime_interface.h | 65 virtual int RunProgram(const std::vector<std::string>& args, bool is_vfork) const = 0; 68 virtual int Tune2Fs(const std::vector<std::string>& args) const = 0;
|
D | expr.h | 131 std::vector<std::string>* args); 133 std::vector<std::string>* args, size_t start, size_t len); 138 std::vector<std::unique_ptr<Value>>* args); 140 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/updater/include/updater/ |
D | updater_runtime.h | 53 int RunProgram(const std::vector<std::string>& args, bool is_vfork) const override; 54 int Tune2Fs(const std::vector<std::string>& args) const override;
|
D | simulator_runtime.h | 50 int RunProgram(const std::vector<std::string>& args, bool is_vfork) const override; 51 int Tune2Fs(const std::vector<std::string>& args) const override;
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 241 std::vector<char*> StringVectorToNullTerminatedArray(const std::vector<std::string>& args) { in StringVectorToNullTerminatedArray() argument 242 std::vector<char*> result(args.size()); in StringVectorToNullTerminatedArray() 243 std::transform(args.cbegin(), args.cend(), result.begin(), in StringVectorToNullTerminatedArray()
|
/bootable/recovery/install/ |
D | install.cpp | 418 std::vector<std::string> args; in TryUpdateBinary() local 421 ? SetUpAbUpdateCommands(package_path, zip, pipe_write.get(), &args) in TryUpdateBinary() 422 : SetUpNonAbUpdateCommands(package_path, zip, retry_count, pipe_write.get(), &args); in TryUpdateBinary() 440 auto chr_args = StringVectorToNullTerminatedArray(args); in TryUpdateBinary() 465 std::string args = space == std::string::npos ? "" : android::base::Trim(line.substr(space)); in TryUpdateBinary() local 468 std::vector<std::string> tokens = android::base::Split(args, " "); in TryUpdateBinary() 478 std::vector<std::string> tokens = android::base::Split(args, " "); in TryUpdateBinary() 486 ui->PrintOnScreenOnly("%s\n", args.c_str()); in TryUpdateBinary() 500 if (!args.empty()) { in TryUpdateBinary() 502 log_buffer->push_back(args); in TryUpdateBinary()
|
/bootable/recovery/recovery_utils/ |
D | roots.cpp | 92 static int exec_cmd(const std::vector<std::string>& args) { in exec_cmd() argument 93 CHECK(!args.empty()); in exec_cmd() 94 auto argv = StringVectorToNullTerminatedArray(args); in exec_cmd() 105 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd()
|
/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 | 114 std::vector<char*> StringVectorToNullTerminatedArray(const std::vector<std::string>& args);
|