Home
last modified time | relevance | path

Searched refs:cJSON_IsNumber (Results 1 – 11 of 11) sorted by relevance

/base/security/device_security_level/baselib/utils/src/
Dutils_json.c64 if (!cJSON_IsNumber(objValue)) { in GetJsonFieldInt()
94 if (!cJSON_IsNumber(item)) { in GetJsonFieldIntArray()
/base/startup/appspawn_lite/services/src/
Dappspawn_message.c96 if (strItem == NULL || !cJSON_IsNumber(strItem)) { in ReadNumberItem()
133 if (!cJSON_IsNumber(capJ) || cJSON_GetNumberValue(capJ) < 0) { in GetCaps()
/base/startup/appspawn/lite/
Dappspawn_message.c97 if (strItem == NULL || !cJSON_IsNumber(strItem)) { in ReadNumberItem()
134 if (!cJSON_IsNumber(capJ) || cJSON_GetNumberValue(capJ) < 0) { in GetCaps()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h55 cJSON_bool cJSON_IsNumber(const cJSON* const item);
/base/startup/init/services/init/
Dinit_capability.c113 if (cJSON_IsNumber(capJson)) { // for number in GetServiceCaps()
Dinit_service_manager.c232 } else if (cJSON_IsNumber(json)) { in GetUid()
248 } else if (cJSON_IsNumber(json)) { in GetGid()
303 INIT_ERROR_CHECK(cJSON_IsNumber(filedJ), return SERVICE_FAILURE, in GetServiceAttr()
637 if (cJSON_IsNumber(arrItem)) { in GetCritical()
642 if (attrItem == NULL || !cJSON_IsNumber(attrItem)) { in GetCritical()
719 INIT_ERROR_CHECK(cJSON_IsNumber(item), return SERVICE_FAILURE, in GetServiceSandbox()
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c50 if ((!cJSON_IsNumber(tokenIdJson)) || (cJSON_GetNumberValue(tokenIdJson) <= 0)) { in GetTokenIdFromJson()
68 if (!cJSON_IsNumber(aplJson)) { in GetAplFromJson()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
DcJSON.c77 cJSON_bool cJSON_IsNumber(const cJSON* const item) in cJSON_IsNumber() function
121 if (cJSON_IsNumber(item) == 0) { in cJSON_GetNumberValue()
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp634 EXPECT_TRUE(cJSON_IsNumber(filedJ) || cJSON_IsString(filedJ)); in CheckService()
638 EXPECT_TRUE(cJSON_IsNumber(filedJ) || cJSON_IsArray(filedJ)); in CheckService()
642 EXPECT_TRUE(cJSON_IsNumber(filedJ)); in CheckService()
645 EXPECT_TRUE(cJSON_IsNumber(filedJ)); in CheckService()
653 EXPECT_TRUE(cJSON_IsNumber(capJ) || cJSON_GetStringValue(capJ)); in CheckService()
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c60 if (!cJSON_IsNumber(obj_value)) { in get_json_int()
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c216 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetIntFromJson()
242 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetUnsignedIntFromJson()