Lines Matching refs:string

40 static void BuildZipArchive(const std::map<std::string, std::string>& file_map, int fd,  in BuildZipArchive()  argument
55 const std::string content("abc=defg"); in TEST()
61 std::map<std::string, std::string> metadata; in TEST()
83 std::map<std::string, std::string> metadata; in TEST()
89 std::vector<std::string> partition_list = { in TEST()
98 std::string wipe_package; in TEST()
105 std::vector<std::string> expected = { in TEST()
122 std::string package = "/path/to/update.zip"; in TEST()
124 std::string binary_path = std::string(td.path) + "/update_binary"; in TEST()
126 std::vector<std::string> cmd; in TEST()
162 std::string package = "/path/to/update.zip"; in TEST()
164 Paths::Get().set_temporary_update_binary(std::string(td.path) + "/update_binary"); in TEST()
165 std::vector<std::string> cmd; in TEST()
170 static void VerifyAbUpdateCommands(const std::string& serialno, bool success = true) { in VerifyAbUpdateCommands()
173 const std::string properties = "some_properties"; in VerifyAbUpdateCommands()
174 std::string device = android::base::GetProperty("ro.product.device", ""); in VerifyAbUpdateCommands()
176 std::string timestamp = android::base::GetProperty("ro.build.date.utc", ""); in VerifyAbUpdateCommands()
179 std::vector<std::string> meta{ "ota-type=AB", "pre-device=" + device, in VerifyAbUpdateCommands()
184 std::string metadata_string = android::base::Join(meta, "\n"); in VerifyAbUpdateCommands()
196 std::map<std::string, std::string> metadata; in VerifyAbUpdateCommands()
202 std::string package = "/path/to/update.zip"; in VerifyAbUpdateCommands()
203 std::vector<std::string> cmd; in VerifyAbUpdateCommands()
225 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
227 std::string timestamp = android::base::GetProperty("ro.build.date.utc", ""); in TEST()
229 std::string metadata = android::base::Join( in TEST()
230 std::vector<std::string>{ in TEST()
245 std::string package = "/path/to/update.zip"; in TEST()
246 std::vector<std::string> cmd; in TEST()
252 std::string serialno = android::base::GetProperty("ro.serialno", ""); in TEST()
263 std::string random_serialno; in TEST()
271 std::string long_serialno = random_serialno + serialno + "|"; in TEST()
280 static void TestCheckPackageMetadata(const std::string& metadata_string, OtaType ota_type, in TestCheckPackageMetadata()
292 std::map<std::string, std::string> metadata; in TestCheckPackageMetadata()
299 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
303 std::string metadata = android::base::Join( in TEST()
304 std::vector<std::string>{ in TEST()
313 std::vector<std::string>{ in TEST()
326 std::string metadata = android::base::Join( in TEST()
327 std::vector<std::string>{ in TEST()
335 std::vector<std::string>{ in TEST()
344 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
348 std::string metadata = android::base::Join( in TEST()
349 std::vector<std::string>{ in TEST()
358 std::vector<std::string>{ in TEST()
366 std::string serialno = android::base::GetProperty("ro.serialno", ""); in TEST()
369 std::vector<std::string>{ in TEST()
379 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
382 std::string serialno = android::base::GetProperty("ro.serialno", ""); in TEST()
385 std::vector<std::string> serial_numbers; in TEST()
392 std::string metadata = android::base::Join( in TEST()
393 std::vector<std::string>{ in TEST()
404 std::vector<std::string>{ in TEST()
414 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
417 std::string build_version = android::base::GetProperty("ro.build.version.incremental", ""); in TEST()
420 std::string metadata = android::base::Join( in TEST()
421 std::vector<std::string>{ in TEST()
431 std::vector<std::string>{ in TEST()
442 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
445 std::string finger_print = android::base::GetProperty("ro.build.fingerprint", ""); in TEST()
448 std::string metadata = android::base::Join( in TEST()
449 std::vector<std::string>{ in TEST()
459 std::vector<std::string>{ in TEST()
470 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
473 std::string finger_print = android::base::GetProperty("ro.build.fingerprint", ""); in TEST()
476 std::string metadata = android::base::Join( in TEST()
477 std::vector<std::string>{ in TEST()
487 std::vector<std::string>{ in TEST()
498 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST()
502 std::string metadata = android::base::Join( in TEST()
503 std::vector<std::string>{ in TEST()
512 std::vector<std::string>{ in TEST()
522 std::vector<std::string>{ in TEST()
531 std::string finger_print = android::base::GetProperty("ro.build.fingerprint", ""); in TEST()
535 std::vector<std::string>{ in TEST()
560 std::string uncanonical_package_path = android::base::Join( in TEST()
561 std::vector<std::string>{ in TEST()