Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 4 of 4) 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/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/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/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()