diff options
| author | Steve Kondik <steve@cyngn.com> | 2016-03-09 11:07:56 -0800 |
|---|---|---|
| committer | Steve Kondik <shade@chemlab.org> | 2016-03-10 17:07:05 -0800 |
| commit | 4718479d82557510c0dc864618af77631c60eb4b (patch) | |
| tree | 039c928bdee83a8d06d8b39ee36105906b3799d5 /core/java/android/widget | |
| parent | 7447e103b48496fe785fe2cc53491b47687b2dfa (diff) | |
| download | frameworks_base-4718479d82557510c0dc864618af77631c60eb4b.zip frameworks_base-4718479d82557510c0dc864618af77631c60eb4b.tar.gz frameworks_base-4718479d82557510c0dc864618af77631c60eb4b.tar.bz2 | |
perf: Remove scroll / fling boosting
* This is being done by SystemGesturesPointerEventListener now.
* PowerHAL will need an update
Change-Id: I6b8e8181b5858fa96f520e656e67553cdbb9ce22
Diffstat (limited to 'core/java/android/widget')
| -rw-r--r-- | core/java/android/widget/OverScroller.java | 5 | ||||
| -rw-r--r-- | core/java/android/widget/Scroller.java | 7 |
2 files changed, 0 insertions, 12 deletions
diff --git a/core/java/android/widget/OverScroller.java b/core/java/android/widget/OverScroller.java index 9130d9a..50569d7 100644 --- a/core/java/android/widget/OverScroller.java +++ b/core/java/android/widget/OverScroller.java @@ -18,7 +18,6 @@ package android.widget; import android.content.Context; import android.hardware.SensorManager; -import android.os.PowerManager; import android.util.Log; import android.view.ViewConfiguration; import android.view.animation.AnimationUtils; @@ -600,8 +599,6 @@ public class OverScroller { private static final int CUBIC = 1; private static final int BALLISTIC = 2; - private final PowerManager mPm; - static { float x_min = 0.0f; float y_min = 0.0f; @@ -646,7 +643,6 @@ public class OverScroller { * 39.37f // inch/meter * ppi * 0.84f; // look and feel tuning - mPm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); } void updateScroll(float q) { @@ -764,7 +760,6 @@ public class OverScroller { if (velocity != 0) { mDuration = mSplineDuration = getSplineFlingDuration(velocity); totalDistance = getSplineFlingDistance(velocity); - mPm.cpuBoost(mDuration * 1000); } mSplineDistance = (int) (totalDistance * Math.signum(velocity)); diff --git a/core/java/android/widget/Scroller.java b/core/java/android/widget/Scroller.java index a968eae..357c9c3 100644 --- a/core/java/android/widget/Scroller.java +++ b/core/java/android/widget/Scroller.java @@ -19,7 +19,6 @@ package android.widget; import android.content.Context; import android.hardware.SensorManager; import android.os.Build; -import android.os.PowerManager; import android.view.ViewConfiguration; import android.view.animation.AnimationUtils; import android.view.animation.Interpolator; @@ -109,8 +108,6 @@ public class Scroller { private float mDeceleration; private final float mPpi; - private final PowerManager mPm; - // A context-specific coefficient adjusted to physical values. private float mPhysicalCoeff; @@ -181,8 +178,6 @@ public class Scroller { mFlywheel = flywheel; mPhysicalCoeff = computeDeceleration(0.84f); // look and feel tuning - - mPm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); } /** @@ -400,8 +395,6 @@ public class Scroller { mDeltaX = dx; mDeltaY = dy; mDurationReciprocal = 1.0f / (float) mDuration; - - mPm.cpuBoost(duration * 1000); } /** |
