Android-cuttlefish cvd tool
Classes | Typedefs | Functions
util.h File Reference
#include <inttypes.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <android-base/unique_fd.h>
#include <bootimg.h>
#include <liblp/liblp.h>
#include <sparse/sparse.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ImageSource
 

Typedefs

using SparsePtr = std::unique_ptr< sparse_file, decltype(&sparse_file_destroy)>
 

Functions

double now ()
 
void set_verbose ()
 
void die (const char *fmt,...) __attribute__((__noreturn__)) __attribute__((__format__(__printf__
 
void void verbose (const char *fmt,...) __attribute__((__format__(__printf__
 
void void void die (const std::string &str) __attribute__((__noreturn__))
 
bool should_flash_in_userspace (const android::fs_mgr::LpMetadata &metadata, const std::string &partition_name)
 
bool is_sparse_file (android::base::borrowed_fd fd)
 
int64_t get_file_size (android::base::borrowed_fd fd)
 
std::string fb_fix_numeric_var (std::string var)
 

Typedef Documentation

◆ SparsePtr

using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>

Function Documentation

◆ die() [1/2]

void die ( const char *  fmt,
  ... 
)

◆ die() [2/2]

void void void die ( const std::string &  str)

◆ fb_fix_numeric_var()

std::string fb_fix_numeric_var ( std::string  var)

◆ get_file_size()

int64_t get_file_size ( android::base::borrowed_fd  fd)

◆ is_sparse_file()

bool is_sparse_file ( android::base::borrowed_fd  fd)

◆ now()

double now ( )

◆ set_verbose()

void set_verbose ( )

◆ should_flash_in_userspace()

bool should_flash_in_userspace ( const android::fs_mgr::LpMetadata &  metadata,
const std::string &  partition_name 
)

◆ verbose()

void void verbose ( const char *  fmt,
  ... 
)