/bootable/recovery/updater/ |
D | install.cpp | 72 std::string name = updater->FindBlockDeviceName(partition->name); in UpdateBlockDeviceNameForPartition() local 73 if (name.empty()) { in UpdateBlockDeviceNameForPartition() 74 LOG(ERROR) << "Failed to find the block device " << partition->name; in UpdateBlockDeviceNameForPartition() 78 partition->name = std::move(name); in UpdateBlockDeviceNameForPartition() 84 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UIPrintFn() argument 87 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in UIPrintFn() 99 Value* PackageExtractFileFn(const char* name, State* state, in PackageExtractFileFn() argument 102 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 or 2 args, got %zu", name, in PackageExtractFileFn() 111 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse %zu args", name, in PackageExtractFileFn() 120 LOG(ERROR) << name << ": no " << zip_path << " in package"; in PackageExtractFileFn() [all …]
|
D | target_files.cpp | 107 bool TargetFile::EntryExists(const std::string_view name) const { in EntryExists() 109 std::string entry_path = path_ + "/" + std::string(name); in EntryExists() 119 return FindEntry(handle_, name, &img_entry) == 0; in EntryExists() 122 bool TargetFile::ReadEntryToString(const std::string_view name, std::string* content) const { in ReadEntryToString() argument 124 std::string entry_path = path_ + "/" + std::string(name); in ReadEntryToString() 130 if (auto find_err = FindEntry(handle_, name, &entry); find_err != 0) { in ReadEntryToString() 131 LOG(ERROR) << "failed to find " << name << " in the package: " << ErrorCodeString(find_err); in ReadEntryToString() 144 LOG(ERROR) << "failed to read " << name << " from package: " << ErrorCodeString(extract_err); in ReadEntryToString() 151 bool TargetFile::ExtractEntryToTempFile(const std::string_view name, in ExtractEntryToTempFile() argument 154 std::string entry_path = path_ + "/" + std::string(name); in ExtractEntryToTempFile() [all …]
|
D | dynamic_partitions.cpp | 36 static std::vector<std::string> ReadStringArgs(const char* name, State* state, in ReadStringArgs() argument 40 ErrorAbort(state, kArgsParsingFailure, "%s expects %zu arguments, got %zu", name, in ReadStringArgs() 55 arg_names[i].c_str(), name); in ReadStringArgs() 66 Value* UnmapPartitionFn(const char* name, State* state, in UnmapPartitionFn() argument 68 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn() 76 Value* MapPartitionFn(const char* name, State* state, in MapPartitionFn() argument 78 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn() 89 Value* UpdateDynamicPartitionsFn(const char* name, State* state, in UpdateDynamicPartitionsFn() argument 92 ErrorAbort(state, kArgsParsingFailure, "%s expects 1 arguments, got %zu", name, argv.size()); in UpdateDynamicPartitionsFn() 101 ErrorAbort(state, kArgsParsingFailure, "op_list argument to %s must be blob", name); in UpdateDynamicPartitionsFn()
|
D | Android.bp | 16 name: "libupdater_static_libs", 48 name: "libupdater_defaults", 61 name: "libupdater_device_defaults", 77 name: "libupdater_core", 106 name: "libupdater_device", 134 name: "libupdater_host", 166 name: "update_host_simulator",
|
D | update_simulator_main.cpp | 40 void Usage(std::string_view name) { in Usage() argument 41 LOG(INFO) << "Usage: " << name << "[--oem_settings <oem_property_file>]" in Usage() 47 Value* SimulatorPlaceHolderFn(const char* name, State* /* state */, in SimulatorPlaceHolderFn() argument 49 LOG(INFO) << "Skip function " << name << " in host simulation"; in SimulatorPlaceHolderFn() 82 auto option_name = OPTIONS[option_index].name; in main()
|
D | updater_runtime.cpp | 43 std::string UpdaterRuntime::FindBlockDeviceName(const std::string_view name) const { in FindBlockDeviceName() 44 return std::string(name); in FindBlockDeviceName() 48 const char* name; member 70 for (const auto& [name, value] : mount_flags_list) { in setMountFlag() 71 if (flag == name) { in setMountFlag()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 71 using Function = Value* (*)(const char* name, State* state, 76 std::string name; member 80 Expr(Function fn, const std::string& name, int start, int end) : in Expr() 82 name(name), in Expr() 96 Value* Literal(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 101 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 102 Value* LogicalAndFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 103 Value* LogicalOrFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 104 Value* LogicalNotFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 105 Value* SubstringFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); [all …]
|
/bootable/recovery/ |
D | TEST_MAPPING | 4 "name": "minadbd_test" 7 "name": "recovery_unit_test" 10 "name": "recovery_host_test",
|
D | Android.bp | 16 name: "recovery_defaults", 30 name: "librecovery_fastboot", 54 name: "librecovery_defaults", 86 name: "librecovery", 103 name: "init_recovery.rc", 111 name: "recovery", 147 name: "recovery-persist", 173 name: "recovery-refresh", 198 name: "res-testdata",
|
/bootable/recovery/edify/ |
D | expr.cpp | 50 std::unique_ptr<Value> v(expr->fn(expr->name.c_str(), state, expr->argv)); in Evaluate() 64 return expr->fn(expr->name.c_str(), state, expr->argv); in EvaluateValue() 78 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ConcatFn() argument 94 Value* IfElseFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IfElseFn() argument 114 Value* AbortFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in AbortFn() argument 124 Value* AssertFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in AssertFn() argument 139 Value* SleepFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in SleepFn() argument 154 Value* StdoutFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in StdoutFn() argument 165 Value* LogicalAndFn(const char* name, State* state, in LogicalAndFn() argument 178 Value* LogicalOrFn(const char* name, State* state, in LogicalOrFn() argument [all …]
|
/bootable/recovery/applypatch/include/applypatch/ |
D | applypatch.h | 51 Partition(const std::string& name, size_t size, const std::string& hash) in Partition() 52 : name(name), size(size), hash(hash) {} in Partition() 62 return !name.empty(); 65 std::string name; member
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 273 unique_fd daemon_service_to_fd(std::string_view name, atransport* /* transport */) { in daemon_service_to_fd() argument 275 if (android::base::ConsumePrefix(&name, "reboot:")) { in daemon_service_to_fd() 277 std::string args(name); in daemon_service_to_fd() 288 if (android::base::ConsumePrefix(&name, "rescue-install:")) { in daemon_service_to_fd() 290 std::string args(name); in daemon_service_to_fd() 293 } else if (android::base::ConsumePrefix(&name, "rescue-getprop:")) { in daemon_service_to_fd() 295 std::string args(name); in daemon_service_to_fd() 298 } else if (android::base::ConsumePrefix(&name, "rescue-wipe:")) { in daemon_service_to_fd() 300 std::string args(name); in daemon_service_to_fd() 309 if (name.starts_with("sideload:")) { in daemon_service_to_fd() [all …]
|
D | Android.bp | 16 name: "minadbd_defaults", 38 name: "libminadbd_services", 65 name: "libminadbd_headers", 77 name: "minadbd", 107 name: "minadbd_test",
|
/bootable/recovery/recovery_utils/ |
D | logging.cpp | 75 void check_and_fclose(FILE* fp, const std::string& name) { in check_and_fclose() argument 78 PLOG(ERROR) << "Failed to fsync " << name; in check_and_fclose() 81 PLOG(ERROR) << "Error in " << name; in check_and_fclose() 104 std::string name(filename); in logrotate() local 105 size_t dot = name.find_last_of('.'); in logrotate() 106 std::string sub = name.substr(0, dot); in logrotate() 115 name += ".1"; in logrotate() 117 std::string number = name.substr(dot + 1); in logrotate() 119 name += ".1"; in logrotate() 126 name = sub + "." + std::to_string(i + 1); in logrotate() [all …]
|
/bootable/recovery/applypatch/ |
D | Android.bp | 16 name: "applypatch_defaults", 31 name: "libapplypatch", 72 name: "libapplypatch_modes", 96 name: "applypatch", 133 name: "libimgdiff", 161 name: "imgdiff",
|
/bootable/recovery/recovery_ui/ |
D | Android.bp | 16 name: "librecovery_ui", 49 name: "librecovery_ui_default", 65 name: "librecovery_ui_wear", 81 name: "librecovery_ui_vr", 97 name: "librecovery_ui_ethernet",
|
/bootable/recovery/install/ |
D | fuse_install.cpp | 72 std::string name(de->d_name); in BrowseDirectory() local 76 if (name == "." || name == "..") continue; in BrowseDirectory() 77 dirs.push_back(name + "/"); in BrowseDirectory() 78 } else if (de->d_type == DT_REG && (android::base::EndsWithIgnoreCase(name, ".zip") || in BrowseDirectory() 79 android::base::EndsWithIgnoreCase(name, ".map"))) { in BrowseDirectory() 80 entries.push_back(name); in BrowseDirectory()
|
/bootable/recovery/update_verifier/ |
D | care_map_generator.py | 51 info.name = lines[index] 57 info.name, info.ranges, info.id, info.fingerprint) 78 assert info.name, "partition name is required in care_map" 80 info_list += [info.name, info.ranges]
|
D | Android.bp | 16 name: "update_verifier_defaults", 28 name: "libupdate_verifier", 63 name: "update_verifier", 97 name: "care_map_generator",
|
/bootable/recovery/updater/include/updater/ |
D | target_files.h | 54 bool EntryExists(const std::string_view name) const; 62 bool ReadEntryToString(const std::string_view name, std::string* content) const; 63 bool ExtractEntryToTempFile(const std::string_view name, TemporaryFile* temp_file) const;
|
/bootable/recovery/minui/ |
D | resources.cpp | 66 PngHandler::PngHandler(const std::string& name) { in PngHandler() argument 67 std::string res_path = g_resource_dir + "/" + name + ".png"; in PngHandler() 71 png_fp_.reset(fopen(name.c_str(), "rbe")); in PngHandler() 186 int res_create_display_surface(const char* name, GRSurface** pSurface) { in res_create_display_surface() argument 189 PngHandler png_handler(name); in res_create_display_surface() 218 int res_create_multi_display_surface(const char* name, int* frames, int* fps, in res_create_multi_display_surface() argument 223 PngHandler png_handler(name); in res_create_multi_display_surface() 300 int res_create_alpha_surface(const char* name, GRSurface** pSurface) { in res_create_alpha_surface() argument 303 PngHandler png_handler(name); in res_create_alpha_surface() 394 int res_create_localized_alpha_surface(const char* name, in res_create_localized_alpha_surface() argument [all …]
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 130 int gr_init_font(const char* name, GRFont** dest); 190 int res_create_display_surface(const char* name, GRSurface** pSurface); 196 int res_create_multi_display_surface(const char* name, int* frames, int* fps, 200 int res_create_alpha_surface(const char* name, GRSurface** pSurface); 208 int res_create_localized_alpha_surface(const char* name, const char* locale,
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | PayloadSpecs.java | 59 String name = entry.getName(); in forNonStreaming() local 63 offset += 30 + name.length() + extraSize; in forNonStreaming() 70 if (PackageFiles.PAYLOAD_BINARY_FILE_NAME.equals(name)) { in forNonStreaming() 77 } else if (PackageFiles.PAYLOAD_PROPERTIES_FILE_NAME.equals(name)) { in forNonStreaming()
|
/bootable/recovery/bootloader_message/ |
D | Android.bp | 18 name: "libbootloader_message_defaults", 34 name: "libbootloader_message", 54 name: "libbootloader_message_vendor",
|
/bootable/recovery/recovery_utils/include/recovery_utils/ |
D | logging.h | 34 std::string name; member 53 void check_and_fclose(FILE* fp, const std::string& name);
|