/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 17 package com.android.recovery_l10n; 19 import android.app.Activity; 20 import android.content.Context; 21 import android.content.Intent; 22 import android.content.res.AssetManager; 23 import android.content.res.Configuration; 24 import android.content.res.Resources; 25 import android.graphics.Bitmap; 26 import android.os.Bundle; 27 import android.os.RemoteException; [all …]
|
/bootable/recovery/uncrypt/ |
D | bootloader_message_writer.cpp | 66 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY | O_SYNC)); in write_bootloader_message() 68 *err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(), in write_bootloader_message() 72 if (!android::base::WriteFully(fd.get(), &boot, sizeof(boot))) { in write_bootloader_message() 73 *err = android::base::StringPrintf("failed to write %s: %s", misc_blk_device.c_str(), in write_bootloader_message() 79 *err = android::base::StringPrintf("failed to fsync %s: %s", misc_blk_device.c_str(), in write_bootloader_message()
|
D | uncrypt.cpp | 146 if (!android::base::WriteFully(wfd, buffer, size)) { in write_at_offset() 215 return android::base::WriteFully(socket, &status_out, sizeof(int)); in write_status_to_socket() 222 if (!android::base::ReadFileToString(uncrypt_path_file, &uncrypt_path)) { in find_uncrypt_package() 228 *package_name = android::base::Trim(uncrypt_path); in find_uncrypt_package() 235 if (!android::base::RemoveFileIfExists(map_file, &err)) { in produce_block_map() 265 std::string s = android::base::StringPrintf("%s\n%" PRId64 " %ld\n", in produce_block_map() 267 if (!android::base::WriteStringToFd(s, mapfd.get())) { in produce_block_map() 326 if (!android::base::ReadFully(fd.get(), buffers[tail].data(), to_read)) { in produce_block_map() 358 if (!android::base::WriteStringToFd( in produce_block_map() 359 android::base::StringPrintf("%zu\n", ranges.size() / 2), mapfd.get())) { in produce_block_map() [all …]
|
/bootable/recovery/ |
D | recovery.cpp | 387 android::base::WriteStringToFile(buffer, destination); in save_kernel_log() 398 android::base::ReadFileToString(source, &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() 1177 .batteryStatusPath = android::String8(android::String8::kEmptyString), in is_battery_ok() 1178 .batteryHealthPath = android::String8(android::String8::kEmptyString), in is_battery_ok() 1179 .batteryPresentPath = android::String8(android::String8::kEmptyString), in is_battery_ok() 1180 .batteryCapacityPath = android::String8(android::String8::kEmptyString), in is_battery_ok() [all …]
|
D | install.cpp | 62 std::string num_string = android::base::Trim(str.substr(pos+1)); in parse_build_number() 64 if (android::base::ParseInt(num_string.c_str(), &build_number, 0)) { in parse_build_number() 90 std::vector<std::string> lines = android::base::Split(meta_data, "\n"); in read_source_target_build() 92 std::string str = android::base::Trim(line); in read_source_target_build() 93 if (android::base::StartsWith(str, "pre-build-incremental")){ in read_source_target_build() 96 log_buffer.push_back(android::base::StringPrintf("source_build: %d", in read_source_target_build() 99 } else if (android::base::StartsWith(str, "post-build-incremental")) { in read_source_target_build() 102 log_buffer.push_back(android::base::StringPrintf("target_build: %d", in read_source_target_build() 319 log_buffer.push_back(android::base::StringPrintf("error: %d", kZipVerificationFailure)); in really_install_package() 330 log_buffer.push_back(android::base::StringPrintf("error: %d", kZipOpenFailure)); in really_install_package()
|
D | recovery-persist.cpp | 131 android::base::ReadFileToString(destination, &content); in logsave() 144 return android::base::WriteStringToFile(buffer, destination.c_str()); in logsave()
|
D | screen_ui.cpp | 288 for (auto& chunk : android::base::Split(recovery_fingerprint, ":")) { in draw_screen_locked() 499 LoadBitmap(android::base::StringPrintf("intro%05d", i).c_str(), &introFrames[i]); in LoadAnimation() 504 LoadBitmap(android::base::StringPrintf("loop%05d", i).c_str(), &loopFrames[i]); in LoadAnimation() 591 android::base::StringAppendV(&str, fmt, ap); in PrintV()
|
D | wear_ui.cpp | 167 for (auto& chunk: android::base::Split(recovery_fingerprint, ":")) { in draw_screen_locked() 593 android::base::StringAppendV(&str, fmt, ap); in PrintV()
|
/bootable/recovery/tests/component/ |
D | applypatch_test.cpp | 44 android::base::ReadFileToString(fname, &data); in sha1sum() 63 android::base::ReadFileToString(f1, &c1); in file_cmp() 64 android::base::ReadFileToString(f2, &c2); in file_cmp() 69 return android::base::StringPrintf("%s%s%s/%s", in from_testdata_base() 87 android::base::WriteStringToFile("hello", rand_file); in SetUpTestCase() 93 bad_sha1_a = android::base::StringPrintf("%040x", rand()); in SetUpTestCase() 94 bad_sha1_b = android::base::StringPrintf("%040x", rand()); in SetUpTestCase() 119 std::string cmd = android::base::StringPrintf("cp %s %s", in cp()
|
D | verifier_test.cpp | 94 android::base::StringPrintf("%s%s%s%s", DATA_PATH, NATIVE_TEST_PATH, in SetUp() 108 std::string public_key_file = android::base::StringPrintf( in SetUp() 116 std::string public_key_file = android::base::StringPrintf( in SetUp()
|
/bootable/recovery/applypatch/ |
D | freecache.cpp | 46 if (!android::base::ParseUint(de->d_name, &pid)) { in EliminateOpenFiles() 49 std::string path = android::base::StringPrintf("/proc/%s/fd/", de->d_name); in EliminateOpenFiles()
|
D | applypatch.cpp | 109 std::vector<std::string> pieces = android::base::Split(copy, ":"); in LoadPartitionContents() 310 std::vector<std::string> pieces = android::base::Split(copy, ":"); in WriteToPartition() 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()
|
/bootable/recovery/otafault/ |
D | config.cpp | 35 return android::base::StringPrintf("%s/%s", OTAIO_BASE_DIR, io_type); in get_type_path()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 78 std::vector<std::string> pieces = android::base::Split(range_text, ","); in parse_range() 84 if (!android::base::ParseUint(pieces[0].c_str(), &num, static_cast<size_t>(INT_MAX))) { in parse_range() 99 if (!android::base::ParseUint(pieces[i+1].c_str(), &rs.pos[i], in parse_range() 104 if (!android::base::ParseUint(pieces[i+2].c_str(), &rs.pos[i+1], in parse_range() 537 if (android::base::EndsWith(fn, ".partial")) { in DeletePartial() 881 if (!android::base::ParseUint(token.c_str(), &src_blocks)) { in LoadSrcTgtVersion2() 920 std::vector<std::string> tokens = android::base::Split(params.tokens[params.cpos++], ":"); in LoadSrcTgtVersion2() 1211 if (!android::base::ParseUint(params.tokens[params.cpos++].c_str(), &offset)) { in PerformCommandDiff() 1217 if (!android::base::ParseUint(params.tokens[params.cpos++].c_str(), &len)) { in PerformCommandDiff() 1483 std::vector<std::string> lines = android::base::Split(transfer_list, "\n"); in PerformBlockImageUpdate() [all …]
|
D | install.cpp | 71 std::vector<std::string> lines = android::base::Split(buffer, "\n"); in uiPrint() 91 android::base::StringAppendV(&error_msg, format, ap); in uiPrintf() 485 android::base::ParseInt(sec_str, &sec); in ShowProgressFn() 1170 if (!android::base::ParseUint(bytes_str, &bytes)) { in ApplyPatchSpaceFn() 1198 if (!android::base::ParseUint(target_size_str, &target_size)) { in ApplyPatchFn() 1540 android::base::ParseUint(len_str, &len); in WipeBlockDeviceFn()
|
/bootable/recovery/tests/unit/ |
D | asn1_decoder_test.cpp | 26 namespace android { namespace
|
/bootable/recovery/edify/ |
D | expr.cpp | 503 android::base::StringAppendV(&buffer, format, ap); in ErrorAbortV()
|