Home
last modified time | relevance | path

Searched refs:device_policy (Results 1 – 22 of 22) sorted by relevance

/system/update_engine/
Dconnection_manager.cc67 const policy::DevicePolicy* device_policy = system_state_->device_policy(); in IsUpdateAllowedOver() local
71 if (!device_policy) { in IsUpdateAllowedOver()
75 device_policy = system_state_->device_policy(); in IsUpdateAllowedOver()
79 if (!device_policy) { in IsUpdateAllowedOver()
89 if (device_policy->GetAllowedConnectionTypesForUpdate(&allowed_types)) { in IsUpdateAllowedOver()
112 const policy::DevicePolicy* device_policy = system_state_->device_policy(); in IsAllowedConnectionTypesForUpdateSet() local
113 if (!device_policy) { in IsAllowedConnectionTypesForUpdateSet()
119 if (!device_policy->GetAllowedConnectionTypesForUpdate(&allowed_types)) { in IsAllowedConnectionTypesForUpdateSet()
Dcommon_service.cc177 const policy::DevicePolicy* device_policy = system_state_->device_policy(); in SetChannel() local
181 if (!device_policy) { in SetChannel()
185 device_policy = system_state_->device_policy(); in SetChannel()
190 if (device_policy && device_policy->GetReleaseChannelDelegated(&delegated) && in SetChannel()
Dupdate_attempter_unittest.cc782 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in UpdateTestStart() local
783 EXPECT_CALL(*device_policy, LoadPolicy()) in UpdateTestStart()
787 new policy::PolicyProvider(std::move(device_policy))); in UpdateTestStart()
815 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in RollbackTestStart() local
816 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in RollbackTestStart()
817 fake_system_state_.set_device_policy(device_policy.get()); in RollbackTestStart()
820 EXPECT_CALL(*device_policy, GetOwner(_)) in RollbackTestStart()
824 EXPECT_CALL(*device_policy, GetOwner(_)) in RollbackTestStart()
830 new policy::PolicyProvider(std::move(device_policy))); in RollbackTestStart()
1116 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in ReadScatterFactorFromPolicyTestStart() local
[all …]
Dreal_system_state.h76 const policy::DevicePolicy* device_policy) override { in set_device_policy() argument
77 device_policy_ = device_policy; in set_device_policy()
80 inline const policy::DevicePolicy* device_policy() override { in device_policy() function
Dsystem_state.h63 virtual void set_device_policy(const policy::DevicePolicy* device_policy) = 0;
64 virtual const policy::DevicePolicy* device_policy() = 0;
Dupdate_attempter.cc314 const policy::DevicePolicy* device_policy = nullptr; in RefreshDevicePolicy() local
316 device_policy = &policy_provider_->GetDevicePolicy(); in RefreshDevicePolicy()
318 if (device_policy) in RefreshDevicePolicy()
323 system_state_->set_device_policy(device_policy); in RefreshDevicePolicy()
324 system_state_->p2p_manager()->SetDevicePolicy(device_policy); in RefreshDevicePolicy()
449 if (system_state_ && system_state_->device_policy()) { in CalculateUpdateParams()
450 if (!system_state_->device_policy()->GetDeviceQuickFixBuildToken(&token)) in CalculateUpdateParams()
500 const policy::DevicePolicy* device_policy = system_state_->device_policy(); in CalculateScatteringParams() local
501 if (device_policy) { in CalculateScatteringParams()
503 device_policy->GetScatterFactorInSeconds(&new_scatter_factor_in_secs); in CalculateScatteringParams()
[all …]
Dconnection_manager_unittest.cc277 policy::MockDevicePolicy device_policy; in TEST_F() local
279 fake_system_state_.set_device_policy(&device_policy); in TEST_F()
286 policy::MockDevicePolicy device_policy; in TEST_F() local
288 fake_system_state_.set_device_policy(&device_policy); in TEST_F()
318 policy::MockDevicePolicy device_policy; in TEST_F() local
320 fake_system_state_.set_device_policy(&device_policy); in TEST_F()
325 EXPECT_CALL(device_policy, GetAllowedConnectionTypesForUpdate(_)) in TEST_F()
Dfake_system_state.h56 const policy::DevicePolicy* device_policy) override { in set_device_policy() argument
57 device_policy_ = device_policy; in set_device_policy()
60 inline const policy::DevicePolicy* device_policy() override { in device_policy() function
Dfake_p2p_manager.h37 void SetDevicePolicy(const policy::DevicePolicy* device_policy) override {} in SetDevicePolicy() argument
Dp2p_manager.h67 virtual void SetDevicePolicy(const policy::DevicePolicy* device_policy) = 0;
Dp2p_manager.cc125 void SetDevicePolicy(const policy::DevicePolicy* device_policy) override;
229 const policy::DevicePolicy* device_policy) { in SetDevicePolicy() argument
230 device_policy_ = device_policy; in SetDevicePolicy()
Domaha_request_action_unittest.cc516 const policy::MockDevicePolicy device_policy; in TestUpdateCheck() local
519 EXPECT_CALL(device_policy, GetRollbackAllowedMilestones(_)) in TestUpdateCheck()
525 .WillRepeatedly(ReturnRef(device_policy)); in TestUpdateCheck()
Dpayload_state.cc1257 const policy::DevicePolicy* policy = system_state_->device_policy(); in ComputeCandidateUrls()
/system/update_engine/update_manager/
Dstaging_utils.cc39 int GetStagingSchedule(const DevicePolicy* device_policy, in GetStagingSchedule() argument
42 if (!device_policy->GetDeviceUpdateStagingSchedule(&staging_schedule) || in GetStagingSchedule()
100 StagingCase CalculateStagingCase(const DevicePolicy* device_policy, in CalculateStagingCase() argument
106 int max_days = GetStagingSchedule(device_policy, &new_staging_schedule); in CalculateStagingCase()
Dstaging_utils.h55 int GetStagingSchedule(const policy::DevicePolicy* device_policy,
64 StagingCase CalculateStagingCase(const policy::DevicePolicy* device_policy,
/system/vold/
DFsCrypt.cpp435 EncryptionPolicy device_policy; in fscrypt_initialize_systemwide_keys() local
436 if (!install_storage_key(DATA_MNT_POINT, options, device_key, &device_policy)) return false; in fscrypt_initialize_systemwide_keys()
439 if (!OptionsToString(device_policy.options, &options_string)) { in fscrypt_initialize_systemwide_keys()
447 if (!android::vold::writeStringToFile(device_policy.key_raw_ref, ref_filename)) return false; in fscrypt_initialize_systemwide_keys()
/system/sepolicy/prebuilts/api/26.0/private/
Dservice_contexts35 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/prebuilts/api/27.0/private/
Dservice_contexts36 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/prebuilts/api/28.0/private/
Dservice_contexts38 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/prebuilts/api/29.0/private/
Dservice_contexts48 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/prebuilts/api/30.0/private/
Dservice_contexts63 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/private/
Dservice_contexts63 device_policy u:object_r:device_policy_service:s0