Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 25 of 1384) sorted by relevance

12345678910>>...56

/external/chromium_org/chrome/browser/extensions/
Dpolicy_handlers_unittest.cc21 policy::PolicyMap policy_map; in TEST()
22 policy::PolicyErrorMap errors; in TEST()
24 policy::key::kExtensionInstallBlacklist, kTestPref, true); in TEST()
26 policy_map.Set(policy::key::kExtensionInstallBlacklist, in TEST()
27 policy::POLICY_LEVEL_MANDATORY, in TEST()
28 policy::POLICY_SCOPE_USER, in TEST()
36 policy_map.Set(policy::key::kExtensionInstallBlacklist, in TEST()
37 policy::POLICY_LEVEL_MANDATORY, in TEST()
38 policy::POLICY_SCOPE_USER, in TEST()
46 policy_map.Set(policy::key::kExtensionInstallBlacklist, in TEST()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/enrollment/
Denrollment_screen.cc104 UMA(policy::kMetricEnrollmentAutoStarted); in Show()
108 UMA(policy::kMetricEnrollmentTriggered); in Show()
153 UMA(policy::kMetricEnrollmentAutoRestarted); in OnLoginDone()
155 UMA(policy::kMetricEnrollmentRestarted); in OnLoginDone()
157 UMA(policy::kMetricEnrollmentStarted); in OnLoginDone()
173 UMAFailure(policy::kMetricEnrollmentLoginFailed); in OnAuthError()
177 UMAFailure(policy::kMetricEnrollmentAccountNotSignedUp); in OnAuthError()
181 UMAFailure(policy::kMetricEnrollmentAccountDeleted); in OnAuthError()
185 UMAFailure(policy::kMetricEnrollmentAccountDisabled); in OnAuthError()
190 UMAFailure(policy::kMetricEnrollmentNetworkFailed); in OnAuthError()
[all …]
/external/chromium_org/sandbox/mac/
Dpolicy_unittest.cc16 BootstrapSandboxPolicy policy; in TEST() local
17 policy.rules["allow"] = Rule(POLICY_ALLOW); in TEST()
18 policy.rules["deny_error"] = Rule(POLICY_DENY_ERROR); in TEST()
19 policy.rules["deny_dummy"] = Rule(POLICY_DENY_DUMMY_PORT); in TEST()
20 policy.rules["substitue"] = Rule(mach_task_self()); in TEST()
21 EXPECT_TRUE(IsPolicyValid(policy)); in TEST()
26 BootstrapSandboxPolicy policy; in TEST() local
27 policy.rules["test"] = rule; in TEST()
28 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
33 BootstrapSandboxPolicy policy; in TEST() local
[all …]
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/
Dtemplate_writer.py33 def IsDeprecatedPolicySupported(self, policy): argument
45 def IsFuturePolicySupported(self, policy): argument
57 def IsPolicySupported(self, policy): argument
69 if ('deprecated' in policy and policy['deprecated'] is True and
70 not self.IsDeprecatedPolicySupported(policy)):
73 if ('future' in policy and policy['future'] is True and
74 not self.IsFuturePolicySupported(policy)):
80 for supported_on in policy['supported_on']:
86 def CanBeRecommended(self, policy): argument
88 return policy.get('features', {}).get('can_be_recommended', False)
[all …]
Ddoc_writer.py108 def _AddDescription(self, parent, policy): argument
118 self._AddTextWithLinks(parent, policy['desc'])
120 if policy['type'] in ('string-enum', 'int-enum', 'string-enum-list'):
122 for item in policy['items']:
123 if policy['type'] == 'int-enum':
130 def _AddFeatures(self, parent, policy): argument
141 keys = policy['features'].keys()
145 if policy['features'][key]:
152 def _AddListExampleMac(self, parent, policy): argument
160 example_value = policy['example_value']
[all …]
Ddoc_writer_unittest.py157 policy = {
168 self.writer._AddDescription(self.doc_root, policy)
178 policy = {
189 self.writer._AddDescription(self.doc_root, policy)
198 policy = {
210 self.writer._AddFeatures(self.doc_root, policy)
220 policy = {
225 self.writer._AddListExample(self.doc_root, policy)
251 policy = {
258 self.writer._AddExample(e1, policy)
[all …]
/external/chromium_org/chrome/browser/extensions/api/messaging/
Dnative_messaging_policy_handler_unittest.cc21 policy::PolicyMap policy_map; in TEST()
23 policy::key::kNativeMessagingBlacklist, kTestPref, true); in TEST()
25 policy_map.Set(policy::key::kNativeMessagingBlacklist, in TEST()
26 policy::POLICY_LEVEL_MANDATORY, in TEST()
27 policy::POLICY_SCOPE_USER, in TEST()
31 policy::PolicyErrorMap errors; in TEST()
37 policy_map.Set(policy::key::kNativeMessagingBlacklist, in TEST()
38 policy::POLICY_LEVEL_MANDATORY, in TEST()
39 policy::POLICY_SCOPE_USER, in TEST()
43 policy::PolicyErrorMap errors; in TEST()
[all …]
/external/chromium_org/chrome/browser/extensions/activity_log/
Duma_policy_unittest.cc25 ActivityLogPolicy* policy = new UmaPolicy(profile_.get()); in TEST_F() local
26 policy->Close(); in TEST_F()
30 UmaPolicy* policy = new UmaPolicy(profile_.get()); in TEST_F() local
34 ASSERT_EQ(UmaPolicy::NONE, policy->MatchActionToStatus(action)); in TEST_F()
39 (1 << UmaPolicy::CONTENT_SCRIPT), policy->MatchActionToStatus(action)); in TEST_F()
44 (1 << UmaPolicy::CONTENT_SCRIPT) & policy->MatchActionToStatus(action)); in TEST_F()
46 (1 << UmaPolicy::CONTENT_SCRIPT), policy->MatchActionToStatus(action)); in TEST_F()
52 ASSERT_TRUE((1 << UmaPolicy::READ_DOM) & policy->MatchActionToStatus(action)); in TEST_F()
53 ASSERT_EQ((1 << UmaPolicy::READ_DOM), policy->MatchActionToStatus(action)); in TEST_F()
58 (1 << UmaPolicy::MODIFIED_DOM) & policy->MatchActionToStatus(action)); in TEST_F()
[all …]
Dcounting_policy_unittest.cc79 ActivityLogDatabasePolicy* policy, in CheckReadData() argument
84 policy, extension_id, Action::ACTION_ANY, "", "", "", day, checker); in CheckReadData()
90 ActivityLogDatabasePolicy* policy, in CheckReadFilteredData() argument
101 policy->ReadFilteredData( in CheckReadFilteredData()
128 static void CheckStringTableSizes(CountingPolicy* policy, in CheckStringTableSizes() argument
131 sql::Connection* db = policy->GetDatabaseConnection(); in CheckStringTableSizes()
145 static void CheckQueueSize(CountingPolicy* policy) { in CheckQueueSize() argument
148 ASSERT_LE(policy->queued_actions_.size(), 200U); in CheckQueueSize()
412 ActivityLogDatabasePolicy* policy, in CheckRemoveActions() argument
421 policy->SetClockForTesting(scoped_ptr<base::Clock>(mock_clock)); in CheckRemoveActions()
[all …]
Dfullstream_ui_policy_unittest.cc70 ActivityLogDatabasePolicy* policy, in CheckReadData() argument
75 policy, extension_id, Action::ACTION_ANY, "", "", "", day, checker); in CheckReadData()
81 ActivityLogDatabasePolicy* policy, in CheckReadFilteredData() argument
92 policy->ReadFilteredData( in CheckReadFilteredData()
297 ActivityLogDatabasePolicy* policy, in CheckRemoveActions() argument
306 policy->SetClockForTesting(scoped_ptr<base::Clock>(mock_clock)); in CheckRemoveActions()
318 policy->ProcessAction(action); in CheckRemoveActions()
321 policy->ProcessAction(action); in CheckRemoveActions()
331 policy->ProcessAction(action); in CheckRemoveActions()
334 policy->ProcessAction(action); in CheckRemoveActions()
[all …]
/external/chromium_org/net/data/ssl/scripts/
Dgenerate-policy-certs.sh26 touch out/policy-root-index.txt
27 touch out/policy-intermediate-index.txt
30 try openssl genrsa -out out/policy-root.key 2048
31 try openssl genrsa -out out/policy-intermediate.key 2048
32 try openssl genrsa -out out/policy-cert.key 2048
37 CA_NAME=policy-root \
40 -key out/policy-root.key \
41 -out out/policy-root.csr \
42 -config policy.cnf
46 CA_NAME=policy-root \
[all …]
/external/chromium_org/chrome/browser/net/
Dproxy_policy_handler_unittest.cc19 namespace policy { namespace
76 PolicyMap policy; in TEST_F() local
77 policy.Set(key::kProxyBypassList, in TEST_F()
82 policy.Set(key::kProxyServer, in TEST_F()
87 policy.Set( in TEST_F()
94 UpdateProviderPolicy(policy); in TEST_F()
103 PolicyMap policy; in TEST_F() local
104 policy.Set( in TEST_F()
111 policy.Set(key::kProxyBypassList, in TEST_F()
116 policy.Set(key::kProxyServer, in TEST_F()
[all …]
/external/chromium_org/chrome/browser/download/
Ddownload_dir_policy_handler_unittest.cc46 : public policy::ConfigurationPolicyPrefStoreTest {
49 recommended_store_ = new policy::ConfigurationPolicyPrefStore( in SetUp()
52 policy::POLICY_LEVEL_RECOMMENDED); in SetUp()
54 make_scoped_ptr<policy::ConfigurationPolicyHandler>( in SetUp()
59 policy::PolicyHandlerParameters* parameters) OVERRIDE { in PopulatePolicyHandlerParameters()
64 scoped_refptr<policy::ConfigurationPolicyPrefStore> recommended_store_;
69 policy::PolicyMap policy; in TEST_F() local
71 policy.Set(policy::key::kDownloadDirectory, in TEST_F()
72 policy::POLICY_LEVEL_MANDATORY, in TEST_F()
73 policy::POLICY_SCOPE_USER, in TEST_F()
[all …]
/external/chromium_org/components/
Dpolicy.gypi13 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy',
16 'policy/tools/generate_policy_source.py',
18 '<(policy_out_dir)/policy/policy_constants.h',
20 '<(policy_out_dir)/policy/policy_constants.cc',
22 '<(policy_out_dir)/policy/cloud_policy_generated.cc',
24 # policy. It is also the format currently used by the server.
26 '<(policy_out_dir)/policy/chrome_settings.proto',
31 '<(policy_out_dir)/policy/cloud_policy.proto',
37 # GN version: //components/policy:policy_component
46 # GN version: //components/policy:policy_component_common
[all …]
/external/openssl/crypto/x509v3/
Dv3_pci.c69 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci()
71 pci->proxyPolicy->policy->data); in i2r_pci()
77 ASN1_OCTET_STRING **policy) in process_pci_value() argument
115 if (!*policy) in process_pci_value()
117 *policy = ASN1_OCTET_STRING_new(); in process_pci_value()
118 if (!*policy) in process_pci_value()
138 tmp_data = OPENSSL_realloc((*policy)->data, in process_pci_value()
139 (*policy)->length + val_len + 1); in process_pci_value()
142 (*policy)->data = tmp_data; in process_pci_value()
143 memcpy(&(*policy)->data[(*policy)->length], in process_pci_value()
[all …]
/external/chromium_org/third_party/boringssl/src/crypto/x509v3/
Dv3_pci.c73 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci()
75 pci->proxyPolicy->policy->data); in i2r_pci()
81 ASN1_OCTET_STRING **policy) in process_pci_value() argument
119 if (!*policy) in process_pci_value()
121 *policy = ASN1_OCTET_STRING_new(); in process_pci_value()
122 if (!*policy) in process_pci_value()
142 tmp_data = OPENSSL_realloc((*policy)->data, in process_pci_value()
143 (*policy)->length + val_len + 1); in process_pci_value()
146 (*policy)->data = tmp_data; in process_pci_value()
147 memcpy(&(*policy)->data[(*policy)->length], in process_pci_value()
[all …]
/external/chromium_org/sandbox/win/src/
Dprocess_mitigations_test.cc34 PROCESS_MITIGATION_DEP_POLICY policy; in CheckWin8DepPolicy() local
36 &policy, sizeof(policy))) { in CheckWin8DepPolicy()
39 return policy.Enable && policy.Permanent; in CheckWin8DepPolicy()
43 PROCESS_MITIGATION_ASLR_POLICY policy; in CheckWin8AslrPolicy() local
45 &policy, sizeof(policy))) { in CheckWin8AslrPolicy()
48 return policy.EnableForceRelocateImages && policy.DisallowStrippedImages; in CheckWin8AslrPolicy()
52 PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY policy; in CheckWin8StrictHandlePolicy() local
55 &policy, sizeof(policy))) { in CheckWin8StrictHandlePolicy()
58 return policy.RaiseExceptionOnInvalidHandleReference && in CheckWin8StrictHandlePolicy()
59 policy.HandleExceptionsPermanentlyEnabled; in CheckWin8StrictHandlePolicy()
[all …]
/external/chromium_org/android_webview/browser/
Daw_static_cookie_policy_unittest.cc21 void expectFirstPartyAccess(const AwStaticCookiePolicy& policy, in expectFirstPartyAccess() argument
23 EXPECT_EQ(expectedResult, policy.AllowSet(kUrlFirstParty, kUrlFirstParty)); in expectFirstPartyAccess()
24 EXPECT_EQ(expectedResult, policy.AllowGet(kUrlFirstParty, kUrlFirstParty)); in expectFirstPartyAccess()
27 void expectThirdPartyAccess(const AwStaticCookiePolicy& policy, in expectThirdPartyAccess() argument
29 EXPECT_EQ(expectedResult, policy.AllowSet(kUrlFirstParty, kUrlThirdParty)); in expectThirdPartyAccess()
30 EXPECT_EQ(expectedResult, policy.AllowGet(kUrlFirstParty, kUrlThirdParty)); in expectThirdPartyAccess()
40 AwStaticCookiePolicy policy(false /* allow_cookies */, in TEST_F() local
42 expectFirstPartyAccess(policy, false); in TEST_F()
43 expectThirdPartyAccess(policy, false); in TEST_F()
47 AwStaticCookiePolicy policy(false /* allow_cookies */, in TEST_F() local
[all …]
/external/chromium_org/components/policy/tools/
Dgenerate_policy_source.py54 def __init__(self, policy, os, is_chromium_os): argument
55 self.id = policy['id']
56 self.name = policy['name']
57 features = policy.get('features', {})
60 self.is_deprecated = policy.get('deprecated', False)
61 self.is_device_only = policy.get('device_only', False)
62 self.schema = policy.get('schema', {})
63 self.has_enterprise_default = 'default_for_enterprise_users' in policy
65 self.enterprise_default = policy['default_for_enterprise_users']
69 for platform, version in [ p.split(':') for p in policy['supported_on'] ]:
[all …]
/external/chromium_org/chromeos/dbus/
Dpower_policy_controller.cc94 const power_manager::PowerManagementPolicy& policy) { in GetPolicyDebugString() argument
96 if (policy.has_ac_delays()) in GetPolicyDebugString()
97 APPEND_DELAYS(str, policy.ac_delays(), "ac"); in GetPolicyDebugString()
98 if (policy.has_battery_delays()) in GetPolicyDebugString()
99 APPEND_DELAYS(str, policy.battery_delays(), "battery"); in GetPolicyDebugString()
100 if (policy.has_ac_idle_action()) in GetPolicyDebugString()
101 str += base::StringPrintf("ac_idle=%d ", policy.ac_idle_action()); in GetPolicyDebugString()
102 if (policy.has_battery_idle_action()) in GetPolicyDebugString()
103 str += base::StringPrintf("battery_idle=%d ", policy.battery_idle_action()); in GetPolicyDebugString()
104 if (policy.has_lid_closed_action()) in GetPolicyDebugString()
[all …]
/external/chromium_org/chrome/browser/ui/webui/
Dpolicy_ui_browsertest.cc38 const policy::PolicyMap::Entry* metadata, in PopulateExpectedPolicy()
45 metadata->scope == policy::POLICY_SCOPE_MACHINE ? in PopulateExpectedPolicy()
54 metadata->level == policy::POLICY_LEVEL_RECOMMENDED ? in PopulateExpectedPolicy()
91 void UpdateProviderPolicy(const policy::PolicyMap& policy);
96 policy::MockConfigurationPolicyProvider provider_;
110 policy::BrowserPolicyConnector::SetPolicyProviderForTesting(&provider_); in SetUpInProcessBrowserTestFixture()
113 void PolicyUITest::UpdateProviderPolicy(const policy::PolicyMap& policy) { in UpdateProviderPolicy() argument
114 provider_.UpdateChromePolicy(policy); in UpdateProviderPolicy()
177 policy::Schema chrome_schema = in IN_PROC_BROWSER_TEST_F()
178 policy::Schema::Wrap(policy::GetChromeSchemaData()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dpolicy_ui.cc155 void GetStatusFromCore(const policy::CloudPolicyCore* core, in GetStatusFromCore()
157 const policy::CloudPolicyStore* store = core->store(); in GetStatusFromCore()
158 const policy::CloudPolicyClient* client = core->client(); in GetStatusFromCore()
159 const policy::CloudPolicyRefreshScheduler* refresh_scheduler = in GetStatusFromCore()
166 policy::FormatStoreStatus(store->status(), store->validation_status()); in GetStatusFromCore()
167 if (store->status() == policy::CloudPolicyStore::STATUS_OK) { in GetStatusFromCore()
168 if (client && client->status() != policy::DM_STATUS_SUCCESS) in GetStatusFromCore()
169 status = policy::FormatDeviceManagementStatus(client->status()); in GetStatusFromCore()
171 status = FormatAssociationState(store->policy()); in GetStatusFromCore()
174 const em::PolicyData* policy = store->policy(); in GetStatusFromCore() local
[all …]
/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_policy_decoder_chromeos.cc33 namespace policy { namespace
111 void DecodeLoginPolicies(const em::ChromeDeviceSettingsProto& policy, in DecodeLoginPolicies() argument
113 if (policy.has_guest_mode_enabled()) { in DecodeLoginPolicies()
114 const em::GuestModeEnabledProto& container(policy.guest_mode_enabled()); in DecodeLoginPolicies()
125 if (policy.has_show_user_names()) { in DecodeLoginPolicies()
126 const em::ShowUserNamesOnSigninProto& container(policy.show_user_names()); in DecodeLoginPolicies()
137 if (policy.has_allow_new_users()) { in DecodeLoginPolicies()
138 const em::AllowNewUsersProto& container(policy.allow_new_users()); in DecodeLoginPolicies()
149 if (policy.has_user_whitelist()) { in DecodeLoginPolicies()
150 const em::UserWhitelistProto& container(policy.user_whitelist()); in DecodeLoginPolicies()
[all …]
/external/chromium_org/components/policy/core/common/cloud/
Dcloud_policy_service.cc12 namespace policy { namespace
38 const em::PolicyData* policy = store_->policy(); in ManagedBy() local
39 if (policy) { in ManagedBy()
40 std::string username = policy->username(); in ManagedBy()
67 const em::PolicyFetchResponse* policy = client_->GetPolicyFor(policy_ns_key_); in OnPolicyFetched() local
68 if (policy) { in OnPolicyFetched()
71 store_->Store(*policy, client->fetched_invalidation_version()); in OnPolicyFetched()
87 const em::PolicyData* policy(store_->policy()); in OnStoreLoaded() local
91 if (policy && policy->has_timestamp()) { in OnStoreLoaded()
94 base::TimeDelta::FromMilliseconds(policy->timestamp()); in OnStoreLoaded()
[all …]
/external/chromium_org/third_party/libsrtp/srtp/test/
Dsrtp_driver.c78 srtp_bits_per_second(int msg_len_octets, const srtp_policy_t *policy);
81 srtp_rejections_per_second(int msg_len_octets, const srtp_policy_t *policy);
84 srtp_do_timing(const srtp_policy_t *policy);
87 srtp_do_rejection_timing(const srtp_policy_t *policy);
90 srtp_test(const srtp_policy_t *policy);
93 srtcp_test(const srtp_policy_t *policy);
99 srtp_print_policy(const srtp_policy_t *policy);
227 const srtp_policy_t **policy = policy_array; in main() local
231 while (*policy != NULL) { in main()
233 if (srtp_test(*policy) == err_status_ok) in main()
[all …]

12345678910>>...56