Program: 192349
Project: 192349
Buggy source:
private void updateConstants(){
synchronized (DeviceIdleController.this) {
    try {
      mParser.setString(Settings.Global.getString(mResolver,mHasWatch ? Settings.Global.DEVICE_IDLE_CONSTANTS_WATCH : Settings.Global.DEVICE_IDLE_CONSTANTS));
    }
 catch (    IllegalArgumentException e) {
      Slog.e(TAG,"String_Node_Str",e);
    }
    LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT=mParser.getLong(KEY_LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT,!COMPRESS_TIME ? 5 * 60 * 1000L : 15 * 1000L);
    LIGHT_IDLE_TIMEOUT=mParser.getLong(KEY_LIGHT_IDLE_TIMEOUT,!COMPRESS_TIME ? 5 * 60 * 1000L : 15 * 1000L);
    LIGHT_IDLE_FACTOR=mParser.getFloat(KEY_LIGHT_IDLE_FACTOR,2f);
    LIGHT_MAX_IDLE_TIMEOUT=mParser.getLong(KEY_LIGHT_MAX_IDLE_TIMEOUT,!COMPRESS_TIME ? 15 * 60 * 1000L : 60 * 1000L);
    LIGHT_IDLE_MAINTENANCE_MIN_BUDGET=mParser.getLong(KEY_LIGHT_IDLE_MAINTENANCE_MIN_BUDGET,!COMPRESS_TIME ? 1 * 60 * 1000L : 15 * 1000L);
    LIGHT_IDLE_MAINTENANCE_MAX_BUDGET=mParser.getLong(KEY_LIGHT_IDLE_MAINTENANCE_MAX_BUDGET,!COMPRESS_TIME ? 5 * 60 * 1000L : 30 * 1000L);
    MIN_LIGHT_MAINTENANCE_TIME=mParser.getLong(KEY_MIN_LIGHT_MAINTENANCE_TIME,!COMPRESS_TIME ? 5 * 1000L : 1 * 1000L);
    MIN_DEEP_MAINTENANCE_TIME=mParser.getLong(KEY_MIN_DEEP_MAINTENANCE_TIME,!COMPRESS_TIME ? 30 * 1000L : 5 * 1000L);
    long inactiveTimeoutDefault=(mHasWatch ? 15 : 30) * 60 * 1000L;
    INACTIVE_TIMEOUT=mParser.getLong(KEY_INACTIVE_TIMEOUT,!COMPRESS_TIME ? inactiveTimeoutDefault : (inactiveTimeoutDefault / 10));
    SENSING_TIMEOUT=mParser.getLong(KEY_SENSING_TIMEOUT,!DEBUG ? 4 * 60 * 1000L : 60 * 1000L);
    LOCATING_TIMEOUT=mParser.getLong(KEY_LOCATING_TIMEOUT,!DEBUG ? 30 * 1000L : 15 * 1000L);
    LOCATION_ACCURACY=mParser.getFloat(KEY_LOCATION_ACCURACY,20);
    MOTION_INACTIVE_TIMEOUT=mParser.getLong(KEY_MOTION_INACTIVE_TIMEOUT,!COMPRESS_TIME ? 10 * 60 * 1000L : 60 * 1000L);
    long idleAfterInactiveTimeout=(mHasWatch ? 15 : 30) * 60 * 1000L;
    IDLE_AFTER_INACTIVE_TIMEOUT=mParser.getLong(KEY_IDLE_AFTER_INACTIVE_TIMEOUT,!COMPRESS_TIME ? idleAfterInactiveTimeout : (idleAfterInactiveTimeout / 10));
    IDLE_PENDING_TIMEOUT=mParser.getLong(KEY_IDLE_PENDING_TIMEOUT,!COMPRESS_TIME ? 5 * 60 * 1000L : 30 * 1000L);
    MAX_IDLE_PENDING_TIMEOUT=mParser.getLong(KEY_MAX_IDLE_PENDING_TIMEOUT,!COMPRESS_TIME ? 10 * 60 * 1000L : 60 * 1000L);
    IDLE_PENDING_FACTOR=mParser.getFloat(KEY_IDLE_PENDING_FACTOR,2f);
    IDLE_TIMEOUT=mParser.getLong(KEY_IDLE_TIMEOUT,!COMPRESS_TIME ? 60 * 60 * 1000L : 6 * 60 * 1000L);
    MAX_IDLE_TIMEOUT=mParser.getLong(KEY_MAX_IDLE_TIMEOUT,!COMPRESS_TIME ? 6 * 60 * 60* 1000L : 30 * 60 * 1000L);
    IDLE_FACTOR=mParser.getFloat(KEY_IDLE_FACTOR,2f);
    MIN_TIME_TO_ALARM=mParser.getLong(KEY_MIN_TIME_TO_ALARM,!COMPRESS_TIME ? 60 * 60 * 1000L : 6 * 60 * 1000L);
    MAX_TEMP_APP_WHITELIST_DURATION=mParser.getLong(KEY_MAX_TEMP_APP_WHITELIST_DURATION,5 * 60 * 1000L);
    MMS_TEMP_APP_WHITELIST_DURATION=mParser.getLong(KEY_MMS_TEMP_APP_WHITELIST_DURATION,60 * 1000L);
    SMS_TEMP_APP_WHITELIST_DURATION=mParser.getLong(KEY_SMS_TEMP_APP_WHITELIST_DURATION,20 * 1000L);
  }
}

