Searched refs:base (Results 1 – 6 of 6) sorted by relevance
/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 | uncrypt.cpp | 165 if (!android::base::ReadFileToString(uncrypt_file, &package_name)) { in find_uncrypt_package() 171 package_name = android::base::Trim(package_name); in find_uncrypt_package() 186 if (!android::base::WriteStringToFd("0\n", status_fd)) { in produce_block_map() 242 android::base::WriteStringToFd(std::to_string(progress) + "\n", status_fd); in produce_block_map() 445 android::base::WriteStringToFd("-1\n", status_fd); in main() 455 android::base::WriteStringToFd("-1\n", status_fd); in main() 460 android::base::WriteStringToFd("100\n", status_fd); in main()
|
/bootable/recovery/updater/ |
D | blockimg.c | 402 static char* GetStashFileName(const char* base, const char* id, const char* postfix) { in GetStashFileName() argument 407 if (base == NULL) { in GetStashFileName() 419 len = strlen(STASH_DIRECTORY_BASE) + 1 + strlen(base) + 1 + strlen(id) + strlen(postfix) + 1; in GetStashFileName() 427 res = snprintf(fn, len, STASH_DIRECTORY_BASE "/%s/%s%s", base, id, postfix); in GetStashFileName() 531 static void DeleteStash(const char* base) { in DeleteStash() argument 534 if (base == NULL) { in DeleteStash() 538 dirname = GetStashFileName(base, NULL, NULL); in DeleteStash() 544 fprintf(stderr, "deleting stash %s\n", base); in DeleteStash() 556 static int LoadStash(const char* base, const char* id, int verify, int* blocks, uint8_t** buffer, in LoadStash() argument 565 if (!base || !id || !buffer || !buffer_alloc) { in LoadStash() [all …]
|
/bootable/recovery/ |
D | recovery.cpp | 285 android::base::WriteStringToFile(buffer, destination); in save_kernel_log() 329 std::string old_log = android::base::StringPrintf((i == 0) ? "%s" : "%s.%d", in rotate_logs() 331 std::string new_log = android::base::StringPrintf("%s.%d", LAST_LOG_FILE, i+1); in rotate_logs() 335 std::string old_kmsg = android::base::StringPrintf((i == 0) ? "%s" : "%s.%d", in rotate_logs() 337 std::string new_kmsg = android::base::StringPrintf("%s.%d", LAST_KMSG_FILE, i+1); in rotate_logs()
|
D | screen_ui.cpp | 253 for (auto& chunk : android::base::Split(recovery_fingerprint, ":")) { in draw_screen_locked()
|