/device/google/contexthub/contexthubhal/ |
D | system_comms.h | 334 bool writeApp(hub_app_name_t &appName, const uint8_t *data, int32_t len); 335 int32_t readApp(hub_app_name_t &appName, void **data); 336 bool cmpApp(hub_app_name_t &appName, const uint8_t *data, uint32_t len); 340 bool setCachedCrc(hub_app_name_t &appName, uint32_t crc) { in setCachedCrc() argument 341 if (!isAppPresent(appName)) in setCachedCrc() 344 apps_[appName.id]->cached_napp = true; in setCachedCrc() 345 apps_[appName.id]->cached_crc = crc; in setCachedCrc() 346 apps_[appName.id]->cached_start = false; in setCachedCrc() 351 bool clearCachedApp(hub_app_name_t &appName) { in clearCachedApp() argument 352 if (!isAppPresent(appName)) in clearCachedApp() [all …]
|
D | system_comms.cpp | 422 const hub_app_name_t &appName = *static_cast<const hub_app_name_t*>(appMsg->message); in setupMgmt() local 423 if (appMsg->message_len != sizeof(appName)) { in setupMgmt() 426 mAppName = appName; in setupMgmt() 450 writeAppName(buf, appName); in setupMgmt() 1105 bool SystemComm::AppManager::writeApp(hub_app_name_t &appName, const uint8_t *data, int32_t len) in writeApp() argument 1110 snprintf(file, sizeof(file), "%s/%016" PRIX64 ".napp", CHRE_APP_DIR, appName.id); in writeApp() 1125 int32_t SystemComm::AppManager::readApp(hub_app_name_t &appName, void **data) in readApp() argument 1129 snprintf(file, sizeof(file), "%s/%016" PRIX64 ".napp", CHRE_APP_DIR, appName.id); in readApp() 1151 bool SystemComm::AppManager::cmpApp(hub_app_name_t &appName, const uint8_t *data, uint32_t len) in cmpApp() argument 1155 snprintf(file, sizeof(file), "%s/%016" PRIX64 ".napp", CHRE_APP_DIR, appName.id); in cmpApp() [all …]
|
D | NanohubHidlAdapter.cpp | 138 .app_name.id = msg.appName, in sendMessageToHub() 341 msg.appName = rxMsg.app_name.id; in contextHubCb()
|
/device/google/contexthub/util/nanoapp_encr/ |
D | nanoapp_encr.c | 260 const char *appName = argv[0]; in main() local 284 fatalUsage(appName, "unknown argument", argv[i]); in main() 303 fatalUsage(appName, "too many positional arguments", argv[i]); in main() 309 fatalUsage(appName, "missing argument after", prev); in main() 312 fatalUsage(appName, "missing input file name", NULL); in main() 320 fatalUsage(appName, "select either -d or -e", NULL); in main() 323 fatalUsage(appName, "no key file given", NULL); in main() 326 fatalUsage(appName, "Non-zero Key ID must be given to encrypt data", NULL); in main() 330 fatalUsage(appName, "Key file does not exist or has incorrect size", keyFile); in main() 340 fatalUsage(appName, "failed to create/open output file", posArg[1]); in main()
|
/device/google/contexthub/util/nanoapp_sign/ |
D | nanoapp_sign.c | 427 const char *appName = argv[0]; in main() local 464 fatalUsage(appName, "unknown argument", argv[i]); in main() 473 fatalUsage(appName, "too many positional arguments", argv[i]); in main() 479 fatalUsage(appName, "missing argument after", prev); in main() 482 fatalUsage(appName, "missing input file name", NULL); in main() 492 fatalUsage(appName, "select either -s, -t, or -b", NULL); in main() 497 fatalUsage(appName, "We need both PUB (-m) and PVT (-e) keys for signing", NULL); in main() 500 fatalUsage(appName, "We only need PUB (-m) key for signature checking", NULL); in main() 504 fatalUsage(appName, "Can't read PVT key from", keyPvtFile); in main() 513 fatalUsage(appName, "Can't read PUB key from", keyPubFile); in main() [all …]
|
/device/google/contexthub/util/nanoapp_postprocess/ |
D | postprocess.c | 647 const char *appName = argv[0]; in main() local 676 fatalUsage(appName, "unknown argument", argv[i]); in main() 695 fatalUsage(appName, "too many positional arguments", argv[i]); in main() 701 fatalUsage(appName, "missing argument after", prev); in main() 704 fatalUsage(appName, "missing input file name", NULL); in main() 714 fatalUsage(appName, "Invalid layout name", layoutName); in main() 718 fatalUsage(appName, "App layout requires app ID", NULL); in main() 720 fatalUsage(appName, "Key layout requires key ID", NULL); in main() 722 fatalUsage(appName, "OS layout does not need any ID", NULL); in main() 732 fatalUsage(appName, "failed to create/open output file", posArg[1]); in main()
|
D | postprocess_elf.c | 909 const char *appName = argv[0]; in main() local 943 fatalUsage(appName, "unknown argument", argv[i]); in main() 962 fatalUsage(appName, "too many positional arguments", argv[i]); in main() 968 fatalUsage(appName, "missing argument after", prev); in main() 971 fatalUsage(appName, "missing input file name", NULL); in main() 981 fatalUsage(appName, "Invalid layout name", layoutName); in main() 985 fatalUsage(appName, "Only app layout is supported for static option", NULL); in main() 988 fatalUsage(appName, "App layout requires app ID", NULL); in main() 990 fatalUsage(appName, "Key layout requires key ID", NULL); in main() 992 fatalUsage(appName, "OS layout does not need any ID", NULL); in main() [all …]
|
/device/google/contexthub/contexthubhal/test/ |
D | main.cpp | 201 …void sendMessageToApp(const hub_app_name_t appName, void * data, size_t dataSize, uint32_t msg_typ… in sendMessageToApp() argument 206 msg.app_name = appName; in sendMessageToApp()
|