Home
last modified time | relevance | path

Searched refs:package (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/tests/component/
Dverifier_test.cpp42 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 …]
Dinstall_test.cpp234 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/
Dsysutil_test.cpp48 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/
Dinstall.h29 int update_binary_command(const std::string& package, ZipArchiveHandle zip,
/bootable/recovery/
Dinstall.h28 int install_package(const std::string& package, bool* wipe_cache, const std::string& install_file,
Dinstall.cpp206 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/
Duncrypt.cpp499 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()