OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:netInfo
(Results
1 - 2
of
2
) sorted by null
/cts/tests/tests/net/src/android/net/cts/
NetworkInfoTest.java
40
for (NetworkInfo
netInfo
: ni) {
41
switch (
netInfo
.getType()) {
43
assertNetworkInfo(
netInfo
, MOBILE_TYPE_NAME);
46
assertNetworkInfo(
netInfo
, WIFI_TYPE_NAME);
55
private void assertNetworkInfo(NetworkInfo
netInfo
, String expectedTypeName) {
56
assertEquals(expectedTypeName.compareToIgnoreCase(
netInfo
.getTypeName()), 0);
57
if(
netInfo
.isConnectedOrConnecting()) {
58
assertTrue(
netInfo
.isAvailable());
59
if (State.CONNECTED ==
netInfo
.getState()) {
60
assertTrue(
netInfo
.isConnected())
[
all
...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
ConnectToWifiFragment.java
256
NetworkInfo
netInfo
= connMan.getActiveNetworkInfo();
257
if (
netInfo
== null) {
262
if (DEBUG) Log.d(TAG, "NetworkInfo: " +
netInfo
.toString());
263
if (
netInfo
.isConnected() &&
netInfo
.getType() == ConnectivityManager.TYPE_WIFI) {
Completed in 51 milliseconds