Home
last modified time | relevance | path

Searched refs:switches (Results 1 - 25 of 27) sorted by relevance

12

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/model/
H A Dchecker_config.cpp44 SetValue(node[GET_NAME(switches)], switches); in Marshal()
55 GetValue(node, GET_NAME(switches), switches); in Unmarshal()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/bootstrap/src/
H A Dbootstrap.cpp105 for (const auto &switches : checkers->switches) { in LoadCheckers()
106 auto *checker = CheckerManager::GetInstance().GetChecker(switches.checker); in LoadCheckers()
110 checker->SetSwitchesInfo(switches); in LoadCheckers()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/checker/
H A Dsystem_checker.cpp49 bool SystemChecker::SetSwitchesInfo(const CheckerManager::Switches &switches) in SetSwitchesInfo() argument
51 switches_[switches.bundleName] = switches.appId; in SetSwitchesInfo()
H A Dbundle_checker.cpp60 bool BundleChecker::SetSwitchesInfo(const CheckerManager::Switches &switches) in SetSwitchesInfo() argument
62 switches_[switches.bundleName] = switches.appId; in SetSwitchesInfo()
H A Dbundle_checker.h28 bool SetSwitchesInfo(const CheckerManager::Switches &switches) override;
H A Dsystem_checker.h29 bool SetSwitchesInfo(const CheckerManager::Switches &switches) override;
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/
H A Dmatrix_event.cpp51 switches == INVALID_VALUE && switchesLen == INVALID_LENGTH); in IsValid()
H A Ddevice_matrix.cpp337 if (device.empty() || dataLevel.switches == INVALID_VALUE || in SaveSwitches()
339 ZLOGW("switches data invalid, device:%{public}s", Anonymous::Change(device).c_str()); in SaveSwitches()
344 newMeta.value = dataLevel.switches; in SaveSwitches()
360 .switches = dataLevel.switches, in Broadcast()
422 matrixData.switches = switchesData.value; in OnChanged()
758 switches == INVALID_VALUE && switchesLen == INVALID_LENGTH); in IsValid()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/include/
H A Dmatrix_event.h32 uint32_t switches = INVALID_VALUE; member
H A Ddevice_matrix.h60 uint32_t switches = INVALID_VALUE; member
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/include/model/
H A Dchecker_config.h39 std::vector<Switches> switches; member in OHOS::DistributedData::final
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/mock/
H A Dchecker_mock.h40 bool SetSwitchesInfo(const CheckerManager::Switches &switches) override;
H A Dchecker_mock.cpp108 bool CheckerMock::SetSwitchesInfo(const CheckerManager::Switches &switches) in SetSwitchesInfo() argument
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/communicator/
H A Dcommu_types.h80 uint32_t switches; member
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/
H A Dkvstore_meta_manager.cpp110 level.switches = levelInfo.switches; in InitBroadcast()
121 level.switches = matrixData.switches; in InitBroadcast()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dcloud_service_impl_test.cpp99 std::map<std::string, int32_t> switches; in HWTEST_F() local
100 switches.insert_or_assign(TEST_CLOUD_BUNDLE, CloudData::CloudService::SWITCH_ON); in HWTEST_F()
101 auto status = cloudServiceImpl_->EnableCloud(TEST_CLOUD_APPID, switches); in HWTEST_F()
H A Dcloud_data_test.cpp508 std::map<std::string, int32_t> switches; in HWTEST_F() local
509 switches.emplace(TEST_CLOUD_ID, true); in HWTEST_F()
973 std::map<std::string, int32_t> switches; in HWTEST_F() local
974 switches.insert_or_assign(TEST_CLOUD_BUNDLE, CloudData::CloudService::SWITCH_ON); in HWTEST_F()
975 switches.insert_or_assign(bundleName, CloudData::CloudService::SWITCH_ON); in HWTEST_F()
976 auto ret = cloudServiceImpl_->EnableCloud(TEST_CLOUD_ID, switches); in HWTEST_F()
995 std::map<std::string, int32_t> switches; in HWTEST_F() local
996 ITypesUtil::Marshal(data, id, switches); in HWTEST_F()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/
H A Dcloud_service_stub.cpp86 std::map<std::string, int32_t> switches; in OnEnableCloud() local
87 if (!ITypesUtil::Unmarshal(data, id, switches)) { in OnEnableCloud()
92 for (const auto &[bundle, status] : switches) { in OnEnableCloud()
H A Dcloud_service_impl.h39 int32_t EnableCloud(const std::string &id, const std::map<std::string, int32_t> &switches) override;
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/src/
H A Dcloud_service_proxy.cpp55 int32_t CloudServiceProxy::EnableCloud(const std::string &id, const std::map<std::string, int32_t> &switches) in EnableCloud() argument
58 int32_t status = IPC_SEND(TRANS_ENABLE_CLOUD, reply, id, switches); in EnableCloud()
60 LOG_ERROR("status:0x%{public}x id:%{public}.6s size:%{public}zu", status, id.c_str(), switches.size()); in EnableCloud()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/checker/
H A Dchecker_manager.h45 virtual bool SetSwitchesInfo(const Switches &switches) = 0;
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/include/
H A Dcloud_service_proxy.h28 int32_t EnableCloud(const std::string &id, const std::map<std::string, int32_t> &switches) override;
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/cloud_data/include/
H A Dcloud_service.h97 virtual int32_t EnableCloud(const std::string &id, const std::map<std::string, int32_t> &switches) = 0;
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
H A Djs_config.cpp45 * enableCloud(accountId: string, switches: {[bundleName: string]: boolean}, callback: AsyncCallback<void>): void;
47 * enableCloud(accountId: string, switches: {[bundleName: string]: boolean}): Promise<void>;
54 std::map<std::string, int32_t> switches; in EnableCloud() member
58 // required 2 arguments :: <accountId> <switches> in EnableCloud()
60 // 0 is the index of argument accountId, 1 is the index of argument switches in EnableCloud()
66 "The type of switches must be {[bundleName: string]: boolean}."); in EnableCloud()
68 ctxt->switches[item.first] = item.second ? CloudService::Switch::SWITCH_ON in EnableCloud()
86 int32_t cStatus = proxy->EnableCloud(ctxt->accountId, ctxt->switches); in EnableCloud()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/
H A Dsoftbus_adapter_standard.cpp79 .switches = dataLevel.switchLevel, in OnDataLevelChanged()
457 .switchLevel = levelInfo.switches, in Broadcast()

Completed in 15 milliseconds

12