summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-03-09 11:07:56 -0800
committerSteve Kondik <shade@chemlab.org>2016-03-10 17:07:05 -0800
commit4718479d82557510c0dc864618af77631c60eb4b (patch)
tree039c928bdee83a8d06d8b39ee36105906b3799d5 /packages/SystemUI/src
parent7447e103b48496fe785fe2cc53491b47687b2dfa (diff)
downloadframeworks_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 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java8
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java8
2 files changed, 0 insertions, 16 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
index f5cdcd1..e5711b8 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
@@ -42,8 +42,6 @@ import com.android.systemui.statusbar.FlingAnimationUtils;
import com.android.systemui.statusbar.StatusBarState;
import com.android.systemui.statusbar.policy.HeadsUpManager;
-import cyanogenmod.power.PerformanceManager;
-
import java.io.FileDescriptor;
import java.io.PrintWriter;
@@ -90,8 +88,6 @@ public abstract class PanelView extends FrameLayout {
private VelocityTrackerInterface mVelocityTracker;
private FlingAnimationUtils mFlingAnimationUtils;
- private final PerformanceManager mPerf;
-
private boolean mUpdateExpandOnLayout;
private View.OnLayoutChangeListener mLayoutChangeListener = new OnLayoutChangeListener() {
@Override
@@ -222,8 +218,6 @@ public abstract class PanelView extends FrameLayout {
mLinearOutSlowInInterpolator =
AnimationUtils.loadInterpolator(context, android.R.interpolator.linear_out_slow_in);
mBounceInterpolator = new BounceInterpolator();
-
- mPerf = PerformanceManager.getInstance(context);
}
protected void loadDimens() {
@@ -695,8 +689,6 @@ public abstract class PanelView extends FrameLayout {
}
}
- mPerf.cpuBoost((int)animator.getDuration() * 1000);
-
animator.addListener(new AnimatorListenerAdapter() {
private boolean mCancelled;
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
index 4ec8b43..2f04b42 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -211,8 +211,6 @@ public class NotificationStackScrollLayout extends ViewGroup
private boolean mDisallowScrollingInThisMotion;
private long mGoToFullShadeDelay;
- private final PerformanceManager mPerf;
-
private ViewTreeObserver.OnPreDrawListener mChildrenUpdater
= new ViewTreeObserver.OnPreDrawListener() {
@Override
@@ -259,8 +257,6 @@ public class NotificationStackScrollLayout extends ViewGroup
mExpandHelper.setEventSource(this);
mExpandHelper.setScrollAdapter(this);
- mPerf = PerformanceManager.getInstance(context);
-
mSwipeHelper = new SwipeHelper(SwipeHelper.X, this, getContext());
mSwipeHelper.setLongPressListener(mLongPressListener);
initView(context);
@@ -847,10 +843,6 @@ public class NotificationStackScrollLayout extends ViewGroup
horizontalSwipeWantsIt = mSwipeHelper.onTouchEvent(ev);
}
- if (expandWantsIt && mIsBeingDragged) {
- mPerf.cpuBoost(200 * 1000);
- }
-
return horizontalSwipeWantsIt || scrollerWantsIt || expandWantsIt || super.onTouchEvent(ev);
}