You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
687 B

#include "base/CpuTime.h"
#include <string>
namespace android {
namespace base {
std::string getEnvironmentVariable(const std::string& key);
void setEnvironmentVariable(const std::string& key, const std::string& value);
bool isVerboseLogging();
uint64_t getUnixTimeUs();
uint64_t getHighResTimeUs();
uint64_t getUptimeMs();
std::string getProgramDirectory();
std::string getLauncherDirectory();
bool getFileSize(int fd, uint64_t* size);
void sleepMs(uint64_t ms);
void sleepUs(uint64_t us);
CpuTime cpuTime();
bool queryFileVersionInfo(const char* filename, int* major, int* minor, int* build1, int* build2);
int getCpuCoreCount();
} // namespace base
} // namespace android