Home
last modified time | relevance | path

Searched refs:scheme (Results 1 - 25 of 57) sorted by relevance

123

/foundation/bundlemanager/app_domain_verify/test/unittest/verifier/
H A Dverify_task_test.cpp90 uri1.scheme = ""; in HWTEST_F()
95 uri2.scheme = ""; in HWTEST_F()
100 uri3.scheme = "https"; in HWTEST_F()
105 uri4.scheme = "https"; in HWTEST_F()
110 uri4.scheme = "https"; in HWTEST_F()
115 uri6.scheme = "https"; in HWTEST_F()
120 uri7.scheme = "https"; in HWTEST_F()
125 uri8.scheme = "https"; in HWTEST_F()
144 uri1.scheme = "https"; in HWTEST_F()
164 uri1.scheme in HWTEST_F()
[all...]
/foundation/barrierfree/accessibility/services/test/mock/
H A Dmock_matching_skill.cpp103 void MatchingSkills::AddScheme(const std::string& scheme) in AddScheme() argument
106 bool MatchingSkills::HasScheme(const std::string& scheme) const in HasScheme()
111 void MatchingSkills::RemoveScheme(const std::string& scheme) in RemoveScheme() argument
144 bool MatchingSkills::MatchScheme(const std::string& scheme) const in MatchScheme()
/foundation/communication/nfc/services/src/tag/
H A Dndef_har_data_parser.cpp163 std::string scheme = ndefUri.GetScheme(); in ParseUriLink() local
164 if (!scheme.empty()) { in ParseUriLink()
166 if ((scheme.size() >= 3) && (scheme.substr(0, 3) == TEL_PREFIX)) { // 3 is tel length in ParseUriLink()
172 } else if ((scheme.size() >= 3) && (scheme.substr(0, 3) == SMS_PREFIX)) { // 3 is sms length in ParseUriLink()
178 } else if ((scheme.size() >= 6) && (scheme.substr(0, 6) == MAIL_PREFIX)) { // 6 is mailto length in ParseUriLink()
233 std::string scheme = ndefUri.GetScheme(); in IsWebUri() local
234 if (!scheme in IsWebUri()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/native/remote_uri/
H A Dremote_uri.cpp37 string scheme = remoteUri.GetScheme(); in IsMediaUri() local
42 return scheme == SCHEME && media == MEDIA; in IsMediaUri()
88 string scheme = path.substr(0, posDatashare); in IsRemoteUri() local
89 if (scheme != SCHEME) { in IsRemoteUri()
/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/common/src/
H A Dskill_uri.cpp24 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, scheme); in Marshalling()
35 if (parcel.ReadString(scheme) && parcel.ReadString(host)) { in ReadFromParcel()
/foundation/ability/ability_base/interfaces/kits/native/want/include/
H A Dskills.h270 * @brief Obtains the specified scheme.
272 * @param schemeId Id of the specified scheme.
277 * @brief Adds an scheme to this Skills object.
279 * @param scheme Indicates the scheme to add.
281 void AddScheme(const std::string &scheme);
284 * @brief Checks whether the specified scheme is exist.
286 * @param scheme Name of the specified scheme.
288 bool HasScheme(const std::string &scheme);
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dskill.cpp38 constexpr const char* JSON_KEY_SCHEME = "scheme";
193 if (skillUri.scheme.empty() && skillUri.type.empty()) { in MatchUriAndType()
214 if (skillUri.scheme.empty() && MatchType(type, skillUri.type)) { in MatchUriAndType()
265 (skillUri.scheme.empty() && paramUriString.find(SCHEME_SEPARATOR) == std::string::npos)) && in MatchLinkFeature()
285 if (skillUri.scheme.empty() && skillUri.type.empty()) { in MatchUriAndType()
310 if (skillUri.scheme.empty() && MatchType(type, skillUri.type)) { in MatchUriAndType()
345 if (uriString.empty() && skillUri.scheme.empty()) { in MatchUri()
348 if (uriString.empty() || skillUri.scheme.empty()) { in MatchUri()
352 // config uri is : scheme in MatchUri()
354 // 1.scheme in MatchUri()
[all...]
/foundation/bundlemanager/app_domain_verify/services/src/manager/core/
H A Dapp_domain_verify_mgr_service.cpp92 std::string scheme = UrlUtil::GetScheme(uriString); in FilterAbilities() local
94 if (scheme.empty() || host.empty()) { in FilterAbilities()
98 std::string hostVerifyKey = scheme + "://" + host; in FilterAbilities()
312 if (it->scheme.empty() || it->host.empty() || !UrlUtil::IsValidAppDomainVerifyHost(it->host) || in CollectDomains()
313 SCHEME_WHITE_SET.find(it->scheme) == SCHEME_WHITE_SET.end()) { in CollectDomains()
324 auto uri = it->scheme + "://" + host; in CollectDomains()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_uri.cpp157 std::string scheme = uri->GetScheme(); in CalNetworkId() local
158 if (scheme == ML_FILE_SCHEME) { in CalNetworkId()
163 } else if (scheme == ML_DATA_SHARE_SCHEME) { in CalNetworkId()
166 MEDIA_DEBUG_LOG("CalNetworkId scheme is invalid, scheme is %{private}s", scheme.c_str()); in CalNetworkId()
331 std::string scheme = this->GetScheme(); in IsValid() local
332 if (scheme != ML_FILE_SCHEME && in IsValid()
333 scheme != ML_DATA_SHARE_SCHEME) { in IsValid()
334 MEDIA_ERR_LOG("scheme i in IsValid()
410 std::string scheme = uri.GetScheme(); UriValidCheck() local
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/preprocess/
H A Dpreprocess_utils.cpp174 std::string scheme = uri.GetScheme(); in SetRemoteUri() local
175 std::transform(scheme.begin(), scheme.end(), scheme.begin(), ::tolower); in SetRemoteUri()
176 if (uri.GetAuthority().empty() || scheme != FILE_SCHEME) { in SetRemoteUri()
177 ZLOGW("Get uri authority empty or uri scheme not equals to file."); in SetRemoteUri()
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dskills.cpp383 * @brief Obtains the specified scheme.
385 * @param schemeId Id of the specified scheme.
396 * @brief Adds an scheme to this Skills object.
398 * @param scheme Indicates the scheme to add.
400 void Skills::AddScheme(const std::string &scheme) in AddScheme() argument
402 auto it = std::find(schemes_.begin(), schemes_.end(), scheme); in AddScheme()
404 schemes_.emplace_back(scheme); in AddScheme()
409 * @brief Checks whether the specified scheme is exist.
411 * @param scheme Nam
413 HasScheme(const std::string &scheme) HasScheme() argument
423 RemoveScheme(const std::string &scheme) RemoveScheme() argument
715 MatchData(const std::string &type, const std::string &scheme, Uri data) MatchData() argument
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/deeplink_reserve/
H A Ddeeplink_reserve_config.cpp33 const std::string SCHEME_NAME = "scheme";
81 linkString.c_str(), itemUri.scheme.c_str()); in isLinkReserved()
108 if (reservedUri.scheme.empty()) { in isUriMatched()
112 // config uri is : scheme in isUriMatched()
114 // 1.scheme in isUriMatched()
115 // 2.scheme: in isUriMatched()
116 // 3.scheme:/ in isUriMatched()
117 // 4.scheme:// in isUriMatched()
118 return link == reservedUri.scheme || StartsWith(link, reservedUri.scheme in isUriMatched()
[all...]
/foundation/ability/ability_base/test/unittest/want/
H A Dskills_test.cpp473 std::string scheme = "scheme.system.test"; in HWTEST_F() local
477 base_->AddScheme(scheme); in HWTEST_F()
481 EXPECT_EQ(true, base_->HasScheme(scheme)); in HWTEST_F()
482 EXPECT_EQ(scheme, base_->GetScheme(0)); in HWTEST_F()
484 base_->RemoveScheme(scheme); in HWTEST_F()
486 EXPECT_EQ(false, base_->HasScheme(scheme)); in HWTEST_F()
677 std::string scheme = "scheme.system.test"; in HWTEST_F() local
679 EXPECT_EQ(false, base_->HasScheme(scheme)); in HWTEST_F()
996 std::string scheme = "this is scheme"; HWTEST_F() local
1012 std::string scheme = ""; HWTEST_F() local
1028 std::string scheme = "this is scheme"; HWTEST_F() local
[all...]
/foundation/filemanagement/user_file_service/test/unittest/
H A Dexternal_file_access_test.cpp124 std::string scheme = uri.GetScheme(); in ReplaceBundleNameFromPath() local
125 if (scheme == FILE_SCHEME_NAME) { in ReplaceBundleNameFromPath()
/foundation/bundlemanager/app_domain_verify/test/unittest/moduletest/
H A Dapp_domain_verify_mgr_module_test.cpp104 skillUri.scheme = "https"; in HWTEST_F()
129 skillUri.scheme = "https"; in HWTEST_F()
154 skillUri.scheme = "https"; in HWTEST_F()
185 skillUri.scheme = "https"; in HWTEST_F()
/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/common/include/
H A Dskill_uri.h28 std::string scheme; member
/foundation/ability/ability_runtime/services/abilitymgr/include/deeplink_reserve/
H A Ddeeplink_reserve_config.h29 std::string scheme; member
/foundation/ability/ability_runtime/test/unittest/deeplink_reserve_config_test/
H A Ddeeplink_reserve_config_test.cpp82 "scheme": "http", in HWTEST_F()
/foundation/ability/ability_runtime/services/uripermmgr/src/
H A Duri_permission_manager_stub_impl.cpp729 auto &&scheme = uri_inner.GetScheme(); in GrantUriPermissionFor2In1Inner() local
730 if (scheme != "file") { in GrantUriPermissionFor2In1Inner()
813 auto &&scheme = uri.GetScheme(); in CheckUriPermission() local
814 if (scheme != "content" && scheme != "file") { in CheckUriPermission()
819 if (scheme == "content") { in CheckUriPermission()
868 auto &&scheme = uri.GetScheme(); in CheckUriTypeIsValid() local
869 if (scheme != "file" && scheme != "content") { in CheckUriTypeIsValid()
870 TAG_LOGE(AAFwkTag::URIPERMMGR, "Uri type invalid, Scheme:%{public}s", scheme in CheckUriTypeIsValid()
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/common/include/
H A Dextension_ability_info.h76 std::string scheme; member
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Duri_utils.h35 std::string scheme; member
/foundation/ability/ability_runtime/test/unittest/implicit_start_processor_test/
H A Dimplicit_start_processor_test.cpp289 uri.scheme = "https"; in HWTEST_F()
312 uri.scheme = "https"; in HWTEST_F()
335 uri.scheme = "https"; in HWTEST_F()
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Duri_utils.cpp62 auto &&scheme = uri.GetScheme(); in GetUriListFromWantDms() local
63 TAG_LOGI(AAFwkTag::ABILITYMGR, "uri scheme: %{public}s", scheme.c_str()); in GetUriListFromWantDms()
64 // only support file scheme in GetUriListFromWantDms()
65 if (scheme != "file") { in GetUriListFromWantDms()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/
H A Dudmf_service_impl.cpp302 std::string scheme = uri.GetScheme(); in ProcessUri() local
303 std::transform(scheme.begin(), scheme.end(), scheme.begin(), ::tolower); in ProcessUri()
304 if (uri.GetAuthority().empty() || scheme != FILE_SCHEME) { in ProcessUri()
305 ZLOGW("Get authority is empty or uri scheme not equals to file, key=%{public}s.", query.key.c_str()); in ProcessUri()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dskill.h29 std::string scheme; member

Completed in 16 milliseconds

123