diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 4487142e89070..20ac8817b7b6d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -387,7 +387,6 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable } } }; - private PorterDuffXfermode mSrcMode = new PorterDuffXfermode(PorterDuff.Mode.SRC); private boolean mPulsing; private boolean mScrollable; private View mForcedScroll; @@ -1424,12 +1423,6 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable return Math.min(mMaxLayoutHeight, mCurrentStackHeight); } - @ShadeViewRefactor(RefactorComponent.ADAPTER) - public int getFirstItemMinHeight() { - final ExpandableView firstChild = getFirstChildNotGone(); - return firstChild != null ? firstChild.getMinHeight() : mCollapsedSize; - } - @ShadeViewRefactor(RefactorComponent.ADAPTER) public void setQsContainer(ViewGroup qsContainer) { mQsContainer = qsContainer; @@ -1453,36 +1446,6 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable return false; } - @ShadeViewRefactor(RefactorComponent.COORDINATOR) - public ExpandableView getClosestChildAtRawPosition(float touchX, float touchY) { - getLocationOnScreen(mTempInt2); - float localTouchY = touchY - mTempInt2[1]; - - ExpandableView closestChild = null; - float minDist = Float.MAX_VALUE; - - // find the view closest to the location, accounting for GONE views - final int count = getChildCount(); - for (int childIdx = 0; childIdx < count; childIdx++) { - ExpandableView slidingChild = (ExpandableView) getChildAt(childIdx); - if (slidingChild.getVisibility() == GONE - || slidingChild instanceof StackScrollerDecorView) { - continue; - } - float childTop = slidingChild.getTranslationY(); - float top = childTop + slidingChild.getClipTopAmount(); - float bottom = childTop + slidingChild.getActualHeight() - - slidingChild.getClipBottomAmount(); - - float dist = Math.min(Math.abs(top - localTouchY), Math.abs(bottom - localTouchY)); - if (dist < minDist) { - closestChild = slidingChild; - minDist = dist; - } - } - return closestChild; - } - @ShadeViewRefactor(RefactorComponent.COORDINATOR) private ExpandableView getChildAtPosition(float touchX, float touchY) { return getChildAtPosition( @@ -2182,25 +2145,6 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable return null; } - /** - * @return the child before the given view which has visibility unequal to GONE - */ - @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) - public ExpandableView getViewBeforeView(ExpandableView view) { - ExpandableView previousView = null; - int childCount = getChildCount(); - for (int i = 0; i < childCount; i++) { - View child = getChildAt(i); - if (child == view) { - return previousView; - } - if (child.getVisibility() != View.GONE) { - previousView = (ExpandableView) child; - } - } - return null; - } - /** * @return The first child which has visibility unequal to GONE which is currently below the * given translationY or equal to it.