Lines Matching defs:itemRoots
129 cJSON *itemRoots = cJSON_GetObjectItem(root, ITEM_OPERATOR_INFOS);
130 if (itemRoots == nullptr || !cJSON_IsArray(itemRoots) || cJSON_GetArraySize(itemRoots) <= 0) {
131 DATA_STORAGE_LOGE("ParserUtil::ParserPdpProfileJson itemRoots size == 0!");
133 itemRoots = nullptr;
137 ParserPdpProfileInfos(vec, itemRoots);
139 itemRoots = nullptr;
144 void ParserUtil::ParserPdpProfileInfos(std::vector<PdpProfile> &vec, cJSON *itemRoots)
147 for (int32_t i = 0; i < cJSON_GetArraySize(itemRoots); i++) {
148 itemRoot = cJSON_GetArrayItem(itemRoots, i);
250 cJSON *itemRoots = cJSON_GetObjectItem(root, ITEM_OPERATOR_ID);
251 if (itemRoots == nullptr || !cJSON_IsArray(itemRoots) || cJSON_GetArraySize(itemRoots) <= 0) {
252 DATA_STORAGE_LOGE("ParserUtil::ParserOpKeyInfos itemRoots size == 0!");
254 itemRoots = nullptr;
258 ParserOpKeyInfos(vec, itemRoots);
260 itemRoots = nullptr;
265 void ParserUtil::ParserOpKeyInfos(std::vector<OpKey> &vec, cJSON *itemRoots)
269 for (int i = 0; i < cJSON_GetArraySize(itemRoots); i++) {
270 itemRoot = cJSON_GetArrayItem(itemRoots, i);
365 cJSON *itemRoots = cJSON_GetObjectItem(root, ITEM_NUM_MATCH_INFOS);
366 if (itemRoots == nullptr || !cJSON_IsArray(itemRoots) || cJSON_GetArraySize(itemRoots) <= 0) {
367 DATA_STORAGE_LOGE("ParserUtil::ParserNumMatchJson itemRoots size == 0!\n");
369 itemRoots = nullptr;
373 ParserNumMatchInfos(vec, itemRoots);
375 itemRoots = nullptr;
380 void ParserUtil::ParserNumMatchInfos(std::vector<NumMatch> &vec, cJSON *itemRoots)
383 for (int32_t i = 0; i < cJSON_GetArraySize(itemRoots); i++) {
384 itemRoot = cJSON_GetArrayItem(itemRoots, i);
459 cJSON *itemRoots = cJSON_GetObjectItem(root, ITEM_OPERATOR_INFOS);
460 if (itemRoots == nullptr || !cJSON_IsArray(itemRoots) || cJSON_GetArraySize(itemRoots) <= 0) {
461 DATA_STORAGE_LOGE("ParserUtil::ParserEccDataJson itemRoots size == 0!");
463 itemRoots = nullptr;
467 ParserEccDataInfos(vec, itemRoots);
469 itemRoots = nullptr;
474 void ParserUtil::ParserEccDataInfos(std::vector<EccNum> &vec, cJSON *itemRoots)
477 for (int i = 0; i < cJSON_GetArraySize(itemRoots); i++) {
478 itemRoot = cJSON_GetArrayItem(itemRoots, i);