Home
last modified time | relevance | path

Searched refs:utd (Results 1 - 21 of 21) sorted by relevance

/foundation/distributeddatamgr/udmf/framework/ndkimpl/unittest/
H A Dutd_test.cpp27 #include "utd.h"
41 OH_Utd* utd = nullptr; member
58 utd = OH_Utd_Create(UDMF_META_PLAIN_TEXT); in SetUp()
63 OH_Utd_Destroy(utd); in TearDown()
64 utd = nullptr; in TearDown()
76 EXPECT_EQ(utd->typeId, UDMF_META_PLAIN_TEXT); in HWTEST_F()
77 EXPECT_EQ(utd->belongingToTypesCount, 1); in HWTEST_F()
78 std::string belongingToType((utd->belongingToTypes)[0]); in HWTEST_F()
80 EXPECT_EQ(utd->description, "Text of unspecified encoding, with no markup."); in HWTEST_F()
96 std::string actualTypeId(OH_Utd_GetTypeId(utd)); in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/deeplink_reserve_config_test/
H A Ddeeplink_reserve_config_test.cpp89 "utd": "utd" in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dmime_type_mgr.cpp41 APP_LOGD("Get utd vector by uri %{private}s failed", uri.c_str()); in GetMimeTypeByUri()
44 for (const std::string &utd : utdVector) { in GetMimeTypeByUri()
46 auto ret = UDMF::UtdClient::GetInstance().GetTypeDescriptor(utd, typeDescriptor); in GetMimeTypeByUri()
106 APP_LOGD("Get utd vector by suffix %{public}s failed. err %{public}d", suffix.c_str(), ret); in GetUtdVectorByUri()
H A Dskill.cpp44 constexpr const char* JSON_KEY_UTD = "utd";
469 // 2.param : utd, skill : utd in MatchUtd()
472 // 3.param : mimeType, skill : utd in MatchUtd()
485 // 4.param : utd, skill : mimeType in MatchUtd()
601 uri.utd = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
649 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(uri.utd)); in Marshalling()
709 uri.utd, false, parseResult); in from_json()
770 {JSON_KEY_UTD, uri.utd}, in to_json()
H A Dextension_ability_info.cpp162 stctUri.utd = Str16ToStr8(parcel.ReadString16()); in ReadSkillInfoFromParcel()
285 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(uri.utd)); in MarshallingSkillUri()
H A Dability_info.cpp289 stctUri.utd = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
478 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(uri.utd)); in Marshalling()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/default_app/
H A Ddefault_app_mgr.h57 int32_t userId, const std::string& utd, BundleInfo& bundleInfo, bool backup = false) const;
61 bool MatchUtd(const std::string& utd, const std::vector<Skill>& skills) const;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/
H A Ddefault_app_mgr.cpp519 int32_t userId, const std::string& utd, BundleInfo& bundleInfo, bool backup) const in GetBundleInfoByUtd()
547 if (skill.MatchType(utd, mimeType) && GetBundleInfo(userId, utd, item.second, bundleInfo)) { in GetBundleInfoByUtd()
553 // match default utd in GetBundleInfoByUtd()
555 if (item.first == utd && GetBundleInfo(userId, utd, item.second, bundleInfo)) { in GetBundleInfoByUtd()
556 LOG_I(BMS_TAG_DEFAULT, "match default utd success"); in GetBundleInfoByUtd()
560 LOG_W(BMS_TAG_DEFAULT, "get bundleInfo by utd failed"); in GetBundleInfoByUtd()
700 bool DefaultAppMgr::MatchUtd(const std::string& utd, const std::vector<Skill>& skills) const in MatchUtd() argument
702 LOG_D(BMS_TAG_DEFAULT, "utd in MatchUtd()
518 GetBundleInfoByUtd( int32_t userId, const std::string& utd, BundleInfo& bundleInfo, bool backup) const GetBundleInfoByUtd() argument
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/include/deeplink_reserve/
H A Ddeeplink_reserve_config.h36 std::string utd; member
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dskill.h36 std::string utd; member
H A Dextension_ability_info.h137 std::string utd; member
/foundation/ability/ability_runtime/services/abilitymgr/src/deeplink_reserve/
H A Ddeeplink_reserve_config.cpp40 const std::string UTD_NAME = "utd";
217 reserveUri.utd = utdName; in LoadReservedUrilItem()
218 TAG_LOGD(AAFwkTag::ABILITYMGR, "utd:%{public}s", reserveUri.utd.c_str()); in LoadReservedUrilItem()
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dbundle_manager_utils.h117 char* utd; member
H A Dbundle_manager_convert.cpp156 skillUri.utd = MallocCString(cUri.utd); in ConvertSkillUri()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_default_app_test/
H A Dbms_bundle_default_app_test.cpp2038 * @tc.desc: 1.mimeType convert to utd, suffix convert to utd
2039 * 2.utd and appType no need to convert
2087 * @tc.desc: 1.mimeType convert to utd, suffix convert to utd
2283 const std::string utd; in HWTEST_F() local
2286 ErrCode ret = defaultAppMgr.GetBundleInfoByUtd(userId, utd, bundleInfo, backup); in HWTEST_F()
2332 std::string utd = "type"; in HWTEST_F() local
2340 bool ret = defaultAppMgr.MatchUtd(utd, skills); in HWTEST_F()
2343 utd in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_data_mgr.cpp89 constexpr const char* UTD_SDT_PROFILE_PATH = "resources/rawfile/arkdata/utd/utd.json5";
1654 skillinfo.utd = uri.utd; in AddSkillUrisInfo()
1784 for (const auto &utd : utds) { in MatchShare()
1785 int32_t count = shareSummary.GetIntParam(utd, DEFAULT_SUMMARY_COUNT); in MatchShare()
1787 LOG_W(BMS_TAG_QUERY, "invalid utd count"); in MatchShare()
1792 if (MatchUtd(skill, utd, count)) { in MatchShare()
1805 bool BundleDataMgr::MatchUtd(const Skill &skill, const std::string &utd, int32_t count) const in MatchUtd() argument
1811 if (!skillUri.utd in MatchUtd()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_data_mgr_test/
H A Dbms_data_mgr_test.cpp1925 * @tc.desc: 1.test match utd
1932 std::string utd = ""; in HWTEST_F() local
1934 bool result = dataMgr->MatchUtd(skill, utd, count); in HWTEST_F()
1940 result = dataMgr->MatchUtd(skill, utd, count); in HWTEST_F()
1947 * @tc.desc: 1.test match utd without count
1962 * @tc.desc: 1.test match type with utd
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_data_mgr.h1066 bool MatchUtd(const Skill &skill, const std::string &utd, int32_t count) const;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp248 const std::string URI_UTD = "utd";
905 uri.utd = URI_UTD; in MockAbilitySkillInfo()
927 uri.utd = URI_UTD; in MockExtensionSkillInfo()
1118 EXPECT_EQ(skill.uris[0].utd, URI_UTD); in CheckSkillInfos()
6560 * @tc.name: utd match test
6561 * @tc.desc: param : utd, skill : utd
6578 * @tc.name: utd match test
6579 * @tc.desc: param : mimeType, skill : utd
6595 * @tc.name: utd matc
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/
H A Dcommon_func.cpp912 NAPI_CALL_RETURN_VOID(env, napi_create_string_utf8(env, skillUri.utd.c_str(), NAPI_AUTO_LENGTH, &nUtd)); in ConvertAbilitySkillUri()
913 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "utd", nUtd)); in ConvertAbilitySkillUri()
/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_test_tool.cpp4381 msg += " utd: " + uri.utd + "\n"; in ImplicitQuerySkillUriInfo()

Completed in 54 milliseconds