|
ssize_t | SendFileDescriptorVector (borrowed_fd sockfd, const void *data, size_t len, const std::vector< int > &fds) |
|
ssize_t | ReceiveFileDescriptorVector (borrowed_fd sockfd, void *data, size_t len, size_t max_fds, std::vector< unique_fd > *fds) |
|
std::string | SystemErrorCodeToString (int error_code) |
|
bool | ReadFdToString (borrowed_fd fd, std::string *content) |
|
bool | ReadFileToString (const std::string &path, std::string *content, bool follow_symlinks) |
|
bool | WriteStringToFd (std::string_view content, borrowed_fd fd) |
|
static bool | CleanUpAfterFailedWrite (const std::string &path) |
|
bool | WriteStringToFile (const std::string &content, const std::string &path, mode_t mode, uid_t owner, gid_t group, bool follow_symlinks) |
|
bool | WriteStringToFile (const std::string &content, const std::string &path, bool follow_symlinks) |
|
bool | ReadFully (borrowed_fd fd, void *data, size_t byte_count) |
|
bool | ReadFullyAtOffset (borrowed_fd fd, void *data, size_t byte_count, off64_t offset) |
|
bool | WriteFullyAtOffset (borrowed_fd fd, const void *data, size_t byte_count, off64_t offset) |
|
bool | WriteFully (borrowed_fd fd, const void *data, size_t byte_count) |
|
bool | RemoveFileIfExists (const std::string &path, std::string *err) |
|
bool | Readlink (const std::string &path, std::string *result) |
|
bool | Realpath (const std::string &path, std::string *result) |
|
std::string | GetExecutablePath () |
|
std::string | GetExecutableDirectory () |
|
static int | _basename_r (const char *path, size_t path_size, char *buffer, size_t buffer_size) |
|
std::string | Basename (std::string_view path) |
|
static int | _dirname_r (const char *path, size_t path_size, char *buffer, size_t buffer_size) |
|
std::string | Dirname (std::string_view path) |
|
std::string | HexString (const void *bytes, size_t len) |
|
static uint8_t | HexNybbleToValue (char c) |
|
bool | HexToBytes (const std::string &hex, std::vector< uint8_t > *bytes) |
|
ssize_t | ReceiveFileDescriptorVector (borrowed_fd sock, void *data, size_t len, size_t max_fds, std::vector< android::base::unique_fd > *fds) |
|
template<typename... Args> |
ssize_t | SendFileDescriptors (borrowed_fd sock, const void *data, size_t len, Args &&... sent_fds) |
|
template<typename... Args> |
ssize_t | ReceiveFileDescriptors (borrowed_fd sock, void *data, size_t len, Args &&... received_fds) |
|
template<typename CollectionType , typename T > |
void | Append (CollectionType &collection, T &&arg) |
|
template<typename CollectionType , typename T , typename... Args> |
void | Append (CollectionType &collection, T &&arg, Args &&... args) |
|
template<typename T , typename Arg , typename... Args> |
void | AssertType (Arg &&) |
|
template<typename T , typename Arg , typename... Args> |
void | AssertType (Arg &&, Args &&... args) |
|
template<class E > |
| unexpected (E) -> unexpected< E > |
|
template<class T1 , class E1 , class T2 , class E2 > |
constexpr bool | operator== (const expected< T1, E1 > &x, const expected< T2, E2 > &y) |
|
template<class T1 , class E1 , class T2 , class E2 > |
constexpr bool | operator!= (const expected< T1, E1 > &x, const expected< T2, E2 > &y) |
|
template<class T1 , class E1 , class E2 > |
constexpr bool | operator== (const expected< T1, E1 > &x, const unexpected< E2 > &y) |
|
template<class T1 , class E1 , class E2 > |
constexpr bool | operator== (const unexpected< E2 > &x, const expected< T1, E1 > &y) |
|
template<class T1 , class E1 , class E2 > |
constexpr bool | operator!= (const expected< T1, E1 > &x, const unexpected< E2 > &y) |
|
template<class T1 , class E1 , class E2 > |
constexpr bool | operator!= (const unexpected< E2 > &x, const expected< T1, E1 > &y) |
|
template<class T1 , class E1 > |
void | swap (expected< T1, E1 > &x, expected< T1, E1 > &y) noexcept(noexcept(x.swap(y))) |
|
template<class E1 , class E2 > |
constexpr bool | operator== (const expected< void, E1 > &x, const expected< void, E2 > &y) |
|
template<class T1 , class E1 , class E2 > |
constexpr bool | operator== (const expected< T1, E1 > &x, const expected< void, E2 > &y) |
|
template<class E1 , class T2 , class E2 > |
constexpr bool | operator== (const expected< void, E1 > &x, const expected< T2, E2 > &y) |
|
template<class E1 , class E2 > |
constexpr bool | operator== (const unexpected< E1 > &e1, const unexpected< E2 > &e2) |
|
template<class E1 , class E2 > |
constexpr bool | operator!= (const unexpected< E1 > &e1, const unexpected< E2 > &e2) |
|
template<class E1 > |
void | swap (unexpected< E1 > &x, unexpected< E1 > &y) noexcept(noexcept(x.swap(y))) |
|
void | KernelLogger (LogId log_buffer_id, LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *message) |
|
void | StderrLogger (LogId log_buffer_id, LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *message) |
|
void | StdioLogger (LogId log_buffer_id, LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *message) |
|
void | DefaultAborter (const char *abort_message) |
|
void | SetDefaultTag (const std::string &tag) |
|
void | InitLogging (char *argv[], LogFunction &&logger=INIT_LOGGING_DEFAULT_LOGGER, AbortFunction &&aborter=DefaultAborter) |
|
LogFunction | SetLogger (LogFunction &&logger) |
|
AbortFunction | SetAborter (AbortFunction &&aborter) |
|
template<typename LHS , typename RHS > |
constexpr auto | MakeEagerEvaluator (LHS &&lhs, RHS &&rhs) |
|
LogSeverity | GetMinimumLogSeverity () |
|
LogSeverity | SetMinimumLogSeverity (LogSeverity new_severity) |
|
bool | ShouldLog (LogSeverity severity, const char *tag) |
|
template<typename T > |
static T | get_unaligned (const void *address) |
|
template<typename T > |
static void | put_unaligned (void *address, T v) |
|
ParseBoolResult | ParseBool (std::string_view s) |
|
template<typename T , T(*)(const char *str, char **endptr) strtox> |
static bool | ParseFloatingPoint (const char *s, T *out, T min, T max) |
|
static bool | ParseDouble (const char *s, double *out, double min=std::numeric_limits< double >::lowest(), double max=std::numeric_limits< double >::max()) |
|
static bool | ParseDouble (const std::string &s, double *out, double min=std::numeric_limits< double >::lowest(), double max=std::numeric_limits< double >::max()) |
|
static bool | ParseFloat (const char *s, float *out, float min=std::numeric_limits< float >::lowest(), float max=std::numeric_limits< float >::max()) |
|
static bool | ParseFloat (const std::string &s, float *out, float min=std::numeric_limits< float >::lowest(), float max=std::numeric_limits< float >::max()) |
|
template<typename T > |
bool | ParseUint (const char *s, T *out, T max=std::numeric_limits< T >::max(), bool allow_suffixes=false) |
|
template<typename T > |
bool | ParseUint (const std::string &s, T *out, T max=std::numeric_limits< T >::max(), bool allow_suffixes=false) |
|
template<typename T > |
bool | ParseByteCount (const char *s, T *out, T max=std::numeric_limits< T >::max()) |
|
template<typename T > |
bool | ParseByteCount (const std::string &s, T *out, T max=std::numeric_limits< T >::max()) |
|
template<typename T > |
bool | ParseInt (const char *s, T *out, T min=std::numeric_limits< T >::min(), T max=std::numeric_limits< T >::max()) |
|
template<typename T > |
bool | ParseInt (const std::string &s, T *out, T min=std::numeric_limits< T >::min(), T max=std::numeric_limits< T >::max()) |
|
bool | ParseNetAddress (const std::string &address, std::string *host, int *port, std::string *canonical_address, std::string *error) |
|
std::string | GetProperty (const std::string &key, const std::string &default_value) |
|
bool | GetBoolProperty (const std::string &key, bool default_value) |
|
template<typename T > |
T | GetIntProperty (const std::string &key, T default_value, T min=std::numeric_limits< T >::min(), T max=std::numeric_limits< T >::max()) |
|
template<typename T > |
T | GetUintProperty (const std::string &key, T default_value, T max=std::numeric_limits< T >::max()) |
|
bool | SetProperty (const std::string &key, const std::string &value) |
|
static int | HwTimeoutMultiplier () |
|
template<typename E > |
bool | operator== (const ResultError< E > &lhs, const ResultError< E > &rhs) |
|
template<typename E > |
bool | operator!= (const ResultError< E > &lhs, const ResultError< E > &rhs) |
|
template<typename E > |
std::ostream & | operator<< (std::ostream &os, const ResultError< E > &t) |
|
Error< Errno > | ErrnoError () |
|
template<typename E > |
E | ErrorCode (E code) |
|
template<typename T , typename E , typename... Args> |
E | ErrorCode (E code, T &&t, const Args &... args) |
|
template<typename T , typename... Args> |
Error< Errno > | ErrorfImpl (const T &&fmt, const Args &... args) |
|
template<typename T , typename... Args> |
Error< Errno > | ErrnoErrorfImpl (const T &&fmt, const Args &... args) |
|
template<typename F > |
ScopeGuard< F > | make_scope_guard (F &&f) |
|
template<typename F > |
| ScopeGuard (F &&t) -> ScopeGuard< F > |
|
std::string | StringPrintf (const char *fmt,...) __attribute__((__format__(__printf__ |
|
std::string void | StringAppendF (std::string *dst, const char *fmt,...) __attribute__((__format__(__printf__ |
|
std::string void void | StringAppendV (std::string *dst, const char *format, va_list ap) __attribute__((__format__(__printf__ |
|
std::vector< std::string > | Split (const std::string &s, const std::string &delimiters) |
|
std::vector< std::string > | Tokenize (const std::string &s, const std::string &delimiters) |
|
template<typename T > |
std::string | Trim (T &&t) |
|
template std::string | Trim (const char *&) |
|
template std::string | Trim (const char *&&) |
|
template std::string | Trim (const std::string &) |
|
template std::string | Trim (const std::string &&) |
|
template std::string | Trim (std::string_view &) |
|
template std::string | Trim (std::string_view &&) |
|
template<typename ContainerT , typename SeparatorT > |
std::string | Join (const ContainerT &things, SeparatorT separator) |
|
template std::string | Join (const std::vector< std::string > &, char) |
|
template std::string | Join (const std::vector< const char * > &, char) |
|
template std::string | Join (const std::vector< std::string > &, const std::string &) |
|
template std::string | Join (const std::vector< const char * > &, const std::string &) |
|
bool | StartsWith (std::string_view s, std::string_view prefix) |
|
bool | StartsWith (std::string_view s, char prefix) |
|
bool | StartsWithIgnoreCase (std::string_view s, std::string_view prefix) |
|
bool | EndsWith (std::string_view s, std::string_view suffix) |
|
bool | EndsWith (std::string_view s, char suffix) |
|
bool | EndsWithIgnoreCase (std::string_view s, std::string_view suffix) |
|
bool | EqualsIgnoreCase (std::string_view lhs, std::string_view rhs) |
|
bool | ConsumePrefix (std::string_view *s, std::string_view prefix) |
|
bool | ConsumeSuffix (std::string_view *s, std::string_view suffix) |
|
std::string | StringReplace (std::string_view s, std::string_view from, std::string_view to, bool all) |
|
std::string | ErrnoNumberAsString (int errnum) |
|
uint64_t | GetThreadId () |
|
template<typename Closer > |
bool | Pipe (unique_fd_impl< Closer > *read, unique_fd_impl< Closer > *write, int flags=O_CLOEXEC) |
|
template<typename Closer > |
bool | Socketpair (int domain, int type, int protocol, unique_fd_impl< Closer > *left, unique_fd_impl< Closer > *right) |
|
template<typename Closer > |
bool | Socketpair (int type, unique_fd_impl< Closer > *left, unique_fd_impl< Closer > *right) |
|
FILE * | Fdopen (unique_fd &&ufd, const char *mode) |
|
DIR * | Fdopendir (unique_fd &&ufd) |
|
template<typename F , typename... Args> |
static void | SplitByLines (const char *msg, const F &log_function, Args &&... args) |
|
template<typename F > |
static void | SplitByLogdChunks (LogId log_id, LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *msg, const F &log_function) |
|
static std::pair< int, int > | CountSizeAndNewLines (const char *message) |
|
static std::string | StderrOutputGenerator (const struct timespec &ts, int pid, uint64_t tid, LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *message) |
|
static const char * | getprogname () |
|
static const char * | GetFileBasename (const char *file) |
|
static LogId | log_id_tToLogId (int32_t buffer_id) |
|
static LogSeverity | PriorityToLogSeverity (int priority) |
|
static int32_t | LogSeverityToPriority (LogSeverity severity) |
|
static LogFunction & | Logger () |
|
static AbortFunction & | Aborter () |
|
static std::recursive_mutex & | TagLock () |
|
static void | LogdLogChunk (LogId, LogSeverity, const char *, const char *) |
|
static off64_t | InitPageSize () |
|
int | posix_strerror_r (int errnum, char *buf, size_t buflen) |
|
template int8_t | GetIntProperty (const std::string &, int8_t, int8_t, int8_t) |
|
template int16_t | GetIntProperty (const std::string &, int16_t, int16_t, int16_t) |
|
template int32_t | GetIntProperty (const std::string &, int32_t, int32_t, int32_t) |
|
template int64_t | GetIntProperty (const std::string &, int64_t, int64_t, int64_t) |
|
template uint8_t | GetUintProperty (const std::string &, uint8_t, uint8_t) |
|
template uint16_t | GetUintProperty (const std::string &, uint16_t, uint16_t) |
|
template uint32_t | GetUintProperty (const std::string &, uint32_t, uint32_t) |
|
template uint64_t | GetUintProperty (const std::string &, uint64_t, uint64_t) |
|