Lines Matching refs:systemAbilityJson

328     nlohmann::json& systemAbilityJson = profileJson.at(SA_TAG_SYSTEM_ABILITY);
329 HILOGD("systemAbilityJson:%{private}s", systemAbilityJson.dump().c_str());
330 if (!systemAbilityJson.is_array()) {
334 size_t size = systemAbilityJson.size();
337 if (!ParseSystemAbility(saProfile, systemAbilityJson[i])) {
345 bool ParseUtil::ParseSystemAbilityGetExtension(SaProfile& saProfile, nlohmann::json& systemAbilityJson)
347 if ((systemAbilityJson.find(SA_TAG_EXTENSION) != systemAbilityJson.end()) &&
348 (systemAbilityJson[SA_TAG_EXTENSION].is_array())) {
349 for (auto& item : systemAbilityJson[SA_TAG_EXTENSION]) {
369 bool ParseUtil::ParseSystemAbilityGetSaBaseInfo(SaProfile& saProfile, nlohmann::json& systemAbilityJson)
371 GetInt32FromJson(systemAbilityJson, SA_TAG_NAME, saProfile.saId);
380 GetStringFromJson(systemAbilityJson, SA_TAG_LIB_PATH, saProfile.libPath);
392 bool ParseUtil::ParseSystemAbilityGetSaExtInfo(SaProfile& saProfile, nlohmann::json& systemAbilityJson)
394 GetBoolFromJson(systemAbilityJson, SA_TAG_RUN_ON_CREATE, saProfile.runOnCreate);
395 GetBoolFromJson(systemAbilityJson, SA_TAG_MODULE_UPDATE, saProfile.moduleUpdate);
396 GetBoolFromJson(systemAbilityJson, SA_TAG_AUTO_RESTART, saProfile.autoRestart);
397 GetBoolFromJson(systemAbilityJson, SA_TAG_DISTRIBUTED, saProfile.distributed);
398 GetBoolFromJson(systemAbilityJson, SA_TAG_CACHE_COMMON_EVENT, saProfile.cacheCommonEvent);
399 GetIntArrayFromJson(systemAbilityJson, SA_TAG_DEPEND, saProfile.dependSa);
400 GetInt32FromJson(systemAbilityJson, SA_TAG_DEPEND_TIMEOUT, saProfile.dependTimeout);
402 GetInt32FromJson(systemAbilityJson, SA_TAG_DEPEND_TIMEOUT_COMPATIBILITY, saProfile.dependTimeout);
404 GetInt32FromJson(systemAbilityJson, SA_TAG_DUMP_LEVEL, saProfile.dumpLevel);
406 GetStringFromJson(systemAbilityJson, SA_TAG_CAPABILITY, capability);
409 GetStringFromJson(systemAbilityJson, SA_TAG_PERMISSION, permission);
412 GetStringFromJson(systemAbilityJson, SA_TAG_BOOT_PHASE, bootPhase);
415 ParseStartOndemandTag(systemAbilityJson, SA_TAG_START_ON_DEMAND, saProfile.startOnDemand);
417 ParseStopOndemandTag(systemAbilityJson, SA_TAG_STOP_ON_DEMAND, saProfile.stopOnDemand);
419 GetStringFromJson(systemAbilityJson, SA_TAG_RECYCLE_STRATEGY, recycleStrategy);
425 if (!ParseSystemAbilityGetExtension(saProfile, systemAbilityJson)) {
431 bool ParseUtil::ParseSystemAbility(SaProfile& saProfile, nlohmann::json& systemAbilityJson)
434 if (!ParseSystemAbilityGetSaBaseInfo(saProfile, systemAbilityJson)) {
437 if (!ParseSystemAbilityGetSaExtInfo(saProfile, systemAbilityJson)) {
456 bool ParseUtil::ParseJsonTag(const nlohmann::json& systemAbilityJson, const std::string& jsonTag,
459 if (systemAbilityJson.find(jsonTag) == systemAbilityJson.end()) {
462 onDemandJson = systemAbilityJson.at(jsonTag);
479 void ParseUtil::ParseStartOndemandTag(const nlohmann::json& systemAbilityJson,
483 if (!ParseJsonTag(systemAbilityJson, jsonTag, onDemandJson)) {
490 void ParseUtil::ParseStopOndemandTag(const nlohmann::json& systemAbilityJson,
494 if (!ParseJsonTag(systemAbilityJson, jsonTag, onDemandJson)) {