Lines Matching refs:string
35 static const std::string UNCRYPT_SOCKET = "/dev/socket/uncrypt";
36 static const std::string INIT_SVC_SETUP_BCB = "init.svc.setup-bcb";
37 static const std::string INIT_SVC_CLEAR_BCB = "init.svc.clear-bcb";
38 static const std::string INIT_SVC_UNCRYPT = "init.svc.uncrypt";
48 std::string setup_bcb = android::base::GetProperty(INIT_SVC_SETUP_BCB, ""); in StopService()
49 std::string clear_bcb = android::base::GetProperty(INIT_SVC_CLEAR_BCB, ""); in StopService()
50 std::string uncrypt = android::base::GetProperty(INIT_SVC_UNCRYPT, ""); in StopService()
68 std::string err; in SetUp()
75 std::string err; in TearDown()
80 void SetupOrClearBcb(bool isSetup, const std::string& message, in SetupOrClearBcb()
81 const std::string& message_in_bcb) const { in SetupOrClearBcb()
132 std::string err; in SetupOrClearBcb()
136 ASSERT_EQ("boot-recovery", std::string(boot.command)); in SetupOrClearBcb()
137 ASSERT_EQ(message_in_bcb, std::string(boot.recovery)); in SetupOrClearBcb()
142 ASSERT_EQ(std::string(left, '\0'), std::string(&boot.recovery[message_in_bcb.size()], left)); in SetupOrClearBcb()
148 ASSERT_EQ(std::string(sizeof(boot), '\0'), in SetupOrClearBcb()
149 std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in SetupOrClearBcb()
153 void VerifyBootloaderMessage(const std::string& expected) { in VerifyBootloaderMessage()
154 std::string err; in VerifyBootloaderMessage()
159 ASSERT_EQ(expected, std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in VerifyBootloaderMessage()
171 std::string random_data; in TEST_F()
178 std::string err; in TEST_F()
183 VerifyBootloaderMessage(std::string(sizeof(bootloader_message), '\0')); in TEST_F()
185 std::string message = "--update_message=abc value"; in TEST_F()
186 std::string message_in_bcb = "recovery\n--update_message=abc value\n"; in TEST_F()
192 ASSERT_TRUE(android::base::WriteStringToFile(std::string(345, 'a'), wipe_package.path)); in TEST_F()