Home
last modified time | relevance | path

Searched refs:InstallAttributesReader (Results 1 – 10 of 10) sorted by relevance

/external/libbrillo/install_attributes/
Dlibinstallattributes.cc22 const char InstallAttributesReader::kAttrMode[] = "enterprise.mode";
23 const char InstallAttributesReader::kDeviceModeConsumer[] = "consumer";
24 const char InstallAttributesReader::kDeviceModeEnterprise[] = "enterprise";
25 const char InstallAttributesReader::kDeviceModeEnterpriseAD[] = "enterprise_ad";
26 const char InstallAttributesReader::kDeviceModeLegacyRetail[] = "kiosk";
27 const char InstallAttributesReader::kDeviceModeConsumerKiosk[] =
30 InstallAttributesReader::InstallAttributesReader() in InstallAttributesReader() function in InstallAttributesReader
34 InstallAttributesReader::~InstallAttributesReader() { in ~InstallAttributesReader()
37 const std::string& InstallAttributesReader::GetAttribute( in GetAttribute()
52 bool InstallAttributesReader::IsLocked() { in IsLocked()
[all …]
Dlibinstallattributes.h19 class BRILLO_EXPORT InstallAttributesReader {
30 InstallAttributesReader();
31 virtual ~InstallAttributesReader();
Dmock_install_attributes_reader.h14 class MockInstallAttributesReader : public InstallAttributesReader {
/external/libbrillo/policy/tests/
Ddevice_policy_impl_test.cc107 InstallAttributesReader::kDeviceModeEnterprise, true)); in TEST_F()
120 InitializePolicy(InstallAttributesReader::kDeviceModeEnterprise, in TEST_F()
134 InitializePolicy(InstallAttributesReader::kDeviceModeEnterpriseAD, in TEST_F()
148 InitializePolicy(InstallAttributesReader::kDeviceModeConsumer, in TEST_F()
161 InitializePolicy(InstallAttributesReader::kDeviceModeEnterprise, in TEST_F()
175 InitializePolicy(InstallAttributesReader::kDeviceModeEnterprise, in TEST_F()
189 InitializePolicy(InstallAttributesReader::kDeviceModeEnterprise, in TEST_F()
205 InitializePolicy(InstallAttributesReader::kDeviceModeEnterprise, in TEST_F()
222 InitializePolicy(InstallAttributesReader::kDeviceModeEnterpriseAD, in TEST_F()
241 InitializePolicy(InstallAttributesReader::kDeviceModeEnterprise, in TEST_F()
[all …]
Dlibpolicy_test.cc30 std::unique_ptr<InstallAttributesReader> install_attributes_reader, in CreateDevicePolicyImpl()
52 InstallAttributesReader::kDeviceModeEnterprise, true), in TEST()
212 InstallAttributesReader::kDeviceModeEnterprise, true), in TEST()
285 InstallAttributesReader::kDeviceModeEnterpriseAD, true), in TEST()
302 InstallAttributesReader::kDeviceModeEnterprise, true), in TEST()
347 InstallAttributesReader::kDeviceModeEnterprise, true)); in TEST()
356 InstallAttributesReader::kDeviceModeEnterpriseAD, true)); in TEST()
/external/libbrillo/policy/
Dlibpolicy.cc22 install_attributes_reader_ = std::make_unique<InstallAttributesReader>(); in PolicyProvider()
33 install_attributes_reader_(std::make_unique<InstallAttributesReader>()) {
67 InstallAttributesReader::kAttrMode); in IsConsumerDevice()
68 return device_mode != InstallAttributesReader::kDeviceModeEnterprise && in IsConsumerDevice()
69 device_mode != InstallAttributesReader::kDeviceModeEnterpriseAD; in IsConsumerDevice()
80 std::unique_ptr<InstallAttributesReader> install_attributes_reader) { in SetInstallAttributesReaderForTesting()
Dlibpolicy.h51 std::unique_ptr<InstallAttributesReader> install_attributes_reader);
56 std::unique_ptr<InstallAttributesReader> install_attributes_reader_;
Ddevice_policy_impl.cc211 InstallAttributesReader::kAttrMode); in IsEnterpriseEnrolled()
212 return device_mode == InstallAttributesReader::kDeviceModeEnterprise || in IsEnterpriseEnrolled()
213 device_mode == InstallAttributesReader::kDeviceModeEnterpriseAD; in IsEnterpriseEnrolled()
769 install_attributes_reader_ = std::make_unique<InstallAttributesReader>(); in LoadPolicyFromFile()
772 InstallAttributesReader::kAttrMode); in LoadPolicyFromFile()
773 if (mode == InstallAttributesReader::kDeviceModeEnterpriseAD) { in LoadPolicyFromFile()
Ddevice_policy_impl.h101 std::unique_ptr<InstallAttributesReader> install_attributes_reader) { in set_install_attributes_for_testing()
135 std::unique_ptr<InstallAttributesReader> install_attributes_reader_;
/external/libbrillo/install_attributes/tests/
Dlibinstallattributes_test.cc13 class MockInstallAttributesReader : public InstallAttributesReader {