Home
last modified time | relevance | path

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

/system/update_engine/cros/
Dconnection_manager.cc65 const policy::DevicePolicy* device_policy = in IsUpdateAllowedOver() local
66 SystemState::Get()->device_policy(); in IsUpdateAllowedOver()
70 if (!device_policy) { in IsUpdateAllowedOver()
74 device_policy = SystemState::Get()->device_policy(); in IsUpdateAllowedOver()
78 if (!device_policy) { in IsUpdateAllowedOver()
88 if (device_policy->GetAllowedConnectionTypesForUpdate(&allowed_types)) { in IsUpdateAllowedOver()
111 const policy::DevicePolicy* device_policy = in IsAllowedConnectionTypesForUpdateSet() local
112 SystemState::Get()->device_policy(); in IsAllowedConnectionTypesForUpdateSet()
113 if (!device_policy) { in IsAllowedConnectionTypesForUpdateSet()
119 if (!device_policy->GetAllowedConnectionTypesForUpdate(&allowed_types)) { in IsAllowedConnectionTypesForUpdateSet()
Dcommon_service.cc177 const policy::DevicePolicy* device_policy = in SetChannel() local
178 SystemState::Get()->device_policy(); in SetChannel()
182 if (!device_policy) { in SetChannel()
186 device_policy = SystemState::Get()->device_policy(); in SetChannel()
191 if (device_policy && device_policy->GetReleaseChannelDelegated(&delegated) && in SetChannel()
Dreal_system_state.h63 void set_device_policy(const policy::DevicePolicy* device_policy) override { in set_device_policy() argument
64 device_policy_ = device_policy; in set_device_policy()
67 const policy::DevicePolicy* device_policy() override { in device_policy() function
Dconnection_manager_unittest.cc277 policy::MockDevicePolicy device_policy; in TEST_F() local
279 FakeSystemState::Get()->set_device_policy(&device_policy); in TEST_F()
286 policy::MockDevicePolicy device_policy; in TEST_F() local
288 FakeSystemState::Get()->set_device_policy(&device_policy); in TEST_F()
318 policy::MockDevicePolicy device_policy; in TEST_F() local
320 FakeSystemState::Get()->set_device_policy(&device_policy); in TEST_F()
325 EXPECT_CALL(device_policy, GetAllowedConnectionTypesForUpdate(_)) in TEST_F()
Dupdate_attempter.cc324 const policy::DevicePolicy* device_policy = nullptr; in RefreshDevicePolicy() local
326 device_policy = &policy_provider_->GetDevicePolicy(); in RefreshDevicePolicy()
328 if (device_policy) in RefreshDevicePolicy()
333 SystemState::Get()->set_device_policy(device_policy); in RefreshDevicePolicy()
334 SystemState::Get()->p2p_manager()->SetDevicePolicy(device_policy); in RefreshDevicePolicy()
457 const policy::DevicePolicy* device_policy = in CalculateScatteringParams() local
458 SystemState::Get()->device_policy(); in CalculateScatteringParams()
459 if (device_policy) { in CalculateScatteringParams()
461 device_policy->GetScatterFactorInSeconds(&new_scatter_factor_in_secs); in CalculateScatteringParams()
582 auto device_policy = SystemState::Get()->device_policy(); in CalculateStagingParams() local
[all …]
Dupdate_attempter_unittest.cc745 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in UpdateTestStart() local
746 EXPECT_CALL(*device_policy, LoadPolicy()) in UpdateTestStart()
750 new policy::PolicyProvider(std::move(device_policy))); in UpdateTestStart()
778 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in RollbackTestStart() local
779 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in RollbackTestStart()
780 FakeSystemState::Get()->set_device_policy(device_policy.get()); in RollbackTestStart()
783 EXPECT_CALL(*device_policy, GetOwner(_)) in RollbackTestStart()
787 EXPECT_CALL(*device_policy, GetOwner(_)) in RollbackTestStart()
793 new policy::PolicyProvider(std::move(device_policy))); in RollbackTestStart()
1071 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in ReadScatterFactorFromPolicyTestStart() local
[all …]
Dfake_system_state.h67 const policy::DevicePolicy* device_policy) override { in set_device_policy() argument
68 device_policy_ = device_policy; in set_device_policy()
71 inline const policy::DevicePolicy* device_policy() override { in device_policy() function
Dp2p_manager.h66 virtual void SetDevicePolicy(const policy::DevicePolicy* device_policy) = 0;
Dfake_p2p_manager.h37 void SetDevicePolicy(const policy::DevicePolicy* device_policy) override {} in SetDevicePolicy() argument
Domaha_response_handler_action.cc216 SystemState::Get()->device_policy() && in PerformAction()
217 SystemState::Get()->device_policy()->IsEnterpriseEnrolled(); in PerformAction()
Dp2p_manager.cc125 void SetDevicePolicy(const policy::DevicePolicy* device_policy) override;
224 const policy::DevicePolicy* device_policy) { in SetDevicePolicy() argument
225 device_policy_ = device_policy; in SetDevicePolicy()
Dpayload_state.cc1235 const policy::DevicePolicy* policy = SystemState::Get()->device_policy(); in ComputeCandidateUrls()
Domaha_request_action_unittest.cc535 const policy::MockDevicePolicy device_policy; in TestUpdateCheck() local
538 EXPECT_CALL(device_policy, GetRollbackAllowedMilestones(_)) in TestUpdateCheck()
544 .WillRepeatedly(ReturnRef(device_policy)); in TestUpdateCheck()
/system/update_engine/update_manager/
Dstaging_utils.cc38 int GetStagingSchedule(const DevicePolicy* device_policy, in GetStagingSchedule() argument
41 if (!device_policy->GetDeviceUpdateStagingSchedule(&staging_schedule) || in GetStagingSchedule()
99 StagingCase CalculateStagingCase(const DevicePolicy* device_policy, in CalculateStagingCase() argument
104 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/update_engine/common/
Dsystem_state.h69 virtual void set_device_policy(const policy::DevicePolicy* device_policy) = 0;
70 virtual const policy::DevicePolicy* device_policy() = 0;
/system/vold/
DFsCrypt.cpp442 EncryptionPolicy device_policy; in fscrypt_initialize_systemwide_keys() local
443 if (!install_storage_key(DATA_MNT_POINT, options, device_key, &device_policy)) return false; in fscrypt_initialize_systemwide_keys()
446 if (!OptionsToString(device_policy.options, &options_string)) { in fscrypt_initialize_systemwide_keys()
454 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_contexts64 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/prebuilts/api/31.0/private/
Dservice_contexts92 device_policy u:object_r:device_policy_service:s0
/system/sepolicy/private/
Dservice_contexts92 device_policy u:object_r:device_policy_service:s0