Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java

Issue 110963003: Fixing all Java import ordering issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net; 5 package org.chromium.net;
6 6
7 import android.content.BroadcastReceiver; 7 import android.content.BroadcastReceiver;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.IntentFilter; 10 import android.content.IntentFilter;
11 import android.net.ConnectivityManager; 11 import android.net.ConnectivityManager;
12 import android.net.NetworkInfo;
13 import android.telephony.TelephonyManager; 12 import android.telephony.TelephonyManager;
14 import android.util.Log; 13 import android.util.Log;
15 14
16 import org.chromium.base.ActivityStatus; 15 import org.chromium.base.ActivityStatus;
17 16
18 /** 17 /**
19 * Used by the NetworkChangeNotifier to listens to platform changes in connectiv ity. 18 * Used by the NetworkChangeNotifier to listens to platform changes in connectiv ity.
20 * Note that use of this class requires that the app have the platform 19 * Note that use of this class requires that the app have the platform
21 * ACCESS_NETWORK_STATE permission. 20 * ACCESS_NETWORK_STATE permission.
22 */ 21 */
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 Log.d(TAG, "Network connectivity changed, type is: " + mConnectionType); 186 Log.d(TAG, "Network connectivity changed, type is: " + mConnectionType);
188 mObserver.onConnectionTypeChanged(newConnectionType); 187 mObserver.onConnectionTypeChanged(newConnectionType);
189 } 188 }
190 189
191 private static class NetworkConnectivityIntentFilter extends IntentFilter { 190 private static class NetworkConnectivityIntentFilter extends IntentFilter {
192 NetworkConnectivityIntentFilter() { 191 NetworkConnectivityIntentFilter() {
193 addAction(ConnectivityManager.CONNECTIVITY_ACTION); 192 addAction(ConnectivityManager.CONNECTIVITY_ACTION);
194 } 193 }
195 } 194 }
196 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698