Skip to content

Commit

Permalink
Speed up a few animations
Browse files Browse the repository at this point in the history
may need tweaking may have speed them up to much
  • Loading branch information
deadman96385 committed Nov 13, 2014
1 parent a33e2c4 commit 4f9c497
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -263,22 +263,22 @@ final class SensorEventListenerImpl implements SensorEventListener {
// the low-pass filter already suppresses most of the noise so we're really just
// looking for quick confirmation that the last few samples are in agreement as to
// the desired orientation.
private static final long PROPOSAL_SETTLE_TIME_NANOS = 40 * NANOS_PER_MS;
private static final long PROPOSAL_SETTLE_TIME_NANOS = 20 * NANOS_PER_MS;

// The minimum amount of time that must have elapsed since the device last exited
// the flat state (time since it was picked up) before the proposed rotation
// can change.
private static final long PROPOSAL_MIN_TIME_SINCE_FLAT_ENDED_NANOS = 500 * NANOS_PER_MS;
private static final long PROPOSAL_MIN_TIME_SINCE_FLAT_ENDED_NANOS = 250 * NANOS_PER_MS;

// The minimum amount of time that must have elapsed since the device stopped
// swinging (time since device appeared to be in the process of being put down
// or put away into a pocket) before the proposed rotation can change.
private static final long PROPOSAL_MIN_TIME_SINCE_SWING_ENDED_NANOS = 300 * NANOS_PER_MS;
private static final long PROPOSAL_MIN_TIME_SINCE_SWING_ENDED_NANOS = 150 * NANOS_PER_MS;

// The minimum amount of time that must have elapsed since the device stopped
// undergoing external acceleration before the proposed rotation can change.
private static final long PROPOSAL_MIN_TIME_SINCE_ACCELERATION_ENDED_NANOS =
500 * NANOS_PER_MS;
250 * NANOS_PER_MS;

// If the tilt angle remains greater than the specified angle for a minimum of
// the specified time, then the device is deemed to be lying flat
Expand Down

0 comments on commit 4f9c497

Please sign in to comment.