Home
last modified time | relevance | path

Searched refs:PublishedDataKey (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/
H A Dpublished_data_subscriber_manager.h28 struct PublishedDataKey { struct
30 bool operator<(const PublishedDataKey &rhs) const;
31 bool operator>(const PublishedDataKey &rhs) const;
32 bool operator<=(const PublishedDataKey &rhs) const;
33 bool operator>=(const PublishedDataKey &rhs) const;
34 bool operator==(const PublishedDataKey &rhs) const;
35 bool operator!=(const PublishedDataKey &rhs) const;
46 int Delete(const PublishedDataKey &key, uint32_t firstCallerTokenId);
48 int Disable(const PublishedDataKey &key, uint32_t firstCallerTokenId);
49 int Enable(const PublishedDataKey &key, uint32_t firstCallerTokenId);
[all …]
H A Dpublished_data_subscriber_manager.cpp120 std::map<PublishedDataKey, PublishedDataNode::Data> publishedResult; in Emit()
123 const PublishedDataKey &key, std::vector<ObserverNode> &val) { in Emit()
159 const std::vector<ObserverNode> &val, const PublishedDataKey &key, in PutInto()
178 int PublishedDataSubscriberManager::GetCount(const PublishedDataKey &key) in GetCount()
216 PublishedDataKey::PublishedDataKey(const std::string &key, const std::string &bundle, const int64_t… in PublishedDataKey() function in OHOS::DataShare::PublishedDataKey
227 bool PublishedDataKey::operator<(const PublishedDataKey &rhs) const in operator <()
244 bool PublishedDataKey::operator>(const PublishedDataKey &rhs) const in operator >()
249 bool PublishedDataKey::operator<=(const PublishedDataKey &rhs) const in operator <=()
254 bool PublishedDataKey::operator>=(const PublishedDataKey &rhs) const in operator >=()
259 bool PublishedDataKey::operator==(const PublishedDataKey &rhs) const in operator ==()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Ddata_share_subscriber_managers_test.cpp205 DataShare::PublishedDataKey key(context->uri, tpltId.bundleName_, tpltId.subscriberId_);
208 std::map<sptr<IDataProxyPublishedDataObserver>, std::vector<PublishedDataKey>> callbacks;
210 std::vector<PublishedDataKey> publishedKeys;
213 DataShare::PublishedDataKey keys("", "", 0);
224 HWTEST_F(DataShareSubscriberManagersTest, PublishedDataKey, TestSize.Level1)
226 …DataShare::PublishedDataKey key1(DATA_SHARE_URI_TEST, "ohos.subscribermanagertest.demo", TEST_SUB_…
227 DataShare::PublishedDataKey key2(DATA_SHARE_URI_TEST, "ohos.error.demo", TEST_SUB_ID);
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/
H A Ddata_share_service_impl.cpp358 std::vector<PublishedDataKey> publishedData; in Publish()
465 std::vector<PublishedDataKey> publishedKeys; in SubscribePublishedData()
470 PublishedDataKey key(uri, callerBundleName, subscriberId); in SubscribePublishedData()
475 PublishedDataKey(context->uri, context->callerBundleName, subscriberId), observer, in SubscribePublishedData()
507 PublishedDataKey key(uri, callerBundleName, subscriberId); in UnsubscribePublishedData()
512PublishedDataKey(context->uri, context->callerBundleName, subscriberId), context->callerTokenId); in UnsubscribePublishedData()
534 std::vector<PublishedDataKey> publishedKeys; in EnablePubSubs()
539 PublishedDataKey key(uri, callerBundleName, subscriberId); in EnablePubSubs()
544PublishedDataKey(context->uri, context->callerBundleName, subscriberId), context->callerTokenId); in EnablePubSubs()
554 PublishedDataKey pKey(context->uri, context->callerBundleName, subscriberId); in EnablePubSubs()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/data/
H A Dpublished_data.cpp211 .GetCount(PublishedDataKey(data.key, data.bundleName, data.subscriberId)) == 0) { in ClearAging()