Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 27) sorted by relevance

12

/bootable/recovery/tools/dumpkey/
DDumpPublicKey.java111 StringBuilder result = new StringBuilder(); in printRSA() local
116 result.append("v"); in printRSA()
117 result.append(Integer.toString(version)); in printRSA()
118 result.append(" "); in printRSA()
121 result.append("{"); in printRSA()
122 result.append(nwords); in printRSA()
127 result.append(",0x"); in printRSA()
128 result.append(N0inv.toString(16)); in printRSA()
134 result.append(",{"); in printRSA()
137 result.append(n); in printRSA()
[all …]
/bootable/recovery/minui/
Dresources.cpp53 int result = 0; in open_png() local
61 result = -1; in open_png()
67 result = -2; in open_png()
72 result = -3; in open_png()
78 result = -4; in open_png()
84 result = -5; in open_png()
89 result = -6; in open_png()
117 result = -7; in open_png()
121 return result; in open_png()
124 if (result < 0) { in open_png()
[all …]
/bootable/recovery/
Dfuse_sideload.cpp264 int result = fd->vtab->read_block(fd->cookie, block, fd->block_data, fetch_size); in fetch_block() local
265 if (result < 0) return result; in fetch_block()
302 int result; in handle_read() local
327 result = fetch_block(fd, block); in handle_read()
328 if (result != 0) return result; in handle_read()
357 result = fetch_block(fd, block+1); in handle_read()
358 if (result != 0) return result; in handle_read()
393 int result; in run_fuse_sideload() local
396 result = -1; in run_fuse_sideload()
404 result = -1; in run_fuse_sideload()
[all …]
Dprint_sha1.h27 std::string result = ""; in print_sha1() local
29 result.push_back(hex[(sha1[i]>>4) & 0xf]); in print_sha1()
30 result.push_back(hex[sha1[i] & 0xf]); in print_sha1()
32 return result; in print_sha1()
Dadb_install.cpp94 int result = INSTALL_ERROR; in apply_from_adb() local
99 result = INSTALL_ERROR; in apply_from_adb()
111 result = INSTALL_ERROR; in apply_from_adb()
116 result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, wipe_cache, install_file, false, 0); in apply_from_adb()
142 return result; in apply_from_adb()
Droots.cpp109 int result = mount(v->blk_device, mount_point, v->fs_type, v->flags, v->fs_options); in ensure_path_mounted_at() local
110 if (result == -1 && fs_mgr_is_formattable(v)) { in ensure_path_mounted_at()
115 result = mount(v->blk_device, mount_point, v->fs_type, v->flags, v->fs_options); in ensure_path_mounted_at()
122 if (result == -1) { in ensure_path_mounted_at()
244 int result; in format_volume() local
286 result = exec_cmd(mke2fs_argv[0], const_cast<char**>(mke2fs_argv)); in format_volume()
287 if (result == 0 && directory != nullptr) { in format_volume()
297 result = exec_cmd(e2fsdroid_argv[0], const_cast<char**>(e2fsdroid_argv)); in format_volume()
309 result = exec_cmd(f2fs_path, (char* const*)f2fs_argv); in format_volume()
312 if (result != 0) { in format_volume()
Dmounts.cpp77 int result = umount(mount_point.c_str()); in unmount_mounted_volume() local
78 if (result == -1) { in unmount_mounted_volume()
81 return result; in unmount_mounted_volume()
Dinstall.cpp543 int result = android::vintf::VintfObjectRecovery::CheckCompatibility(compatibility_info, &err); in verify_package_compatibility() local
544 if (result == 0) { in verify_package_compatibility()
548 LOG(ERROR) << "Failed to verify package compatibility (result " << result << "): " << err; in verify_package_compatibility()
609 int result = try_update_binary(path, zip, wipe_cache, log_buffer, retry_count, max_temperature); in really_install_package() local
614 return result; in really_install_package()
629 int result; in install_package() local
633 result = INSTALL_ERROR; in install_package()
635 result = really_install_package(path, wipe_cache, needs_mount, &log_buffer, retry_count, in install_package()
664 result == INSTALL_SUCCESS ? "1" : "0", in install_package()
690 return result; in install_package()
Dscreen_ui.cpp455 int result = res_create_display_surface(filename, surface); in LoadBitmap() local
456 if (result < 0) { in LoadBitmap()
457 LOG(ERROR) << "couldn't load bitmap " << filename << " (error " << result << ")"; in LoadBitmap()
462 int result = res_create_localized_alpha_surface(filename, locale_.c_str(), surface); in LoadLocalizedBitmap() local
463 if (result < 0) { in LoadLocalizedBitmap()
464 LOG(ERROR) << "couldn't load bitmap " << filename << " (error " << result << ")"; in LoadLocalizedBitmap()
469 char** result = new char*[rows]; in Alloc2d() local
471 result[i] = new char[cols]; in Alloc2d()
472 memset(result[i], 0, cols); in Alloc2d()
474 return result; in Alloc2d()
Drecovery.cpp572 int result; in erase_volume() local
587 result = format_volume(volume, CONVERT_FBE_DIR); in erase_volume()
591 result = format_volume(volume); in erase_volume()
615 return (result == 0); in erase_volume()
723 std::string result = browse_directory(new_path, device); in browse_directory() local
724 if (!result.empty()) return result; in browse_directory()
1058 int result = INSTALL_ERROR; in apply_from_sdcard() local
1063 result = INSTALL_ERROR; in apply_from_sdcard()
1075 result = INSTALL_ERROR; in apply_from_sdcard()
1081 result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, wipe_cache, in apply_from_sdcard()
[all …]
Dui.cpp502 bool result = key_long_press; in IsLongPress() local
504 return result; in IsLongPress()
/bootable/recovery/applypatch/
Dbspatch.cpp78 int result = bsdiff::bspatch(old_data, old_size, in ApplyBSDiffPatch() local
81 if (result != 0) { in ApplyBSDiffPatch()
82 LOG(ERROR) << "bspatch failed, result: " << result; in ApplyBSDiffPatch()
84 if (result == 2) { in ApplyBSDiffPatch()
93 return result; in ApplyBSDiffPatch()
Dapplypatch_modes.cpp174 int result; in applypatch_modes() local
177 result = ShowLicenses(); in applypatch_modes()
179 result = CheckMode(argc, argv); in applypatch_modes()
181 result = PatchMode(argc, argv); in applypatch_modes()
184 if (result == 2) { in applypatch_modes()
187 return result; in applypatch_modes()
Dapplypatch.cpp652 int result; in GenerateTarget() local
654 result = ApplyBSDiffPatch(source_file.data.data(), source_file.data.size(), patch.get(), 0, in GenerateTarget()
657 result = ApplyImagePatch(source_file.data.data(), source_file.data.size(), patch.get(), sink, in GenerateTarget()
661 if (result != 0) { in GenerateTarget()
/bootable/recovery/edify/
Dexpr.cpp43 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result) { in Evaluate() argument
44 if (result == nullptr) { in Evaluate()
57 *result = v->data; in Evaluate()
80 std::string result; in ConcatFn() local
86 result += str; in ConcatFn()
89 return StringValue(result); in ConcatFn()
124 std::string result; in AssertFn() local
125 if (!Evaluate(state, argv[i], &result)) { in AssertFn()
128 if (result.empty()) { in AssertFn()
211 std::string result = (haystack.find(needle) != std::string::npos) ? "t" : ""; in SubstringFn() local
[all …]
Dedify_parser.cpp70 std::string result; in main() local
71 if (!Evaluate(&state, root, &result)) { in main()
75 printf("result is [%s]\n", result.c_str()); in main()
Dexpr.h93 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result);
/bootable/recovery/minadbd/
Dminadbd_services.cpp42 int result = run_adb_fuse(sfd, file_size, block_size); in sideload_host_service() local
45 exit(result == 0 ? 0 : 1); in sideload_host_service()
/bootable/recovery/tests/component/
Dedify_test.cpp32 std::string result; in expect() local
33 bool status = Evaluate(&state, e, &result); in expect()
38 EXPECT_STREQ(expected, result.c_str()); in expect()
Dinstall_test.cpp151 bool result = in TEST() local
153 ASSERT_EQ(result, verify_package_compatibility(zip)); in TEST()
194 bool result = in TEST() local
197 ASSERT_EQ(result, verify_package_compatibility(zip)); in TEST()
Dupdater_test.cpp60 std::string result; in expect() local
61 bool status = Evaluate(&state, e, &result); in expect()
67 ASSERT_STREQ(expected, result.c_str()); in expect()
/bootable/recovery/updater/include/updater/
Drangeset.h39 size_t result = 0; in RangeSet() local
44 CHECK_LE(result, SIZE_MAX - sz) << "RangeSet size overflow"; in RangeSet()
45 result += sz; in RangeSet()
49 blocks_ = result; in RangeSet()
/bootable/recovery/updater/
Dupdater.cpp170 std::string result; in main() local
171 bool status = Evaluate(&state, root, &result); in main()
216 fprintf(cmd_pipe, "ui_print script succeeded: result was [%s]\n", result.c_str()); in main()
Dinstall.cpp113 int result = mkdir(dir_path.c_str(), 0700); in make_parents() local
114 if (result != 0) { in make_parents()
661 int result = applypatch(source_filename.c_str(), target_filename.c_str(), in ApplyPatchFn() local
665 return StringValue(result == 0 ? "t" : ""); in ApplyPatchFn()
690 int result = applypatch_check(filename.c_str(), sha1s); in ApplyPatchCheckFn() local
692 return StringValue(result == 0 ? "t" : ""); in ApplyPatchCheckFn()
1017 int result = tune2fs_main(argv.size() + 1, args2); in Tune2FsFn() local
1018 if (result != 0) { in Tune2FsFn()
1019 return ErrorAbort(state, kTune2FsFailure, "%s() returned error code %d", name, result); in Tune2FsFn()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp313 module->markBootSuccessful([&cr](CommandResult result) { cr = result; }); in update_verifier() argument

12