/external/chromium_org/chromeos/network/onc/ |
D | onc_signature.cc | 13 namespace onc { namespace 45 { ::onc::client_cert::kCommonName, &kStringSignature}, 46 { ::onc::client_cert::kLocality, &kStringSignature}, 47 { ::onc::client_cert::kOrganization, &kStringSignature}, 48 { ::onc::client_cert::kOrganizationalUnit, &kStringSignature}, 52 { ::onc::kRecommended, &kRecommendedSignature}, 53 { ::onc::client_cert::kEnrollmentURI, &kStringListSignature}, 54 { ::onc::client_cert::kIssuer, &kIssuerSubjectPatternSignature}, 55 { ::onc::client_cert::kIssuerCARef, &kStringListSignature}, 57 { ::onc::client_cert::kIssuerCAPEMs, &kStringListSignature}, [all …]
|
D | onc_translation_tables.cc | 14 namespace onc { namespace 25 { ::onc::eap::kAnonymousIdentity, shill::kEapAnonymousIdentityProperty}, 26 { ::onc::eap::kIdentity, shill::kEapIdentityProperty}, 32 { ::onc::eap::kPassword, shill::kEapPasswordProperty}, 33 { ::onc::eap::kSaveCredentials, shill::kSaveCredentialsProperty}, 34 { ::onc::eap::kServerCAPEMs, shill::kEapCaCertPemProperty}, 35 { ::onc::eap::kUseSystemCAs, shill::kEapUseSystemCasProperty}, 42 { ::onc::ipsec::kGroup, shill::kL2tpIpsecTunnelGroupProperty}, 45 { ::onc::ipsec::kPSK, shill::kL2tpIpsecPskProperty}, 48 { ::onc::ipsec::kServerCAPEMs, shill::kL2tpIpsecCaCertPemProperty}, [all …]
|
D | onc_normalizer.cc | 15 namespace onc { namespace 46 normalized->RemoveWithoutPathExpansion(::onc::kRecommended, NULL); in MapObject() 82 using namespace ::onc::certificate; in NormalizeCertificate() 85 cert->GetBooleanWithoutPathExpansion(::onc::kRemove, &remove); in NormalizeCertificate() 86 RemoveEntryUnless(cert, ::onc::certificate::kType, !remove); in NormalizeCertificate() 89 cert->GetStringWithoutPathExpansion(::onc::certificate::kType, &type); in NormalizeCertificate() 96 using namespace ::onc::ethernet; in NormalizeEthernet() 104 using namespace ::onc::eap; in NormalizeEAP() 107 eap->GetStringWithoutPathExpansion(::onc::client_cert::kClientCertType, in NormalizeEAP() 110 ::onc::client_cert::kClientCertPattern, in NormalizeEAP() [all …]
|
D | onc_validator_unittest.cc | 20 namespace onc { namespace 33 ::onc::ONCSource onc_source) { in Validate() 80 ::onc::ONCSource onc_source = ::onc::ONC_SOURCE_NONE) in OncParams() 90 ::onc::ONCSource onc_source; 93 ::std::ostream& operator<<(::std::ostream& os, const OncParams& onc) { in operator <<() argument 94 return os << "(" << onc.location << ", " << onc.signature << ", " in operator <<() 95 << (onc.is_managed ? "managed" : "unmanaged") << ", " in operator <<() 96 << GetSourceAsString(onc.onc_source) << ")"; in operator <<() 105 &kToplevelConfigurationSignature, false, ::onc::ONC_SOURCE_NONE); in TEST_F() 116 OncParams onc = GetParam(); in TEST_P() local [all …]
|
D | onc_translator_shill_to_onc.cc | 25 namespace onc { namespace 54 ::onc::ONCSource onc_source, in ShillToONCTranslator() 63 ::onc::ONCSource onc_source, in ShillToONCTranslator() 141 ::onc::ONCSource onc_source_; 187 const char* onc_auth = ::onc::ethernet::kAuthenticationNone; in TranslateEthernet() 189 onc_auth = ::onc::ethernet::k8021X; in TranslateEthernet() 190 onc_object_->SetStringWithoutPathExpansion(::onc::ethernet::kAuthentication, in TranslateEthernet() 196 TranslateAndAddNestedObject(::onc::openvpn::kVerifyX509); in TranslateOpenVPN() 205 onc_object_->SetWithoutPathExpansion(::onc::openvpn::kRemoteCertKU, in TranslateOpenVPN() 212 if (onc_field_name == ::onc::openvpn::kRemoteCertKU || in TranslateOpenVPN() [all …]
|
D | onc_validator.cc | 19 namespace onc { namespace 47 onc_source_(::onc::ONC_SOURCE_NONE) {} in Validator() 233 if (!result->RemoveWithoutPathExpansion(::onc::kRecommended, in ValidateRecommendedField() 246 << ::onc::kRecommended in ValidateRecommendedField() 276 path_.push_back(::onc::kRecommended); in ValidateRecommendedField() 292 result->Set(::onc::kRecommended, repaired_recommended.release()); in ValidateRecommendedField() 298 using namespace ::onc::client_cert; in ValidateClientCertFields() 432 if (cert_type == ::onc::client_cert::kPattern && in IsCertPatternInDevicePolicy() 433 onc_source_ == ::onc::ONC_SOURCE_DEVICE_POLICY) { in IsCertPatternInDevicePolicy() 444 if (onc_source_ == ::onc::ONC_SOURCE_USER_IMPORT && in IsGlobalNetworkConfigInUserImport() [all …]
|
D | onc_translator_onc_to_shill.cc | 27 namespace onc { namespace 125 onc_object_->GetStringWithoutPathExpansion(::onc::ethernet::kAuthentication, in TranslateEthernet() 129 if (authentication == ::onc::ethernet::k8021X) in TranslateEthernet() 140 if (onc_object_->GetListWithoutPathExpansion(::onc::ipconfig::kNameServers, in TranslateStaticIPConfig() 157 ::onc::vpn::kSaveCredentials, &save_credentials)) { in TranslateOpenVPN() 165 if (onc_object_->GetListWithoutPathExpansion(::onc::openvpn::kRemoteCertKU, in TranslateOpenVPN() 175 if (it.key() == ::onc::openvpn::kRemoteCertKU || in TranslateOpenVPN() 176 it.key() == ::onc::openvpn::kServerCAPEMs) { in TranslateOpenVPN() 193 ::onc::vpn::kSaveCredentials, &save_credentials)) { in TranslateIPsec() 201 if (onc_object_->GetStringWithoutPathExpansion(::onc::vpn::kHost, &host)) { in TranslateVPN() [all …]
|
D | onc_merger.cc | 18 namespace onc { namespace 29 return field_name == ::onc::network_config::kGUID; in IsIdentifierField() 31 return field_name == ::onc::certificate::kGUID; in IsIdentifierField() 40 if (!policy.GetListWithoutPathExpansion(::onc::kRecommended, in MarkRecommendedFieldnames() 61 if (it.key() == ::onc::kRecommended || in GetEditableFlags() 100 if (key == ::onc::kRecommended || !visited.insert(key).second) in MergeDictionaries() 280 *which = ::onc::kAugmentationUserPolicy; in MergeValues() 283 *which = ::onc::kAugmentationDevicePolicy; in MergeValues() 286 *which = ::onc::kAugmentationUserSetting; in MergeValues() 289 *which = ::onc::kAugmentationSharedSetting; in MergeValues() [all …]
|
D | onc_certificate_importer_impl.cc | 31 namespace onc { namespace 60 ::onc::ONCSource source, in ImportCertificates() 91 ::onc::ONCSource source, in ParseAndStoreCertificates() 96 bool allow_trust_imports = source == ::onc::ONC_SOURCE_USER_IMPORT; in ParseAndStoreCertificates() 199 certificate.GetStringWithoutPathExpansion(::onc::certificate::kGUID, &guid); in ParseAndStoreCertificate() 203 if (certificate.GetBooleanWithoutPathExpansion(::onc::kRemove, &remove) && in ParseAndStoreCertificate() 215 certificate.GetStringWithoutPathExpansion(::onc::certificate::kType, in ParseAndStoreCertificate() 217 if (cert_type == ::onc::certificate::kServer || in ParseAndStoreCertificate() 218 cert_type == ::onc::certificate::kAuthority) { in ParseAndStoreCertificate() 225 } else if (cert_type == ::onc::certificate::kClient) { in ParseAndStoreCertificate() [all …]
|
/external/chromium_org/chrome/browser/chromeos/options/ |
D | network_property_ui_data_unittest.cc | 37 NetworkPropertyUIData null_prop(onc::ONC_SOURCE_NONE); in TEST_F() 42 base::DictionaryValue onc; in TEST_F() local 49 onc.Set("a", val_a.DeepCopy()); in TEST_F() 50 onc.Set("b", val_b.DeepCopy()); in TEST_F() 51 onc.Set("a.a", val_a_a.DeepCopy()); in TEST_F() 52 onc.Set("a.b", val_a_b.DeepCopy()); in TEST_F() 57 onc.Set("Recommended", recommended.DeepCopy()); in TEST_F() 58 onc.Set("a.Recommended", recommended.DeepCopy()); in TEST_F() 62 prop.ParseOncProperty(onc::ONC_SOURCE_NONE, &onc, "a"); in TEST_F() 65 onc::ONCSource source = onc::ONC_SOURCE_USER_IMPORT; in TEST_F() [all …]
|
D | network_property_ui_data.cc | 14 : onc_source_(::onc::ONC_SOURCE_NONE) { in NetworkPropertyUIData() 17 NetworkPropertyUIData::NetworkPropertyUIData(::onc::ONCSource onc_source) in NetworkPropertyUIData() 24 void NetworkPropertyUIData::ParseOncProperty(::onc::ONCSource onc_source, in ParseOncProperty() 25 const base::DictionaryValue* onc, in ParseOncProperty() argument 30 if (!onc || !IsManaged()) in ParseOncProperty() 33 if (!onc::IsRecommendedValue(onc, property_key)) in ParseOncProperty() 37 onc_source_ = ::onc::ONC_SOURCE_NONE; in ParseOncProperty() 40 if (!onc->Get(property_key, &default_value)) { in ParseOncProperty()
|
D | network_property_ui_data.h | 30 explicit NetworkPropertyUIData(::onc::ONCSource onc_source); 36 void ParseOncProperty(::onc::ONCSource onc_source, 37 const base::DictionaryValue* onc, 42 return (onc_source_ == ::onc::ONC_SOURCE_DEVICE_POLICY || in IsManaged() 43 onc_source_ == ::onc::ONC_SOURCE_USER_POLICY); in IsManaged() 48 ::onc::ONCSource onc_source_;
|
/external/chromium_org/chromeos/network/ |
D | policy_util.cc | 34 const onc::OncValueSignature& signature, in RemoveFakeCredentials() 49 const onc::OncFieldSignature* field_signature = in RemoveFakeCredentials() 50 onc::GetFieldSignature(signature, field_name); in RemoveFakeCredentials() 61 onc::FieldIsCredential(signature, field_name)) { in RemoveFakeCredentials() 81 policy.GetStringWithoutPathExpansion(::onc::network_config::kType, in IsPolicyMatching() 84 actual_network.GetStringWithoutPathExpansion(::onc::network_config::kType, in IsPolicyMatching() 89 if (actual_network_type == ::onc::network_type::kEthernet) { in IsPolicyMatching() 91 policy.GetDictionaryWithoutPathExpansion(::onc::network_config::kEthernet, in IsPolicyMatching() 95 ::onc::network_config::kEthernet, &actual_ethernet); in IsPolicyMatching() 101 ::onc::ethernet::kAuthentication, &policy_auth); in IsPolicyMatching() [all …]
|
D | certificate_pattern.cc | 68 dict.GetStringWithoutPathExpansion(onc::client_cert::kCommonName, in ReadFromONCDictionary() 70 dict.GetStringWithoutPathExpansion(onc::client_cert::kLocality, &locality_); in ReadFromONCDictionary() 71 dict.GetStringWithoutPathExpansion(onc::client_cert::kOrganization, in ReadFromONCDictionary() 73 dict.GetStringWithoutPathExpansion(onc::client_cert::kOrganizationalUnit, in ReadFromONCDictionary() 105 if (dict.GetListWithoutPathExpansion(onc::client_cert::kIssuerCAPEMs, in ReadFromONCDictionary() 111 if (dict.GetDictionaryWithoutPathExpansion(onc::client_cert::kIssuer, in ReadFromONCDictionary() 117 if (dict.GetDictionaryWithoutPathExpansion(onc::client_cert::kSubject, in ReadFromONCDictionary() 123 if (dict.GetListWithoutPathExpansion(onc::client_cert::kEnrollmentURI, in ReadFromONCDictionary()
|
D | network_ui_data.cc | 28 const StringEnumEntry< ::onc::ONCSource> kONCSourceTable[] = { 29 { NetworkUIData::kONCSourceUserImport, ::onc::ONC_SOURCE_USER_IMPORT }, 30 { NetworkUIData::kONCSourceDevicePolicy, ::onc::ONC_SOURCE_DEVICE_POLICY }, 31 { NetworkUIData::kONCSourceUserPolicy, ::onc::ONC_SOURCE_USER_POLICY } 62 NetworkUIData::NetworkUIData() : onc_source_(::onc::ONC_SOURCE_NONE) { in NetworkUIData() 79 onc_source_ = StringToEnum(kONCSourceTable, source, ::onc::ONC_SOURCE_NONE); in NetworkUIData() 113 ::onc::ONCSource onc_source) { in CreateFromONC()
|
D | policy_applicator.cc | 114 onc::TranslateShillServiceToONCPart(entry_properties, in GetEntryCallback() 115 ::onc::ONC_SOURCE_UNKNOWN, in GetEntryCallback() 116 &onc::kNetworkWithStateSignature)); in GetEntryCallback() 119 if (!onc_part->GetStringWithoutPathExpansion(::onc::network_config::kGUID, in GetEntryCallback() 140 ::onc::ONC_SOURCE_DEVICE_POLICY || in GetEntryCallback() 141 ui_data->onc_source() == ::onc::ONC_SOURCE_USER_POLICY); in GetEntryCallback() 158 new_policy->GetStringWithoutPathExpansion(::onc::network_config::kGUID, in GetEntryCallback() 255 policy.GetStringWithoutPathExpansion(::onc::network_config::kType, &type); in WriteNewShillConfiguration() 256 if (type == ::onc::network_type::kEthernet && in WriteNewShillConfiguration() 259 policy.GetDictionaryWithoutPathExpansion(::onc::network_config::kEthernet, in WriteNewShillConfiguration() [all …]
|
D | managed_network_configuration_handler_unittest.cc | 39 namespace test_utils = ::chromeos::onc::test_utils; 258 void SetPolicy(::onc::ONCSource onc_source, in SetPolicy() 263 policy = onc::ReadDictionaryFromJson(onc::kEmptyUnencryptedConfiguration); in SetPolicy() 270 ::onc::toplevel_config::kNetworkConfigurations, &network_configs); in SetPolicy() 275 ::onc::toplevel_config::kGlobalNetworkConfiguration, in SetPolicy() 357 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, in TEST_F() 378 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); in TEST_F() 419 ::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_ethernet_eap.onc"); in TEST_F() 429 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); in TEST_F() 443 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); in TEST_F() [all …]
|
/external/chromium_org/components/wifi/ |
D | network_properties.cc | 15 : connection_state(onc::connection_state::kNotConnected), in NetworkProperties() 16 security(onc::wifi::kSecurityNone), in NetworkProperties() 29 value->SetString(onc::network_config::kGUID, guid); in ToValue() 30 value->SetString(onc::network_config::kName, name); in ToValue() 31 value->SetString(onc::network_config::kConnectionState, connection_state); in ToValue() 32 DCHECK(type == onc::network_type::kWiFi); in ToValue() 33 value->SetString(onc::network_config::kType, type); in ToValue() 36 value->SetBoolean(onc::network_config::kConnectable, true); in ToValue() 39 wifi->SetString(onc::wifi::kSecurity, security); in ToValue() 40 wifi->SetInteger(onc::wifi::kSignalStrength, signal_strength); in ToValue() [all …]
|
D | fake_wifi_service.cc | 18 network_properties.connection_state = onc::connection_state::kConnected; in FakeWiFiService() 21 network_properties.type = onc::network_type::kWiFi; in FakeWiFiService() 24 network_properties.security = onc::wifi::kWEP_PSK; in FakeWiFiService() 44 network_properties.connection_state = onc::connection_state::kNotConnected; in FakeWiFiService() 47 network_properties.type = onc::network_type::kWiFi; in FakeWiFiService() 52 network_properties.security = onc::wifi::kWPA_PSK; in FakeWiFiService() 130 if (network_type.empty() || network_type == onc::network_type::kAllTypes || in GetVisibleNetworks() 150 network_properties->connection_state = onc::connection_state::kConnected; in StartConnect() 163 network_properties->connection_state = onc::connection_state::kNotConnected; in StartDisconnect() 201 it->connection_state = onc::connection_state::kNotConnected; in DisconnectAllNetworksOfType()
|
/external/chromium_org/chrome/browser/resources/options/chromeos/ |
D | internet_detail.js | 35 var OncData = cr.onc.OncData; 480 var onc = this.onc_; 499 if (onc && this.type_ == 'Cellular') { 501 if (onc.getActiveValue('Cellular.Family') == 'GSM') 514 var source = onc ? onc.getSource() : 'None'; 516 var security = onc ? onc.getWiFiSecurity() : 'None'; 652 var onc = this.onc_; 662 var connectState = onc.getActiveValue('ConnectionState'); 675 var connectable = onc.getActiveValue('Connectable'); 677 (!connectable || onc.getWiFiSecurity() != 'None' || [all …]
|
/external/chromium_org/chrome/browser/chromeos/net/ |
D | onc_utils.cc | 36 namespace onc { namespace 44 onc_proxy_location.GetStringWithoutPathExpansion(::onc::proxy::kHost, &host); in ConvertOncProxyLocationToHostPort() 49 onc_proxy_location.GetIntegerWithoutPathExpansion(::onc::proxy::kPort, &port); in ConvertOncProxyLocationToHostPort() 70 if (onc_scheme == ::onc::proxy::kFtp) { in AppendProxyServerForScheme() 72 } else if (onc_scheme == ::onc::proxy::kHttp) { in AppendProxyServerForScheme() 74 } else if (onc_scheme == ::onc::proxy::kHttps) { in AppendProxyServerForScheme() 76 } else if (onc_scheme == ::onc::proxy::kSocks) { in AppendProxyServerForScheme() 106 onc_proxy_settings.GetStringWithoutPathExpansion(::onc::proxy::kType, &type); in ConvertOncProxySettingsToProxyConfig() 109 if (type == ::onc::proxy::kDirect) { in ConvertOncProxySettingsToProxyConfig() 111 } else if (type == ::onc::proxy::kWPAD) { in ConvertOncProxySettingsToProxyConfig() [all …]
|
/external/chromium_org/chromeos/tools/onc_validator/ |
D | onc_validator.cc | 124 chromeos::onc::Validator validator( in main() 131 validator.SetOncSource(::onc::ONC_SOURCE_USER_POLICY); in main() 133 validator.SetOncSource(::onc::ONC_SOURCE_DEVICE_POLICY); in main() 135 validator.SetOncSource(::onc::ONC_SOURCE_USER_IMPORT); in main() 138 const chromeos::onc::OncValueSignature* signature = NULL; in main() 140 signature = &chromeos::onc::kToplevelConfigurationSignature; in main() 142 signature = &chromeos::onc::kNetworkConfigurationSignature; in main() 144 signature = &chromeos::onc::kCertificateSignature; in main() 150 chromeos::onc::Validator::Result result; in main() 154 case chromeos::onc::Validator::VALID: in main() [all …]
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
D | network_configuration_updater_unittest.cc | 100 class FakeCertificateImporter : public chromeos::onc::CertificateImporter { 103 : expected_onc_source_(::onc::ONC_SOURCE_UNKNOWN), call_count_(0) {} in FakeCertificateImporter() 115 void SetExpectedONCSource(::onc::ONCSource source) { in SetExpectedONCSource() 126 ::onc::ONCSource source, in ImportCertificates() 128 if (expected_onc_source_ != ::onc::ONC_SOURCE_UNKNOWN) in ImportCertificates() 131 EXPECT_TRUE(chromeos::onc::test_utils::Equals( in ImportCertificates() 139 ::onc::ONCSource expected_onc_source_; 214 chromeos::onc::ReadDictionaryFromJson(kFakeONC); in SetUp() 218 onc::toplevel_config::kNetworkConfigurations, &network_configs); in SetUp() 223 onc::toplevel_config::kGlobalNetworkConfiguration, &global_config); in SetUp() [all …]
|
/external/chromium_org/chrome/browser/local_discovery/wifi/ |
D | bootstrapping_device_lister_unittest.cc | 69 network.connection_state = onc::connection_state::kNotConnected; in TEST_F() 76 network2.connection_state = onc::connection_state::kNotConnected; in TEST_F() 101 network.connection_state = onc::connection_state::kNotConnected; in TEST_F() 110 network2.connection_state = onc::connection_state::kNotConnected; in TEST_F() 154 network.connection_state = onc::connection_state::kNotConnected; in TEST_F() 159 network2.connection_state = onc::connection_state::kNotConnected; in TEST_F() 164 network3.connection_state = onc::connection_state::kNotConnected; in TEST_F() 169 network4.connection_state = onc::connection_state::kNotConnected; in TEST_F() 174 network5.connection_state = onc::connection_state::kNotConnected; in TEST_F()
|
/external/chromium_org/components/ |
D | onc.gypi | 8 # GN version: //components/onc 21 'onc/onc_constants.cc', 22 'onc/onc_constants.h', 23 'onc/onc_export.h',
|