Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 12 of 12) sorted by relevance

/device/google/contexthub/lib/nanohub/
Dnanoapp.c46 bool readFile(void *dst, uint32_t len, const char *fileName) in readFile() argument
48 FILE *f = fopen(fileName, "rb"); in readFile()
68 void *loadFile(const char *fileName, uint32_t *size) in loadFile() argument
70 FILE *f = fopen(fileName, "rb"); in loadFile()
76 fprintf(stderr, "couldn't open %s: %s\n", fileName, strerror(errno)); in loadFile()
90 fileName, strerror(errno)); in loadFile()
/device/google/sunfish/powerstats/
DRailDataProvider.cpp133 std::string fileName = devName + "/energy_value"; in parseIioEnergyNode() local
134 if (!android::base::ReadFileToString(fileName, &data)) { in parseIioEnergyNode()
135 ALOGE("Error reading file: %s", fileName.c_str()); in parseIioEnergyNode()
166 ALOGW("Unexpected format in file: %s", fileName.c_str()); in parseIioEnergyNode()
/device/google/redbull/powerstats/
DRailDataProvider.cpp124 std::string fileName = devName + "/energy_value"; in parseIioEnergyNode() local
125 if (!android::base::ReadFileToString(fileName, &data)) { in parseIioEnergyNode()
126 ALOGE("Error reading file: %s", fileName.c_str()); in parseIioEnergyNode()
156 ALOGW("Unexpected format in file: %s", fileName.c_str()); in parseIioEnergyNode()
/device/google/coral/powerstats/
DRailDataProvider.cpp133 std::string fileName = devName + "/energy_value"; in parseIioEnergyNode() local
134 if (!android::base::ReadFileToString(fileName, &data)) { in parseIioEnergyNode()
135 ALOGE("Error reading file: %s", fileName.c_str()); in parseIioEnergyNode()
166 ALOGW("Unexpected format in file: %s", fileName.c_str()); in parseIioEnergyNode()
/device/google/contexthub/lib/include/nanohub/
Dnanoapp.h29 bool readFile(void *dst, uint32_t len, const char *fileName);
30 void *loadFile(const char *fileName, uint32_t *size);
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess_elf.c619 static bool loadNanoappElfFile(const char *fileName, struct ElfNanoApp *app) in loadNanoappElfFile() argument
629 fd = open(fileName, O_RDONLY, 0); in loadNanoappElfFile()
631 ERR("Failed to open file %s for reading: %s", fileName, strerror(errno)); in loadNanoappElfFile()
792 static int handleAppStatic(const char *fileName, FILE *out, uint32_t layoutFlags, uint64_t appId, u… in handleAppStatic() argument
796 if (!loadNanoappElfFile(fileName, &app) in handleAppStatic()
/device/google/barbet/dumpstate/
DDumpstateDevice.cpp131 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
133 strcpy(header->name, fileName); in tarHeader()
/device/google/coral/dumpstate/
DDumpstateDevice.cpp132 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
134 strcpy(header->name, fileName); in tarHeader()
/device/google/redfin/dumpstate/
DDumpstateDevice.cpp129 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
131 strcpy(header->name, fileName); in tarHeader()
/device/google/sunfish/dumpstate/
DDumpstateDevice.cpp130 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
132 strcpy(header->name, fileName); in tarHeader()
/device/google/zuma/dumpstate/
Ddump_power.cpp296 std::string fileName = directory + file + "/" + std::string(tcpcVal[1]); in dumpTcpc() local
298 if (!android::base::ReadFileToString(fileName, &content)) { in dumpTcpc()
/device/google/zumapro/dumpstate/
Ddump_power.cpp289 std::string fileName = directory + file + "/" + std::string(tcpcVal[1]); in dumpTcpc() local
291 if (!android::base::ReadFileToString(fileName, &content)) { in dumpTcpc()