OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:wifiInfo
(Results
1 - 21
of
21
) sorted by null
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
WifiInfoTest.java
3
import android.net.wifi.
WifiInfo
;
21
WifiInfo
wifiInfo
= wifiManager.getConnectionInfo();
22
shadowOf(
wifiInfo
).setMacAddress("mac address");
25
wifiInfo
= wifiManager.getConnectionInfo();
26
assertThat(
wifiInfo
.getMacAddress(), equalTo("mac address"));
/cts/tests/tests/net/src/android/net/wifi/cts/
WifiInfoTest.java
26
import android.net.wifi.
WifiInfo
;
119
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
121
assertNotNull(
wifiInfo
);
122
assertNotNull(
wifiInfo
.toString());
123
SupplicantState.isValidState(
wifiInfo
.getSupplicantState());
124
WifiInfo
.getDetailedStateOf(SupplicantState.DISCONNECTED);
125
String ssid =
wifiInfo
.getSSID();
132
wifiInfo
.getBSSID();
133
wifiInfo
.getIpAddress()
[
all
...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
ConnectivityListener.java
32
import android.net.wifi.
WifiInfo
;
192
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
193
int ip =
wifiInfo
.getIpAddress();
206
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
207
return
wifiInfo
.getMacAddress();
244
// IPv6 address will not be shown like
WifiInfo
internally does.
249
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo()
[
all
...]
ConnectivityStatusIconUriGetter.java
27
import android.net.wifi.
WifiInfo
;
91
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
92
boolean isOpen = isOpenNetwork(mWifiManager,
wifiInfo
);
93
int strength = WifiManager.calculateSignalLevel(
wifiInfo
.getRssi(), 4);
112
private boolean isOpenNetwork(WifiManager wifiMan,
WifiInfo
wifiInfo
) {
114
wifiInfo
.getNetworkId());
WifiConfigurationActivity.java
27
import android.net.wifi.
WifiInfo
;
134
private
WifiInfo
getWifiInfo() {
155
WifiInfo
wifiInfo
= getWifiInfo();
156
if (
wifiInfo
!= null) {
174
int ip =
wifiInfo
.getIpAddress();
181
toInfo(mResources,
wifiInfo
.getMacAddress()));
187
calculateSignalLevel(
wifiInfo
.getRssi(), signalLevels.length);
194
WifiInfo
wifiInfo
= getWifiInfo()
[
all
...]
ConnectivityStatusTextGetter.java
25
import android.net.wifi.
WifiInfo
;
85
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
86
if (
wifiInfo
!= null) {
87
String ssid =
wifiInfo
.getSSID();
89
return
WifiInfo
.removeDoubleQuotes(ssid);
WifiConfigHelper.java
24
import android.net.wifi.
WifiInfo
;
103
WifiInfo
wifiInfo
) {
104
if (scanResult == null ||
wifiInfo
== null) {
107
if (scanResult.SSID == null ||
wifiInfo
.getSSID() == null) {
110
if (scanResult.BSSID == null ||
wifiInfo
.getBSSID() == null) {
113
String wifiInfoSSID =
WifiInfo
.removeDoubleQuotes(
wifiInfo
.getSSID());
114
String wifiInfoBSSID =
wifiInfo
.getBSSID();
116
WifiSecurity wifiInfoSecurity = getCurrentConnectionSecurity(wifiManager,
wifiInfo
);
[
all
...]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
MessageParser.java
200
bundle.putString(EXTRA_PROVISIONING_WIFI_SSID, params.
wifiInfo
.ssid);
201
bundle.putString(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE, params.
wifiInfo
.securityType);
202
bundle.putString(EXTRA_PROVISIONING_WIFI_PASSWORD, params.
wifiInfo
.password);
203
bundle.putString(EXTRA_PROVISIONING_WIFI_PROXY_HOST, params.
wifiInfo
.proxyHost);
204
bundle.putString(EXTRA_PROVISIONING_WIFI_PROXY_BYPASS, params.
wifiInfo
.proxyBypassHosts);
205
bundle.putString(EXTRA_PROVISIONING_WIFI_PAC_URL, params.
wifiInfo
.pacUrl);
206
bundle.putInt(EXTRA_PROVISIONING_WIFI_PROXY_PORT, params.
wifiInfo
.proxyPort);
207
bundle.putBoolean(EXTRA_PROVISIONING_WIFI_HIDDEN, params.
wifiInfo
.hidden);
287
params.
wifiInfo
.ssid = props.getProperty(EXTRA_PROVISIONING_WIFI_SSID);
288
params.
wifiInfo
.securityType = props.getProperty(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE)
[
all
...]
ProvisioningParams.java
47
public static class
WifiInfo
{
79
public
WifiInfo
wifiInfo
= new
WifiInfo
();
166
wifiInfo
.writeToParcel(out);
187
params.
wifiInfo
.readFromParcel(in);
DeviceOwnerPreProvisioningActivity.java
134
&& TextUtils.isEmpty(mParams.
wifiInfo
.ssid)
DeviceOwnerProvisioningService.java
161
mAddWifiNetworkTask = new AddWifiNetworkTask(this, params.
wifiInfo
,
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
AccessPointTest.java
20
import android.net.wifi.
WifiInfo
;
67
WifiInfo
wifiInfo
= Mockito.mock(
WifiInfo
.class);
68
Mockito.when(
wifiInfo
.getNetworkId()).thenReturn(NETWORK_ID);
70
mAccessPoint.update(
wifiInfo
, null);
WifiTrackerTest.java
23
import android.net.wifi.
WifiInfo
;
305
WifiInfo
wifiInfo
= Mockito.mock(
WifiInfo
.class);
306
Mockito.when(
wifiInfo
.getSSID()).thenReturn(TEST_SSIDS[4]);
307
Mockito.when(
wifiInfo
.getNetworkId()).thenReturn(netId);
308
Mockito.when(mWifiManager.getConnectionInfo()).thenReturn(
wifiInfo
);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowWifiManager.java
5
import android.net.wifi.
WifiInfo
;
25
private
WifiInfo
wifiInfo
;
45
public
WifiInfo
getConnectionInfo() {
47
if (
wifiInfo
== null) {
48
wifiInfo
= Robolectric.newInstanceOf(
WifiInfo
.class);
50
return
wifiInfo
;
/packages/apps/Settings/src/com/android/settings/wifi/
WifiStatusTest.java
35
import android.net.wifi.
WifiInfo
;
180
final
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
183
mBSSID.setText(
wifiInfo
.getBSSID());
184
mHiddenSSID.setText(String.valueOf(
wifiInfo
.getHiddenSSID()));
185
int ipAddr =
wifiInfo
.getIpAddress();
193
mLinkSpeed.setText(String.valueOf(
wifiInfo
.getLinkSpeed())+" Mbps");
194
mMACAddr.setText(
wifiInfo
.getMacAddress());
195
mNetworkId.setText(String.valueOf(
wifiInfo
.getNetworkId()));
196
mRSSI.setText(String.valueOf(
wifiInfo
.getRssi()))
[
all
...]
WpsDialog.java
25
import android.net.wifi.
WifiInfo
;
269
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
270
if (
wifiInfo
!= null) {
272
R.string.wifi_wps_connected),
wifiInfo
.getSSID());
AdvancedWifiSettings.java
28
import android.net.wifi.
WifiInfo
;
315
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
318
String macAddress =
wifiInfo
== null ? null :
wifiInfo
.getMacAddress();
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
AddWifiNetworkTask.java
32
import com.android.managedprovisioning.ProvisioningParams.
WifiInfo
;
47
private final
WifiInfo
mWifiInfo;
63
public AddWifiNetworkTask(Context context,
WifiInfo
wifiInfo
, Callback callback) {
66
mWifiInfo =
wifiInfo
;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
NetworkControllerWifiTest.java
6
import android.net.wifi.
WifiInfo
;
128
WifiInfo
wifiInfo
= Mockito.mock(
WifiInfo
.class);
129
Mockito.when(
wifiInfo
.getSSID()).thenReturn(ssid);
132
i.putExtra(WifiManager.EXTRA_WIFI_INFO,
wifiInfo
);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
Status.java
27
import android.net.wifi.
WifiInfo
;
302
WifiInfo
wifiInfo
= mWifiManager.getConnectionInfo();
303
String macAddress =
wifiInfo
== null ? null :
wifiInfo
.getMacAddress();
/cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyManagerTest.java
25
import android.net.wifi.
WifiInfo
;
347
WifiInfo
wifiInfo
= wifiManager.getConnectionInfo();
348
return
wifiInfo
.getMacAddress();
Completed in 1531 milliseconds