Lines Matching refs:appName
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()
355 apps_[appName.id]->cached_napp = false; in clearCachedApp()
356 apps_[appName.id]->cached_start = false; in clearCachedApp()
361 bool clearRunning(hub_app_name_t &appName) { in clearRunning() argument
362 if (!isAppLoaded(appName)) in clearRunning()
365 apps_[appName.id]->running = false; in clearRunning()
370 bool setCachedVersion(hub_app_name_t &appName, uint32_t version) { in setCachedVersion() argument
371 if (!isAppPresent(appName)) in setCachedVersion()
374 apps_[appName.id]->cached_version = version; in setCachedVersion()
378 bool setCachedStart(hub_app_name_t &appName, bool start) { in setCachedStart() argument
379 if (!isAppPresent(appName)) in setCachedStart()
382 apps_[appName.id]->cached_start = start; in setCachedStart()
387 bool addNewApp(hub_app_name_t &appName, uint32_t version) { in addNewApp() argument
388 if (isAppLoaded(appName)) in addNewApp()
391 apps_[appName.id] = std::unique_ptr<AppData>(new AppData); in addNewApp()
392 apps_[appName.id]->loaded = false; in addNewApp()
393 apps_[appName.id]->running = false; in addNewApp()
394 apps_[appName.id]->chre = false; in addNewApp()
395 apps_[appName.id]->cached_napp = false; in addNewApp()
396 apps_[appName.id]->cached_version = version; in addNewApp()
399 bool isAppPresent(hub_app_name_t &appName) { in isAppPresent() argument
400 return apps_.count(appName.id) != 0; in isAppPresent()
402 bool isAppLoaded(hub_app_name_t &appName) { in isAppLoaded() argument
403 return apps_.count(appName.id) != 0 && apps_[appName.id]->loaded; in isAppLoaded()
405 bool isAppRunning(hub_app_name_t &appName) { in isAppRunning() argument
406 return apps_.count(appName.id) != 0 && apps_[appName.id]->running; in isAppRunning()
408 uint32_t getFlashAddr(hub_app_name_t &appName) { in getFlashAddr() argument
409 if (isAppPresent(appName)) in getFlashAddr()
410 return apps_[appName.id]->flashAddr; in getFlashAddr()