OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:connectivityManager
(Results
1 - 14
of
14
) sorted by null
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ConnectivityManagerTest.java
4
import android.net.
ConnectivityManager
;
21
private
ConnectivityManager
connectivityManager
;
27
connectivityManager
= (
ConnectivityManager
) Robolectric.application.getSystemService(Context.CONNECTIVITY_SERVICE);
28
shadowConnectivityManager = shadowOf(
connectivityManager
);
29
shadowOfActiveNetworkInfo = shadowOf(
connectivityManager
.getActiveNetworkInfo());
34
assertNotNull(
connectivityManager
);
35
assertNotNull(
connectivityManager
.getActiveNetworkInfo());
42
assertTrue(
connectivityManager
.getActiveNetworkInfo().isConnectedOrConnecting())
[
all
...]
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DefaultConnectivityMonitor.java
7
import android.net.
ConnectivityManager
;
39
context.registerReceiver(connectivityReceiver, new IntentFilter(
ConnectivityManager
.CONNECTIVITY_ACTION));
53
ConnectivityManager
connectivityManager
=
54
(
ConnectivityManager
) context.getSystemService(Context.CONNECTIVITY_SERVICE);
55
NetworkInfo networkInfo =
connectivityManager
.getActiveNetworkInfo();
/packages/apps/Settings/src/com/android/settings/
SettingsDumpService.java
19
import android.net.
ConnectivityManager
;
77
ConnectivityManager
connectivityManager
= getSystemService(
ConnectivityManager
.class);
80
if (
connectivityManager
.isNetworkSupported(
ConnectivityManager
.TYPE_MOBILE)) {
91
if (
connectivityManager
.isNetworkSupported(
ConnectivityManager
.TYPE_WIFI)) {
94
if (
connectivityManager
.isNetworkSupported(
ConnectivityManager
.TYPE_ETHERNET))
[
all
...]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/
VpnTestHelper.java
24
import android.net.
ConnectivityManager
;
73
ConnectivityManager
connectivityManager
=
74
context.getSystemService(
ConnectivityManager
.class);
82
final
ConnectivityManager
.NetworkCallback callback
83
= new
ConnectivityManager
.NetworkCallback() {
89
connectivityManager
.registerNetworkCallback(request, callback);
101
connectivityManager
.unregisterNetworkCallback(callback);
105
NetworkInfo vpnInfo =
connectivityManager
.getNetworkInfo(
ConnectivityManager
.TYPE_VPN)
[
all
...]
/packages/services/Mms/src/com/android/mms/service/
MmsNetworkManager.java
20
import android.net.
ConnectivityManager
;
33
// Timeout used to call
ConnectivityManager
.requestNetwork
52
private
ConnectivityManager
.NetworkCallback mNetworkCallback;
54
private volatile
ConnectivityManager
mConnectivityManager;
65
private class NetworkRequestCallback extends
ConnectivityManager
.NetworkCallback {
174
final
ConnectivityManager
connectivityManager
= getConnectivityManager();
176
connectivityManager
.requestNetwork(
183
* @param callback the {@link android.net.
ConnectivityManager
.NetworkCallback} to unregister
185
private void releaseRequestLocked(
ConnectivityManager
.NetworkCallback callback)
[
all
...]
/packages/apps/Email/provider_src/com/android/email/provider/
RefreshStatusMonitor.java
9
import android.net.
ConnectivityManager
;
86
final
ConnectivityManager
connectivityManager
=
87
((
ConnectivityManager
) mContext.getSystemService(Context.CONNECTIVITY_SERVICE));
88
final NetworkInfo networkInfo =
connectivityManager
.getActiveNetworkInfo();
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
AttachmentUtils.java
20
import android.net.
ConnectivityManager
;
273
ConnectivityManager
connectivityManager
= (
ConnectivityManager
) context.getSystemService(
275
NetworkInfo info =
connectivityManager
.getActiveNetworkInfo();
279
if (info.getType() !=
ConnectivityManager
.TYPE_MOBILE) {
Utils.java
31
import android.net.
ConnectivityManager
;
[
all
...]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
NetworkMonitorAutoDetect.java
39
import android.net.
ConnectivityManager
;
71
// Defined from
ConnectivityManager
.TYPE_XXX for non-mobile; for mobile, it is
97
/** Queries the
ConnectivityManager
for information about the current connection. */
100
* Note: In some rare Android systems
connectivityManager
is null. We handle that
103
private final
ConnectivityManager
connectivityManager
;
106
connectivityManager
=
107
(
ConnectivityManager
) context.getSystemService(Context.CONNECTIVITY_SERVICE);
113
connectivityManager
= null;
121
if (
connectivityManager
== null)
[
all
...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
PhotoViewFragment.java
26
import android.net.
ConnectivityManager
;
260
new IntentFilter(
ConnectivityManager
.CONNECTIVITY_ACTION));
261
ConnectivityManager
connectivityManager
= (
ConnectivityManager
)
263
NetworkInfo activeNetInfo =
connectivityManager
.getActiveNetworkInfo();
587
ConnectivityManager
connectivityManager
= (
ConnectivityManager
)
589
NetworkInfo activeNetInfo =
connectivityManager
.getActiveNetworkInfo()
[
all
...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
WifiSetupActivity.java
26
import android.net.
ConnectivityManager
;
515
ConnectivityManager
connectivityManager
= (
ConnectivityManager
) getSystemService(
517
NetworkInfo currentConnection =
connectivityManager
.getActiveNetworkInfo();
520
if (currentConnection.getType() ==
ConnectivityManager
.TYPE_WIFI) {
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/
ImapHelper.java
19
import android.net.
ConnectivityManager
;
147
ConnectivityManager
connectivityManager
= (
ConnectivityManager
) mContext.getSystemService(
149
NetworkInfo info =
connectivityManager
.getNetworkInfo(mNetwork);
/frameworks/support/samples/SupportLeanbackShowcase/libs/
picasso-2.5.2.jar
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DevicePolicyManagerService.java
77
import android.net.
ConnectivityManager
;
[
all
...]
Completed in 536 milliseconds