/bootable/recovery/minui/ |
D | graphics_adf.cpp | 33 GRSurface base; member 40 minui_backend base; member 61 surf->base.width = mode->hdisplay; in adf_surface_init() 62 surf->base.height = mode->vdisplay; in adf_surface_init() 63 surf->base.row_bytes = surf->pitch; in adf_surface_init() 64 surf->base.pixel_bytes = (pdata->format == DRM_FORMAT_RGB565) ? 2 : 4; in adf_surface_init() 66 surf->base.data = reinterpret_cast<uint8_t*>(mmap(NULL, in adf_surface_init() 67 surf->pitch * surf->base.height, PROT_WRITE, in adf_surface_init() 69 if (surf->base.data == MAP_FAILED) { in adf_surface_init() 202 surf->base.width, surf->base.height, pdata->format, surf->fd, in adf_flip() [all …]
|
D | graphics_drm.cpp | 37 GRSurface base; member 91 if (surface->base.data) in drm_destroy_surface() 92 munmap(surface->base.data, in drm_destroy_surface() 93 surface->base.row_bytes * surface->base.height); in drm_destroy_surface() 191 surface->base.height = height; in drm_create_surface() 192 surface->base.width = width; in drm_create_surface() 193 surface->base.row_bytes = create_dumb.pitch; in drm_create_surface() 194 surface->base.pixel_bytes = create_dumb.bpp / 8; in drm_create_surface() 195 surface->base.data = (unsigned char*) in drm_create_surface() 197 surface->base.height * surface->base.row_bytes, in drm_create_surface() [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 | 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 | 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() 1356 case 'n': android::base::ParseInt(optarg, &retry_count, 0); break; in main()
|
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/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() 463 static std::string GetStashFileName(const std::string& base, const std::string& id, in GetStashFileName() argument 465 if (base.empty()) { in GetStashFileName() 470 fn += "/" + base + "/" + id + postfix; in GetStashFileName() 537 if (android::base::EndsWith(fn, ".partial")) { in DeletePartial() 542 static void DeleteStash(const std::string& base) { in DeleteStash() argument 543 if (base.empty()) { in DeleteStash() [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/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/edify/ |
D | expr.cpp | 503 android::base::StringAppendV(&buffer, format, ap); in ErrorAbortV()
|