Home
last modified time | relevance | path

Searched refs:Uri (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
Ddata_uri_utils.h23 using Uri = OHOS::Uri; variable
47 static Uri AttachId(const Uri &dataUri, long long id);
54 static long long GetId(const Uri &dataUri);
61 static Uri DeleteId(const Uri &dataUri);
69 static Uri UpdateId(const Uri &dataUri, long long id);
76 static bool IsAttachedId(const Uri &dataUri);
91 static Uri UriUpateLastPath(const Uri &dataUri, const string &updateLastPath);
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.h27 using Uri = OHOS::Uri; variable
67 … 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);
[all …]
Ddata_ability_impl.h60 std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter);
73 int OpenFile(const Uri &uri, const std::string &mode);
87 int OpenRawFile(const Uri &uri, const std::string &mode);
97 int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value);
109 …const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &pred…
119 int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates);
131 …const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predica…
144 …const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMa…
154 std::string GetType(const Uri &uri);
166 bool Reload(const Uri &uri, const PacMap &extras);
[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/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
Ddata_uri_utils_test.cpp65 Uri uri("scheme://authority/path1/path2/path3?id = 1&name = mingming&old#fragment");
66 Uri uriRet1 = DataUriUtils::AttachId(uri, 1000);
83 Uri uri("scheme://authority/path1/path2/path3?id = 1&name = mingming&old#fragment");
84 Uri uriRet1 = DataUriUtils::AttachId(uri, 1000);
86 Uri uriRet2 = DataUriUtils::DeleteId(uriRet1);
103 Uri uri("scheme://authority/path1/path2/path3?id = 1&name = mingming&old#fragment");
104 Uri uriRet1 = DataUriUtils::AttachId(uri, -1000);
105 Uri uriRet2 = DataUriUtils::DeleteId(uriRet1);
120 Uri uri("scheme://authority/path1/path2/path3?id = 1&name = mingming&old#fragment");
121 Uri uriRet1 = DataUriUtils::AttachId(uri, 123456789011);
[all …]
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/include/
Dfile_access_ext_stub_impl.h39 int OpenFile(const Uri &uri, const int flags, int &fd) override;
40 int CreateFile(const Uri &parent, const std::string &displayName, Uri &newFile) override;
41 int Mkdir(const Uri &parent, const std::string &displayName, Uri &newFile) override;
42 int Delete(const Uri &sourceFile) override;
43 int Move(const Uri &sourceFile, const Uri &targetParent, Uri &newFile) override;
44 int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<CopyResult> &copyResult,
46 int Rename(const Uri &sourceFile, const std::string &displayName, Uri &newFile) override;
51 …int GetThumbnail(const Uri &uri, const ThumbnailSize &thumbnailSize, std::shared_ptr<PixelMap> &pi…
52 …int Query(const Uri &uri, std::vector<std::string> &columns, std::vector<std::string> &results) ov…
53 int GetFileInfoFromUri(const Uri &selectFile, FileInfo &fileInfo) override;
[all …]
Difile_access_ext_base.h58 virtual int OpenFile(const Uri &uri, const int flags, int &fd) = 0;
59 virtual int CreateFile(const Uri &parent, const std::string &displayName, Uri &newFile) = 0;
60 virtual int Mkdir(const Uri &parent, const std::string &displayName, Uri &newFile) = 0;
61 virtual int Delete(const Uri &sourceFile) = 0;
62 virtual int Move(const Uri &sourceFile, const Uri &targetParent, Uri &newFile) = 0;
63 virtual int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<CopyResult> &copyResult,
65 virtual int Rename(const Uri &sourceFile, const std::string &displayName, Uri &newFile) = 0;
70 virtual int GetThumbnail(const Uri &uri, const ThumbnailSize &thumbnailSize,
72 …virtual int Query(const Uri &uri, std::vector<std::string> &columns, std::vector<std::string> &res…
73 virtual int GetFileInfoFromUri(const Uri &selectFile, FileInfo &fileInfo) = 0;
[all …]
Dfile_access_ext_proxy.h41 virtual int OpenFile(const Uri &uri, const int flags, int &fd) override;
42 … virtual int CreateFile(const Uri &parent, const std::string &displayName, Uri &newFile) override;
43 virtual int Mkdir(const Uri &parent, const std::string &displayName, Uri &newFile) override;
44 virtual int Delete(const Uri &sourceFile) override;
45 virtual int Move(const Uri &sourceFile, const Uri &targetParent, Uri &newFile) override;
46 virtual int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<CopyResult> &copyResult,
48 … virtual int Rename(const Uri &sourceFile, const std::string &displayName, Uri &newFile) override;
53 virtual int GetThumbnail(const Uri &uri, const ThumbnailSize &thumbnailSize,
55 …virtual int Query(const Uri &uri, std::vector<std::string> &columns, std::vector<std::string> &res…
56 virtual int GetFileInfoFromUri(const Uri &selectFile, FileInfo &fileInfo) override;
[all …]
Dfile_access_helper.h37 using Uri = OHOS::Uri; variable
72 int Access(Uri &uri, bool &isExist);
73 int OpenFile(Uri &uri, const int flags, int &fd);
74 int CreateFile(Uri &parent, const std::string &displayName, Uri &newFile);
75 int Mkdir(Uri &parent, const std::string &displayName, Uri &newDir);
76 int Delete(Uri &selectFile);
77 int Move(Uri &sourceFile, Uri &targetParent, Uri &newFile);
78 int Copy(Uri &sourceUri, Uri &destUri, std::vector<CopyResult> &copyResult, bool force = false);
79 int Rename(Uri &sourceFile, const std::string &displayName, Uri &newFile);
84 int GetThumbnail(Uri &uri, ThumbnailSize &thumbnailSize, std::shared_ptr<PixelMap> &pixelMap);
[all …]
Dfile_access_ext_ability.h46 virtual int OpenFile(const Uri &uri, const int flags, int &fd);
47 virtual int CreateFile(const Uri &parent, const std::string &displayName, Uri &newFile);
48 virtual int Mkdir(const Uri &parent, const std::string &displayName, Uri &newFile);
49 virtual int Delete(const Uri &sourceFile);
50 virtual int Move(const Uri &sourceFile, const Uri &targetParent, Uri &newFile);
51 …virtual int Copy(const Uri &sourceUri, const Uri &destUri, std::vector<CopyResult> &copyResult, bo…
52 virtual int Rename(const Uri &sourceFile, const std::string &displayName, Uri &newFile);
57 virtual int GetThumbnail(const Uri &uri, const Size &size, std::unique_ptr<PixelMap> &pixelMap);
58 …virtual int Query(const Uri &uri, std::vector<std::string> &columns, std::vector<std::string> &res…
59 virtual int GetFileInfoFromUri(const Uri &selectFile, FileInfo &fileInfo);
[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 …]
Dmedia_datashare_ext_ability.h88 … std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) override;
101 int OpenFile(const Uri &uri, const std::string &mode) override;
115 int OpenRawFile(const Uri &uri, const std::string &mode) override;
125 int Insert(const Uri &uri, const DataShareValuesBucket &value) override;
135 int InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result) override;
146 int Update(const Uri &uri, const DataSharePredicates &predicates,
157 int Delete(const Uri &uri, const DataSharePredicates &predicates) override;
169 std::shared_ptr<DataShareResultSet> Query(const Uri &uri, const DataSharePredicates &predicates,
180 std::string GetType(const Uri &uri) override;
190 int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) override;
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/controller/provider/include/
Dext_special_controller.h28 ExtSpecialController(std::shared_ptr<DataShareConnection> connection, const Uri &uri,
32 int OpenFile(const Uri &uri, const std::string &mode);
34 int OpenRawFile(const Uri &uri, const std::string &mode);
36 std::string GetType(const Uri &uri);
38 int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values);
42 int InsertExt(Uri &uri, const DataShareValuesBucket &value, std::string &result);
44 Uri NormalizeUri(const Uri &uri);
46 Uri DenormalizeUri(const Uri &uri);
48 std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter);
53 Uri uri_ = Uri("");
/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/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()
71 int DataShareExtAbility::OpenFile(const Uri &uri, const std::string &mode) in OpenFile()
76 int DataShareExtAbility::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile()
81 int DataShareExtAbility::Insert(const Uri &uri, const DataShareValuesBucket &value) in Insert()
86 int DataShareExtAbility::InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string … in InsertExt()
91 int DataShareExtAbility::Update(const Uri &uri, const DataSharePredicates &predicates, in Update()
97 int DataShareExtAbility::Delete(const Uri &uri, const DataSharePredicates &predicates) in Delete()
102 std::shared_ptr<DataShareResultSet> DataShareExtAbility::Query(const Uri &uri, in Query()
108 std::string DataShareExtAbility::GetType(const Uri &uri) in GetType()
113 int DataShareExtAbility::BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &valu… in BatchInsert()
[all …]
/foundation/distributeddatamgr/data_share/frameworks/native/provider/include/
Ddatashare_stub_impl.h38 … std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) override;
40 int OpenFile(const Uri &uri, const std::string &mode) override;
42 int OpenRawFile(const Uri &uri, const std::string &mode) override;
44 int Insert(const Uri &uri, const DataShareValuesBucket &value) 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;
58 …bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserver) overr…
[all …]
Ddatashare_ext_ability.h76 … virtual std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter);
89 virtual int OpenFile(const Uri &uri, const std::string &mode);
103 virtual int OpenRawFile(const Uri &uri, const std::string &mode);
113 virtual int Insert(const Uri &uri, const DataShareValuesBucket &value);
124 virtual int InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result);
135 virtual int Update(const Uri &uri, const DataSharePredicates &predicates,
146 virtual int Delete(const Uri &uri, const DataSharePredicates &predicates);
158 …virtual std::shared_ptr<DataShareResultSet> Query(const Uri &uri, const DataSharePredicates &predi…
169 virtual std::string GetType(const Uri &uri);
179 virtual int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values);
[all …]
/foundation/ability/ability_runtime/test/moduletest/ability_test/
Ddata_ability_helper_module_test.cpp75 std::shared_ptr<Uri> uri =
76 … std::make_shared<Uri>("dataability://device_id/com.domainname.dataability.persondata/person/10");
81 Uri urivalue("dataability://device_id/com.domainname.dataability.persondata/person/10");
101 std::shared_ptr<Uri> uri =
102 … std::make_shared<Uri>("dataability://device_id/com.domainname.dataability.persondata/person/10");
107 Uri urivalue("dataability://device_id/com.domainname.dataability.persondata/person/10");
126 std::shared_ptr<Uri> uri =
127 … std::make_shared<Uri>("dataability://device_id/com.domainname.dataability.persondata/person/10");
133 Uri urivalue("dataability://device_id/com.domainname.dataability.persondata/person/10");
150 std::shared_ptr<Uri> uri =
[all …]
/foundation/ability/ability_base/interfaces/kits/native/uri/src/
Duri.cpp47 Uri::Uri(const string& uriString) in Uri() function in OHOS::Uri
73 Uri::~Uri() in ~Uri()
78 bool Uri::CheckScheme() in CheckScheme()
87 string Uri::GetScheme() in GetScheme()
99 string Uri::ParseScheme() in ParseScheme()
105 string Uri::GetSchemeSpecificPart() in GetSchemeSpecificPart()
114 string Uri::ParseSsp() in ParseSsp()
131 string Uri::GetAuthority() in GetAuthority()
143 string Uri::ParseAuthority() in ParseAuthority()
174 string Uri::GetUserInfo() in GetUserInfo()
[all …]
/foundation/ability/ability_runtime/frameworks/native/ability/native/
Ddata_uri_utils.cpp52 Uri DataUriUtils::AttachId(const Uri &dataUri, long long id) in AttachId()
55 string path = const_cast<Uri &>(dataUri).GetPath(); in AttachId()
63 const_cast<Uri &>(dataUri).GetPathSegments(pathVector); in AttachId()
85 return Uri(uriString); in AttachId()
93 long long DataUriUtils::GetId(const Uri &dataUri) in GetId()
96 string path = const_cast<Uri &>(dataUri).GetPath(); in GetId()
101 const_cast<Uri &>(dataUri).GetPathSegments(pathVector); in GetId()
117 Uri DataUriUtils::DeleteId(const Uri &dataUri) in DeleteId()
128 Uri DataUriUtils::UpdateId(const Uri &dataUri, long long id) in UpdateId()
147 bool DataUriUtils::IsAttachedId(const Uri &dataUri) in IsAttachedId()
[all …]
/foundation/ability/ability_runtime/test/moduletest/mock/include/
Dmock_ability_scheduler_stub.h35 MOCK_METHOD2(GetFileTypes, std::vector<std::string>(const Uri&, const std::string&));
36 MOCK_METHOD2(OpenFile, int(const Uri&, const std::string&));
37 MOCK_METHOD2(Insert, int(const Uri&, const NativeRdb::ValuesBucket&));
38 …MOCK_METHOD3(Update, int(const Uri&, const NativeRdb::ValuesBucket&, const NativeRdb::DataAbilityP…
39 MOCK_METHOD2(Delete, int(const Uri&, const NativeRdb::DataAbilityPredicates&));
41 const Uri&, std::vector<std::string>&, const NativeRdb::DataAbilityPredicates&));
42 …MOCK_METHOD4(Call, std::shared_ptr<PacMap>(const Uri&, const std::string&, const std::string&, con…
43 MOCK_METHOD1(GetType, std::string(const Uri& uri));
44 MOCK_METHOD2(OpenRawFile, int(const Uri& uri, const std::string& mode));
45 MOCK_METHOD2(Reload, bool(const Uri& uri, const PacMap& extras));
[all …]
Dmock_ability_scheduler.h40 …MOCK_METHOD2(ScheduleRegisterObserver, bool(const Uri& uri, const sptr<AAFwk::IDataAbilityObserver…
42 …ScheduleUnregisterObserver, bool(const Uri& uri, const sptr<AAFwk::IDataAbilityObserver>& dataObse…
43 MOCK_METHOD1(ScheduleNotifyChange, bool(const Uri& uri));
50 std::vector<std::string> GetFileTypes(const Uri& uri, const std::string& mimeTypeFilter) in GetFileTypes()
56 int OpenFile(const Uri& uri, const std::string& mode) in OpenFile()
61 int Insert(const Uri& uri, const NativeRdb::ValuesBucket& value) in Insert()
66 …int Update(const Uri& uri, const NativeRdb::ValuesBucket& value, const NativeRdb::DataAbilityPredi… in Update()
71 int Delete(const Uri& uri, const NativeRdb::DataAbilityPredicates& predicates) in Delete()
77 …const Uri& uri, std::vector<std::string>& columns, const NativeRdb::DataAbilityPredicates& predica… in Query()
83 …const Uri& uri, const std::string& method, const std::string& arg, const AppExecFwk::PacMap& pacMa… in Call()
[all …]
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/
Dmock_ability_scheduler_for_observer.h45 MOCK_METHOD2(GetFileTypes, std::vector<std::string>(const Uri&, const std::string&));
46 MOCK_METHOD2(OpenFile, int(const Uri&, const std::string&));
47 MOCK_METHOD2(OpenRawFile, int(const Uri&, const std::string&));
48 MOCK_METHOD2(Insert, int(const Uri&, const NativeRdb::ValuesBucket&));
49 …MOCK_METHOD3(Update, int(const Uri&, const NativeRdb::ValuesBucket&, const NativeRdb::DataAbilityP…
50 MOCK_METHOD2(Delete, int(const Uri&, const NativeRdb::DataAbilityPredicates&));
51 MOCK_METHOD3(Query, std::shared_ptr<NativeRdb::AbsSharedResultSet>(const Uri&,
53 …MOCK_METHOD4(Call, std::shared_ptr<PacMap>(const Uri&, const std::string&, const std::string&, con…
54 MOCK_METHOD1(GetType, std::string(const Uri&));
55 MOCK_METHOD2(Reload, bool(const Uri&, const PacMap&));
[all …]
/foundation/ability/ability_runtime/test/unittest/ability_scheduler_stub_test/
Dability_schedule_stub_mock.h56 … std::vector<std::string> GetFileTypes(const Uri& uri, const std::string& mimeTypeFilter) override in GetFileTypes()
62 int OpenFile(const Uri& uri, const std::string& mode) override in OpenFile()
67 int Insert(const Uri& uri, const NativeRdb::ValuesBucket& value) override in Insert()
72 int Update(const Uri& uri, in Update()
78 int Delete(const Uri& uri, const NativeRdb::DataAbilityPredicates& predicates) override in Delete()
84 …const Uri& uri, std::vector<std::string>& columns, const NativeRdb::DataAbilityPredicates& predica… in Query()
90 …const Uri& uri, const std::string& method, const std::string& arg, const AppExecFwk::PacMap& pacMa… in Call()
95 std::string GetType(const Uri& uri) override in GetType()
100 int OpenRawFile(const Uri& uri, const std::string& mode) override in OpenRawFile()
105 bool Reload(const Uri& uri, const PacMap& extras) override in Reload()
[all …]

12345678910>>...15