/bootable/recovery/tests/component/ |
D | bootloader_message_test.cpp | 67 std::string expected = "recovery\n" + android::base::Join(options, "\n") + "\n"; in TEST() local 68 ASSERT_EQ(expected, std::string(boot.recovery)); in TEST() 107 std::string expected = "recovery\n" + android::base::Join(options, "\n") + "\n"; in TEST() local 108 ASSERT_GE(expected.size(), sizeof(boot.recovery)); in TEST() 112 ASSERT_EQ(expected.substr(0, sizeof(boot.recovery) - 1), std::string(boot.recovery)); in TEST()
|
D | edify_test.cpp | 24 static void expect(const std::string& expr_str, const char* expected) { in expect() argument 35 if (expected == nullptr) { in expect() 38 EXPECT_STREQ(expected, result.c_str()); in expect()
|
D | uncrypt_test.cpp | 153 void VerifyBootloaderMessage(const std::string& expected) { in VerifyBootloaderMessage() argument 159 ASSERT_EQ(expected, std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in VerifyBootloaderMessage()
|
D | verifier_test.cpp | 52 int expected) { in VerifyFile() argument 57 ASSERT_EQ(expected, verify_file(package.get(), keys)); in VerifyFile()
|
D | install_test.cpp | 127 std::vector<std::string> expected = { in TEST() local 133 ASSERT_EQ(expected, read_partition_list); in TEST()
|
D | updater_test.cpp | 62 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code, in expect() argument 74 if (expected == nullptr) { in expect() 78 ASSERT_STREQ(expected, result.c_str()); in expect()
|
/bootable/recovery/minadbd/ |
D | minadbd_services_test.cpp | 69 std::vector<uint8_t> expected(kMinadbdMessageSize, '\0'); in ReadAndCheckCommandMessage() local 70 memcpy(expected.data(), kMinadbdCommandPrefix, strlen(kMinadbdCommandPrefix)); in ReadAndCheckCommandMessage() 71 memcpy(expected.data() + strlen(kMinadbdCommandPrefix), &expected_command, in ReadAndCheckCommandMessage() 73 ASSERT_EQ(expected, received); in ReadAndCheckCommandMessage()
|
/bootable/recovery/tests/unit/ |
D | applypatch_test.cpp | 259 std::vector<std::string> expected = { "last_log", "last_log.1" }; in TEST_F() local 260 ASSERT_EQ(expected, FindFilesInDir(mock_log_dir.path)); in TEST_F() 274 std::vector<std::string> expected = { "last_log.1" }; in TEST_F() local 275 ASSERT_EQ(expected, FindFilesInDir(mock_log_dir.path)); in TEST_F() 288 std::vector<std::string> expected = { "block.map", "command", "last_install" }; in TEST_F() local 289 ASSERT_EQ(expected, FindFilesInDir(mock_log_dir.path)); in TEST_F()
|
D | screen_ui_test.cpp | 145 int expected = (i + 1) % 5; in TEST_F() local 146 ASSERT_EQ(expected, menu.selection()); in TEST_F() 157 int expected = (9 - i) % 5; in TEST_F() local 158 ASSERT_EQ(expected, menu.selection()); in TEST_F() 174 int expected = std::min(i + 1, 4); in TEST_F() local 175 ASSERT_EQ(expected, menu.selection()); in TEST_F() 186 int expected = std::max(3 - i, 0); in TEST_F() local 187 ASSERT_EQ(expected, menu.selection()); in TEST_F()
|
/bootable/recovery/updater_sample/ |
D | README.md | 27 In real-life update system the config files expected to be served from a server 33 `url` is expected to point to file system, e.g. `file:///data/my-sample-ota-builds-dir/ota-002.zip`. 159 The commands are expected to be run from `$ANDROID_BUILD_TOP` and for demo 175 This directory is expected to be read-only, unless explicitly remounted. 228 The commands are expected to be run from `$ANDROID_BUILD_TOP`.
|
/bootable/recovery/ |
D | README.md | 42 this file has expected contents.
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 648 static int VerifyBlocks(const std::string& expected, const std::vector<uint8_t>& buffer, in VerifyBlocks() argument 657 if (hexdigest != expected) { in VerifyBlocks() 659 LOG(ERROR) << "failed to verify blocks (expected " << expected << ", read " << hexdigest in VerifyBlocks()
|