diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java index ef3ad10..9897098 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java @@ -34,7 +34,7 @@ public class DozeParameters { private static final String TAG = "DozeParameters"; private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG); - private static final int MAX_DURATION = 10 * 1000; + private static final int MAX_DURATION = 60 * 1000; private final Context mContext; @@ -53,9 +53,6 @@ public class DozeParameters { pw.print(" getPulseInDuration(notification): "); pw.println(getPulseInDuration(DozeLog.PULSE_REASON_NOTIFICATION)); pw.print(" getPulseInDuration(pickup): "); pw.println(getPulseInDuration(DozeLog.PULSE_REASON_SENSOR_PICKUP)); pw.print(" getPulseInDuration(intent): "); pw.println(getPulseInDuration(DozeLog.PULSE_REASON_INTENT)); - pw.print(" getPulseInDelay(notification): "); pw.println(getPulseInDelay(DozeLog.PULSE_REASON_NOTIFICATION)); - pw.print(" getPulseInDelay(pickup): "); pw.println(getPulseInDelay(DozeLog.PULSE_REASON_SENSOR_PICKUP)); - pw.print(" getPulseInDelay(intent): "); pw.println(getPulseInDelay(DozeLog.PULSE_REASON_INTENT)); pw.print(" getPulseInVisibleDuration(): "); pw.println(getPulseVisibleDuration()); pw.print(" getPulseOutDuration(): "); pw.println(getPulseOutDuration()); pw.print(" getPulseOnSigMotion(): "); pw.println(getPulseOnSigMotion()); @@ -90,17 +87,6 @@ public class DozeParameters { } } - public int getPulseInDelay(int reason) { - switch(reason) { - case DozeLog.PULSE_REASON_SENSOR_PICKUP: - return getInt("doze.pulse.delay.in.pickup", R.integer.doze_pulse_delay_in_pickup); - case DozeLog.PULSE_REASON_INTENT: - return getInt("doze.pulse.delay.in.intent", R.integer.doze_pulse_delay_in_intent); - default: - return getInt("doze.pulse.delay.in", R.integer.doze_pulse_delay_in); - } - } - public int getPulseVisibleDuration() { return getInt("doze.pulse.duration.visible", R.integer.doze_pulse_duration_visible); } |