Home
last modified time | relevance | path

Searched refs:DeviceMatrix (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Ddevice_matrix_test.cpp45 uint16_t mask_ = DeviceMatrix::INVALID_LEVEL;
76 DeviceMatrix::GetInstance().OnChanged(DeviceMatrix::META_STORE_MASK); in SetUpTestCase()
104 DeviceMatrix::GetInstance().Clear(); in SetUp()
207 DeviceMatrix::DataLevel level = {
208 .dynamic = DeviceMatrix::META_STORE_MASK,
228 DeviceMatrix::DataLevel level = {
246 DeviceMatrix::DataLevel level = {
262 DeviceMatrix::DataLevel level = {
277 DeviceMatrix::GetInstance().OnExchanged(TEST_DEVICE, DeviceMatrix::META_STORE_MASK);
321 DeviceMatrix::DataLevel level = {
[all …]
H A Dkvdb_service_impl_test.cpp40 using ChangeType = OHOS::DistributedData::DeviceMatrix::ChangeType;
628 switchData.value = DeviceMatrix::INVALID_VALUE;
629 switchData.length = DeviceMatrix::INVALID_LEVEL;
632 switchData.value = DeviceMatrix::INVALID_MASK;
633 switchData.length = DeviceMatrix::INVALID_LENGTH;
636 switchData.value = DeviceMatrix::INVALID_VALUE;
637 switchData.length = DeviceMatrix::INVALID_LENGTH;
640 switchData.value = DeviceMatrix::INVALID_MASK;
641 switchData.length = DeviceMatrix::INVALID_LEVEL;
H A Dcloud_data_test.cpp244 … [](const auto &, auto) { DeviceMatrix::GetInstance().OnChanged(DeviceMatrix::META_STORE_MASK); }); in SetUpTestCase()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/
H A Ddevice_matrix.cpp32 DeviceMatrix &DeviceMatrix::GetInstance() in GetInstance()
34 static DeviceMatrix instance; in GetInstance()
38 DeviceMatrix::DeviceMatrix() in DeviceMatrix() function in OHOS::DistributedData::DeviceMatrix
78 DeviceMatrix::~DeviceMatrix() in ~DeviceMatrix()
174 void DeviceMatrix::UpdateMask(Mask &mask) in UpdateMask()
641 void DeviceMatrix::Clear() in Clear()
674 void DeviceMatrix::UpdateLevel(const std::string &device, uint16_t level, DeviceMatrix::LevelType t… in UpdateLevel()
740 DeviceMatrix::Task DeviceMatrix::GenResetTask() in GenResetTask()
755 bool DeviceMatrix::DataLevel::IsValid() const in IsValid()
761 bool DeviceMatrix::IsSupportMatrix() in IsSupportMatrix()
[all …]
H A Dauto_sync_matrix.cpp96 if (meta.dataType != DataType::DYNAMICAL || DeviceMatrix::GetInstance().IsDynamic(meta)) { in IsAutoSync()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/include/
H A Ddevice_matrix.h30 class API_EXPORT DeviceMatrix {
65 static DeviceMatrix &GetInstance();
100 DeviceMatrix();
101 ~DeviceMatrix();
102 DeviceMatrix(const DeviceMatrix &) = delete;
103 DeviceMatrix(DeviceMatrix &&) noexcept = delete;
104 DeviceMatrix &operator=(const DeviceMatrix &) = delete;
105 DeviceMatrix &operator=(DeviceMatrix &&) noexcept = delete;
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/
H A Dkvstore_meta_manager.cpp107 DistributedData::DeviceMatrix::DataLevel level; in InitBroadcast()
112 DeviceMatrix::GetInstance().OnBroadcast(device, std::move(level)); in InitBroadcast()
115 … EventCenter::GetInstance().Subscribe(DeviceMatrix::MATRIX_BROADCAST, [pipe](const Event &event) { in InitBroadcast()
301 DeviceMatrix::GetInstance().OnExchanged(info.deviceId, DeviceMatrix::META_STORE_MASK, in CreateMetaKvStore()
302 DeviceMatrix::LevelType::DYNAMIC, DeviceMatrix::ChangeType::CHANGE_REMOTE); in CreateMetaKvStore()
354 DeviceMatrix::GetInstance().OnChanged(DeviceMatrix::META_STORE_MASK); in CloudSyncTask()
411 DeviceMatrix::GetInstance().Offline(info.uuid); in OnDeviceChanged()
414 DeviceMatrix::GetInstance().Online(info.uuid, RefCount([deviceId = info.uuid]() { in OnDeviceChanged()
H A Dkvstore_data_service.cpp355DeviceMatrix::GetInstance().Initialize(IPCSkeleton::GetCallingTokenID(), Bootstrap::GetInstance().… in StartService()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dkvdb_service_impl.cpp252 DeviceMatrix::GetInstance().OnChanged(metaData); in Sync()
279 if (DeviceMatrix::GetInstance().IsSupportMatrix() && in NotifyDataChange()
280 … (DeviceMatrix::GetInstance().IsStatics(meta) || DeviceMatrix::GetInstance().IsDynamic(meta))) { in NotifyDataChange()
282 DeviceMatrix::GetInstance().OnChanged(meta); in NotifyDataChange()
297 if (data.value == DeviceMatrix::INVALID_VALUE || data.length == DeviceMatrix::INVALID_LENGTH) { in PutSwitch()
312 DeviceMatrix::DataLevel level = { in PutSwitch()
318 DeviceMatrix::GetInstance().Broadcast(level); in PutSwitch()
833 auto code = DeviceMatrix::GetInstance().GetCode(metaData); in IsRemoteChange()
834 if (code == DeviceMatrix::INVALID_MASK) { in IsRemoteChange()
1066 if ((mask & DeviceMatrix::META_STORE_MASK) == DeviceMatrix::META_STORE_MASK) { in IsNeedMetaSync()
[all …]
H A Dkvdb_general_store.cpp185 … if (DeviceMatrix::GetInstance().IsDynamic(meta) || DeviceMatrix::GetInstance().IsStatics(meta)) { in KVDBGeneralStore()
187DeviceMatrix::GetInstance().OnExchanged(info.deviceId, meta, DeviceMatrix::ChangeType::CHANGE_REMO… in KVDBGeneralStore()
H A Dkvdb_service_impl.h83 using ChangeType = OHOS::DistributedData::DeviceMatrix::ChangeType;
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/waterversion/
H A Dwater_version_manager.cpp307 DeviceMatrix::GetInstance().UpdateLevel(metaData.deviceId, metaData.GetLevel(), in SaveMatrix()
308 …metaData.type == STATIC ? DeviceMatrix::STATICS : DeviceMatrix::DYNAMIC, metaData.deviceId != loca… in SaveMatrix()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
H A Drdb_service_impl.cpp480 auto [exist, mask] = DeviceMatrix::GetInstance().GetRemoteMask(uuid); in IsNeedMetaSync()
481 if ((mask & DeviceMatrix::META_STORE_MASK) == DeviceMatrix::META_STORE_MASK) { in IsNeedMetaSync()
498 DeviceMatrix::GetInstance().OnExchanged(uuid, DeviceMatrix::META_STORE_MASK); in ProcessResult()