Home
last modified time | relevance | path

Searched refs:valuestring (Results 1 – 14 of 14) sorted by relevance

/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c34 if (!cJSON_IsString(processNameJson) || (processNameJson->valuestring == NULL) || in GetProcessNameFromJson()
35 (strlen(processNameJson->valuestring) > MAX_PROCESS_NAME_LEN)) { in GetProcessNameFromJson()
40 …if (strcpy_s(tokenNode->processName, MAX_PROCESS_NAME_LEN + 1, processNameJson->valuestring) != EO… in GetProcessNameFromJson()
93 if ((item == NULL) || (!cJSON_IsString(item)) || (item->valuestring == NULL)) { in GetInfoArrFromJson()
97 size_t length = strlen(item->valuestring); in GetInfoArrFromJson()
108 if (strcpy_s(strArr[i], length + 1, item->valuestring) != EOK) { in GetInfoArrFromJson()
287 …ameJson == NULL) || (!cJSON_IsString(processNameJson)) || (processNameJson->valuestring == NULL)) { in UpdateGoalItemFromRecord()
291 if (strcmp(processNameJson->valuestring, tokenNode->processName) == 0) { in UpdateGoalItemFromRecord()
/base/sensors/miscdevice/utils/src/
Djson_parser.cpp85 if ((!cJSON_IsString(val)) || (val->valuestring == nullptr)) { in ParseJsonArray()
89 vals.push_back(val->valuestring); in ParseJsonArray()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_provision.c43 if ((jsonObj == NULL) || (jsonObj->valuestring == NULL)) { in GetStringTag()
47 int32_t objLen = strlen(jsonObj->valuestring); in GetStringTag()
57 errno_t ret = strcpy_s(value, objLen + 1, jsonObj->valuestring); in GetStringTag()
104 if (item->valuestring == NULL) { in GetStringArrayTag()
108 int32_t len = strlen(item->valuestring); in GetStringArrayTag()
112 errno_t ret = strcpy_s(value[i], len + 1, item->valuestring); in GetStringArrayTag()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h32 char* valuestring; member
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp60 myPartition->partName = (item->valuestring); in SetPartitionInfo()
67 myPartition->fsType = (item->valuestring); in SetPartitionInfo()
/base/security/permission_lite/services/pms_client/
Dperm_client.c236 … || itemName->valuestring == NULL || !cJSON_IsString(itemDesc) || itemDesc->valuestring == NULL) { in ParsePermissions()
242 if (strcpy_s((*perms + i)->name, PERM_NAME_LEN, itemName->valuestring) != EOK) { in ParsePermissions()
248 if (strcpy_s((*perms + i)->desc, PERM_DESC_LEN, itemDesc->valuestring) != EOK) { in ParsePermissions()
/base/security/permission_lite/services/pms/src/
Dpms_impl.c150 !cJSON_IsString(itemName) || !cJSON_IsString(itemDesc) || itemName->valuestring == NULL) { in ParseFixedPermissionsItem()
153 if (strcpy_s(perms->name, PERM_NAME_LEN, itemName->valuestring) != EOK) { in ParseFixedPermissionsItem()
156 if (strcpy_s(perms->desc, PERM_DESC_LEN, itemDesc->valuestring) != EOK) { in ParseFixedPermissionsItem()
166 if (itemFlags == NULL || !cJSON_IsString(itemFlags) || itemFlags->valuestring == NULL) { in ParseNewPermissionsItem()
170 perms->flags = atoi(itemFlags->valuestring); in ParseNewPermissionsItem()
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c75 return ((cJSON *)obj)->valuestring; in get_json_string()
/base/security/device_security_level/baselib/utils/src/
Dutils_json.c117 return ((cJSON *)handle)->valuestring; in GetJsonFieldString()
/base/msdp/device_status/services/interaction/coordination/src/
Dcoordination_softbus_adapter.cpp59 COOR_SM->StartRemoteCoordination(deviceId->valuestring, cJSON_IsTrue(buttonIsPressed)); in ResponseStartRemoteCoordination()
73 …COOR_SM->StartRemoteCoordinationResult(cJSON_IsTrue(result), dhid->valuestring, x->valueint, y->va… in ResponseStartRemoteCoordinationResult()
109 COOR_SM->NotifyUnchainedResult(deviceId->valuestring, cJSON_IsTrue(result)); in ResponseNotifyUnchainedResult()
121 COOR_SM->StartCoordinationOtherResult(deviceId->valuestring); in ResponseStartCoordinationOtherResult()
/base/update/updater/utils/json/
Djson_node.cpp122 innerObj_ = std::make_optional<std::string>(root->valuestring); in Parse()
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/src/
Ddefault_vibrator_decoder.cpp143 std::string curType = type->valuestring; in ParseEvent()
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_kit_test.cpp87 if ((cJSON_IsString(innerProcessName)) && (innerProcessName->valuestring != nullptr)) { in DeleteGoalItemFromRecord()
88 if (strcmp(innerProcessName->valuestring, processName) == 0) { in DeleteGoalItemFromRecord()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_dump.cpp206 tagCategory.description = description->valuestring; in ParseTagCategory()
221 tagCategory.sysFiles.push_back(sysFile->valuestring); in ParseTagCategory()
238 tagList.push_back(tag->valuestring); in ParseTagGroups()