Home
last modified time | relevance | path

Searched refs:wifi (Results 1 – 25 of 66) sorted by relevance

123

/external/chromium/chrome/browser/chromeos/cros/
Dnetwork_library_unittest.cc17 WifiNetwork* wifi = new WifiNetwork("fw"); in TEST() local
18 wifi->SetName(wifi_setname); in TEST()
19 EXPECT_EQ(wifi->name(), wifi_setname_result); in TEST()
20 delete wifi; in TEST()
27 WifiNetwork* wifi = new WifiNetwork("fw"); in TEST() local
28 wifi->SetName(wifi_setname2); in TEST()
29 EXPECT_EQ(wifi->name(), wifi_setname2_result); in TEST()
30 delete wifi; in TEST()
37 WifiNetwork* wifi = new WifiNetwork("fw"); in TEST() local
38 wifi->SetSsid(wifi_utf8); in TEST()
[all …]
Dnetwork_library.cc2666 WifiNetwork* wifi = static_cast<WifiNetwork *>(network); in NetworkConnectCallback() local
2669 if (!wifi->save_credentials()) { in NetworkConnectCallback()
2670 wifi->EraseCredentials(); in NetworkConnectCallback()
2672 networklib->active_wifi_ = wifi; in NetworkConnectCallback()
2703 virtual void ConnectToWifiNetwork(WifiNetwork* wifi) { in ConnectToWifiNetwork() argument
2705 if (wifi->user_passphrase_ != wifi->passphrase_ || in ConnectToWifiNetwork()
2706 wifi->passphrase_required()) in ConnectToWifiNetwork()
2707 wifi->SetPassphrase(wifi->user_passphrase_); in ConnectToWifiNetwork()
2708 CallConnectToNetwork(wifi); in ConnectToWifiNetwork()
2713 WifiNetwork* wifi = FindWifiNetworkByPath(service_path); in ConnectToWifiNetwork() local
[all …]
/external/chromium_org/components/wifi/
Dwifi_service.cc12 namespace wifi { namespace
16 security(onc::wifi::kNone), in NetworkProperties()
33 scoped_ptr<base::DictionaryValue> wifi(new base::DictionaryValue()); in ToValue() local
34 wifi->SetString(onc::wifi::kSecurity, security); in ToValue()
35 wifi->SetInteger(onc::wifi::kSignalStrength, signal_strength); in ToValue()
40 wifi->SetInteger(onc::wifi::kFrequency, frequency); in ToValue()
48 wifi->Set(onc::wifi::kFrequencyList, frequency_list.release()); in ToValue()
50 wifi->SetString(onc::wifi::kBSSID, bssid); in ToValue()
51 wifi->SetString(onc::wifi::kSSID, ssid); in ToValue()
53 value->Set(onc::network_type::kWiFi, wifi.release()); in ToValue()
[all …]
Dwifi_service_win.cc165 namespace wifi { namespace
1044 return onc::wifi::kWPA_EAP; in SecurityFromDot11AuthAlg()
1046 return onc::wifi::kWPA_PSK; in SecurityFromDot11AuthAlg()
1048 return onc::wifi::kWEP_PSK; in SecurityFromDot11AuthAlg()
1050 return onc::wifi::kNone; in SecurityFromDot11AuthAlg()
1052 return onc::wifi::kWPA_EAP; in SecurityFromDot11AuthAlg()
1265 const DictionaryValue* wifi; in GetFrequencyToConnect() local
1269 properties->GetDictionary(onc::network_type::kWiFi, &wifi) && in GetFrequencyToConnect()
1270 wifi->GetInteger(onc::wifi::kFrequency, &frequency)) { in GetFrequencyToConnect()
1484 if (security == onc::wifi::kNone) { in AuthEncryptionFromSecurity()
[all …]
Dfake_wifi_service.cc12 namespace wifi { namespace
40 network_properties.security = onc::wifi::kWEP_PSK; in FakeWiFiService()
63 network_properties.security = onc::wifi::kWPA_PSK; in FakeWiFiService()
/external/chromium/chrome/browser/chromeos/options/
Dwifi_config_view.cc238 WifiConfigView::WifiConfigView(NetworkConfigView* parent, WifiNetwork* wifi) in WifiConfigView() argument
239 : ChildNetworkConfigView(parent, wifi), in WifiConfigView()
260 Init(wifi); in WifiConfigView()
367 const WifiNetwork* wifi = cros->FindWifiNetworkByPath(service_path_); in UpdateErrorLabel() local
368 if (wifi && wifi->failed()) { in UpdateErrorLabel()
369 bool passphrase_empty = wifi->GetPassphrase().empty(); in UpdateErrorLabel()
370 switch (wifi->error()) { in UpdateErrorLabel()
384 error_msg = wifi->GetErrorString(); in UpdateErrorLabel()
463 WifiNetwork* wifi = cros->FindWifiNetworkByPath(service_path_); in Login() local
464 if (!wifi) { in Login()
[all …]
Dwifi_config_view.h43 WifiConfigView(NetworkConfigView* parent, WifiNetwork* wifi);
76 void Init(WifiNetwork* wifi);
/external/chromium/chrome/browser/chromeos/
Dnetwork_login_observer.cc58 const WifiNetwork* wifi = *it; in RefreshStoredNetworks() local
59 network_failures_[wifi->service_path()] = wifi->failed(); in RefreshStoredNetworks()
76 WifiNetwork* wifi = *it; in OnNetworkManagerChanged() local
77 if (wifi->failed()) { in OnNetworkManagerChanged()
79 network_failures_.find(wifi->service_path()); in OnNetworkManagerChanged()
93 if (wifi->error() == ERROR_BAD_PASSPHRASE || in OnNetworkManagerChanged()
94 wifi->error() == ERROR_BAD_WEPKEY || in OnNetworkManagerChanged()
95 wifi->added()) { in OnNetworkManagerChanged()
97 view = new NetworkConfigView(wifi); in OnNetworkManagerChanged()
/external/chromium_org/components/
Dwifi.gypi22 'wifi/wifi_export.h',
23 'wifi/wifi_service.cc',
24 'wifi/wifi_service.h',
25 'wifi/fake_wifi_service.cc',
26 'wifi/wifi_service_win.cc',
50 'wifi/wifi_test.cc',
/external/chromium/chrome/browser/automation/
Dautomation_provider_observers_chromeos.cc132 const chromeos::WifiNetwork* wifi = GetWifiNetwork(obj); in OnNetworkManagerChanged() local
133 if (!wifi) { in OnNetworkManagerChanged()
144 if (wifi->failed()) { in OnNetworkManagerChanged()
146 return_value->SetString("error_string", wifi->GetErrorString()); in OnNetworkManagerChanged()
150 } else if (wifi->connected()) { in OnNetworkManagerChanged()
181 const chromeos::WifiNetwork* wifi = *iter; in GetWifiNetwork() local
182 if (wifi->name() == ssid_) in GetWifiNetwork()
183 return wifi; in GetWifiNetwork()
Dtesting_automation_provider_chromeos.cc297 const chromeos::WifiNetwork* wifi = *iter; in GetNetworkInfo() local
298 DictionaryValue* item = GetNetworkInfoDict(wifi); in GetNetworkInfo()
299 item->SetInteger("strength", wifi->strength()); in GetNetworkInfo()
300 item->SetBoolean("encrypted", wifi->encrypted()); in GetNetworkInfo()
301 item->SetString("encryption", wifi->GetEncryptionString()); in GetNetworkInfo()
302 items->Set(wifi->service_path(), item); in GetNetworkInfo()
402 chromeos::WifiNetwork* wifi = in ConnectToWifiNetwork() local
404 if (!wifi) { in ConnectToWifiNetwork()
409 wifi->SetPassphrase(password); in ConnectToWifiNetwork()
411 wifi->SetIdentity(identity); in ConnectToWifiNetwork()
[all …]
/external/chromium_org/chromeos/network/onc/
Donc_translation_tables.cc103 { ::onc::wifi::kAutoConnect, shill::kAutoConnectProperty},
104 { ::onc::wifi::kBSSID, shill::kWifiBSsid},
105 { ::onc::wifi::kFrequency, shill::kWifiFrequency},
106 { ::onc::wifi::kFrequencyList, shill::kWifiFrequencyListProperty},
107 { ::onc::wifi::kHiddenSSID, shill::kWifiHiddenSsid},
108 { ::onc::wifi::kPassphrase, shill::kPassphraseProperty},
113 { ::onc::wifi::kSignalStrength, shill::kSignalStrengthProperty},
229 { ::onc::wifi::kNone, shill::kSecurityNone},
230 { ::onc::wifi::kWEP_PSK, shill::kSecurityWep},
231 { ::onc::wifi::kWPA_PSK, shill::kSecurityPsk},
[all …]
Donc_signature.cc192 { ::onc::wifi::kAutoConnect, &kBoolSignature},
193 { ::onc::wifi::kEAP, &kEAPSignature},
194 { ::onc::wifi::kHiddenSSID, &kBoolSignature},
195 { ::onc::wifi::kPassphrase, &kStringSignature},
196 { ::onc::wifi::kSSID, &kStringSignature},
197 { ::onc::wifi::kSecurity, &kStringSignature},
201 { ::onc::wifi::kBSSID, &kStringSignature},
202 { ::onc::wifi::kFrequency, &kIntegerSignature},
203 { ::onc::wifi::kFrequencyList, &kIntegerListSignature},
204 { ::onc::wifi::kSignalStrength, &kIntegerSignature},
[all …]
Donc_normalizer.cc209 void Normalizer::NormalizeWiFi(base::DictionaryValue* wifi) { in NormalizeWiFi() argument
210 using namespace ::onc::wifi; in NormalizeWiFi()
213 wifi->GetStringWithoutPathExpansion(::onc::wifi::kSecurity, &security); in NormalizeWiFi()
214 RemoveEntryUnless(wifi, kEAP, security == kWEP_8021X || security == kWPA_EAP); in NormalizeWiFi()
215 RemoveEntryUnless(wifi, kPassphrase, in NormalizeWiFi()
/external/chromium_org/chrome/browser/chromeos/options/
Dwifi_config_view.cc584 const NetworkState* wifi = NetworkHandler::Get()->network_state_handler()-> in UpdateErrorLabel() local
586 if (wifi && wifi->connection_state() == shill::kStateFailure) in UpdateErrorLabel()
588 wifi->error(), wifi->path()); in UpdateErrorLabel()
650 const NetworkState* wifi = !service_path_.empty() ? in Login() local
659 const bool share_default = !wifi || !wifi->IsPrivate(); in Login()
707 if (!wifi) { in Login()
888 const NetworkState* wifi = NetworkHandler::Get()->network_state_handler()-> in Init() local
890 if (wifi) { in Init()
891 DCHECK(wifi->type() == shill::kTypeWifi); in Init()
892 if (wifi->security() == shill::kSecurity8021x) in Init()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowWifiManager.java3 import android.net.wifi.ScanResult;
4 import android.net.wifi.WifiConfiguration;
5 import android.net.wifi.WifiInfo;
6 import android.net.wifi.WifiManager;
/external/chromium/chrome/browser/chromeos/status/
Dnetwork_dropdown_button.cc87 const WifiNetwork* wifi = in OnNetworkManagerChanged() local
89 SetIcon(*IconForNetworkStrength(wifi, true)); in OnNetworkManagerChanged()
90 SetText(UTF8ToWide(wifi->name())); in OnNetworkManagerChanged()
Dnetwork_menu.cc108 WifiNetwork* wifi = cros->FindWifiNetworkByPath(service_path); in ConnectToNetworkAt() local
109 if (wifi) { in ConnectToNetworkAt()
112 wifi->SetAutoConnect(auto_connect ? true : false); in ConnectToNetworkAt()
113 if (wifi->connecting_or_connected()) { in ConnectToNetworkAt()
115 owner_->ShowTabbedNetworkSettings(wifi); in ConnectToNetworkAt()
118 if (wifi->IsPassphraseRequired()) { in ConnectToNetworkAt()
120 ShowNetworkConfigView(new NetworkConfigView(wifi)); in ConnectToNetworkAt()
123 cros->ConnectToWifiNetwork(wifi); in ConnectToNetworkAt()
804 const NetworkDevice* wifi = cros->FindWifiDevice(); in InitMenuItems() local
805 if (wifi) { in InitMenuItems()
[all …]
/external/chromium_org/chrome/browser/extensions/api/networking_private/
Dnetworking_private_service_client.h30 namespace wifi {
36 using wifi::WiFiService;
108 NetworkingPrivateServiceClient(wifi::WiFiService* wifi_service,
258 scoped_ptr<wifi::WiFiService> wifi_service_;
DDEPS3 "+components/wifi",
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DWifiInfoTest.java3 import android.net.wifi.WifiInfo;
4 import android.net.wifi.WifiManager;
DWifiManagerTest.java3 import android.net.wifi.ScanResult;
4 import android.net.wifi.WifiConfiguration;
5 import android.net.wifi.WifiInfo;
6 import android.net.wifi.WifiManager;
/external/chromium/chrome/browser/chromeos/login/
Dnetwork_screen_browsertest.cc195 scoped_ptr<WifiNetwork> wifi(new WifiNetwork("wifi")); in IN_PROC_BROWSER_TEST_F() local
197 wifi_networks.push_back(wifi.get()); in IN_PROC_BROWSER_TEST_F()
199 .WillRepeatedly(Return(wifi.get())); in IN_PROC_BROWSER_TEST_F()
277 scoped_ptr<WifiNetwork> wifi(new WifiNetwork("wifi")); in IN_PROC_BROWSER_TEST_F() local
279 .WillOnce(Return(wifi.get())); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/ui/webui/options/chromeos/
Dinternet_options_handler.cc632 const chromeos::WifiNetwork* wifi = in PopulateDictionaryDetails() local
634 if (!wifi) { in PopulateDictionaryDetails()
637 PopulateWifiDetails(wifi, &dictionary); in PopulateDictionaryDetails()
662 const chromeos::WifiNetwork* wifi, in PopulateWifiDetails() argument
664 dictionary->SetString("ssid", wifi->name()); in PopulateWifiDetails()
665 dictionary->SetBoolean("autoConnect", wifi->auto_connect()); in PopulateWifiDetails()
666 dictionary->SetBoolean("encrypted", wifi->encrypted()); in PopulateWifiDetails()
874 chromeos::WifiNetwork* wifi = NULL; in HandleWifiButtonClick() local
884 } else if ((wifi = cros->FindWifiNetworkByPath(service_path))) { in HandleWifiButtonClick()
887 if (wifi->IsPassphraseRequired()) { in HandleWifiButtonClick()
[all …]
/external/chromium_org/chromeos/network/
Dclient_cert_resolver.cc198 const base::DictionaryValue* wifi = NULL; in OncToClientCertConfigurationType() local
200 &wifi); in OncToClientCertConfigurationType()
201 if (wifi) { in OncToClientCertConfigurationType()
203 wifi->GetDictionaryWithoutPathExpansion(wifi::kEAP, &eap); in OncToClientCertConfigurationType()
230 ethernet->GetDictionaryWithoutPathExpansion(wifi::kEAP, &eap); in OncToClientCertConfigurationType()

123