Home
last modified time | relevance | path

Searched refs:policy_name (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/components/policy/core/browser/
Dconfiguration_policy_handler.cc55 const char* policy_name, in TypeCheckingPolicyHandler() argument
57 : policy_name_(policy_name), in TypeCheckingPolicyHandler()
64 const char* TypeCheckingPolicyHandler::policy_name() const { in policy_name() function in policy::TypeCheckingPolicyHandler
91 const char* policy_name, in IntRangePolicyHandlerBase() argument
95 : TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_INTEGER), in IntRangePolicyHandlerBase()
125 errors->AddError(policy_name(), in EnsureInRange()
145 const char* policy_name, in StringToIntEnumListPolicyHandler() argument
149 : TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST), in StringToIntEnumListPolicyHandler()
167 const base::Value* value = policies.GetValue(policy_name()); in ApplyPolicySettings()
190 errors->AddError(policy_name(), in Convert()
[all …]
Dconfiguration_policy_handler.h25 const char* const policy_name; member
65 TypeCheckingPolicyHandler(const char* policy_name,
73 const char* policy_name() const;
97 IntRangePolicyHandlerBase(const char* policy_name,
133 SimplePolicyHandler(const char* policy_name,
159 StringToIntEnumListPolicyHandler(const char* policy_name,
191 IntRangePolicyHandler(const char* policy_name,
214 IntPercentageToDoublePolicyHandler(const char* policy_name,
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/
Dadml_writer.py64 policy_name = policy['name']
68 policy_caption = policy_name
72 policy_description = policy_name
76 policy_label = policy_name
78 self._AddString(self._string_table_elem, policy_name, policy_caption)
79 self._AddString(self._string_table_elem, policy_name + '_Explain',
82 self._presentation_table_elem, 'presentation', {'id': policy_name})
89 {'refId': policy_name})
94 {'refId': policy_name})
100 {'refId': policy_name})
[all …]
Dadmx_writer.py255 policy_name = policy['name']
263 'displayName': self._AdmlString(policy_name),
264 'explainText': self._AdmlStringExplain(policy_name),
265 'presentation': self._AdmlPresentation(policy_name),
277 self.AddAttribute(policy_elem, 'valueName', policy_name)
282 self._AddStringPolicy(parent, policy_name)
285 self._AddIntPolicy(parent, policy_name)
291 self._AddListPolicy(parent, key, policy_name)
Dplist_writer.py82 policy_name = policy['name']
89 self._AddStringKeyValuePair(dict, 'pfm_name', policy_name)
/external/chromium_org/components/policy/core/common/
Dconfig_dir_policy_loader_unittest.cc40 virtual void InstallStringPolicy(const std::string& policy_name,
42 virtual void InstallIntegerPolicy(const std::string& policy_name,
44 virtual void InstallBooleanPolicy(const std::string& policy_name,
47 const std::string& policy_name,
50 const std::string& policy_name,
97 void TestHarness::InstallStringPolicy(const std::string& policy_name, in InstallStringPolicy() argument
100 dict.SetString(policy_name, policy_value); in InstallStringPolicy()
104 void TestHarness::InstallIntegerPolicy(const std::string& policy_name, in InstallIntegerPolicy() argument
107 dict.SetInteger(policy_name, policy_value); in InstallIntegerPolicy()
111 void TestHarness::InstallBooleanPolicy(const std::string& policy_name, in InstallBooleanPolicy() argument
[all …]
Dpolicy_loader_mac_unittest.cc133 virtual void InstallStringPolicy(const std::string& policy_name,
135 virtual void InstallIntegerPolicy(const std::string& policy_name,
137 virtual void InstallBooleanPolicy(const std::string& policy_name,
140 const std::string& policy_name,
143 const std::string& policy_name,
172 void TestHarness::InstallStringPolicy(const std::string& policy_name, in InstallStringPolicy() argument
174 ScopedCFTypeRef<CFStringRef> name(base::SysUTF8ToCFStringRef(policy_name)); in InstallStringPolicy()
179 void TestHarness::InstallIntegerPolicy(const std::string& policy_name, in InstallIntegerPolicy() argument
181 ScopedCFTypeRef<CFStringRef> name(base::SysUTF8ToCFStringRef(policy_name)); in InstallIntegerPolicy()
187 void TestHarness::InstallBooleanPolicy(const std::string& policy_name, in InstallBooleanPolicy() argument
[all …]
Dconfiguration_policy_provider_test.h87 virtual void InstallStringPolicy(const std::string& policy_name,
89 virtual void InstallIntegerPolicy(const std::string& policy_name,
91 virtual void InstallBooleanPolicy(const std::string& policy_name,
93 virtual void InstallStringListPolicy(const std::string& policy_name,
96 const std::string& policy_name,
128 void CheckValue(const char* policy_name,
Dpolicy_loader_win_unittest.cc179 virtual void InstallStringPolicy(const std::string& policy_name,
181 virtual void InstallIntegerPolicy(const std::string& policy_name,
183 virtual void InstallBooleanPolicy(const std::string& policy_name,
186 const std::string& policy_name,
189 const std::string& policy_name,
230 virtual void InstallStringPolicy(const std::string& policy_name,
232 virtual void InstallIntegerPolicy(const std::string& policy_name,
234 virtual void InstallBooleanPolicy(const std::string& policy_name,
237 const std::string& policy_name,
240 const std::string& policy_name,
[all …]
Dschema_map.cc62 const std::string& policy_name = it_map->first; in FilterBundle() local
64 Schema policy_schema = schema->GetProperty(policy_name); in FilterBundle()
67 map->Erase(policy_name); in FilterBundle()
Dpolicy_service.cc21 void PolicyChangeRegistrar::Observe(const std::string& policy_name, in Observe() argument
25 callback_map_[policy_name] = callback; in Observe()
/external/chromium_org/chrome/browser/extensions/
Dpolicy_handlers.cc21 ExtensionListPolicyHandler::ExtensionListPolicyHandler(const char* policy_name, in ExtensionListPolicyHandler() argument
24 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST), in ExtensionListPolicyHandler()
75 errors->AddError(policy_name(), in CheckAndGetList()
83 errors->AddError(policy_name(), in CheckAndGetList()
145 errors->AddError(policy_name(), in ParseList()
159 errors->AddError(policy_name(), in ParseList()
171 errors->AddError(policy_name(), in ParseList()
190 const char* policy_name, in ExtensionURLPatternListPolicyHandler() argument
192 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST), in ExtensionURLPatternListPolicyHandler()
218 errors->AddError(policy_name(), in CheckPolicySettings()
[all …]
Dpolicy_handlers.h23 ExtensionListPolicyHandler(const char* policy_name,
75 ExtensionURLPatternListPolicyHandler(const char* policy_name,
/external/chromium_org/chrome/browser/chromeos/policy/
Dconfiguration_policy_handler_chromeos.cc68 ExternalDataPolicyHandler::ExternalDataPolicyHandler(const char* policy_name) in ExternalDataPolicyHandler() argument
69 : TypeCheckingPolicyHandler(policy_name, Value::TYPE_DICTIONARY) { in ExternalDataPolicyHandler()
80 const std::string policy = policy_name(); in CheckPolicySettings()
151 errors->AddError(policy_name(), IDS_POLICY_NETWORK_CONFIG_PARSE_FAILED); in CheckPolicySettings()
170 errors->AddError(policy_name(), IDS_POLICY_NETWORK_CONFIG_IMPORT_PARTIAL); in CheckPolicySettings()
172 errors->AddError(policy_name(), IDS_POLICY_NETWORK_CONFIG_IMPORT_FAILED); in CheckPolicySettings()
184 const base::Value* value = policies.GetValue(policy_name()); in ApplyPolicySettings()
208 const PolicyMap::Entry* entry = policies->Get(policy_name()); in PrepareForDisplaying()
215 policies->Set(policy_name(), entry->level, entry->scope, in PrepareForDisplaying()
220 const char* policy_name, in NetworkConfigurationPolicyHandler() argument
[all …]
Dconfiguration_policy_handler_chromeos.h25 explicit ExternalDataPolicyHandler(const char* policy_name);
58 const char* policy_name,
/external/chromium_org/components/policy/core/common/cloud/
Dcloud_policy_manager_unittest.cc43 virtual void InstallStringPolicy(const std::string& policy_name,
45 virtual void InstallIntegerPolicy(const std::string& policy_name,
47 virtual void InstallBooleanPolicy(const std::string& policy_name,
50 const std::string& policy_name,
53 const std::string& policy_name,
90 void TestHarness::InstallStringPolicy(const std::string& policy_name, in InstallStringPolicy() argument
92 store_.policy_map_.Set(policy_name, policy_level(), policy_scope(), in InstallStringPolicy()
96 void TestHarness::InstallIntegerPolicy(const std::string& policy_name, in InstallIntegerPolicy() argument
98 store_.policy_map_.Set(policy_name, policy_level(), policy_scope(), in InstallIntegerPolicy()
102 void TestHarness::InstallBooleanPolicy(const std::string& policy_name, in InstallBooleanPolicy() argument
[all …]
/external/chromium/chrome/browser/policy/
Dconfiguration_policy_provider_win_unittest.cc42 const char* policy_name, in PolicyTestParams() argument
46 policy_name_(policy_name), in PolicyTestParams()
71 const char* policy_name() const { return policy_name_; } in policy_name() function in policy::__anone0ffae5e0111::PolicyTestParams
78 const char* policy_name) { in ForStringPolicy() argument
80 policy_name, in ForStringPolicy()
86 const char* policy_name) { in ForBooleanPolicy() argument
88 policy_name, in ForBooleanPolicy()
94 const char* policy_name) { in ForIntegerPolicy() argument
96 policy_name, in ForIntegerPolicy()
102 const char* policy_name) { in ForListPolicy() argument
[all …]
Dconfiguration_policy_provider_mac_unittest.cc24 const char* policy_name, in PolicyTestParams() argument
27 policy_name_(policy_name), in PolicyTestParams()
49 const char* policy_name() const { return policy_name_; } in policy_name() function in policy::PolicyTestParams
152 base::SysUTF8ToCFStringRef(GetParam().policy_name())); in TEST_P()
166 base::SysUTF8ToCFStringRef(GetParam().policy_name())); in TEST_P()
181 base::SysUTF8ToCFStringRef(GetParam().policy_name())); in TEST_P()
/external/chromium_org/chrome/browser/search_engines/
Ddefault_search_policy_handler.cc89 const Value* value = policies.GetValue(policy_name()); in ApplyPolicySettings()
113 const char* policy_name = kDefaultSearchPolicyMap[i].policy_name; in DefaultSearchPolicyHandler() local
114 if (policy_name == key::kDefaultSearchProviderEncodings) { in DefaultSearchPolicyHandler()
118 policy_name, in DefaultSearchPolicyHandler()
141 const char* policy_name = (*handler)->policy_name(); in CheckPolicySettings() local
142 if (policy_name != key::kDefaultSearchProviderEnabled && in CheckPolicySettings()
143 HasDefaultSearchPolicy(policies, policy_name)) { in CheckPolicySettings()
144 errors->AddError(policy_name, IDS_POLICY_DEFAULT_SEARCH_DISABLED); in CheckPolicySettings()
267 const char* policy_name) { in HasDefaultSearchPolicy() argument
268 return policies.Get(policy_name) != NULL; in HasDefaultSearchPolicy()
[all …]
/external/libsepol/tests/
Dhelpers.c35 …ad_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name) in test_load_policy() argument
40 if (snprintf(filename, PATH_MAX, "policies/%s/%s.mls", test_name, policy_name) < 0) { in test_load_policy()
44 if (snprintf(filename, PATH_MAX, "policies/%s/%s.std", test_name, policy_name) < 0) { in test_load_policy()
/external/chromium_org/remoting/host/policy_hack/
Dpolicy_watcher_win.cc176 const std::string& policy_name = i.key(); in Load() local
179 if (GetRegistryPolicyBoolean(policy_name, &bool_value)) { in Load()
180 policy->SetBoolean(policy_name, bool_value); in Load()
185 if (GetRegistryPolicyString(policy_name, &string_value)) { in Load()
186 policy->SetString(policy_name, string_value); in Load()
Dpolicy_watcher_mac.mm50 const std::string& policy_name = i.key();
52 base::SysUTF8ToCFStringRef(policy_name));
60 policy.SetBoolean(policy_name, value);
71 policy.SetString(policy_name,
/external/chromium_org/chrome/browser/sessions/
Drestore_on_startup_policy_handler.cc30 policies.GetValue(policy_name()); in ApplyPolicySettings()
90 errors->AddError(policy_name(), IDS_POLICY_VALUE_DEPRECATED); in CheckPolicySettings()
122 errors->AddError(policy_name(), in CheckPolicySettings()
/external/chromium_org/chrome_frame/test/
Dpolicy_settings_unittest.cc97 const char* policy_name, in SetCFPolicyString() argument
103 std::wstring policy_name_str(ASCIIToWide(policy_name)); in SetCFPolicyString()
110 const char* policy_name, in SetCFPolicyBool() argument
114 std::wstring policy_name_str(ASCIIToWide(policy_name)); in SetCFPolicyBool()
/external/chromium_org/chrome/browser/policy/
Dconfiguration_policy_handler_android.cc72 errors->AddError(policy_name(), IDS_POLICY_INVALID_BOOKMARK, index); in CheckPolicySettings()
82 const base::Value* value = policies.GetValue(policy_name()); in ApplyPolicySettings()

12