/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/ |
H A D | cloud_service_stub.cpp | 219 std::string sharingRes; in OnShare() local 221 if (!ITypesUtil::Unmarshal(data, sharingRes, participants)) { in OnShare() 222 ZLOGE("Unmarshal sharingRes:%{public}s", Anonymous::Change(sharingRes).c_str()); in OnShare() 226 auto status = Share(sharingRes, participants, results); in OnShare() 232 std::string sharingRes; in OnUnshare() local 234 if (!ITypesUtil::Unmarshal(data, sharingRes, participants)) { in OnUnshare() 235 ZLOGE("Unmarshal sharingRes:%{public}s", Anonymous::Change(sharingRes).c_str()); in OnUnshare() 239 auto status = Unshare(sharingRes, participant in OnUnshare() 245 std::string sharingRes; OnExit() local 257 std::string sharingRes; OnChangePrivilege() local 270 std::string sharingRes; OnQuery() local 307 std::string sharingRes; OnChangeConfirmation() local [all...] |
H A D | cloud_service_impl.h | 54 int32_t Share(const std::string &sharingRes, const Participants &participants, Results &results) override; 55 int32_t Unshare(const std::string &sharingRes, const Participants &participants, Results &results) override; 56 int32_t Exit(const std::string &sharingRes, std::pair<int32_t, std::string> &result) override; 57 int32_t ChangePrivilege(const std::string &sharingRes, const Participants &participants, Results &results) override; 58 int32_t Query(const std::string &sharingRes, QueryResults &results) override; 63 const std::string &sharingRes, int32_t confirmation, std::pair<int32_t, std::string> &result) override;
|
H A D | cloud_service_impl.cpp | 1229 int32_t CloudServiceImpl::Share(const std::string &sharingRes, const Participants &participants, Results &results) in Share() argument 1234 ZLOGE("bundleName is empty, sharingRes:%{public}s", Anonymous::Change(sharingRes).c_str()); in Share() 1243 results = instance->Share(hapInfo.user, hapInfo.bundleName, sharingRes, Convert(participants)); in Share() 1250 int32_t CloudServiceImpl::Unshare(const std::string &sharingRes, const Participants &participants, Results &results) in Unshare() argument 1255 ZLOGE("bundleName is empty, sharingRes:%{public}s", Anonymous::Change(sharingRes).c_str()); in Unshare() 1264 results = instance->Unshare(hapInfo.user, hapInfo.bundleName, sharingRes, Convert(participants)); in Unshare() 1271 int32_t CloudServiceImpl::Exit(const std::string &sharingRes, std::pair<int32_t, std::string> &result) in Exit() argument 1276 ZLOGE("bundleName is empty, sharingRes in Exit() 1293 ChangePrivilege(const std::string &sharingRes, const Participants &participants, Results &results) ChangePrivilege() argument 1316 Query(const std::string &sharingRes, QueryResults &results) Query() argument 1378 ChangeConfirmation(const std::string &sharingRes, int32_t confirmation, std::pair<int32_t, std::string> &result) ChangeConfirmation() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/ |
H A D | sharing_center.cpp | 19 int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) in Share() 25 int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) in Unshare() 31 int32_t userId, const std::string &bundleName, const std::string &sharingRes) in Exit() 37 int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) in ChangePrivilege() 43 int32_t userId, const std::string &bundleName, const std::string &sharingRes) in Query() 61 int32_t userId, const std::string &bundleName, const std::string &sharingRes, int32_t confirmation) in ChangeConfirmation() 18 Share( int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) Share() argument 24 Unshare( int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) Unshare() argument 30 Exit( int32_t userId, const std::string &bundleName, const std::string &sharingRes) Exit() argument 36 ChangePrivilege( int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) ChangePrivilege() argument 42 Query( int32_t userId, const std::string &bundleName, const std::string &sharingRes) Query() argument 60 ChangeConfirmation( int32_t userId, const std::string &bundleName, const std::string &sharingRes, int32_t confirmation) ChangeConfirmation() argument
|
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/src/ |
H A D | cloud_service_proxy.cpp | 157 const std::string &sharingRes, const Participants &participants, Results &results) in Share() 160 int32_t status = IPC_SEND(TRANS_SHARE, reply, sharingRes, participants); in Share() 162 LOG_ERROR("status:0x%{public}x sharingRes:%{public}.6s participants:%{public}zu", in Share() 163 status, sharingRes.c_str(), participants.size()); in Share() 170 const std::string &sharingRes, const Participants &participants, Results &results) in Unshare() 173 int32_t status = IPC_SEND(TRANS_UNSHARE, reply, sharingRes, participants); in Unshare() 175 LOG_ERROR("status:0x%{public}x sharingRes:%{public}.6s participants:%{public}zu", in Unshare() 176 status, sharingRes.c_str(), participants.size()); in Unshare() 182 int32_t CloudServiceProxy::Exit(const std::string &sharingRes, std::pair<int32_t, std::string> &result) in Exit() argument 185 int32_t status = IPC_SEND(TRANS_EXIT, reply, sharingRes); in Exit() 156 Share( const std::string &sharingRes, const Participants &participants, Results &results) Share() argument 169 Unshare( const std::string &sharingRes, const Participants &participants, Results &results) Unshare() argument 193 ChangePrivilege( const std::string &sharingRes, const Participants &participants, Results &results) ChangePrivilege() argument 206 Query(const std::string &sharingRes, QueryResults &results) Query() argument 241 ChangeConfirmation(const std::string &sharingRes, int32_t confirmation, std::pair<int32_t, std::string> &result) ChangeConfirmation() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/cloud/ |
H A D | sharing_center.h | 82 virtual Results Share(int32_t userId, const std::string &bundleName, const std::string &sharingRes, 84 virtual Results Unshare(int32_t userId, const std::string &bundleName, const std::string &sharingRes, 87 int32_t userId, const std::string &bundleName, const std::string &sharingRes); 88 virtual Results ChangePrivilege(int32_t userId, const std::string &bundleName, const std::string &sharingRes, 90 virtual QueryResults Query(int32_t userId, const std::string &bundleName, const std::string &sharingRes); 96 int32_t userId, const std::string &bundleName, const std::string &sharingRes, int32_t confirmation);
|
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/include/ |
H A D | cloud_service_proxy.h | 41 int32_t Share(const std::string &sharingRes, const Participants &participants, Results &results) override; 42 int32_t Unshare(const std::string &sharingRes, const Participants &participants, Results &results) override; 43 int32_t Exit(const std::string &sharingRes, std::pair<int32_t, std::string> &result) override; 45 const std::string &sharingRes, const Participants &participants, Results &results) override; 46 int32_t Query(const std::string &sharingRes, QueryResults &results) override; 50 int32_t ChangeConfirmation(const std::string &sharingRes,
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/cloud_data/include/ |
H A D | cloud_service.h | 110 virtual int32_t Share(const std::string &sharingRes, const Participants &participants, Results &results) = 0; 111 virtual int32_t Unshare(const std::string &sharingRes, const Participants &participants, Results &results) = 0; 112 virtual int32_t Exit(const std::string &sharingRes, std::pair<int32_t, std::string> &result) = 0; 114 const std::string &sharingRes, const Participants &participants, Results &results) = 0; 115 virtual int32_t Query(const std::string &sharingRes, QueryResults &results) = 0; 119 virtual int32_t ChangeConfirmation(const std::string &sharingRes,
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | js_cloud_share.cpp | 107 * share(sharingRes: string, participants: Array<Participant>, 111 * share(sharingRes: string, participants: Array<Participant>): Promise<Result<Array<Result<Participant>>>>; 116 std::string sharingRes; in Share() member 122 // ShareContext have sharingRes, participants 2 required parameter in Share() 124 int status = JSUtils::Convert2Value(env, argv[0], ctxt->sharingRes); in Share() 125 ASSERT_BUSINESS_ERR(ctxt, status == JSUtils::OK && !ctxt->sharingRes.empty(), in Share() 126 Status::INVALID_ARGUMENT, "The type of sharingRes must be string and not empty."); in Share() 143 int32_t result = proxy->Share(ctxt->sharingRes, ctxt->participants, ctxt->results); in Share() 158 * unshare(sharingRes: string, participants: Array<Participant>, 162 * unshare(sharingRes 167 std::string sharingRes; Unshare() member 216 std::string sharingRes; Exit() member 263 std::string sharingRes; ChangePrivilege() member 312 std::string sharingRes; Query() member 453 std::string sharingRes; ChangeConfirmation() member [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | cloud_service_impl_test.cpp | 305 std::string sharingRes; in HWTEST_F() local 308 auto status = cloudServiceImpl_->Share(sharingRes, participants, results); in HWTEST_F() 320 std::string sharingRes; in HWTEST_F() local 323 auto status = cloudServiceImpl_->Unshare(sharingRes, participants, results); in HWTEST_F() 335 std::string sharingRes; in HWTEST_F() local 337 auto status = cloudServiceImpl_->Exit(sharingRes, result); in HWTEST_F() 349 std::string sharingRes; in HWTEST_F() local 352 auto status = cloudServiceImpl_->ChangePrivilege(sharingRes, participants, results); in HWTEST_F() 364 std::string sharingRes; in HWTEST_F() local 366 auto status = cloudServiceImpl_->Query(sharingRes, result in HWTEST_F() 408 std::string sharingRes; HWTEST_F() local [all...] |
H A D | cloud_data_test.cpp | 555 std::string sharingRes = ""; in HWTEST_F() local 558 auto ret = cloudServiceImpl_->Share(sharingRes, participants, results); in HWTEST_F() 570 std::string sharingRes = ""; in HWTEST_F() local 573 auto ret = cloudServiceImpl_->Unshare(sharingRes, participants, results); in HWTEST_F() 585 std::string sharingRes = ""; in HWTEST_F() local 588 auto ret = cloudServiceImpl_->ChangePrivilege(sharingRes, participants, results); in HWTEST_F() 600 std::string sharingRes = ""; in HWTEST_F() local 603 auto ret = cloudServiceImpl_->ChangeConfirmation(sharingRes, confirmation, result); in HWTEST_F() 615 std::string sharingRes = ""; in HWTEST_F() local 618 auto ret = cloudServiceImpl_->ConfirmInvitation(sharingRes, confirmatio in HWTEST_F() 630 std::string sharingRes = ""; HWTEST_F() local 644 std::string sharingRes = ""; HWTEST_F() local 1206 std::string sharingRes; HWTEST_F() local 1228 std::string sharingRes; HWTEST_F() local 1250 std::string sharingRes; HWTEST_F() local 1271 std::string sharingRes; HWTEST_F() local 1293 std::string sharingRes; HWTEST_F() local 1357 std::string sharingRes; HWTEST_F() local [all...] |