/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | convert_utils_test.cpp | 55 void InitDataWithEntries(UDMF::UnifiedData &data); 56 void InitDataWithPlainEntry(UDMF::UnifiedData &data); 57 void InitDataWithHtmlEntry(UDMF::UnifiedData &data); 58 void InitDataWithFileUriEntry(UDMF::UnifiedData &data); 59 void InitDataWithPixelMapEntry(UDMF::UnifiedData &data); 60 void InitDataWitCustomEntry(UDMF::UnifiedData &data); 61 void InitDataWitSameCustomEntry(UDMF::UnifiedData &data); 63 void AddPlainUdsEntry(UDMF::UnifiedRecord &record); 64 void AddFileUriUdsEntry(UDMF::UnifiedRecord &record); 65 void AddHtmlUdsEntry(UDMF [all...] |
H A D | paste_data_record_test.cpp | 76 auto utdId = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::PLAIN_TEXT); in AddPlainUdsEntry() 78 object->value_[UDMF::UNIFORM_DATA_TYPE] = utdId; in AddPlainUdsEntry() 79 object->value_[UDMF::CONTENT] = text_; in AddPlainUdsEntry() 85 auto utdId = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::FILE_URI); in AddFileUriUdsEntry() 87 object->value_[UDMF::UNIFORM_DATA_TYPE] = utdId; in AddFileUriUdsEntry() 88 object->value_[UDMF::FILE_URI_PARAM] = uri_; in AddFileUriUdsEntry() 89 object->value_[UDMF::FILE_TYPE] = ""; in AddFileUriUdsEntry() 95 auto utdId = UDMF in AddHtmlUdsEntry() [all...] |
H A D | pasteboard_unified_data_test.cpp | 40 UDMF::UnifiedData InitTextData(); 41 UDMF::UnifiedData InitPlainData(); 42 UDMF::UnifiedData InitHtmlData(); 43 UDMF::UnifiedData InitWantData(); 44 UDMF::UnifiedData InitLinkData(); 45 UDMF::UnifiedData InitFileData(); 46 UDMF::UnifiedData InitImageData(); 47 UDMF::UnifiedData InitVideoData(); 48 UDMF::UnifiedData InitAudioData(); 49 UDMF [all...] |
H A D | pasteboard_utils_test.cpp | 34 using UnifiedDataProperties = UDMF::UnifiedDataProperties; 41 UDMF::UnifiedData InitTextData(); 42 UDMF::UnifiedData InitPlainData(); 43 UDMF::UnifiedData InitHtmlData(); 44 UDMF::UnifiedData InitWantData(); 45 UDMF::UnifiedData InitLinkData(); 46 UDMF::UnifiedData InitFileData(); 47 UDMF::UnifiedData InitImageData(); 48 UDMF::UnifiedData InitVideoData(); 49 UDMF [all...] |
H A D | pasteboard_multi_type_unified_data_delay_test.cpp | 26 using namespace OHOS::UDMF; 34 static std::string plainTextUtdId_ = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::PLAIN_TEXT); 35 static std::string htmlUtdId_ = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML); 36 static std::string fileUriUtdId_ = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::FILE_URI); 37 static std::string pixelMapUtdId_ = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::SYSTEM_DEFINED_PIXEL_MAP); 38 static std::string linkUtdId_ = UDMF [all...] |
H A D | paste_data_entry_test.cpp | 58 auto utdId = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::PLAIN_TEXT); in InitPlaintTextEntry() 59 udsObject->value_[UDMF::UNIFORM_DATA_TYPE] = utdId; in InitPlaintTextEntry() 60 udsObject->value_[UDMF::CONTENT] = text_; in InitPlaintTextEntry() 67 auto utdId = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::FILE_URI); in InitUriEntry() 68 udsObject->value_[UDMF::UNIFORM_DATA_TYPE] = utdId; in InitUriEntry() 69 udsObject->value_[UDMF::FILE_URI_PARAM] = uri_; in InitUriEntry() 70 udsObject->value_[UDMF::FILE_TYPE] = ""; in InitUriEntry() 76 auto utdId = UDMF in InitWantEntry() [all...] |
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/ |
H A D | pasteboard_utils.cpp | 33 using UnifiedRecord = UDMF::UnifiedRecord; 34 using UnifiedData = UDMF::UnifiedData; 35 using UnifiedDataProperties = UDMF::UnifiedDataProperties; 36 using UDType = UDMF::UDType; 41 { UDMF::TEXT, PasteRecord2Text }, in InitDecodeMap() 42 { UDMF::PLAIN_TEXT, PasteRecord2PlaintText }, in InitDecodeMap() 43 { UDMF::OPENHARMONY_WANT, PasteRecord2Want }, in InitDecodeMap() 44 { UDMF::HTML, PasteRecord2Html }, in InitDecodeMap() 45 { UDMF::HYPERLINK, PasteRecord2Link }, in InitDecodeMap() 46 { UDMF in InitDecodeMap() [all...] |
H A D | paste_data_entry.cpp | 204 if (utdId == UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::PLAIN_TEXT)) { in ConvertToPlianText() 205 object->GetValue(UDMF::CONTENT, res); in ConvertToPlianText() 207 object->GetValue(UDMF::URL, res); in ConvertToPlianText() 215 if (GetUtdId() != UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::HTML)) { in ConvertToHtml() 229 object->GetValue(UDMF::HTML_CONTENT, res); in ConvertToHtml() 236 if (GetUtdId() != UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::FILE_URI)) { in ConvertToUri() 250 object->GetValue(UDMF::FILE_URI_PARAM, res); in ConvertToUri() 256 if (GetUtdId() != UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::OPENHARMONY_WANT)) { in ConvertToWant() 272 if (utdId != UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::SYSTEM_DEFINED_PIXEL_MAP)) { in ConvertToPixelMap() 286 if (!object->GetValue(UDMF in ConvertToPixelMap() [all...] |
H A D | convert_utils.cpp | 20 using UnifiedRecord = UDMF::UnifiedRecord; 21 using UnifiedData = UDMF::UnifiedData; 22 using UnifiedDataProperties = UDMF::UnifiedDataProperties; 23 using UDType = UDMF::UDType; 115 const std::shared_ptr<std::map<std::string, UDMF::ValueType>> &entries) in Convert() 128 std::shared_ptr<std::vector<std::pair<std::string, UDMF::ValueType>>> ConvertUtils::Convert( in Convert() 131 std::map<std::string, UDMF::ValueType> udmfEntryMap; in Convert() 132 std::vector<std::pair<std::string, UDMF::ValueType>> udmfEntries; in Convert() 146 udmfEntries.emplace_back(std::pair<std::string, UDMF::ValueType>(item->first, item->second)); in Convert() 149 return std::make_shared<std::vector<std::pair<std::string, UDMF in Convert() [all...] |
H A D | paste_data_record.cpp | 117 object->value_[UDMF::UNIFORM_DATA_TYPE] = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::FILE_URI); in AddUriEntry() 119 object->value_[UDMF::FILE_URI_PARAM] = uri_->ToString(); in AddUriEntry() 121 auto utdId = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::FILE_URI); in AddUriEntry() 171 auto utdId = CommonUtils::Convert2UtdId(UDMF::UDType::UD_BUTT, recordMimeType); in NewMultiTypeRecord() 179 auto utdId = CommonUtils::Convert2UtdId(UDMF::UDType::UD_BUTT, mimeType); in NewMultiTypeRecord() 186 std::vector<std::string> mimeTypes, const std::shared_ptr<UDMF::EntryGetter> entryGetter) in NewMultiTypeDelayRecord() 190 auto utdId = CommonUtils::Convert2UtdId(UDMF in NewMultiTypeDelayRecord() [all...] |
/foundation/distributeddatamgr/udmf/interfaces/jskits/module/ |
H A D | unified_data_channel_napi_module.cpp | 35 using namespace OHOS::UDMF; 40 OHOS::UDMF::UnifiedDataChannelNapi::UnifiedDataChannelInit(env, exports); in Init() 44 OHOS::UDMF::UnifiedDataPropertiesNapi::Constructor(env)); in Init() 46 status = napi_set_named_property(env, exports, "UnifiedData", OHOS::UDMF::UnifiedDataNapi::Constructor(env)); in Init() 48 status = napi_set_named_property(env, exports, "Summary", OHOS::UDMF::SummaryNapi::Constructor(env)); in Init() 50 status = napi_set_named_property(env, exports, "UnifiedRecord", OHOS::UDMF::UnifiedRecordNapi::Constructor(env)); in Init() 52 status = napi_set_named_property(env, exports, "Text", OHOS::UDMF::TextNapi::Constructor(env)); in Init() 54 status = napi_set_named_property(env, exports, "PlainText", OHOS::UDMF::PlainTextNapi::Constructor(env)); in Init() 56 status = napi_set_named_property(env, exports, "Hyperlink", OHOS::UDMF::LinkNapi::Constructor(env)); in Init() 58 status = napi_set_named_property(env, exports, "HTML", OHOS::UDMF in Init() [all...] |
H A D | uniform_type_descriptor_napi_module.cpp | 19 using namespace OHOS::UDMF; 24 OHOS::UDMF::UniformTypeDescriptorNapi::UniformTypeDescriptorInit(env, exports); in Init() 26 napi_set_named_property(env, exports, "TypeDescriptor", OHOS::UDMF::TypeDescriptorNapi::Constructor(env)); in Init()
|
/foundation/arkui/ace_engine/adapter/ohos/capability/udmf/ |
H A D | udmf_impl.cpp | 65 auto* unifiedData = reinterpret_cast<UDMF::UnifiedDataNapi*>(native); in TransformUnifiedData() 82 UDMF::UnifiedDataNapi::NewInstance(env, unifiedData, dataVal); in TransformUdmfUnifiedData() 90 std::shared_ptr<UDMF::UnifiedData> unifiedData = in TransformUnifiedDataPtr() 102 auto unifiedData = std::make_shared<UDMF::UnifiedData>(); in TransformUnifiedDataForNative() 103 auto status = OHOS::UDMF::NdkDataConversion::GetNativeUnifiedData(udmfData, unifiedData); in TransformUnifiedDataForNative() 118 std::shared_ptr<UDMF::Summary> udmfSummary = std::make_shared<UDMF::Summary>(); in TransformSummary() 126 UDMF::SummaryNapi::NewInstance(env, udmfSummary, dataVal); in TransformSummary() 133 auto& client = UDMF::UdmfClient::GetInstance(); in SetData() 134 UDMF in SetData() [all...] |
/foundation/distributeddatamgr/udmf/interfaces/cj/src/ |
H A D | uniform_type_descriptor_ffi.cpp | 21 using namespace OHOS::UDMF; 24 namespace UDMF { namespace 29 return UDMF::GetTypeDescriptor(typeId); in FfiUDMFUniformTypeDescriptorGetTypeDescriptor() 35 return UDMF::GetUniformDataTypeByFilenameExtension(cFilenameExtension, cBelongsTo); in FfiUDMFUniformTypeDescriptorGetUniformDataTypeByFilenameExtension() 40 return UDMF::GetUniformDataTypeByMIMEType(cMimeType, cBelongsTo); in FfiUDMFUniformTypeDescriptorGetUniformDataTypeByMIMEType()
|
H A D | type_descriptor_impl.cpp | 30 using namespace OHOS::UDMF; 33 namespace UDMF { namespace 34 CTypeDescriptor::CTypeDescriptor(std::shared_ptr<UDMF::TypeDescriptor> typeDescriptor) in CTypeDescriptor() 103 const std::shared_ptr<UDMF::TypeDescriptor> &CTypeDescriptor::GetTypeDescriptor() const in GetTypeDescriptor()
|
H A D | unified_data_impl.cpp | 52 using namespace OHOS::UDMF; 55 namespace UDMF { namespace 62 CUnifiedData::CUnifiedData(UDMF::CUnifiedRecord *record) in CUnifiedData() 73 void CUnifiedData::AddRecord(UDMF::CUnifiedRecord *record) in AddRecord()
|
/foundation/distributeddatamgr/udmf/interfaces/cj/include/ |
H A D | unified_data_impl.h | 26 namespace UDMF { namespace 27 using namespace OHOS::UDMF; 35 CUnifiedData(UDMF::CUnifiedRecord *record); 37 void AddRecord(UDMF::CUnifiedRecord *record); 43 std::shared_ptr<UDMF::UnifiedData> unifiedData_; 44 std::vector<UDMF::CUnifiedRecord *> records_; 48 } // namespace OHOS::UDMF
|
H A D | type_descriptor_impl.h | 26 namespace UDMF { namespace 27 using namespace OHOS::UDMF; 32 CTypeDescriptor(std::shared_ptr<UDMF::TypeDescriptor> typeDescriptor); 47 const std::shared_ptr<UDMF::TypeDescriptor> &GetTypeDescriptor() const; 50 std::shared_ptr<UDMF::TypeDescriptor> typeDescriptor_; 54 } // namespace OHOS::UDMF
|
H A D | unified_record_impl.h | 23 namespace UDMF { namespace 24 using namespace OHOS::UDMF; 60 const std::shared_ptr<UDMF::UnifiedRecord> &GetUnifiedRecord() const; 63 std::shared_ptr<UDMF::UnifiedRecord> unifiedRecord_; 68 } // namespace OHOS::UDMF
|
H A D | uniform_type_descriptor_impl.h | 27 namespace UDMF { namespace 28 using namespace OHOS::UDMF; 33 } // namespace OHOS::UDMF
|
/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | udmf_types_util.h | 27 using UnifiedData = UDMF::UnifiedData; 28 using Summary = UDMF::Summary; 29 using Privilege = UDMF::Privilege; 30 using CustomOption = UDMF::CustomOption; 31 using QueryOption = UDMF::QueryOption; 32 using UDType = UDMF::UDType; 33 using Intention = UDMF::Intention; 34 using AsyncProcessInfo = UDMF::AsyncProcessInfo;
|
/foundation/distributeddatamgr/pasteboard/framework/innerkits/include/ |
H A D | convert_utils.h | 25 using UnifiedRecord = UDMF::UnifiedRecord; 26 using UnifiedData = UDMF::UnifiedData; 27 using UnifiedDataProperties = UDMF::UnifiedDataProperties; 28 using UDType = UDMF::UDType; 46 const std::shared_ptr<std::map<std::string, UDMF::ValueType>> &entries); 47 static std::shared_ptr<std::vector<std::pair<std::string, UDMF::ValueType>>> Convert(
|
H A D | pasteboard_client.h | 102 * @param std::shared_ptr<UDMF::EntryGetter> entryGetter 106 std::vector<std::string> mimeTypes, const std::shared_ptr<UDMF::EntryGetter> entryGetter); 172 * @param std::shared_ptr<UDMF::EntryGetter> entryGetter 176 std::shared_ptr<UDMF::EntryGetter> entryGetter); 219 std::map<uint32_t, std::shared_ptr<UDMF::EntryGetter>> entryGetters = {}); 228 const UDMF::UnifiedData &unifiedData, std::shared_ptr<PasteboardDelayGetter> delayGetter = nullptr); 236 int32_t GetUnifiedData(UDMF::UnifiedData &unifiedData); 244 int32_t SetUdsdData(const UDMF::UnifiedData &unifiedData); 252 int32_t GetUdsdData(UDMF::UnifiedData &unifiedData);
|
/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/ |
H A D | udmf_capi_common.h | 28 std::shared_ptr<OHOS::UDMF::Object> obj;
93 std::shared_ptr<OHOS::UDMF::UnifiedRecord> record_;
104 std::shared_ptr<OHOS::UDMF::UnifiedData> unifiedData_;
114 std::shared_ptr<OHOS::UDMF::UnifiedDataProperties> properties_;
121 bool IsInvalidUdsObjectByType(const UdsObject* pThis, const OHOS::UDMF::UDType& type);
|
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | file_test.cpp | 27 using namespace OHOS::UDMF; 66 OHOS::UDMF::File file(type, value); in HWTEST_F() 82 OHOS::UDMF::File file(type, value); in HWTEST_F()
|