Android-cuttlefish cvd tool
Functions | Variables
util.cpp File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <android-base/parseint.h>
#include <android-base/strings.h>
#include "util.h"
Include dependency graph for util.cpp:

Functions

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

Variables

static bool g_verbose = false
 

Function Documentation

◆ die() [1/2]

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

◆ die() [2/2]

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 ( borrowed_fd  fd)

◆ is_sparse_file()

bool is_sparse_file ( 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 verbose ( const char *  fmt,
  ... 
)

Variable Documentation

◆ g_verbose

bool g_verbose = false
static