Home
last modified time | relevance | path

Searched refs:tplId (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/
H A Ddatashare_template.h59 bool operator==(const TemplateId &tplId) const
61 return subscriberId_ == tplId.subscriberId_ && bundleName_ == tplId.bundleName_;
63 bool operator!=(const TemplateId &tplId) const
65 return !(tplId == *this);
67 bool operator<(const TemplateId &tplId) const
69 if (subscriberId_ != tplId.subscriberId_) {
70 return subscriberId_ < tplId.subscriberId_;
72 return bundleName_ < tplId.bundleName_;
/ohos5.0/foundation/distributeddatamgr/data_share/test/native/unittest/datashareproxy_test/
H A Dproxydatas_with_permission_test.cpp286 TemplateId tplId; variable
287 tplId.subscriberId_ = SUBSCRIBER_ID;
288 tplId.bundleName_ = "ohos.datashareproxyclienttest.demo";
290 helper->SubscribeRdbData(uris, tplId, [&tplId](const RdbChangeNode &changeNode) { in __anon83ff92070102()
292 EXPECT_EQ(changeNode.templateId_.bundleName_, tplId.bundleName_); in __anon83ff92070102()
293 EXPECT_EQ(changeNode.templateId_.subscriberId_, tplId.subscriberId_); in __anon83ff92070102()
301 std::vector<OperationResult> results3 = helper->EnableRdbSubs(uris, tplId);
313 std::vector<OperationResult> results4 = helper->UnsubscribeRdbData(uris, tplId);
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Ddata_share_service_impl_test.cpp311 TemplateId tplId; variable
312 tplId.subscriberId_ = TEST_SUB_ID;
313 tplId.bundleName_ = BUNDLE_NAME;
314 …std::vector<OperationResult> result2 = dataShareServiceImpl.SubscribeRdbData(uris, tplId, observer…
320 std::vector<OperationResult> result3 = dataShareServiceImpl.EnableRdbSubs(uris, tplId);
332 std::vector<OperationResult> result5 = dataShareServiceImpl.UnsubscribeRdbData(uris, tplId);
343 std::vector<OperationResult> result7 = dataShareServiceImpl.DisableRdbSubs(uris, tplId);
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/
H A Ddatashare_js_utils.cpp359 napi_value tplId = nullptr; in Convert2JSValue() local
360 napi_create_object(env, &tplId); in Convert2JSValue()
370 napi_set_named_property(env, tplId, "subscriberId", subscriberId); in Convert2JSValue()
371 napi_set_named_property(env, tplId, "bundleName", bundleName); in Convert2JSValue()
372 return tplId; in Convert2JSValue()