Home
last modified time | relevance | path

Searched refs:cJSON_GetNumberValue (Results 1 – 10 of 10) sorted by relevance

/base/startup/appspawn_lite/services/src/
Dappspawn_message.c100 return cJSON_GetNumberValue(strItem); in ReadNumberItem()
133 if (!cJSON_IsNumber(capJ) || cJSON_GetNumberValue(capJ) < 0) { in GetCaps()
139 msgSt->caps[i] = (unsigned int)cJSON_GetNumberValue(capJ); in GetCaps()
/base/startup/appspawn/lite/
Dappspawn_message.c101 return cJSON_GetNumberValue(strItem); in ReadNumberItem()
134 if (!cJSON_IsNumber(capJ) || cJSON_GetNumberValue(capJ) < 0) { in GetCaps()
140 msgSt->caps[i] = (unsigned int)cJSON_GetNumberValue(capJ); in GetCaps()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h57 double cJSON_GetNumberValue(const cJSON* const item);
/base/startup/init/services/init/
Dinit_capability.c114 caps = (unsigned int)cJSON_GetNumberValue(capJson); in GetServiceCaps()
Dinit_service_manager.c233 *uid = (uid_t)cJSON_GetNumberValue(json); in GetUid()
249 *gid = (gid_t)cJSON_GetNumberValue(json); in GetGid()
306 int value = (int)cJSON_GetNumberValue(filedJ); in GetServiceAttr()
646 int attrValue = (int)cJSON_GetNumberValue(attrItem); in GetCritical()
655 int value = (int)cJSON_GetNumberValue(crashCountItem); in GetCritical()
661 value = (int)cJSON_GetNumberValue(crashTimeItem); in GetCritical()
699 cpus = (int)cJSON_GetNumberValue(item); in GetCpuArgs()
721 int isSandbox = (int)cJSON_GetNumberValue(item); in GetServiceSandbox()
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c50 if ((!cJSON_IsNumber(tokenIdJson)) || (cJSON_GetNumberValue(tokenIdJson) <= 0)) { in GetTokenIdFromJson()
72 int32_t apl = cJSON_GetNumberValue(aplJson); in GetAplFromJson()
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c217 *value = (int)cJSON_GetNumberValue(jsonObjTmp); in GetIntFromJson()
243 double realValue = cJSON_GetNumberValue(jsonObjTmp); in GetUnsignedIntFromJson()
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp635 EXPECT_TRUE(cJSON_GetNumberValue(filedJ) >= 0.0 || cJSON_GetStringValue(filedJ)); in CheckService()
639 EXPECT_TRUE(cJSON_GetNumberValue(filedJ) >= 0.0 || cJSON_GetArraySize(filedJ) >= 0); in CheckService()
654 EXPECT_TRUE(cJSON_GetNumberValue(capJ) >= 0.0 || cJSON_GetStringValue(capJ)); in CheckService()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
DcJSON.c119 double cJSON_GetNumberValue(const cJSON* const item) in cJSON_GetNumberValue() function
/base/startup/init/interfaces/innerkits/sandbox/
Dsandbox.c248 if (cJSON_GetNumberValue(obj) == 1) { in AddMountInfoToSandbox()