/foundation/distributeddatamgr/data_share/interfaces/inner_api/consumer/include/ |
D | datashare_helper.h | 30 using Uri = OHOS::Uri; variable 94 std::vector<std::string> GetFileTypes(Uri &uri, const std::string &mimeTypeFilter); 107 int OpenFile(Uri &uri, const std::string &mode); 121 int OpenRawFile(Uri &uri, const std::string &mode); 131 int Insert(Uri &uri, const DataShareValuesBucket &value); 142 int Update(Uri &uri, const DataSharePredicates &predicates, const DataShareValuesBucket &value); 152 int Delete(Uri &uri, const DataSharePredicates &predicates); 164 Uri &uri, const DataSharePredicates &predicates, std::vector<std::string> &columns); 174 std::string GetType(Uri &uri); 184 int BatchInsert(Uri &uri, const std::vector<DataShareValuesBucket> &values); [all …]
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
D | data_uri_utils.h | 23 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);
|
D | data_ability_helper.h | 48 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 …]
|
D | data_ability_helper_impl.h | 27 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 …]
|
D | data_ability_impl.h | 58 std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter); 71 int OpenFile(const Uri &uri, const std::string &mode); 85 int OpenRawFile(const Uri &uri, const std::string &mode); 95 int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value); 107 …const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &pred… 117 int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates); 129 …const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predica… 142 …const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMa… 152 std::string GetType(const Uri &uri); 164 bool Reload(const Uri &uri, const PacMap &extras); [all …]
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
D | idatashare.h | 62 …virtual std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) =… 75 virtual int OpenFile(const Uri &uri, const std::string &mode) = 0; 89 virtual int OpenRawFile(const Uri &uri, const std::string &mode) = 0; 99 virtual int Insert(const Uri &uri, const DataShareValuesBucket &value) = 0; 110 virtual int Update(const Uri &uri, const DataSharePredicates &predicates, 121 virtual int Delete(const Uri &uri, const DataSharePredicates &predicates) = 0; 133 … const Uri &uri, const DataSharePredicates &predicates, std::vector<std::string> &columns) = 0; 143 virtual std::string GetType(const Uri &uri) = 0; 153 virtual int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) = 0; 161 …virtual bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserve… [all …]
|
/foundation/distributeddatamgr/data_share/frameworks/native/consumer/include/ |
D | datashare_proxy.h | 31 …virtual std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) o… 33 virtual int OpenFile(const Uri &uri, const std::string &mode) override; 35 virtual int OpenRawFile(const Uri &uri, const std::string &mode) override; 37 virtual int Insert(const Uri &uri, const DataShareValuesBucket &value) override; 39 virtual int Update(const Uri &uri, const DataSharePredicates &predicates, 42 virtual int Delete(const Uri &uri, const DataSharePredicates &predicates) override; 44 virtual std::shared_ptr<DataShareResultSet> Query(const Uri &uri, 47 virtual std::string GetType(const Uri &uri) override; 49 …virtual int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) override; 51 …virtual bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserve… [all …]
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
D | media_datashare_stub_impl.h | 36 … 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 Update(const Uri &uri, const DataSharePredicates &predicates, 47 int Delete(const Uri &uri, const DataSharePredicates &predicates) override; 49 std::shared_ptr<DataShareResultSet> Query(const Uri &uri, 52 std::string GetType(const Uri &uri) override; 54 int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) override; 56 …bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserver) overr… [all …]
|
D | media_datashare_ext_ability.h | 88 … 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; 136 int Update(const Uri &uri, const DataSharePredicates &predicates, 147 int Delete(const Uri &uri, const DataSharePredicates &predicates) override; 158 std::shared_ptr<DataShareResultSet> Query(const Uri &uri, const DataSharePredicates &predicates, 169 std::string GetType(const Uri &uri) override; 179 int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values) override; 187 …bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserver) overr… [all …]
|
/foundation/distributeddatamgr/data_share/frameworks/native/provider/src/ |
D | datashare_ext_ability.cpp | 64 std::vector<std::string> DataShareExtAbility::GetFileTypes(const Uri &uri, const std::string &mimeT… in GetFileTypes() 70 int DataShareExtAbility::OpenFile(const Uri &uri, const std::string &mode) in OpenFile() 75 int DataShareExtAbility::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile() 80 int DataShareExtAbility::Insert(const Uri &uri, const DataShareValuesBucket &value) in Insert() 85 int DataShareExtAbility::Update(const Uri &uri, const DataSharePredicates &predicates, in Update() 91 int DataShareExtAbility::Delete(const Uri &uri, const DataSharePredicates &predicates) in Delete() 96 std::shared_ptr<DataShareResultSet> DataShareExtAbility::Query(const Uri &uri, in Query() 103 std::string DataShareExtAbility::GetType(const Uri &uri) in GetType() 108 int DataShareExtAbility::BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &valu… in BatchInsert() 113 bool DataShareExtAbility::RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> … in RegisterObserver() [all …]
|
/foundation/ability/ability_runtime/test/moduletest/mock/include/ |
D | mock_ability_scheduler_stub.h | 32 MOCK_METHOD2(GetFileTypes, std::vector<std::string>(const Uri &, const std::string &)); 33 MOCK_METHOD2(OpenFile, int(const Uri &, const std::string &)); 34 MOCK_METHOD2(Insert, int(const Uri &, const NativeRdb::ValuesBucket &)); 35 …MOCK_METHOD3(Update, int(const Uri &, const NativeRdb::ValuesBucket &, const NativeRdb::DataAbilit… 36 MOCK_METHOD2(Delete, int(const Uri &, const NativeRdb::DataAbilityPredicates &)); 38 … const Uri &, std::vector<std::string> &, const NativeRdb::DataAbilityPredicates &)); 39 …MOCK_METHOD4(Call, std::shared_ptr<PacMap>(const Uri &, const std::string &, const std::string &, … 40 MOCK_METHOD1(GetType, std::string(const Uri &uri)); 41 MOCK_METHOD2(OpenRawFile, int(const Uri &uri, const std::string &mode)); 42 MOCK_METHOD2(Reload, bool(const Uri &uri, const PacMap &extras)); [all …]
|
D | mock_ability_scheduler.h | 37 …MOCK_METHOD2(ScheduleRegisterObserver, bool(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver… 39 …ScheduleUnregisterObserver, bool(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObse… 40 MOCK_METHOD1(ScheduleNotifyChange, bool(const Uri &uri)); 46 std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) in GetFileTypes() 52 int OpenFile(const Uri &uri, const std::string &mode) in OpenFile() 57 int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value) in Insert() 62 …int Update(const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredi… in Update() 67 int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) in Delete() 73 …const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predica… in Query() 79 …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/ |
D | mock_ability_scheduler_for_observer.h | 41 MOCK_METHOD2(GetFileTypes, std::vector<std::string>(const Uri &, const std::string &)); 42 MOCK_METHOD2(OpenFile, int(const Uri &, const std::string &)); 43 MOCK_METHOD2(OpenRawFile, int(const Uri &, const std::string &)); 44 MOCK_METHOD2(Insert, int(const Uri &, const NativeRdb::ValuesBucket &)); 45 …MOCK_METHOD3(Update, int(const Uri &, const NativeRdb::ValuesBucket &, const NativeRdb::DataAbilit… 46 MOCK_METHOD2(Delete, int(const Uri &, const NativeRdb::DataAbilityPredicates &)); 47 MOCK_METHOD3(Query, std::shared_ptr<NativeRdb::AbsSharedResultSet>(const Uri &, 49 …MOCK_METHOD4(Call, std::shared_ptr<PacMap>(const Uri &, const std::string &, const std::string &, … 50 MOCK_METHOD1(GetType, std::string(const Uri &)); 51 MOCK_METHOD2(Reload, bool(const Uri &, const PacMap &)); [all …]
|
D | mock_ability_manager_client.h | 59 virtual std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) in GetFileTypes() 63 virtual int OpenFile(const Uri &uri, const std::string &mode) in OpenFile() 67 virtual int OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile() 71 virtual int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value) in Insert() 76 …const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &pred… in Update() 80 virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) in Delete() 85 …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() 94 virtual std::string GetType(const Uri &uri) in GetType() 98 virtual bool Reload(const Uri &uri, const PacMap &extras) in Reload() [all …]
|
/foundation/distributeddatamgr/data_share/frameworks/native/provider/include/ |
D | datashare_stub_impl.h | 38 … 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, 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 …]
|
D | datashare_ext_ability.h | 74 … virtual std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter); 87 virtual int OpenFile(const Uri &uri, const std::string &mode); 101 virtual int OpenRawFile(const Uri &uri, const std::string &mode); 111 virtual int Insert(const Uri &uri, const DataShareValuesBucket &value); 122 virtual int Update(const Uri &uri, const DataSharePredicates &predicates, 133 virtual int Delete(const Uri &uri, const DataSharePredicates &predicates); 145 const Uri &uri, const DataSharePredicates &predicates, std::vector<std::string> &columns); 155 virtual std::string GetType(const Uri &uri); 165 virtual int BatchInsert(const Uri &uri, const std::vector<DataShareValuesBucket> &values); 173 …virtual bool RegisterObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserve… [all …]
|
/foundation/ability/ability_runtime/test/moduletest/ability_test/ |
D | data_ability_helper_module_test.cpp | 74 std::shared_ptr<Uri> uri = 75 … std::make_shared<Uri>("dataability://device_id/com.domainname.dataability.persondata/person/10"); 80 Uri urivalue("dataability://device_id/com.domainname.dataability.persondata/person/10"); 100 std::shared_ptr<Uri> uri = 101 … std::make_shared<Uri>("dataability://device_id/com.domainname.dataability.persondata/person/10"); 106 Uri urivalue("dataability://device_id/com.domainname.dataability.persondata/person/10"); 125 std::shared_ptr<Uri> uri = 126 … std::make_shared<Uri>("dataability://device_id/com.domainname.dataability.persondata/person/10"); 132 Uri urivalue("dataability://device_id/com.domainname.dataability.persondata/person/10"); 149 std::shared_ptr<Uri> uri = [all …]
|
/foundation/ability/ability_runtime/test/unittest/ability_scheduler_stub_test/ |
D | ability_schedule_stub_mock.h | 44 … std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) override in GetFileTypes() 50 int OpenFile(const Uri &uri, const std::string &mode) override in OpenFile() 55 int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value) override in Insert() 60 int Update(const Uri &uri, in Update() 66 int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override in Delete() 72 …const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predica… in Query() 78 …const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMa… in Call() 83 std::string GetType(const Uri &uri) override in GetType() 88 int OpenRawFile(const Uri &uri, const std::string &mode) override in OpenRawFile() 93 bool Reload(const Uri &uri, const PacMap &extras) override in Reload() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
D | data_uri_utils.cpp | 52 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/mock/services_abilitymgr_test/libs/aakit/src/ |
D | ability_scheduler.cpp | 62 std::vector<std::string> AbilityScheduler::GetFileTypes(const Uri &uri, const std::string &mimeType… in GetFileTypes() 68 int AbilityScheduler::OpenFile(const Uri &uri, const std::string &mode) in OpenFile() 73 int AbilityScheduler::Insert(const Uri &uri, const NativeRdb::ValuesBucket &value) in Insert() 78 int AbilityScheduler::Update(const Uri &uri, const NativeRdb::ValuesBucket &value, in Update() 84 int AbilityScheduler::Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) in Delete() 90 …const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predica… in Query() 96 …const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMa… in Call() 101 std::string AbilityScheduler::GetType(const Uri &uri) in GetType() 106 int AbilityScheduler::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile() 111 bool AbilityScheduler::Reload(const Uri &uri, const PacMap &extras) in Reload() [all …]
|
/foundation/ability/ability_base/interfaces/kits/native/uri/src/ |
D | uri.cpp | 47 Uri::Uri(const string& uriString) in Uri() function in OHOS::Uri 73 bool Uri::CheckScheme() in CheckScheme() 82 string Uri::GetScheme() in GetScheme() 94 string Uri::ParseScheme() in ParseScheme() 100 string Uri::GetSchemeSpecificPart() in GetSchemeSpecificPart() 109 string Uri::ParseSsp() in ParseSsp() 126 string Uri::GetAuthority() in GetAuthority() 138 string Uri::ParseAuthority() in ParseAuthority() 169 string Uri::GetUserInfo() in GetUserInfo() 181 string Uri::ParseUserInfo() in ParseUserInfo() [all …]
|
/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/ability_scheduler_mock/ |
D | ability_scheduler_mock.h | 57 std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) in GetFileTypes() 63 int OpenFile(const Uri &uri, const std::string &mode) in OpenFile() 68 int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value) in Insert() 73 …int Update(const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredi… in Update() 78 int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) in Delete() 84 …const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMa… in Call() 90 …const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predica… in Query() 95 virtual std::string GetType(const Uri &uri) override in GetType() 100 int OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile() 105 bool Reload(const Uri &uri, const PacMap &extras) in Reload() [all …]
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
D | ace_data_ability.h | 41 int32_t Insert(const Uri& uri, const NativeRdb::ValuesBucket& value) override; 43 const Uri& uri, const std::vector<std::string>& columns, 45 int32_t Update(const Uri& uri, const NativeRdb::ValuesBucket& value, 47 int32_t Delete(const Uri& uri, const NativeRdb::DataAbilityPredicates& predicates) override; 49 … int32_t BatchInsert(const Uri& uri, const std::vector<NativeRdb::ValuesBucket>& values) override; 50 std::string GetType(const Uri& uri) override; 51 … std::vector<std::string> GetFileTypes(const Uri& uri, const std::string& mimeTypeFilter) override; 52 int32_t OpenFile(const Uri& uri, const std::string& mode) override; 53 int32_t OpenRawFile(const Uri& uri, const std::string& mode) override; 54 Uri NormalizeUri(const Uri& uri) override; [all …]
|
/foundation/filemanagement/user_file_service/frameworks/innerkits/file_access/include/ |
D | ifile_access_ext_base.h | 54 virtual int OpenFile(const Uri &uri, const int flags, int &fd) = 0; 55 virtual int CreateFile(const Uri &parent, const std::string &displayName, Uri &newFile) = 0; 56 virtual int Mkdir(const Uri &parent, const std::string &displayName, Uri &newFile) = 0; 57 virtual int Delete(const Uri &sourceFile) = 0; 58 virtual int Move(const Uri &sourceFile, const Uri &targetParent, Uri &newFile) = 0; 59 virtual int Rename(const Uri &sourceFile, const std::string &displayName, Uri &newFile) = 0; 64 virtual int UriToFileInfo(const Uri &selectFile, FileInfo &fileInfo) = 0; 66 virtual int Access(const Uri &uri, bool &isExist) = 0;
|
D | file_access_ext_stub_impl.h | 37 int OpenFile(const Uri &uri, const int flags, int &fd) override; 38 int CreateFile(const Uri &parent, const std::string &displayName, Uri &newFile) override; 39 int Mkdir(const Uri &parent, const std::string &displayName, Uri &newFile) override; 40 int Delete(const Uri &sourceFile) override; 41 int Move(const Uri &sourceFile, const Uri &targetParent, Uri &newFile) override; 42 int Rename(const Uri &sourceFile, const std::string &displayName, Uri &newFile) override; 47 int UriToFileInfo(const Uri &selectFile, FileInfo &fileInfo) override; 49 int Access(const Uri &uri, bool &isExist) override;
|