Home
last modified time | relevance | path

Searched refs:cJSON_IsNumber (Results 1 – 14 of 14) 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/
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.h53 cJSON_bool cJSON_IsNumber(const cJSON* const item);
/base/startup/init/services/init/
Dinit_capability.c113 if (cJSON_IsNumber(capJson)) { // for number in InitServiceCaps()
Dinit_service_manager.c247 } else if (cJSON_IsNumber(json)) { in GetUid()
263 } else if (cJSON_IsNumber(json)) { in GetGid()
321 INIT_ERROR_CHECK(cJSON_IsNumber(filedJ), return SERVICE_FAILURE, in GetServiceAttr()
655 if (cJSON_IsNumber(arrItem)) { in GetCritical()
660 if (attrItem == NULL || !cJSON_IsNumber(attrItem)) { in GetCritical()
737 INIT_ERROR_CHECK(cJSON_IsNumber(item), return SERVICE_FAILURE, in GetServiceSandbox()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
DcJSON.c78 cJSON_bool cJSON_IsNumber(const cJSON* const item) in cJSON_IsNumber() function
112 if (cJSON_IsNumber(item) == 0) { in cJSON_GetNumberValue()
/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/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c60 if (!cJSON_IsNumber(obj_value)) { in get_json_int()
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp631 EXPECT_TRUE(cJSON_IsNumber(filedJ) || cJSON_IsString(filedJ)); in CheckService()
635 EXPECT_TRUE(cJSON_IsNumber(filedJ) || cJSON_IsArray(filedJ)); in CheckService()
639 EXPECT_TRUE(cJSON_IsNumber(filedJ)); in CheckService()
642 EXPECT_TRUE(cJSON_IsNumber(filedJ)); in CheckService()
650 EXPECT_TRUE(cJSON_IsNumber(capJ) || cJSON_GetStringValue(capJ)); in CheckService()
/base/msdp/device_status/libs/src/
Ddevicestatus_data_parse.cpp107 if (mockvalue == nullptr || !cJSON_IsNumber(mockvalue)) { in DeviceStatusDataInit()
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c232 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetIntFromJson()
258 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetUnsignedIntFromJson()
/base/security/device_auth/test/unittest/deviceauth/source/
Djson_utils_mock.c290 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetIntFromJson()
316 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetUnsignedIntFromJson()
/base/msdp/device_status/services/interaction/coordination/src/
Ddevice_profile_adapter.cpp110 if (!cJSON_IsNumber(state)) { in GetCrossingSwitchState()
Dcoordination_softbus_adapter.cpp69 … if (!cJSON_IsBool(result) || !cJSON_IsString(dhid) || !cJSON_IsNumber(x) || !cJSON_IsNumber(y)) { in ResponseStartRemoteCoordinationResult()
658 if (!cJSON_IsNumber(comType)) { in HandleCoordinationSessionData()