Enable debugging for DeviceIdle DO NOT MERGE ANYWHERE

Also remove DEBUG-related timeout changes to have consistent behavior.

BUG: 24247417
BUG: 25463669
BUG: 23753686

Change-Id: Icfbb1531173477f2649f7f99e3bef9860e5a9ec2
This commit is contained in:
Joe LaPenna
2015-11-05 11:26:47 -08:00
parent 2c740f1dcf
commit 88c7c3e080
2 changed files with 4 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ public class AnyMotionDetector {
private static final String TAG = "AnyMotionDetector"; private static final String TAG = "AnyMotionDetector";
private static final boolean DEBUG = false; private static final boolean DEBUG = true; // STOPSHIP
/** Stationary status is unknown due to insufficient orientation measurements. */ /** Stationary status is unknown due to insufficient orientation measurements. */
public static final int RESULT_UNKNOWN = -1; public static final int RESULT_UNKNOWN = -1;

View File

@@ -100,7 +100,7 @@ public class DeviceIdleController extends SystemService
implements AnyMotionDetector.DeviceIdleCallback { implements AnyMotionDetector.DeviceIdleCallback {
private static final String TAG = "DeviceIdleController"; private static final String TAG = "DeviceIdleController";
private static final boolean DEBUG = false; private static final boolean DEBUG = true; // STOPSHIP
private static final boolean COMPRESS_TIME = false; private static final boolean COMPRESS_TIME = false;
@@ -555,10 +555,8 @@ public class DeviceIdleController extends SystemService
INACTIVE_TIMEOUT = mParser.getLong(KEY_INACTIVE_TIMEOUT, INACTIVE_TIMEOUT = mParser.getLong(KEY_INACTIVE_TIMEOUT,
!COMPRESS_TIME ? 30 * 60 * 1000L : 3 * 60 * 1000L); !COMPRESS_TIME ? 30 * 60 * 1000L : 3 * 60 * 1000L);
SENSING_TIMEOUT = mParser.getLong(KEY_SENSING_TIMEOUT, SENSING_TIMEOUT = mParser.getLong(KEY_SENSING_TIMEOUT, 4 * 60 * 1000L);
!DEBUG ? 4 * 60 * 1000L : 60 * 1000L); LOCATING_TIMEOUT = mParser.getLong(KEY_LOCATING_TIMEOUT, 30 * 1000L);
LOCATING_TIMEOUT = mParser.getLong(KEY_LOCATING_TIMEOUT,
!DEBUG ? 30 * 1000L : 15 * 1000L);
LOCATION_ACCURACY = mParser.getFloat(KEY_LOCATION_ACCURACY, 20); LOCATION_ACCURACY = mParser.getFloat(KEY_LOCATION_ACCURACY, 20);
MOTION_INACTIVE_TIMEOUT = mParser.getLong(KEY_MOTION_INACTIVE_TIMEOUT, MOTION_INACTIVE_TIMEOUT = mParser.getLong(KEY_MOTION_INACTIVE_TIMEOUT,
!COMPRESS_TIME ? 10 * 60 * 1000L : 60 * 1000L); !COMPRESS_TIME ? 10 * 60 * 1000L : 60 * 1000L);