/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/model/ |
H A D | checker_config.cpp | 44 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 D | bootstrap.cpp | 105 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 D | system_checker.cpp | 49 bool SystemChecker::SetSwitchesInfo(const CheckerManager::Switches &switches) in SetSwitchesInfo() argument 51 switches_[switches.bundleName] = switches.appId; in SetSwitchesInfo()
|
H A D | bundle_checker.cpp | 60 bool BundleChecker::SetSwitchesInfo(const CheckerManager::Switches &switches) in SetSwitchesInfo() argument 62 switches_[switches.bundleName] = switches.appId; in SetSwitchesInfo()
|
H A D | bundle_checker.h | 28 bool SetSwitchesInfo(const CheckerManager::Switches &switches) override;
|
H A D | system_checker.h | 29 bool SetSwitchesInfo(const CheckerManager::Switches &switches) override;
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/ |
H A D | matrix_event.cpp | 51 switches == INVALID_VALUE && switchesLen == INVALID_LENGTH); in IsValid()
|
H A D | device_matrix.cpp | 337 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 D | matrix_event.h | 32 uint32_t switches = INVALID_VALUE; member
|
H A D | device_matrix.h | 60 uint32_t switches = INVALID_VALUE; member
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/include/model/ |
H A D | checker_config.h | 39 std::vector<Switches> switches; member in OHOS::DistributedData::final
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/mock/ |
H A D | checker_mock.h | 40 bool SetSwitchesInfo(const CheckerManager::Switches &switches) override;
|
H A D | checker_mock.cpp | 108 bool CheckerMock::SetSwitchesInfo(const CheckerManager::Switches &switches) in SetSwitchesInfo() argument
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/communicator/ |
H A D | commu_types.h | 80 uint32_t switches; member
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
H A D | kvstore_meta_manager.cpp | 110 level.switches = levelInfo.switches; in InitBroadcast() 121 level.switches = matrixData.switches; in InitBroadcast()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | cloud_service_impl_test.cpp | 99 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 D | cloud_data_test.cpp | 508 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 D | cloud_service_stub.cpp | 86 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 D | cloud_service_impl.h | 39 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 D | cloud_service_proxy.cpp | 55 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 D | checker_manager.h | 45 virtual bool SetSwitchesInfo(const Switches &switches) = 0;
|
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/include/ |
H A D | cloud_service_proxy.h | 28 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 D | cloud_service.h | 97 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 D | js_config.cpp | 45 * 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 D | softbus_adapter_standard.cpp | 79 .switches = dataLevel.switchLevel, in OnDataLevelChanged() 457 .switchLevel = levelInfo.switches, in Broadcast()
|