Home
last modified time | relevance | path

Searched refs:itemDesc (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/security/permission_lite/services/pms_client/
H A Dperm_client.c233 cJSON *itemDesc = cJSON_GetObjectItem(object, FIELD_DESC); in ParsePermissions() local
235 if (itemName == NULL || itemDesc == NULL || itemGranted == NULL || !cJSON_IsString(itemName) in ParsePermissions()
236 … || itemName->valuestring == NULL || !cJSON_IsString(itemDesc) || itemDesc->valuestring == NULL) { in ParsePermissions()
243 || strcpy_s((*perms + i)->desc, PERM_DESC_LEN, itemDesc->valuestring) != EOK) { in ParsePermissions()
/ohos5.0/base/security/permission_lite/services/pms/src/
H A Dpms_impl.c147 cJSON *itemDesc = cJSON_GetObjectItem(object, FIELD_DESC); in ParseFixedPermissionsItem() local
149 if (itemName == NULL || itemDesc == NULL || itemGranted == NULL || in ParseFixedPermissionsItem()
150 !cJSON_IsString(itemName) || !cJSON_IsString(itemDesc) || itemName->valuestring == NULL) { in ParseFixedPermissionsItem()
156 if (strcpy_s(perms->desc, PERM_DESC_LEN, itemDesc->valuestring) != EOK) { in ParseFixedPermissionsItem()