Home
last modified time | relevance | path

Searched refs:headerBuffer (Results 1 – 6 of 6) sorted by relevance

/system/chre/host/common/
Dpreloaded_nanoapp_loader.cc39 std::vector<uint8_t> &headerBuffer) { in getNanoappHeaderFromFile() argument
40 if (!readFileContents(headerFileName, headerBuffer)) { in getNanoappHeaderFromFile()
44 if (headerBuffer.size() != sizeof(NanoAppBinaryHeader)) { in getNanoappHeaderFromFile()
70 std::vector<uint8_t> headerBuffer; in getPreloadedNanoappIds() local
71 if (!getNanoappHeaderFromFile(headerFileName.c_str(), headerBuffer)) { in getPreloadedNanoappIds()
76 reinterpret_cast<const NanoAppBinaryHeader *>(headerBuffer.data()); in getPreloadedNanoappIds()
99 std::vector<uint8_t> headerBuffer; in loadPreloadedNanoapps() local
100 if (!getNanoappHeaderFromFile(headerFilename.c_str(), headerBuffer)) { in loadPreloadedNanoapps()
106 reinterpret_cast<const NanoAppBinaryHeader *>(headerBuffer.data()); in loadPreloadedNanoapps()
Ddaemon_base.cc108 std::vector<uint8_t> headerBuffer; in loadPreloadedNanoapp() local
116 if (!readFileContents(headerFile.c_str(), headerBuffer) || in loadPreloadedNanoapp()
117 !loadNanoapp(headerBuffer, nanoappFilename, transactionId)) { in loadPreloadedNanoapp()
/system/chre/host/exynos/
Dexynos_daemon.cc168 std::vector<uint8_t> headerBuffer; in loadPreloadedNanoapp() local
174 if (readFileContents(headerFilename.c_str(), headerBuffer) && in loadPreloadedNanoapp()
176 !loadNanoapp(headerBuffer, nanoappBuffer, transactionId)) { in loadPreloadedNanoapp()
/system/chre/host/common/test/
Dchre_test_client.cc273 std::vector<uint8_t> headerBuffer; in sendLoadNanoappRequest() local
275 if (readFileContents(headerPath, headerBuffer) && in sendLoadNanoappRequest()
277 if (headerBuffer.size() != sizeof(NanoAppBinaryHeader)) { in sendLoadNanoappRequest()
282 reinterpret_cast<const NanoAppBinaryHeader *>(headerBuffer.data()); in sendLoadNanoappRequest()
/system/chre/host/common/test/power_test/
Dchre_power_test_client.cc386 std::vector<uint8_t> headerBuffer; in sendLoadNanoappRequest() local
390 if (readFileContents(headerName.c_str(), headerBuffer) && in sendLoadNanoappRequest()
392 if (headerBuffer.size() != sizeof(NanoAppBinaryHeader)) { in sendLoadNanoappRequest()
397 reinterpret_cast<const NanoAppBinaryHeader *>(headerBuffer.data()); in sendLoadNanoappRequest()
/system/chre/host/hal_generic/aidl/
Dgeneric_context_hub_aidl.cc741 std::vector<uint8_t> headerBuffer; in getPreloadedNanoappIdsFromConfigFile() local
742 if (!readFileContents(headerFile.c_str(), headerBuffer)) { in getPreloadedNanoappIdsFromConfigFile()
747 if (headerBuffer.size() != sizeof(NanoAppBinaryHeader)) { in getPreloadedNanoappIdsFromConfigFile()
753 reinterpret_cast<const NanoAppBinaryHeader *>(headerBuffer.data()); in getPreloadedNanoappIdsFromConfigFile()