Fixed version (ground truth):
private void updateConstants(){
synchronized (DeviceIdleController.this) {
    try {
      mParser.setString(Settings.Global.getString(mResolver,mHasWatch ? Settings.Global.DEVICE_IDLE_CONSTANTS_WATCH : Settings.Global.DEVICE_IDLE_CONSTANTS));
    }
 catch (    IllegalArgumentException e) {
      Slog.e(TAG,"String_Node_Str",e);
    }
    LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT=mParser.getLong(KEY_LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT,!COMPRESS_TIME ? 5 * 60 * 1000L : 15 * 1000L);
    LIGHT_PRE_IDLE_TIMEOUT=mParser.getLong(KEY_LIGHT_PRE_IDLE_TIMEOUT,!COMPRESS_TIME ? 10 * 60 * 1000L : 30 * 1000L);
    LIGHT_IDLE_TIMEOUT=mParser.getLong(KEY_LIGHT_IDLE_TIMEOUT,!COMPRESS_TIME ? 5 * 60 * 1000L : 15 * 1000L);
    LIGHT_IDLE_FACTOR=mParser.getFloat(KEY_LIGHT_IDLE_FACTOR,2f);
    LIGHT_MAX_IDLE_TIMEOUT=mParser.getLong(KEY_LIGHT_MAX_IDLE_TIMEOUT,!COMPRESS_TIME ? 15 * 60 * 1000L : 60 * 1000L);
    LIGHT_IDLE_MAINTENANCE_MIN_BUDGET=mParser.getLong(KEY_LIGHT_IDLE_MAINTENANCE_MIN_BUDGET,!COMPRESS_TIME ? 1 * 60 * 1000L : 15 * 1000L);
    LIGHT_IDLE_MAINTENANCE_MAX_BUDGET=mParser.getLong(KEY_LIGHT_IDLE_MAINTENANCE_MAX_BUDGET,!COMPRESS_TIME ? 5 * 60 * 1000L : 30 * 1000L);
    MIN_LIGHT_MAINTENANCE_TIME=mParser.getLong(KEY_MIN_LIGHT_MAINTENANCE_TIME,!COMPRESS_TIME ? 5 * 1000L : 1 * 1000L);
    MIN_DEEP_MAINTENANCE_TIME=mParser.getLong(KEY_MIN_DEEP_MAINTENANCE_TIME,!COMPRESS_TIME ? 30 * 1000L : 5 * 1000L);
    long inactiveTimeoutDefault=(mHasWatch ? 15 : 30) * 60 * 1000L;
    INACTIVE_TIMEOUT=mParser.getLong(KEY_INACTIVE_TIMEOUT,!COMPRESS_TIME ? inactiveTimeoutDefault : (inactiveTimeoutDefault / 10));
    SENSING_TIMEOUT=mParser.getLong(KEY_SENSING_TIMEOUT,!DEBUG ? 4 * 60 * 1000L : 60 * 1000L);
    LOCATING_TIMEOUT=mParser.getLong(KEY_LOCATING_TIMEOUT,!DEBUG ? 30 * 1000L : 15 * 1000L);
    LOCATION_ACCURACY=mParser.getFloat(KEY_LOCATION_ACCURACY,20);
    MOTION_INACTIVE_TIMEOUT=mParser.getLong(KEY_MOTION_INACTIVE_TIMEOUT,!COMPRESS_TIME ? 10 * 60 * 1000L : 60 * 1000L);
    long idleAfterInactiveTimeout=(mHasWatch ? 15 : 30) * 60 * 1000L;
    IDLE_AFTER_INACTIVE_TIMEOUT=mParser.getLong(KEY_IDLE_AFTER_INACTIVE_TIMEOUT,!COMPRESS_TIME ? idleAfterInactiveTimeout : (idleAfterInactiveTimeout / 10));
    IDLE_PENDING_TIMEOUT=mParser.getLong(KEY_IDLE_PENDING_TIMEOUT,!COMPRESS_TIME ? 5 * 60 * 1000L : 30 * 1000L);
    MAX_IDLE_PENDING_TIMEOUT=mParser.getLong(KEY_MAX_IDLE_PENDING_TIMEOUT,!COMPRESS_TIME ? 10 * 60 * 1000L : 60 * 1000L);
    IDLE_PENDING_FACTOR=mParser.getFloat(KEY_IDLE_PENDING_FACTOR,2f);
    IDLE_TIMEOUT=mParser.getLong(KEY_IDLE_TIMEOUT,!COMPRESS_TIME ? 60 * 60 * 1000L : 6 * 60 * 1000L);
    MAX_IDLE_TIMEOUT=mParser.getLong(KEY_MAX_IDLE_TIMEOUT,!COMPRESS_TIME ? 6 * 60 * 60* 1000L : 30 * 60 * 1000L);
    IDLE_FACTOR=mParser.getFloat(KEY_IDLE_FACTOR,2f);
    MIN_TIME_TO_ALARM=mParser.getLong(KEY_MIN_TIME_TO_ALARM,!COMPRESS_TIME ? 60 * 60 * 1000L : 6 * 60 * 1000L);
    MAX_TEMP_APP_WHITELIST_DURATION=mParser.getLong(KEY_MAX_TEMP_APP_WHITELIST_DURATION,5 * 60 * 1000L);
    MMS_TEMP_APP_WHITELIST_DURATION=mParser.getLong(KEY_MMS_TEMP_APP_WHITELIST_DURATION,60 * 1000L);
    SMS_TEMP_APP_WHITELIST_DURATION=mParser.getLong(KEY_SMS_TEMP_APP_WHITELIST_DURATION,20 * 1000L);
  }
}