/bootable/recovery/tests/component/ |
D | verifier_test.cpp | 42 std::string package = from_testdata_base(args[0]); in SetUp() local 43 if (!memmap.MapFile(package)) { in SetUp() 44 FAIL() << "Failed to mmap " << package << ": " << strerror(errno) << "\n"; in SetUp() 128 std::string package; in TEST() local 129 ASSERT_TRUE(android::base::ReadFileToString(from_testdata_base("otasigned_v3.zip"), &package)); in TEST() 130 ASSERT_EQ(std::string("\xc0\x06\xff\xff\xd2\x06", 6), package.substr(package.size() - 6, 6)); in TEST() 133 package[package.size() - 5] = '\x05'; in TEST() 135 verify_file(reinterpret_cast<const unsigned char*>(package.data()), package.size(), in TEST() 147 std::string package; in TEST() local 148 ASSERT_TRUE(android::base::ReadFileToString(from_testdata_base("otasigned_v3.zip"), &package)); in TEST() [all …]
|
D | install_test.cpp | 234 std::string package = "/path/to/update.zip"; in TEST() local 237 ASSERT_EQ(0, update_binary_command(package, zip, binary_path, 0, status_fd, &cmd)); in TEST() 240 ASSERT_EQ("--payload=file://" + package, cmd[1]); in TEST() 258 std::string package = "/path/to/update.zip"; in TEST() 262 ASSERT_EQ(0, update_binary_command(package, zip, binary_path, 0, status_fd, &cmd)); in TEST() 267 ASSERT_EQ(package, cmd[3]); in TEST() 274 ASSERT_EQ(0, update_binary_command(package, zip, binary_path, 2, status_fd, &cmd)); in TEST() 279 ASSERT_EQ(package, cmd[3]); in TEST() 316 std::string package = "/path/to/update.zip"; in TEST() local 319 ASSERT_EQ(INSTALL_CORRUPT, update_binary_command(package, zip, binary_path, 0, status_fd, &cmd)); in TEST() [all …]
|
/bootable/recovery/tests/unit/ |
D | sysutil_test.cpp | 48 TemporaryFile package; in TEST() local 52 ASSERT_TRUE(android::base::WriteStringToFile(content, package.path)); in TEST() 59 std::string block_map_content = std::string(package.path) + "\n40960 4096\n1\n0 10\n"; in TEST() 67 block_map_content = std::string(package.path) + "\n40960 4096\n1\n0 10"; in TEST() 75 block_map_content = std::string(package.path) + "\n40960 4096\n1\n0 10\n\n\n"; in TEST() 83 block_map_content = std::string(package.path) + "\n40960 4096\n3\n0 3\n3 5\n5 10\n"; in TEST()
|
/bootable/recovery/private/ |
D | install.h | 29 int update_binary_command(const std::string& package, ZipArchiveHandle zip,
|
/bootable/recovery/ |
D | install.h | 28 int install_package(const std::string& package, bool* wipe_cache, const std::string& install_file,
|
D | install.cpp | 206 int update_binary_command(const std::string& package, ZipArchiveHandle zip, in update_binary_command() argument 243 "--payload=file://" + package, in update_binary_command() 253 int update_binary_command(const std::string& package, ZipArchiveHandle zip, in update_binary_command() argument 285 package, in update_binary_command() 305 static int try_update_binary(const std::string& package, ZipArchiveHandle zip, bool* wipe_cache, in try_update_binary() argument 315 int ret = update_binary_command(package, zip, "/sbin/update_engine_sideload", retry_count, in try_update_binary() 318 int ret = update_binary_command(package, zip, "/tmp/update-binary", retry_count, pipefd[1], in try_update_binary() 477 LOG(ERROR) << "Error in " << package << " (Status " << WEXITSTATUS(status) << ")"; in try_update_binary()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 499 std::string package; in uncrypt_wrapper() local 501 if (!find_uncrypt_package(UNCRYPT_PATH_FILE, &package)) { in uncrypt_wrapper() 507 input_path = package.c_str(); in uncrypt_wrapper()
|