/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/ |
D | mock_single_kv_store.cpp | 36 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 38 return Status::INVALID_ARGUMENT; in GetEntries() 41 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 43 return Status::SUCCESS; in GetEntries() 46 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 48 return Status::SUCCESS; in GetResultSet() 51 Status MockSingleKvStore::GetResultSet( in GetResultSet() 54 return Status::SUCCESS; in GetResultSet() 57 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() 59 return Status::SUCCESS; in CloseResultSet() [all …]
|
D | mock_distributed_kv_data_manager.cpp | 37 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 41 return Status::INVALID_ARGUMENT; in GetSingleKvStore() 43 return Status::SUCCESS; in GetSingleKvStore() 46 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() 48 return Status::SUCCESS; in DeleteKvStore()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_screen_status_manager_branch_test/ |
D | mock_single_kv_store.cpp | 30 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 35 return Status::INVALID_ARGUMENT; in GetEntries() 37 return Status::SUCCESS; in GetEntries() 40 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 42 return Status::SUCCESS; in GetEntries() 45 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 47 return Status::SUCCESS; in GetResultSet() 50 Status MockSingleKvStore::GetResultSet( in GetResultSet() 53 return Status::SUCCESS; in GetResultSet() 56 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() [all …]
|
D | mock_distributed_kv_data_manager.cpp | 28 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 31 return Status::INVALID_ARGUMENT; in GetSingleKvStore()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_database_test/ |
D | mock_single_kv_store.cpp | 30 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 32 return Status::INVALID_ARGUMENT; in GetEntries() 35 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 37 return Status::SUCCESS; in GetEntries() 40 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 42 return Status::SUCCESS; in GetResultSet() 45 Status MockSingleKvStore::GetResultSet( in GetResultSet() 48 return Status::SUCCESS; in GetResultSet() 51 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() 53 return Status::SUCCESS; in CloseResultSet() [all …]
|
D | mock_distributed_kv_data_manager.cpp | 34 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 37 return Status::INVALID_ARGUMENT; in GetSingleKvStore() 40 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() 43 return Status::INVALID_ARGUMENT; in CloseKvStore() 45 return Status::SUCCESS; in CloseKvStore() 48 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() 50 return Status::INVALID_ARGUMENT; in DeleteKvStore()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
D | mock_single_kv_store.cpp | 21 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 23 return Status::SUCCESS; in GetEntries() 26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 28 return Status::SUCCESS; in GetEntries() 31 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 33 return Status::SUCCESS; in GetResultSet() 36 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() 38 return Status::SUCCESS; in GetResultSet() 41 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() 43 return Status::SUCCESS; in CloseResultSet() [all …]
|
D | distributed_kv_data_manager.cpp | 30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 35 return Status::SUCCESS; in GetSingleKvStore() 38 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() 40 return Status::SUCCESS; in CloseKvStore() 43 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &k… in CloseKvStore() 45 return Status::SUCCESS; in CloseKvStore() 48 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() 50 return Status::SUCCESS; in DeleteKvStore()
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/ |
D | mock_single_kv_store.cpp | 21 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 23 return Status::SUCCESS; in GetEntries() 26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 28 return Status::SUCCESS; in GetEntries() 31 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 33 return Status::SUCCESS; in GetResultSet() 36 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() 38 return Status::SUCCESS; in GetResultSet() 41 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() 43 return Status::SUCCESS; in CloseResultSet() [all …]
|
D | distributed_kv_data_manager.cpp | 30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 35 return Status::SUCCESS; in GetSingleKvStore() 38 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() 40 return Status::SUCCESS; in CloseKvStore() 43 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &k… in CloseKvStore() 45 return Status::SUCCESS; in CloseKvStore() 48 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() 50 return Status::SUCCESS; in DeleteKvStore()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
D | mock_single_kv_store.cpp | 21 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 23 return Status::SUCCESS; in GetEntries() 26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 28 return Status::SUCCESS; in GetEntries() 31 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 33 return Status::SUCCESS; in GetResultSet() 36 Status MockSingleKvStore::GetResultSet( in GetResultSet() 39 return Status::SUCCESS; in GetResultSet() 42 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() 44 return Status::SUCCESS; in CloseResultSet() [all …]
|
D | mock_single_kv_store.h | 43 virtual Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override; 52 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 61 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co… 70 virtual Status GetResultSet(const DataQuery &query, 79 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override; 88 virtual Status GetCount(const DataQuery &query, int &result) const override; 100 virtual Status Sync( 109 virtual Status RemoveDeviceData(const std::string &device) override; 124 virtual Status Delete(const Key &key) override; 133 virtual Status Put(const Key &key, const Value &value) override; [all …]
|
D | mock_distributed_kv_data_manager.cpp | 37 Status DistributedKvDataManager::StopWatchDeviceChange(std::shared_ptr<DeviceStatusChangeListener> … in StopWatchDeviceChange() 39 return Status::SUCCESS; in StopWatchDeviceChange() 42 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 47 return DistributedKv::Status::SUCCESS; in GetSingleKvStore() 50 Status DistributedKvDataManager::GetLocalDevice(DeviceInfo &localDevice) in GetLocalDevice() 55 return static_cast<Status>(g_mockLocalDevice); in GetLocalDevice() 58 Status DistributedKvDataManager::GetDeviceList(std::vector<DeviceInfo> &deviceInfoList, DeviceFilte… in GetDeviceList() 74 return Status::SUCCESS; in GetDeviceList() 77 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() 79 return Status::SUCCESS; in CloseKvStore() [all …]
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
D | mock_single_kv_store.cpp | 101 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() 114 return Status::SUCCESS; in GetEntries() 117 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 119 return Status::SUCCESS; in GetEntries() 122 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &res… in GetResultSet() 124 return Status::SUCCESS; in GetResultSet() 127 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() 129 return Status::SUCCESS; in GetResultSet() 132 Status MockSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() 134 return Status::SUCCESS; in CloseResultSet() [all …]
|
D | distributed_kv_data_manager.cpp | 30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() 36 return Status::SUCCESS; in GetSingleKvStore() 39 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() 41 return Status::SUCCESS; in CloseKvStore() 44 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &k… in CloseKvStore() 46 return Status::SUCCESS; in CloseKvStore() 49 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() 52 return Status::SUCCESS; in DeleteKvStore()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/ |
D | mock_single_kv_store.h | 43 Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override; 52 Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 61 …Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const over… 70 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov… 78 Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override; 87 Status GetCount(const DataQuery &query, int &result) const override; 99 … Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t delayMs) override; 107 Status RemoveDeviceData(const std::string &device) override; 122 Status Delete(const Key &key) override; 131 Status Put(const Key &key, const Value &value) override; [all …]
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/ |
D | mock_single_kv_store.h | 43 virtual Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override; 52 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 61 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co… 70 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov… 78 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override; 87 virtual Status GetCount(const DataQuery &query, int &result) const override; 99 virtual Status Sync( 108 virtual Status RemoveDeviceData(const std::string &device) override; 123 virtual Status Delete(const Key &key) override; 132 virtual Status Put(const Key &key, const Value &value) override; [all …]
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/ |
D | mock_single_kv_store.h | 42 virtual Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override; 51 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 60 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co… 69 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov… 77 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override; 86 virtual Status GetCount(const DataQuery &query, int &result) const override; 98 virtual Status Sync( 107 virtual Status RemoveDeviceData(const std::string &device) override; 122 virtual Status Delete(const Key &key) override; 131 virtual Status Put(const Key &key, const Value &value) override; [all …]
|
/base/account/os_account/services/accountmgr/src/ |
D | account_data_storage.cpp | 48 void AccountDataStorage::TryTwice(const std::function<DistributedKv::Status()> &func) const in TryTwice() 50 OHOS::DistributedKv::Status status = func(); in TryTwice() 51 if (status == OHOS::DistributedKv::Status::IPC_ERROR) { in TryTwice() 57 OHOS::DistributedKv::Status AccountDataStorage::GetKvStore() in GetKvStore() 70 …OHOS::DistributedKv::Status status = dataManager_.GetSingleKvStore(options, appId_, storeId_, kvSt… in GetKvStore() 71 if (status != OHOS::DistributedKv::Status::SUCCESS || kvStorePtr_ == nullptr) { in GetKvStore() 86 OHOS::DistributedKv::Status status = OHOS::DistributedKv::Status::SUCCESS; in CheckKvStore() 89 if (status == OHOS::DistributedKv::Status::SUCCESS && kvStorePtr_ != nullptr) { in CheckKvStore() 111 OHOS::DistributedKv::Status status = DistributedKv::Status::SUCCESS; in LoadAllData() 118 if (status != OHOS::DistributedKv::Status::SUCCESS) { in LoadAllData() [all …]
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_preferences_database.cpp | 70 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 71 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore() 107 DistributedKv::Status status = kvStore_->Put(kvStoreKey, kvStoreValue); in PutToDistributedDB() 109 if (status != DistributedKv::Status::SUCCESS) { in PutToDistributedDB() 131 DistributedKv::Status status = kvStore_->Get(kvStoreKey, kvStoreValue); in GetFromDistributedDB() 133 if (status != DistributedKv::Status::SUCCESS) { in GetFromDistributedDB() 154 DistributedKv::Status status = kvStore_->GetEntries(kvStoreKey, entries); in GetEntriesFromDistributedDB() 156 if (status != DistributedKv::Status::SUCCESS) { in GetEntriesFromDistributedDB() 177 DistributedKv::Status status = kvStore_->Delete(kvStoreKey); in DeleteToDistributedDB() 179 if (status != DistributedKv::Status::SUCCESS) { in DeleteToDistributedDB() [all …]
|
D | distributed_database.cpp | 90 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 91 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore() 101 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore() 144 DistributedKv::Status status = kvStore_->Put(kvStoreKey, kvStoreValue); in PutToDistributedDB() 145 if (status != DistributedKv::Status::SUCCESS) { in PutToDistributedDB() 169 DistributedKv::Status status = kvStore_->Get(kvStoreKey, kvStoreValue); in GetFromDistributedDB() 170 if (status != DistributedKv::Status::SUCCESS) { in GetFromDistributedDB() 195 DistributedKv::Status status = kvStore_->GetEntries(kvStoreKey, entries); in GetEntriesFromDistributedDB() 196 if (status != DistributedKv::Status::SUCCESS) { in GetEntriesFromDistributedDB() 219 DistributedKv::Status status = kvStore_->Delete(kvStoreKey); in DeleteToDistributedDB() [all …]
|
D | distributed_screen_status_manager.cpp | 136 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 137 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore() 187 DistributedKv::Status status = kvStore_->GetEntries(prefixKey, entries); in CheckRemoteDevicesIsUsing() 188 if (status != DistributedKv::Status::SUCCESS) { in CheckRemoteDevicesIsUsing() 236 DistributedKv::Status status = kvStore_->Put(kvStoreKey, kvStoreValue); in SetLocalScreenStatus() 237 if (status != DistributedKv::Status::SUCCESS) { in SetLocalScreenStatus()
|
/base/notification/common_event_service/services/src/ |
D | static_subscriber_data_manager.cpp | 40 DistributedKv::Status StaticSubscriberDataManager::GetKvStore() in GetKvStore() 52 …DistributedKv::Status status = dataManager_.GetSingleKvStore(options, appId_, storeId_, kvStorePtr… in GetKvStore() 53 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore() 66 DistributedKv::Status status = GetKvStore(); in CheckKvStore() 67 if (status == DistributedKv::Status::SUCCESS && kvStorePtr_ != nullptr) { in CheckKvStore() 83 DistributedKv::Status status; in InsertDisableStaticSubscribeData() 96 if (status != DistributedKv::Status::SUCCESS) { in InsertDisableStaticSubscribeData() 113 DistributedKv::Status status; in DeleteDisableStaticSubscribeData() 125 if (status != DistributedKv::Status::SUCCESS) { in DeleteDisableStaticSubscribeData() 148 DistributedKv::Status status = kvStorePtr_->GetEntries(nullptr, allEntries); in QueryDisableStaticSubscribeAllData() [all …]
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/include/ |
D | event_log_task.h | 34 enum Status { enum 48 EventLogTask::Status StartCompose(); 49 EventLogTask::Status GetTaskStatus() const; 59 volatile Status status_;
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
D | event_log_task.cpp | 44 status_(Status::TASK_RUNNABLE) in EventLogTask() 68 status_ = Status::TASK_RUNNABLE; in AddLog() 78 EventLogTask::Status EventLogTask::StartCompose() in StartCompose() 81 if (status_ != Status::TASK_RUNNABLE) { in StartCompose() 84 status_ = Status::TASK_RUNNING; in StartCompose() 87 return Status::TASK_SUCCESS; in StartCompose() 95 status_ = Status::TASK_FAIL; in StartCompose() 108 if (status_ == Status::TASK_RUNNING) { in StartCompose() 109 status_ = Status::TASK_SUCCESS; in StartCompose() 117 if (status_ == Status::TASK_TIMEOUT) { in ShouldStopLogTask() [all …]
|