Home
last modified time | relevance | path

Searched refs:uri (Results 1 – 25 of 903) sorted by relevance

12345678910>>...37

/foundation/ability/ability_runtime/frameworks/js/napi/dataUriUtils/
Ddata_uri_utils.js18 getId: (uri) => { argument
20 if (typeof uri !== 'string') {
23 let index = uri.lastIndexOf(URI_SPLIT);
27 let ret = uri.substring(index + 1);
33 updateId: (uri, id) => { argument
35 if (typeof uri !== 'string' || typeof id !== 'number') {
36 return uri;
38 let ret = dataUriUtils.deleteId(uri);
39 if (ret === uri) {
40 return uri;
[all …]
/foundation/distributeddatamgr/data_share/frameworks/js/napi/datashare_ext_ability/
Ddatashare_ext_ability.js21 getFileTypes(uri, mimeTypeFilter, callback) { argument
22 console.log('getFileTypes, uri:' + uri);
25 openFile(uri, mode, callback) { argument
26 console.log('openFile, uri:' + uri);
29 openRawFile(uri, mode, callback) { argument
30 console.log('openRawFile, uri:' + uri);
33 insert(uri, value, callback) { argument
34 console.log('insert, uri:' + uri);
37 update(uri, predicates, value, callback) { argument
38 console.log('update, uri:' + uri);
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
Dmedia_file_uri_test.cpp94 bool GetParamsFromUriTest(const string &uri, string &fileUri, const bool isOldVer, Size &size, stri… in GetParamsFromUriTest() argument
96 MediaFileUri mediaUri(uri); in GetParamsFromUriTest()
101 auto index = uri.find("thumbnail"); in GetParamsFromUriTest()
105 fileUri = uri.substr(0, index - 1); in GetParamsFromUriTest()
108 index = uri.find('/', index); in GetParamsFromUriTest()
113 auto tmpIdx = uri.find('/', index); in GetParamsFromUriTest()
119 StrToInt(uri.substr(index, tmpIdx - index), width); in GetParamsFromUriTest()
121 StrToInt(uri.substr(tmpIdx + 1), height); in GetParamsFromUriTest()
124 auto qIdx = uri.find('?'); in GetParamsFromUriTest()
128 fileUri = uri.substr(0, qIdx); in GetParamsFromUriTest()
[all …]
/foundation/ability/ability_runtime/frameworks/js/napi/abilityDataUriUtils/
Dability_data_uri_utils.js41 getId: (uri) => { argument
43 if (typeof uri !== 'string') {
46 let index = uri.lastIndexOf(URI_SPLIT);
50 let ret = uri.substring(index + 1);
56 updateId: (uri, id) => { argument
58 if (typeof uri !== 'string' || typeof id !== 'number') {
61 let ret = dataUriUtils.deleteId(uri);
62 if (ret === uri) {
67 deleteId: (uri) => { argument
69 if (typeof uri !== 'string') {
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/manifest/
Dmanifest_router_test.cpp77 std::string uri; variable
79 auto result = manifestRouter->GetPagePath(uri);
82 uri = "aaa";
85 result = manifestRouter->GetPagePath(uri);
100 std::string uri = "/"; variable
101 auto result = manifestRouter->GetPagePath(uri);
104 uri = "aaa";
105 result = manifestRouter->GetPagePath(uri);
108 uri = "first";
109 result = manifestRouter->GetPagePath(uri);
[all …]
/foundation/ability/ability_runtime/frameworks/native/ability/native/
Ddata_ability_helper_impl.cpp34 …pl::DataAbilityHelperImpl(const std::shared_ptr<Context> &context, const std::shared_ptr<Uri> &uri, in DataAbilityHelperImpl() argument
39 uri_ = uri; in DataAbilityHelperImpl()
45 const std::shared_ptr<Uri> &uri, const sptr<IAbilityScheduler> &dataAbilityProxy, bool tryBind) in DataAbilityHelperImpl() argument
48 uri_ = uri; in DataAbilityHelperImpl()
59 …elperImpl::DataAbilityHelperImpl(const sptr<IRemoteObject> &token, const std::shared_ptr<Uri> &uri, in DataAbilityHelperImpl() argument
63 uri_ = uri; in DataAbilityHelperImpl()
143 const std::shared_ptr<Context> &context, const std::shared_ptr<Uri> &uri, const bool tryBind) in Creator() argument
150 if (!CheckUri(uri)) { in Creator()
156 … AbilityManagerClient::GetInstance()->AcquireDataAbility(*uri.get(), tryBind, context->GetToken()); in Creator()
162 …auto ptrDataAbilityHelperImpl = new (std::nothrow) DataAbilityHelperImpl(context, uri, dataAbility… in Creator()
[all …]
Ddata_ability_helper.cpp63 const std::shared_ptr<Context> context, const std::shared_ptr<Uri> &uri) in Creator() argument
66 if (!context || !uri) { in Creator()
70 auto sharedPtrDataAbilityHelper = DataAbilityHelper::Creator(context, uri, false); in Creator()
77 if (!DataAbilityHelper::TransferScheme(*uri, dataShareUri)) { in Creator()
97 const std::shared_ptr<OHOS::AbilityRuntime::Context> context, const std::shared_ptr<Uri> &uri) in Creator() argument
100 if (!context || !uri) { in Creator()
104 auto sharedPtrDataAbilityHelper = DataAbilityHelper::Creator(context, uri, false); in Creator()
112 if (!DataAbilityHelper::TransferScheme(*uri, dataShareUri)) { in Creator()
136 const std::shared_ptr<Context> context, const std::shared_ptr<Uri> &uri, const bool tryBind) in Creator() argument
140 auto dataAbilityHelperImpl = DataAbilityHelperImpl::Creator(context, uri, tryBind); in Creator()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/
Dmanifest_router.cpp37 std::string ManifestRouter::GetPagePath(std::string& uri) const in GetPagePath()
40 if (uri.empty()) { in GetPagePath()
49 if (uri == "/") { in GetPagePath()
50 uri = pages_.front(); in GetPagePath()
53 if (std::find(pages_.begin(), pages_.end(), uri) != pages_.end()) { in GetPagePath()
54 return uri + suffix; in GetPagePath()
56 LOGE("[Engine Log] can't find this page %{public}s path", uri.c_str()); in GetPagePath()
60 std::string ManifestRouter::GetPagePath(const std::string& uri, const std::string& suffix) const in GetPagePath() argument
62 if (uri.empty()) { in GetPagePath()
67 if (uri.front() == '/') { in GetPagePath()
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_manager_utils_test/src/
Dmedialibrary_manager_utils_test.cpp53 string uri = "medialib_GetOperationType_test_001/test"; variable
54 string ret = MediaLibraryDataManagerUtils::GetOperationType(uri);
56 uri = "medialib_GetOperationType_test_001";
57 ret = MediaLibraryDataManagerUtils::GetOperationType(uri);
63 string uri = "medialib_GetIdFromUri_test_001/Test"; variable
64 string ret = MediaLibraryDataManagerUtils::GetIdFromUri(uri);
66 uri = "medialib_GetIdFromUri_test_001";
67 ret = MediaLibraryDataManagerUtils::GetIdFromUri(uri);
73 string uri = ""; variable
74 string ret = MediaLibraryDataManagerUtils::GetNetworkIdFromUri(uri);
[all …]
/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/
Dcontroller_test.cpp58 Uri uri(""); variable
60 std::make_shared<DataShare::GeneralControllerProviderImpl>(nullptr, uri, nullptr);
64 int result = tempGenConProImp->Insert(uri, valuesBucket);
72 Uri uri(""); variable
74 new (std::nothrow) DataShare::DataShareConnection(uri, nullptr);
80 … std::make_shared<DataShare::GeneralControllerProviderImpl>(dataShareConnection, uri, nullptr);
84 int result = tempGenConProImp->Insert(uri, valuesBucket);
92 Uri uri(""); variable
94 std::make_shared<DataShare::GeneralControllerProviderImpl>(nullptr, uri, nullptr);
99 int result = tempGenConProImp->Update(uri, predicates, valuesBucket);
[all …]
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
Ddata_ability_helper.h48 const std::shared_ptr<Context> context, const std::shared_ptr<Uri> &uri);
59 … const std::shared_ptr<OHOS::AbilityRuntime::Context> context, const std::shared_ptr<Uri> &uri);
74 … const std::shared_ptr<Context> context, const std::shared_ptr<Uri> &uri, const bool tryBind);
89 const std::shared_ptr<Uri> &uri, const bool tryBind);
111 const sptr<IRemoteObject> token, const std::shared_ptr<Uri> &uri);
128 std::vector<std::string> GetFileTypes(Uri &uri, const std::string &mimeTypeFilter);
141 int OpenFile(Uri &uri, const std::string &mode);
155 int OpenRawFile(Uri &uri, const std::string &mode);
165 int Insert(Uri &uri, const NativeRdb::ValuesBucket &value);
176 …int Update(Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates …
[all …]
Ddata_ability_helper_impl.h67 … const std::shared_ptr<Context> &context, const std::shared_ptr<Uri> &uri, const bool tryBind);
83 const std::shared_ptr<Uri> &uri, const bool tryBind);
105 const sptr<IRemoteObject> &token, const std::shared_ptr<Uri> &uri);
122 std::vector<std::string> GetFileTypes(Uri &uri, const std::string &mimeTypeFilter);
135 int OpenFile(Uri &uri, const std::string &mode);
149 int OpenRawFile(Uri &uri, const std::string &mode);
159 int Insert(Uri &uri, const NativeRdb::ValuesBucket &value);
170 …int Update(Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates …
180 int Delete(Uri &uri, const NativeRdb::DataAbilityPredicates &predicates);
183 …const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMa…
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/
Didatashare.h39 virtual int OpenFile(const Uri &uri, const std::string &mode) = 0;
41 virtual int OpenRawFile(const Uri &uri, const std::string &mode) = 0;
43 virtual int Insert(const Uri &uri, const DataShareValuesBucket &value) = 0;
45 …virtual int InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result) = 0;
47 …virtual int Update(const Uri &uri, const DataSharePredicates &predicates, const DataShareValuesBuc…
49 virtual int Delete(const Uri &uri, const DataSharePredicates &predicates) = 0;
51 …virtual std::shared_ptr<DataShareResultSet> Query(const Uri &uri, const DataSharePredicates &predi…
54 virtual std::string GetType(const Uri &uri) = 0;
56 virtual int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) = 0;
60 …virtual bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserve…
[all …]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/
Ddata_share_service_impl.cpp50 int32_t DataShareServiceImpl::Insert(const std::string &uri, const DataShareValuesBucket &valuesBuc… in Insert() argument
53 auto context = std::make_shared<Context>(uri); in Insert()
56 NotifyChange(uri); in Insert()
57 RdbSubscriberManager::GetInstance().Emit(uri, context); in Insert()
62 bool DataShareServiceImpl::NotifyChange(const std::string &uri) in NotifyChange() argument
70 ErrCode ret = obsMgrClient->NotifyChange(Uri(uri)); in NotifyChange()
78 int32_t DataShareServiceImpl::Update(const std::string &uri, const DataSharePredicates &predicate, in Update() argument
82 auto context = std::make_shared<Context>(uri); in Update()
85 NotifyChange(uri); in Update()
86 RdbSubscriberManager::GetInstance().Emit(uri, context); in Update()
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
Dmedia_file_uri.cpp78 void MediaFileUri::ParseUri(const string &uri) in ParseUri() argument
80 if (MediaFileUtils::StartsWith(uri, PhotoColumn::PHOTO_URI_PREFIX)) { in ParseUri()
82 } else if (MediaFileUtils::StartsWith(uri, PhotoAlbumColumns::ALBUM_URI_PREFIX)) { in ParseUri()
84 } else if (MediaFileUtils::StartsWith(uri, AudioColumn::AUDIO_URI_PREFIX)) { in ParseUri()
107 std::string uri = ML_FILE_URI_PREFIX; in MediaFileUriConstruct() local
108 uri += GetMediaTypeUri(mediaType, apiVersion); in MediaFileUriConstruct()
110 uri += "/" + fileId; in MediaFileUriConstruct()
114 uri += ML_URI_NETWORKID_EQUAL + networkId; in MediaFileUriConstruct()
118 uri += extrUri; in MediaFileUriConstruct()
119 uri = MediaFileUtils::Encode(uri); in MediaFileUriConstruct()
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
Dmedia_datashare_stub_impl.h36 … std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) override;
38 int OpenFile(const Uri &uri, const std::string &mode) override;
40 int OpenRawFile(const Uri &uri, const std::string &mode) override;
42 int Insert(const Uri &uri, const DataShareValuesBucket &value) override;
44 int InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result) override;
46 int Update(const Uri &uri, const DataSharePredicates &predicates,
49 int Delete(const Uri &uri, const DataSharePredicates &predicates) override;
51 std::shared_ptr<DataShareResultSet> Query(const Uri &uri, const DataSharePredicates &predicates,
54 std::string GetType(const Uri &uri) override;
56 int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) override;
[all …]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/common/js/
Dgeneral.js20 uri: prevUri property
25 uri: "pages/index/index" property
30 uri: nextUri property
38 router.replace({ uri: prevUri }); property
41 router.replace({ uri: "/" }); property
44 router.replace({ uri: nextUri }); property
51 router.replace({ uri: "pages/index/index" }); property
54 router.replace({ uri: prevUri }); property
57 router.replace({ uri: nextUri }); property
63 router.replace({ uri: page }); property
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
Dmedia_datashare_stub_impl.cpp28 std::vector<std::string> MediaDataShareStubImpl::GetFileTypes(const Uri &uri, const std::string &mi… in GetFileTypes() argument
38 ret = extension->GetFileTypes(uri, mimeTypeFilter); in GetFileTypes()
43 int MediaDataShareStubImpl::OpenFile(const Uri &uri, const std::string &mode) in OpenFile() argument
52 ret = extension->OpenFile(uri, mode); in OpenFile()
56 int MediaDataShareStubImpl::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile() argument
66 ret = extension->OpenRawFile(uri, mode); in OpenRawFile()
71 int MediaDataShareStubImpl::Insert(const Uri &uri, const DataShareValuesBucket &value) in Insert() argument
80 ret = extension->Insert(uri, value); in Insert()
84 int MediaDataShareStubImpl::InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::stri… in InsertExt() argument
93 ret = extension->InsertExt(uri, value, result); in InsertExt()
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/provider/src/
Ddatashare_ext_ability.cpp65 std::vector<std::string> DataShareExtAbility::GetFileTypes(const Uri &uri, const std::string &mimeT… in GetFileTypes() argument
71 int DataShareExtAbility::OpenFile(const Uri &uri, const std::string &mode) in OpenFile() argument
76 int DataShareExtAbility::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile() argument
81 int DataShareExtAbility::Insert(const Uri &uri, const DataShareValuesBucket &value) in Insert() argument
86 int DataShareExtAbility::InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string … in InsertExt() argument
91 int DataShareExtAbility::Update(const Uri &uri, const DataSharePredicates &predicates, in Update() argument
97 int DataShareExtAbility::Delete(const Uri &uri, const DataSharePredicates &predicates) in Delete() argument
102 std::shared_ptr<DataShareResultSet> DataShareExtAbility::Query(const Uri &uri, in Query() argument
108 std::string DataShareExtAbility::GetType(const Uri &uri) in GetType() argument
113 int DataShareExtAbility::BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &valu… in BatchInsert() argument
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/include/
Ddatashare_proxy.h32 …virtual std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) o…
34 virtual int OpenFile(const Uri &uri, const std::string &mode) override;
36 virtual int OpenRawFile(const Uri &uri, const std::string &mode) override;
38 virtual int Insert(const Uri &uri, const DataShareValuesBucket &value) override;
40 …virtual int InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result) ove…
42 virtual int Update(const Uri &uri, const DataSharePredicates &predicates,
45 virtual int Delete(const Uri &uri, const DataSharePredicates &predicates) override;
47 …virtual std::shared_ptr<DataShareResultSet> Query(const Uri &uri, const DataSharePredicates &predi…
50 virtual std::string GetType(const Uri &uri) override;
52 …virtual int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) override;
[all …]
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/
Dgrant_uri_permission.cpp44 string uri; member
53 static int32_t GetIdFromUri(string uri) in GetIdFromUri() argument
55 std::replace(uri.begin(), uri.end(), '/', ' '); in GetIdFromUri()
56 stringstream ss(uri); in GetIdFromUri()
84 static int32_t GetMediaTypeAndApiFromUri(const std::string &uri, bool &isApi10) in GetMediaTypeAndApiFromUri() argument
86 if (uri.find(MEDIA_FILE_URI_PHOTO_PREFEX) == 0) { in GetMediaTypeAndApiFromUri()
89 } else if (uri.find(MEDIA_FILE_URI_VIDEO_PREFEX) == 0 || in GetMediaTypeAndApiFromUri()
90 uri.find(MEDIA_FILE_URI_IMAGE_PREFEX) == 0) { in GetMediaTypeAndApiFromUri()
92 } else if (uri.find(MEDIA_FILE_URI_AUDIO_PREFEX) == 0) { in GetMediaTypeAndApiFromUri()
95 } else if (uri.find(MEDIA_FILE_URI_Audio_PREFEX) == 0) { in GetMediaTypeAndApiFromUri()
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/src/
Duserfile_client_ex.cpp79 static inline bool GetUriInfo(const std::string &uri, std::string &uriId) in GetUriInfo() argument
81 MediaFileUri fileUri(uri); in GetUriInfo()
83 MEDIA_ERR_LOG("uri %{private}s is invalid", uri.c_str()); in GetUriInfo()
92 std::string uri; in GetInsertUri() local
96 return uri; in GetInsertUri()
98 uri = MEDIALIBRARY_DATA_URI; in GetInsertUri()
99 uri.append(URI_DELIMITER + operation); in GetInsertUri()
100 uri.append(URI_DELIMITER + MEDIA_FILEOPRN_CREATEASSET); in GetInsertUri()
101 uri.append(URI_ARG_FIRST_DELIMITER + URI_API_VERSION); in GetInsertUri()
102 return uri; in GetInsertUri()
[all …]
/foundation/ability/ability_runtime/services/dataobsmgr/src/
Ddataobs_mgr_client.cpp54 ErrCode DataObsMgrClient::RegisterObserver(const Uri &uri, sptr<IDataAbilityObserver> dataObserver) in RegisterObserver() argument
59 auto status = dataObsManger_->RegisterObserver(uri, dataObserver); in RegisterObserver()
63 observers_.Compute(dataObserver, [&uri](const auto &key, auto &value) { in RegisterObserver()
64 value.emplace_back(uri); in RegisterObserver()
78 ErrCode DataObsMgrClient::UnregisterObserver(const Uri &uri, sptr<IDataAbilityObserver> dataObserve… in UnregisterObserver() argument
83 auto status = dataObsManger_->UnregisterObserver(uri, dataObserver); in UnregisterObserver()
87 observers_.Compute(dataObserver, [&uri](const auto &key, auto &value) { in UnregisterObserver()
88 value.remove_if([&uri](const auto &val) { in UnregisterObserver()
89 return uri == val; in UnregisterObserver()
103 ErrCode DataObsMgrClient::NotifyChange(const Uri &uri) in NotifyChange() argument
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/src/
Ddatashare_helper.cpp42 …static sptr<ObserverImpl> GetObserver(const Uri& uri, const std::shared_ptr<DataShareObserver> &ob…
43 static bool FindObserver(const Uri& uri, const std::shared_ptr<DataShareObserver> &observer);
44 static bool DeleteObserver(const Uri& uri, const std::shared_ptr<DataShareObserver> &observer);
83 Uri uri(replacedUriStr); in Creator() local
85 if (uri.GetScheme() != SCHEME_DATASHARE) { in Creator()
86 LOG_ERROR("the Scheme is not datashare, Scheme: %{public}s", uri.GetScheme().c_str()); in Creator()
90 if (uri.GetQuery().find("Proxy=true") != std::string::npos) { in Creator()
93 return CreateExtHelper(uri, token); in Creator()
99 Uri uri(strUri); in Creator() local
104 if (uri.GetScheme() != SCHEME_DATASHARE_PROXY) { in Creator()
[all …]
/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/
DCommon.ts22 function checkUri(uri): boolean {
24 if (uri.indexOf(FILE_PREFIX_NAME) === 0) {
25 hilog.info(DOMAIN_CODE, TAG, 'uri is ' + uri);
28 hilog.error(DOMAIN_CODE, TAG, 'checkUri error, uri is ' + uri);
32 hilog.error(DOMAIN_CODE, TAG, 'checkUri error, uri is ' + uri);
37 function getPath(uri): string {
39 let arr = uri.split(sep);
42 hilog.error(DOMAIN_CODE, TAG, 'getPath-parameter-uri format exception, uri is' + uri);
45 let path = uri.replace(arr[0] + sep, '');
49 hilog.error(DOMAIN_CODE, TAG, 'getPath-parameter-uri format exception, uri is ' + uri);
[all …]

12345678910>>...37