Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 26) sorted by relevance

12

/bootable/recovery/tests/component/
Dverifier_test.cpp86 class VerifierTest : public testing::TestWithParam<std::vector<std::string>> {
92 std::vector<std::string> args = GetParam(); in SetUp()
93 std::string package = in SetUp()
108 std::string public_key_file = android::base::StringPrintf( in SetUp()
116 std::string public_key_file = android::base::StringPrintf( in SetUp()
145 std::vector<std::string>({"otasigned.zip", "e3"}),
146 std::vector<std::string>({"otasigned_f4.zip", "f4"}),
147 std::vector<std::string>({"otasigned_sha256.zip", "e3", "sha256"}),
148 std::vector<std::string>({"otasigned_f4_sha256.zip", "f4", "sha256"}),
149 std::vector<std::string>({"otasigned_ecdsa_sha256.zip", "ec", "sha256"})));
[all …]
Dapplypatch_test.cpp37 static const std::string DATA_PATH = getenv("ANDROID_DATA");
38 static const std::string TESTDATA_PATH = "/recovery/testdata";
39 static const std::string WORK_FS = "/data";
41 static std::string sha1sum(const std::string& fname) { in sha1sum()
43 std::string data; in sha1sum()
50 static void mangle_file(const std::string& fname) { in mangle_file()
60 static bool file_cmp(std::string& f1, std::string& f2) { in file_cmp()
61 std::string c1; in file_cmp()
62 std::string c2; in file_cmp()
68 static std::string from_testdata_base(const std::string fname) { in from_testdata_base()
[all …]
/bootable/recovery/uncrypt/
Dbootloader_message_writer.cpp32 static struct fstab* read_fstab(std::string* err) { in read_fstab()
34 std::string fstab_path = "/fstab."; in read_fstab()
48 static std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device()
61 static bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message()
62 std::string misc_blk_device = get_misc_blk_device(err); in write_bootloader_message()
86 bool clear_bootloader_message(std::string* err) { in clear_bootloader_message()
91 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err) { in write_bootloader_message()
105 std::string err; in write_bootloader_message()
Duncrypt.cpp135 static const std::string CACHE_BLOCK_MAP = "/cache/recovery/block.map";
136 static const std::string UNCRYPT_PATH_FILE = "/cache/recovery/uncrypt_file";
137 static const std::string UNCRYPT_SOCKET = "uncrypt";
219 static bool find_uncrypt_package(const std::string& uncrypt_path_file, std::string* package_name) { in find_uncrypt_package()
221 std::string uncrypt_path; in find_uncrypt_package()
234 std::string err; in produce_block_map()
239 std::string tmp_map_file = std::string(map_file) + ".tmp"; in produce_block_map()
265 std::string s = android::base::StringPrintf("%s\n%" PRId64 " %ld\n", in produce_block_map()
398 std::string file_name = map_file; in produce_block_map()
399 std::string dir_name = dirname(&file_name[0]); in produce_block_map()
[all …]
/bootable/recovery/otafault/
Dconfig.cpp32 static std::map<std::string, bool> should_inject_cache;
34 static std::string get_type_path(const char* io_type) { in get_type_path()
49 const std::string type_path = get_type_path(io_type); in should_fault_inject()
62 std::string fault_fname(const char* io_type) { in fault_fname()
63 std::string type_path = get_type_path(io_type); in fault_fname()
64 std::string fname; in fault_fname()
Dota_io.cpp29 static std::string read_fault_file_name = "";
30 static std::string write_fault_file_name = "";
31 static std::string fsync_fault_file_name = "";
33 static bool get_hit_file(const char* cached_path, std::string ffn) { in get_hit_file()
Dconfig.h72 std::string fault_fname(const char* io_type);
/bootable/recovery/
Dprint_sha1.h25 static std::string print_sha1(const uint8_t* sha1, size_t len) { in print_sha1()
27 std::string result = ""; in print_sha1()
35 static std::string print_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in print_sha1()
39 static std::string short_sha1(const uint8_t sha1[SHA_DIGEST_LENGTH]) { in short_sha1()
43 static std::string print_hex(const uint8_t* bytes, size_t len) { in print_hex()
Drecovery-persist.cpp96 std::string old_log(LAST_LOG_FILE); in rotate_logs()
100 std::string new_log(LAST_LOG_FILE); in rotate_logs()
106 std::string old_kmsg(LAST_KMSG_FILE); in rotate_logs()
110 std::string new_kmsg(LAST_KMSG_FILE); in rotate_logs()
124 std::string destination("/data/misc/"); in logsave()
127 std::string buffer(buf, len); in logsave()
130 std::string content; in logsave()
Dinstall.cpp59 static int parse_build_number(std::string str) { in parse_build_number()
61 if (pos != std::string::npos) { in parse_build_number()
62 std::string num_string = android::base::Trim(str.substr(pos+1)); in parse_build_number()
74 static void read_source_target_build(ZipArchive* zip, std::vector<std::string>& log_buffer) { in read_source_target_build()
81 std::string meta_data(meta_entry->uncompLen, '\0'); in read_source_target_build()
90 std::vector<std::string> lines = android::base::Split(meta_data, "\n"); in read_source_target_build()
91 for (const std::string& line : lines) { in read_source_target_build()
92 std::string str = android::base::Trim(line); in read_source_target_build()
112 std::vector<std::string>& log_buffer, int retry_count) in try_update_binary()
255 log_buffer.push_back(std::string(strtok(NULL, "\n"))); in try_update_binary()
[all …]
Drecovery-refresh.cpp78 std::string name(filename); in logrotate()
80 std::string sub = name.substr(0, dot); in logrotate()
88 if (dot == std::string::npos) { in logrotate()
91 std::string number = name.substr(dot + 1); in logrotate()
Drecovery.cpp380 std::string buffer(klog_buf_len, 0); in save_kernel_log()
397 std::string content; in copy_log_file_to_pmsg()
443 std::string old_log = android::base::StringPrintf("%s", LAST_LOG_FILE); in rotate_logs()
447 std::string new_log = android::base::StringPrintf("%s.%d", LAST_LOG_FILE, i+1); in rotate_logs()
451 std::string old_kmsg = android::base::StringPrintf("%s", LAST_KMSG_FILE); in rotate_logs()
455 std::string new_kmsg = android::base::StringPrintf("%s.%d", LAST_KMSG_FILE, i+1); in rotate_logs()
1277 std::string name(filename); in logrotate()
1279 std::string sub = name.substr(0, dot); in logrotate()
1287 if (dot == std::string::npos) { in logrotate()
1290 std::string number = name.substr(dot + 1); in logrotate()
Dwear_ui.cpp592 std::string str; in PrintV()
/bootable/recovery/applypatch/
Dfreecache.cpp37 static int EliminateOpenFiles(std::set<std::string>* files) { in EliminateOpenFiles()
49 std::string path = android::base::StringPrintf("/proc/%s/fd/", de->d_name); in EliminateOpenFiles()
58 std::string fd_path = path + fdde->d_name; in EliminateOpenFiles()
75 static std::set<std::string> FindExpendableFiles() { in FindExpendableFiles()
76 std::set<std::string> files; in FindExpendableFiles()
91 std::string path = std::string(dirs[i]) + "/" + de->d_name; in FindExpendableFiles()
109 return std::set<std::string>(); in FindExpendableFiles()
121 std::set<std::string> files = FindExpendableFiles(); in MakeFreeSpaceOnCache()
Dapplypatch.cpp108 std::string copy(filename); in LoadPartitionContents()
109 std::vector<std::string> pieces = android::base::Split(copy, ":"); in LoadPartitionContents()
129 std::vector<std::string> sha1sum(pairs); in LoadPartitionContents()
309 std::string copy(target); in WriteToPartition()
310 std::vector<std::string> pieces = android::base::Split(copy, ":"); in WriteToPartition()
581 std::string* s = static_cast<std::string*>(token); in MemorySink()
729 std::string target_str(target_filename); in applypatch_flash()
731 std::vector<std::string> pieces = android::base::Split(target_str, ":"); in applypatch_flash()
740 std::string fullname = android::base::Join(pieces, ':'); in applypatch_flash()
777 std::string memory_sink_str; in GenerateTarget()
[all …]
/bootable/recovery/uncrypt/include/
Dbootloader_message_writer.h24 bool clear_bootloader_message(std::string* err);
26 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err);
/bootable/recovery/updater/
Dblockimg.cpp74 static std::map<std::string, RangeSet> stash_map;
76 static void parse_range(const std::string& range_text, RangeSet& rs) { in parse_range()
78 std::vector<std::string> pieces = android::base::Split(range_text, ","); in parse_range()
393 std::vector<std::string> tokens;
397 std::string freestash;
398 std::string stashbase;
443 static int VerifyBlocks(const std::string& expected, const std::vector<uint8_t>& buffer, in VerifyBlocks()
450 std::string hexdigest = print_sha1(digest); in VerifyBlocks()
463 static std::string GetStashFileName(const std::string& base, const std::string& id, in GetStashFileName()
464 const std::string& postfix) { in GetStashFileName()
[all …]
Dinstall.cpp66 static void uiPrint(State* state, const std::string& buffer) { in uiPrint()
71 std::vector<std::string> lines = android::base::Split(buffer, "\n"); in uiPrint()
87 std::string error_msg; in uiPrintf()
1282 std::string buffer; in UIPrintFn()
/bootable/recovery/tests/unit/
Dasn1_decoder_test.cpp212 uint8_t* string; in TEST_F() local
214 ASSERT_FALSE(asn1_octet_string_get(ctx, &string, &length)); in TEST_F()
221 uint8_t* string; in TEST_F() local
223 ASSERT_FALSE(asn1_octet_string_get(ctx, &string, &length)); in TEST_F()
230 uint8_t* string; in TEST_F() local
232 ASSERT_TRUE(asn1_octet_string_get(ctx, &string, &length)); in TEST_F()
234 EXPECT_EQ(0xAAU, *string); in TEST_F()
/bootable/recovery/edify/
DREADME7 - All expressions are string-valued.
20 string literals.)
22 - When used as a boolean, the empty string is "false" and all other
45 appear in the string. The following expressions all evaluate to the
46 same string.
57 too. They must be string *literals*, however. This is not legal:
Dlexer.ll18 #include <string.h>
19 #include <string>
29 std::string string_buffer;
Dmain.cpp157 expect(std::string(8192, 's').c_str(), std::string(8192, 's').c_str(), &errors); in test()
Dparser.yy20 #include <string.h>
Dexpr.cpp502 std::string buffer; in ErrorAbortV()
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java79 int mStringId = R.string.recovery_installing;
138 case 0: mStringId = R.string.recovery_installing; break; in onCreate()
139 case 1: mStringId = R.string.recovery_erasing; break; in onCreate()
140 case 2: mStringId = R.string.recovery_no_command; break; in onCreate()
141 case 3: mStringId = R.string.recovery_error; break; in onCreate()

12