OSDN Git Service

Change default cellular activity timeout to 10
authorAdam Lesinski <adamlesinski@google.com>
Tue, 18 Aug 2015 18:47:07 +0000 (11:47 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Tue, 18 Aug 2015 18:47:07 +0000 (11:47 -0700)
LTE radios take 10 seconds to power down, so we should set the
activity timeout to 10 seconds.

Bug:23294704
Change-Id: I7478b77f134b0fe2d82e39acd5c370add12735ca

services/core/java/com/android/server/ConnectivityService.java

index 6e0c37f..4919bed 100644 (file)
@@ -1585,7 +1585,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
                 NetworkCapabilities.TRANSPORT_CELLULAR)) {
             timeout = Settings.Global.getInt(mContext.getContentResolver(),
                                              Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
-                                             5);
+                                             10);
             type = ConnectivityManager.TYPE_MOBILE;
         } else if (networkAgent.networkCapabilities.hasTransport(
                 NetworkCapabilities.TRANSPORT_WIFI)) {