/external/chromium/chrome/browser/extensions/ |
D | extension_special_storage_policy_unittest.cc | 120 scoped_refptr<ExtensionSpecialStoragePolicy> policy( in TEST_F() local 123 ASSERT_FALSE(policy->IsStorageUnlimited(kHttpUrl)); in TEST_F() 124 ASSERT_FALSE(policy->IsStorageUnlimited(kHttpUrl)); // test cached result in TEST_F() 125 ASSERT_FALSE(policy->IsStorageUnlimited(kExtensionUrl)); in TEST_F() 126 ASSERT_FALSE(policy->IsStorageProtected(kHttpUrl)); in TEST_F() 129 ASSERT_TRUE(policy->IsStorageProtected(kExtensionUrl)); in TEST_F() 135 scoped_refptr<ExtensionSpecialStoragePolicy> policy( in TEST_F() local 137 policy->GrantRightsForExtension(extension); in TEST_F() 138 EXPECT_FALSE(policy->IsStorageUnlimited(extension->url())); in TEST_F() 139 EXPECT_FALSE(policy->IsStorageUnlimited(GURL("http://explicit/"))); in TEST_F() [all …]
|
/external/openssl/crypto/x509v3/ |
D | v3_pci.c | 69 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 …]
|
D | pcy_data.c | 85 X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, in policy_data_new() argument 90 if (!policy && !cid) in policy_data_new() 121 ret->valid_policy = policy->policyid; in policy_data_new() 122 policy->policyid = NULL; in policy_data_new() 125 if (policy) in policy_data_new() 127 ret->qualifier_set = policy->qualifiers; in policy_data_new() 128 policy->qualifiers = NULL; in policy_data_new()
|
/external/chromium/chrome/browser/chromeos/ |
D | plugin_selection_policy_unittest.cc | 112 scoped_refptr<PluginSelectionPolicy> policy = new PluginSelectionPolicy; in TEST_F() local 113 EXPECT_TRUE(policy->InitFromFile(path)); in TEST_F() 120 scoped_refptr<PluginSelectionPolicy> policy = new PluginSelectionPolicy; in TEST_F() local 121 EXPECT_TRUE(policy->InitFromFile(path)); in TEST_F() 127 scoped_refptr<PluginSelectionPolicy> policy = new PluginSelectionPolicy; in TEST_F() local 128 EXPECT_FALSE(policy->InitFromFile(path)); in TEST_F() 134 scoped_refptr<PluginSelectionPolicy> policy = new PluginSelectionPolicy; in TEST_F() local 135 EXPECT_TRUE(policy->InitFromFile(path)); in TEST_F() 141 scoped_refptr<PluginSelectionPolicy> policy = new PluginSelectionPolicy; in TEST_F() local 142 EXPECT_TRUE(policy->InitFromFile(path)); in TEST_F() [all …]
|
D | plugin_selection_policy.cc | 69 Policy policy; in InitFromFile() local 89 policy.push_back(make_pair(true, line)); in InitFromFile() 101 policy.push_back(make_pair(false, line)); in InitFromFile() 106 if (!policy.empty() && !last_plugin.empty()) in InitFromFile() 107 policies.insert(make_pair(last_plugin, policy)); in InitFromFile() 109 policy.clear(); in InitFromFile() 114 policies.insert(make_pair(last_plugin, policy)); in InitFromFile() 149 Policy& policy(policy_iter->second); in IsAllowed() local 154 for (Policy::iterator iter = policy.begin(); iter != policy.end(); ++iter) { in IsAllowed()
|
/external/chromium/chrome/common/ |
D | sandbox_policy.cc | 126 sandbox::TargetPolicy* policy) { in AddDirectory() argument 137 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES, access, in AddDirectory() 147 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES, access, in AddDirectory() 159 sandbox::TargetPolicy* policy) { in AddKeyAndSubkeys() argument 161 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_REGISTRY, access, in AddKeyAndSubkeys() 167 result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_REGISTRY, access, in AddKeyAndSubkeys() 193 sandbox::TargetPolicy* policy) { in BlacklistAddOneDll() argument 214 policy->AddDllToUnload(alt_name.c_str()); in BlacklistAddOneDll() 216 policy->AddDllToUnload(module_name); in BlacklistAddOneDll() 224 void AddDllEvictionPolicy(sandbox::TargetPolicy* policy) { in AddDllEvictionPolicy() argument [all …]
|
/external/chromium/chrome/browser/policy/ |
D | configuration_policy_store_interface.cc | 10 using namespace policy; 12 bool IsProxyPolicy(ConfigurationPolicyType policy) { in IsProxyPolicy() argument 13 return policy == kPolicyProxyMode || in IsProxyPolicy() 14 policy == kPolicyProxyServerMode || in IsProxyPolicy() 15 policy == kPolicyProxyServer || in IsProxyPolicy() 16 policy == kPolicyProxyPacUrl || in IsProxyPolicy() 17 policy == kPolicyProxyBypassList; in IsProxyPolicy() 22 namespace policy { namespace 24 void ObservingPolicyStoreInterface::Apply(ConfigurationPolicyType policy, in Apply() argument 26 next_->Apply(policy, value); in Apply() [all …]
|
D | device_policy_cache_unittest.cc | 14 namespace policy { namespace 56 ACTION_P2(MockSignedSettingsHelperRetrievePolicy, status_code, policy) { in ACTION_P2() argument 57 arg0->OnRetrievePolicyCompleted(status_code, policy); in ACTION_P2() 60 void CreateRefreshRatePolicy(em::PolicyFetchResponse* policy, in CreateRefreshRatePolicy() argument 75 policy->set_policy_data(serialized_signed_response); in CreateRefreshRatePolicy() 78 void CreateProxyPolicy(em::PolicyFetchResponse* policy, in CreateProxyPolicy() argument 99 policy->set_policy_data(serialized_signed_response); in CreateProxyPolicy() 126 const Value* GetMandatoryPolicy(ConfigurationPolicyType policy) { in GetMandatoryPolicy() argument 127 return cache_->mandatory_policy_.Get(policy); in GetMandatoryPolicy() 130 const Value* GetRecommendedPolicy(ConfigurationPolicyType policy) { in GetRecommendedPolicy() argument [all …]
|
D | device_policy_cache.cc | 36 const em::PolicyFetchResponse& policy, in StorePolicyOperation() argument 39 policy_(policy), in StorePolicyOperation() 41 signed_settings_helper_->StartStorePolicyOp(policy, this); in StorePolicyOperation() 110 namespace policy { namespace 141 void DevicePolicyCache::SetPolicy(const em::PolicyFetchResponse& policy) { in SetPolicy() argument 155 if (!policy_data.ParseFromString(policy.policy_data())) { in SetPolicy() 174 policy, in SetPolicy() 186 const em::PolicyFetchResponse& policy) { in OnRetrievePolicyCompleted() argument 192 !policy.has_policy_data()) { in OnRetrievePolicyCompleted() 198 if (!policy_data.ParseFromString(policy.policy_data())) { in OnRetrievePolicyCompleted() [all …]
|
D | user_policy_cache.cc | 22 namespace policy { namespace 27 void DecodePolicy(const em::CloudPolicySettings& policy, 110 void UserPolicyCache::SetPolicy(const em::PolicyFetchResponse& policy) { in SetPolicy() argument 113 bool ok = SetPolicyInternal(policy, NULL, false); in SetPolicy() 115 PersistPolicy(policy, now); in SetPolicy() 127 void UserPolicyCache::PersistPolicy(const em::PolicyFetchResponse& policy, in PersistPolicy() argument 135 policy_copy->CopyFrom(policy); in PersistPolicy() 148 em::CloudPolicySettings policy; in DecodePolicyData() local 149 if (!policy.ParseFromString(policy_data.policy_value())) { in DecodePolicyData() 153 DecodePolicy(policy, mandatory, recommended); in DecodePolicyData() [all …]
|
D | user_policy_cache_unittest.cc | 23 namespace policy { namespace 28 void DecodePolicy(const em::CloudPolicySettings& policy, 92 void WritePolicy(const em::PolicyFetchResponse& policy) { in WritePolicy() argument 95 cached_policy.mutable_cloud_policy()->CopyFrom(policy); in WritePolicy() 105 scoped_ptr<em::PolicyFetchResponse> policy(policy_response); in SetPolicy() local 112 cache->SetPolicy(*policy); in SetPolicy() 237 scoped_ptr<em::PolicyFetchResponse> policy( in TEST_F() local 241 WritePolicy(*policy); in TEST_F() 252 em::PolicyFetchResponse* policy = in TEST_F() local 256 SetPolicy(&cache, policy, true); in TEST_F() [all …]
|
D | policy_map.cc | 11 namespace policy { namespace 20 const Value* PolicyMap::Get(ConfigurationPolicyType policy) const { in Get() 21 PolicyMapType::const_iterator entry = map_.find(policy); in Get() 25 void PolicyMap::Set(ConfigurationPolicyType policy, Value* value) { in Set() argument 26 std::swap(map_[policy], value); in Set() 30 void PolicyMap::Erase(ConfigurationPolicyType policy) { in Erase() argument 31 const const_iterator entry = map_.find(policy); in Erase()
|
/external/srtp/test/ |
D | srtp_driver.c | 72 srtp_bits_per_second(int msg_len_octets, const srtp_policy_t *policy); 75 srtp_rejections_per_second(int msg_len_octets, const srtp_policy_t *policy); 78 srtp_do_timing(const srtp_policy_t *policy); 81 srtp_do_rejection_timing(const srtp_policy_t *policy); 84 srtp_test(const srtp_policy_t *policy); 87 srtcp_test(const srtp_policy_t *policy); 93 srtp_print_policy(const srtp_policy_t *policy); 221 const srtp_policy_t **policy = policy_array; in main() local 225 while (*policy != NULL) { in main() 227 if (srtp_test(*policy) == err_status_ok) in main() [all …]
|
D | rtpw.c | 145 srtp_policy_t policy; in main() local 314 crypto_policy_set_rtp_default(&policy.rtp); in main() 315 crypto_policy_set_rtcp_default(&policy.rtcp); in main() 318 crypto_policy_set_aes_cm_128_null_auth(&policy.rtp); in main() 319 crypto_policy_set_rtcp_default(&policy.rtcp); in main() 322 crypto_policy_set_null_cipher_hmac_sha1_80(&policy.rtp); in main() 323 crypto_policy_set_rtcp_default(&policy.rtcp); in main() 329 policy.ssrc.type = ssrc_specific; in main() 330 policy.ssrc.value = ssrc; in main() 331 policy.key = (uint8_t *) key; in main() [all …]
|
D | dtls_srtp_driver.c | 124 srtp_policy_t policy; in test_dtls_srtp() local 178 policy.key = key; in test_dtls_srtp() 181 err = crypto_policy_set_from_profile_for_rtp(&policy.rtp, profile); in test_dtls_srtp() 183 err = crypto_policy_set_from_profile_for_rtcp(&policy.rtcp, profile); in test_dtls_srtp() 185 policy.ssrc.type = ssrc_any_inbound; in test_dtls_srtp() 186 policy.ekt = NULL; in test_dtls_srtp() 187 policy.window_size = 128; in test_dtls_srtp() 188 policy.allow_repeat_tx = 0; in test_dtls_srtp() 189 policy.next = NULL; in test_dtls_srtp() 191 err = srtp_add_stream(s, &policy); in test_dtls_srtp()
|
/external/chromium/chrome/browser/net/ |
D | chrome_cookie_policy.cc | 31 net::StaticCookiePolicy policy(strict_third_party_blocking_ ? in CanGetCookies() local 34 int rv = policy.CanGetCookies(url, first_party); in CanGetCookies() 40 int policy = CheckPolicy(url); in CanGetCookies() local 41 if (policy == net::OK_FOR_SESSION_ONLY) in CanGetCookies() 42 policy = net::OK; in CanGetCookies() 43 DCHECK_NE(net::ERR_IO_PENDING, policy); in CanGetCookies() 44 return policy; in CanGetCookies() 53 net::StaticCookiePolicy policy(strict_third_party_blocking_ ? in CanSetCookie() local 56 int rv = policy.CanSetCookie(url, first_party, cookie_line); in CanSetCookie() 61 int policy = CheckPolicy(url); in CanSetCookie() local [all …]
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | HttpEngine.java | 89 protected final HttpURLConnectionImpl policy; field in HttpEngine 147 public HttpEngine(HttpURLConnectionImpl policy, String method, RawHeaders requestHeaders, in HttpEngine() argument 149 this.policy = policy; in HttpEngine() 155 uri = Platform.get().toUriLenient(policy.getURL()); in HttpEngine() 179 if (policy.responseCache instanceof OkResponseCache) { in sendRequest() 180 ((OkResponseCache) policy.responseCache).trackResponse(responseSource); in sendRequest() 200 policy.connectionPool.recycle(connection); in sendRequest() 211 if (!policy.getUseCaches() || policy.responseCache == null) { in initResponseSource() 216 policy.responseCache.get(uri, method, requestHeaders.getHeaders().toMultimap(false)); in initResponseSource() 277 sslSocketFactory = policy.sslSocketFactory; in connect() [all …]
|
/external/srtp/googlepatches/ |
D | vidyo-4-srtp-rtx.patch | 14 struct srtp_policy_t *next; /**< Pointer to next stream policy. */ 69 policy.ssrc.type = ssrc_any_inbound; 70 policy.ekt = NULL; 71 policy.window_size = 128; 72 + policy.allow_repeat_tx = 0; 73 policy.next = NULL; 75 err = srtp_add_stream(s, &policy); 80 policy.key = (uint8_t *) key; 81 policy.next = NULL; 82 policy.window_size = 128; [all …]
|
/external/webkit/Source/WebCore/platform/qt/ |
D | ClipboardQt.cpp | 73 PassRefPtr<Clipboard> Clipboard::create(ClipboardAccessPolicy policy, DragData* dragData, Frame*) in create() argument 75 return ClipboardQt::create(policy, dragData->platformData()); in create() 78 ClipboardQt::ClipboardQt(ClipboardAccessPolicy policy, const QMimeData* readableClipboard) in ClipboardQt() argument 79 : Clipboard(policy, DragAndDrop) in ClipboardQt() 83 Q_ASSERT(policy == ClipboardReadable || policy == ClipboardTypesReadable); in ClipboardQt() 86 ClipboardQt::ClipboardQt(ClipboardAccessPolicy policy, ClipboardType clipboardType) in ClipboardQt() argument 87 : Clipboard(policy, clipboardType) in ClipboardQt() 91 Q_ASSERT(policy == ClipboardReadable || policy == ClipboardWritable || policy == ClipboardNumb); in ClipboardQt() 94 if (policy != ClipboardWritable) { in ClipboardQt() 112 if (policy() != ClipboardWritable) in clearData() [all …]
|
/external/chromium/chrome/browser/chromeos/login/ |
D | enterprise_enrollment_screen.cc | 122 policy::BrowserPolicyConnector* connector = in OnIssueAuthTokenSuccess() 131 registrar_.reset(new policy::CloudPolicySubsystem::ObserverRegistrar( in OnIssueAuthTokenSuccess() 151 policy::CloudPolicySubsystem::PolicySubsystemState state, in OnPolicyStateChanged() 152 policy::CloudPolicySubsystem::ErrorDetails error_details) { in OnPolicyStateChanged() 156 case policy::CloudPolicySubsystem::UNENROLLED: in OnPolicyStateChanged() 159 case policy::CloudPolicySubsystem::BAD_GAIA_TOKEN: in OnPolicyStateChanged() 160 case policy::CloudPolicySubsystem::LOCAL_ERROR: in OnPolicyStateChanged() 163 case policy::CloudPolicySubsystem::UNMANAGED: in OnPolicyStateChanged() 166 case policy::CloudPolicySubsystem::NETWORK_ERROR: in OnPolicyStateChanged() 169 case policy::CloudPolicySubsystem::TOKEN_FETCHED: in OnPolicyStateChanged() [all …]
|
/external/openssh/ |
D | sandbox-systrace.c | 118 struct systrace_policy policy; in ssh_sandbox_parent() local 142 bzero(&policy, sizeof(policy)); in ssh_sandbox_parent() 143 policy.strp_op = SYSTR_POLICY_NEW; in ssh_sandbox_parent() 144 policy.strp_maxents = SYS_MAXSYSCALL; in ssh_sandbox_parent() 145 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent() 149 policy.strp_op = SYSTR_POLICY_ASSIGN; in ssh_sandbox_parent() 150 policy.strp_pid = box->child_pid; in ssh_sandbox_parent() 151 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent() 164 policy.strp_op = SYSTR_POLICY_MODIFY; in ssh_sandbox_parent() 165 policy.strp_code = i; in ssh_sandbox_parent() [all …]
|
/external/webkit/Source/WebCore/platform/gtk/ |
D | ClipboardGtk.cpp | 49 PassRefPtr<Clipboard> Editor::newGeneralClipboard(ClipboardAccessPolicy policy, Frame* frame) in newGeneralClipboard() argument 51 …return ClipboardGtk::create(policy, gtk_clipboard_get_for_display(gdk_display_get_default(), GDK_S… in newGeneralClipboard() 54 PassRefPtr<Clipboard> Clipboard::create(ClipboardAccessPolicy policy, DragData* dragData, Frame* fr… in create() argument 56 return ClipboardGtk::create(policy, dragData->platformData(), DragAndDrop, frame); in create() 59 ClipboardGtk::ClipboardGtk(ClipboardAccessPolicy policy, GtkClipboard* clipboard, Frame* frame) in ClipboardGtk() argument 60 : Clipboard(policy, CopyAndPaste) in ClipboardGtk() 68 ClipboardGtk::ClipboardGtk(ClipboardAccessPolicy policy, PassRefPtr<DataObjectGtk> dataObject, Clip… in ClipboardGtk() argument 69 : Clipboard(policy, clipboardType) in ClipboardGtk() 106 if (policy() != ClipboardWritable) in clearData() 133 if (policy() != ClipboardWritable) in clearAllData() [all …]
|
/external/chromium/chrome/browser/prefs/ |
D | pref_service_mock_builder.cc | 65 policy::ConfigurationPolicyProvider* provider) { in WithManagedPlatformProvider() 66 managed_platform_prefs_ = new policy::ConfigurationPolicyPrefStore(provider); in WithManagedPlatformProvider() 72 policy::ConfigurationPolicyProvider* provider) { in WithManagedCloudProvider() 73 managed_cloud_prefs_ = new policy::ConfigurationPolicyPrefStore(provider); in WithManagedCloudProvider() 79 policy::ConfigurationPolicyProvider* provider) { in WithRecommendedPlatformProvider() 81 new policy::ConfigurationPolicyPrefStore(provider); in WithRecommendedPlatformProvider() 87 policy::ConfigurationPolicyProvider* provider) { in WithRecommendedCloudProvider() 88 recommended_cloud_prefs_ = new policy::ConfigurationPolicyPrefStore(provider); in WithRecommendedCloudProvider()
|
/external/webkit/Source/WebCore/platform/chromium/ |
D | ClipboardChromium.cpp | 68 PassRefPtr<Clipboard> Clipboard::create(ClipboardAccessPolicy policy, DragData* dragData, Frame* fr… in create() argument 70 return ClipboardChromium::create(DragAndDrop, dragData->platformData(), policy, frame); in create() 75 ClipboardAccessPolicy policy, in ClipboardChromium() argument 77 : Clipboard(policy, clipboardType) in ClipboardChromium() 84 PassRefPtr<ChromiumDataObject> dataObject, ClipboardAccessPolicy policy, Frame* frame) in create() argument 86 return adoptRef(new ClipboardChromium(clipboardType, dataObject, policy, frame)); in create() 91 if (policy() != ClipboardWritable || !m_dataObject) in clearData() 101 if (policy() != ClipboardWritable) in clearAllData() 110 if (policy() != ClipboardReadable || !m_dataObject) in getData() 118 if (policy() != ClipboardWritable) in setData() [all …]
|
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
D | srtpfilter.cc | 357 srtp_policy_t policy; in SetKey() local 358 memset(&policy, 0, sizeof(policy)); in SetKey() 361 crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtp); in SetKey() 362 crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); in SetKey() 364 crypto_policy_set_aes_cm_128_hmac_sha1_32(&policy.rtp); // rtp is 32, in SetKey() 365 crypto_policy_set_aes_cm_128_hmac_sha1_80(&policy.rtcp); // rtcp still 80 in SetKey() 377 policy.ssrc.type = static_cast<ssrc_type_t>(type); in SetKey() 378 policy.ssrc.value = 0; in SetKey() 379 policy.key = const_cast<uint8*>(key); in SetKey() 381 policy.window_size = 1024; in SetKey() [all …]
|