/base/security/permission/services/permission_lite/ipc_auth/src/ |
D | ipc_auth_impl.c | 70 static void SetPolicy(const IpcPolicy *policy, PolicyTrans *policyTrans) in SetPolicy() argument 72 switch (policy->type) { in SetPolicy() 75 policyTrans->uidMax = policy->uidMax; in SetPolicy() 76 policyTrans->uidMin = policy->uidMin; in SetPolicy() 81 policyTrans->fixedUid[m] = policy->fixedUid[m]; in SetPolicy() 88 int ret = GetUidByBundleName(policy->bundleName, &uid); in SetPolicy() 139 IpcPolicy policy = featurePolicy->policies[k]; in SetPolicies() local 140 if (IsPolicyValid(policy.type)) { in SetPolicies() 141 SetPolicy(&policy, *policies + index); in SetPolicies() 206 static int CheckPolicy(const IpcPolicy *policy, unsigned int consumerUid) in CheckPolicy() argument [all …]
|
/base/customization/config_policy/ |
D | README.md | 5 The config policy, namely, cust, provides APIs for each service module to obtain the configuration … 9 The directory structure for the config policy is as follows: 13 ├── config_policy # Code repository for the config policy 14 │ ├── frameworks # Core code of the config policy 15 │ │ ├── config_policy # config policy 17 │ ├── interfaces # APIs of the config policy 18 │ │ ├── innerkits # APIs of the config policy for internal subsystems 25 Call the APIs of the config policy to obtain the configuration directories at different levels or t…
|
/base/update/updateservice/engine/src/ |
D | update_helper.cpp | 109 int32_t UpdateHelper::WriteUpdatePolicy(MessageParcel &data, const UpdatePolicy &policy) in WriteUpdatePolicy() argument 111 data.WriteBool(policy.autoDownload); in WriteUpdatePolicy() 112 data.WriteBool(policy.autoDownloadNet); in WriteUpdatePolicy() 113 data.WriteInt32(static_cast<int32_t>(policy.mode)); in WriteUpdatePolicy() 114 data.WriteInt32(static_cast<int32_t>(policy.autoUpgradeCondition)); in WriteUpdatePolicy() 115 …data.WriteInt32(static_cast<int32_t>(sizeof(policy.autoUpgradeInterval) / sizeof(policy.autoUpgrad… in WriteUpdatePolicy() 116 …for (size_t i = 0; i < sizeof(policy.autoUpgradeInterval) / sizeof(policy.autoUpgradeInterval[0]);… in WriteUpdatePolicy() 117 data.WriteUint32(policy.autoUpgradeInterval[i]); in WriteUpdatePolicy() 122 int32_t UpdateHelper::ReadUpdatePolicy(MessageParcel &data, UpdatePolicy &policy) in ReadUpdatePolicy() argument 124 policy.autoDownload = static_cast<bool>(data.ReadBool()); in ReadUpdatePolicy() [all …]
|
D | update_service_stub.cpp | 80 UpdatePolicy policy = {}; in SetUpdatePolicyStub() local 81 UpdateHelper::ReadUpdatePolicy(data, policy); in SetUpdatePolicyStub() 82 int32_t ret = service->SetUpdatePolicy(policy); in SetUpdatePolicyStub() 91 UpdatePolicy policy = {}; in GetUpdatePolicyStub() local 92 int32_t ret = service->GetUpdatePolicy(policy); in GetUpdatePolicyStub() 94 UpdateHelper::WriteUpdatePolicy(reply, policy); in GetUpdatePolicyStub()
|
/base/powermgr/thermal_manager/application/protector/src/action/ |
D | thermal_device_control.cpp | 30 auto policy = service.GetPolicy(); in Init() local 31 if (policy == nullptr) { in Init() 35 auto actionList = policy->GetLevelAction(); in Init()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | hap_token_info_inner.cpp | 42 const HapInfoParams &info, const HapPolicyParams &policy) : isRemote_(false) in HapTokenInfoInner() argument 52 tokenInfoBasic_.apl = policy.apl; in HapTokenInfoInner() 53 …permPolicySet_ = PermissionPolicySet::BuildPermissionPolicySet(id, policy.permList, policy.permSta… in HapTokenInfoInner() 70 void HapTokenInfoInner::Update(const std::string& appIDDesc, const HapPolicyParams& policy) in Update() argument 73 tokenInfoBasic_.apl = policy.apl; in Update() 76 policy.permList, policy.permStateList); in Update() 80 permPolicySet_->Update(policy.permList, policy.permStateList); in Update()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_auth.c | 55 static int32_t AuthPolicy(const struct HksAuthPolicy *policy, const struct HksKeyNode *keyNode, in AuthPolicy() argument 63 for (uint32_t i = 0; i < policy->policyCnt; i++) { in AuthPolicy() 64 authTag = policy->policyTag[i]; in AuthPolicy() 91 static int32_t AuthThreeStagePolicy(const struct HksAuthPolicy *policy, const struct HuksKeyNode *k… in AuthThreeStagePolicy() argument 98 for (uint32_t i = 0; i < policy->policyCnt; i++) { in AuthThreeStagePolicy() 99 authTag = policy->policyTag[i]; in AuthThreeStagePolicy()
|
/base/powermgr/thermal_manager/application/protector/src/policy/ |
D | thermal_kernel_policy.cpp | 55 for (auto policy = levelAction_.begin(); policy != levelAction_.end(); policy++) { in PolicyDecision() local 56 auto levelIter = levelMap_.find(policy->name); in PolicyDecision() 58 if (levelIter->second == policy->level) { in PolicyDecision() 59 ActionDecision(policy->vAction); in PolicyDecision()
|
/base/update/updater/test/unittest/test_data/applypatch/ |
D | TestGZipModeImagePatch.old.gz |
|
/base/update/updateservice/ |
D | README.md | 21 3. Setting and obtaining the update policy 75 …<p id="p247mcpsimp"><a name="p247mcpsimp"></a><a name="p247mcpsimp"></a>Sets the update policy.</p> 80 …id="p252mcpsimp"><a name="p252mcpsimp"></a><a name="p252mcpsimp"></a>Obtains the update policy.</p> 134 7. Set the update policy. 138 result "Update policy setting result" 142 8. Check the update policy. 145 updater.getUpdatePolicy(policy => { 146 policy "Update policy"
|
/base/powermgr/thermal_manager/application/protector/ |
D | BUILD.gn | 27 "include/policy", 40 "src/policy/protector_thermal_zone_info.cpp", 41 "src/policy/thermal_kernel_config_file.cpp", 42 "src/policy/thermal_kernel_policy.cpp",
|
/base/update/updateservice/test/unittest/update_engine/ |
D | server_unittest.cpp | 129 int TestGetUpdatePolicy(UpdatePolicy &policy) in TestGetUpdatePolicy() argument 135 UpdateHelper::ReadUpdatePolicy(reply, policy); in TestGetUpdatePolicy() 142 UpdatePolicy policy; in TestUpdatePolicy() local 143 policy.autoDownload = true; in TestUpdatePolicy() 144 policy.autoDownloadNet = true; in TestUpdatePolicy() 145 policy.mode = INSTALLMODE_AUTO; in TestUpdatePolicy() 146 policy.autoUpgradeInterval[0] = UPGRADE_INTERVAL_2; in TestUpdatePolicy() 147 policy.autoUpgradeInterval[1] = UPGRADE_INTERVAL_3; in TestUpdatePolicy() 149 UpdateHelper::WriteUpdatePolicy(inData, policy); in TestUpdatePolicy() 155 EXPECT_EQ(policy.autoUpgradeInterval[0], policy2.autoUpgradeInterval[0]); in TestUpdatePolicy() [all …]
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mode_module.cpp | 42 auto policy = DelayedSingleton<PowerModePolicy>::GetInstance(); in PowerModeModule() local 43 policy->AddAction(PowerModePolicy::ServiceType::DISPLAY_OFFTIME, in PowerModeModule() 45 policy->AddAction(PowerModePolicy::ServiceType::SLEEPTIME, in PowerModeModule() 47 policy->AddAction(PowerModePolicy::ServiceType::AUTO_ADJUST_BRIGHTNESS, in PowerModeModule() 49 policy->AddAction(PowerModePolicy::ServiceType::SMART_BACKLIGHT, in PowerModeModule() 51 policy->AddAction(PowerModePolicy::ServiceType::VIBRATORS_STATE, in PowerModeModule() 53 policy->AddAction(PowerModePolicy::ServiceType::AUTO_WINDOWN_RORATION, in PowerModeModule() 221 auto policy = DelayedSingleton<PowerModePolicy>::GetInstance(); in RunAction() local 222 policy->TriggerAllActions(); in RunAction()
|
/base/powermgr/power_manager/services/native/include/ |
D | power_save_mode.h | 48 bool GetFilterPolicy(std::list<ModePolicy> &policy, int32_t mode, int32_t value); 51 std::list<ModePolicy> SetLastMode(std::list<ModePolicy> &policy);
|
/base/update/updateservice/interfaces/innerkits/include/ |
D | update_service_kits.h | 52 virtual int32_t SetUpdatePolicy(const UpdatePolicy &policy) = 0; 54 virtual int32_t GetUpdatePolicy(UpdatePolicy &policy) = 0;
|
D | iupdate_service.h | 61 virtual int32_t SetUpdatePolicy(const UpdatePolicy &policy) = 0; 63 virtual int32_t GetUpdatePolicy(UpdatePolicy &policy) = 0;
|
D | update_service_kits_impl.h | 47 int32_t SetUpdatePolicy(const UpdatePolicy &policy) final; 49 int32_t GetUpdatePolicy(UpdatePolicy &policy) final;
|
/base/update/updateservice/engine/include/ |
D | update_service_proxy.h | 42 int32_t SetUpdatePolicy(const UpdatePolicy &policy) override; 44 int32_t GetUpdatePolicy(UpdatePolicy &policy) override;
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/ |
D | hap_token_info_inner.h | 36 HapTokenInfoInner(AccessTokenID id, const HapInfoParams& info, const HapPolicyParams& policy); 41 void Update(const std::string& appIDDesc, const HapPolicyParams& policy);
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
D | accesstoken_kit.cpp | 32 …ssTokenIDEx AccessTokenKit::AllocHapToken(const HapInfoParams& info, const HapPolicyParams& policy) in AllocHapToken() argument 37 … || !DataValidator::IsBundleNameValid(info.bundleName) || !DataValidator::IsAplNumValid(policy.apl) in AllocHapToken() 38 || !DataValidator::IsDomainValid(policy.domain)) { in AllocHapToken() 43 return AccessTokenManagerClient::GetInstance().AllocHapToken(info, policy); in AllocHapToken() 60 …:UpdateHapToken(AccessTokenID tokenID, const std::string& appIDDesc, const HapPolicyParams& policy) in UpdateHapToken() argument 64 || (!DataValidator::IsAplNumValid(policy.apl))) { in UpdateHapToken() 68 return AccessTokenManagerClient::GetInstance().UpdateHapToken(tokenID, appIDDesc, policy); in UpdateHapToken()
|
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
D | thermal_policy.cpp | 267 for (auto policy : clusterPolicyMap_) { in DumpConfigInfo() local 268 if (policy.first.empty() && policy.second.empty()) continue; in DumpConfigInfo() 269 THERMAL_HILOGD(COMP_SVC, "clusterName = %{public}s", policy.first.c_str()); in DumpConfigInfo() 270 for (auto policyConfig : policy.second) { in DumpConfigInfo()
|
/base/update/updateservice/test/fuzztest/UpdaterOnRemoteRequest_fuzzer/ |
D | UpdaterOnRemoteRequest_fuzzer.cpp | 71 virtual int32_t SetUpdatePolicy(const UpdatePolicy &policy) in SetUpdatePolicy() argument 76 virtual int32_t GetUpdatePolicy(UpdatePolicy &policy) in GetUpdatePolicy() argument
|
/base/update/updateservice/interfaces/innerkits/engine/ |
D | update_service_kits_impl.cpp | 192 int32_t UpdateServiceKitsImpl::SetUpdatePolicy(const UpdatePolicy &policy) in SetUpdatePolicy() argument 197 return updateService->SetUpdatePolicy(policy); in SetUpdatePolicy() 200 int32_t UpdateServiceKitsImpl::GetUpdatePolicy(UpdatePolicy &policy) in GetUpdatePolicy() argument 205 return updateService->GetUpdatePolicy(policy); in GetUpdatePolicy()
|
/base/powermgr/thermal_manager/ |
D | README_zh.md | 76 <policy> 98 </policy> 110 └── policy # policy目录,配置档位对应的动作
|
/base/update/updateservice/interfaces/kits/js/declaration/ |
D | @ohos.update.d.ts | 361 setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback<number>): void; 362 setUpdatePolicy(policy: UpdatePolicy): Promise<number>;
|