Lines Matching defs:key

359 int OH_Udmf_GetUnifiedData(const char* key, Udmf_Intention intention, OH_UdmfData* data)

361 if (!IsUnifiedDataValid(data) || key == nullptr) {
372 QueryOption query = {.key = std::string(key), .intention = queryOptIntent};
380 int OH_Udmf_SetUnifiedData(Udmf_Intention intention, OH_UdmfData* unifiedData, char* key, unsigned int keyLen)
382 if (!IsUnifiedDataValid(unifiedData) || key == nullptr || keyLen < UDMF_KEY_BUFFER_LEN) {
399 if (strcpy_s(key, keyLen, keyStr.c_str()) != EOK) {
770 int OH_UdmfProperty_GetExtrasIntParam(OH_UdmfProperty* properties, const char* key, const int defaultValue)
772 return (IsUnifiedPropertiesValid(properties) && key != nullptr) ?
773 properties->properties_->extras.GetIntParam(key, defaultValue) : defaultValue;
776 const char* OH_UdmfProperty_GetExtrasStringParam(OH_UdmfProperty* properties, const char* key)
778 if (!IsUnifiedPropertiesValid(properties) || key == nullptr) {
781 properties->extraStr = properties->properties_->extras.GetStringParam(key);
813 int OH_UdmfProperty_SetExtrasIntParam(OH_UdmfProperty* properties, const char* key, int param)
815 if (!IsUnifiedPropertiesValid(properties) || key == nullptr) {
819 properties->properties_->extras.SetParam(key, OHOS::AAFwk::Integer::Box(param));
823 int OH_UdmfProperty_SetExtrasStringParam(OH_UdmfProperty* properties, const char* key, const char* param)
825 if (!IsUnifiedPropertiesValid(properties) || key == nullptr || param == nullptr) {
829 properties->properties_->extras.SetParam(key, OHOS::AAFwk::String::Box(param));