public final boolean dispatchNestedScroll( int paramInt1, int paramInt2, int paramInt3, int paramInt4, int[] paramArrayOfInt) { if ((this.mIsNestedScrollingEnabled) && (this.mNestedScrollingParent != null)) { if ((paramInt1 != 0) || (paramInt2 != 0) || (paramInt3 != 0) || (paramInt4 != 0)) { int i = 0; int j = 0; if (paramArrayOfInt != null) { this.mView.getLocationInWindow(paramArrayOfInt); i = paramArrayOfInt[0]; j = paramArrayOfInt[1]; } ViewParentCompat.onNestedScroll( this.mNestedScrollingParent, this.mView, paramInt1, paramInt2, paramInt3, paramInt4); if (paramArrayOfInt != null) { this.mView.getLocationInWindow(paramArrayOfInt); paramArrayOfInt[0] -= i; paramArrayOfInt[1] -= j; } return true; } if (paramArrayOfInt != null) { paramArrayOfInt[0] = 0; paramArrayOfInt[1] = 0; } } return false; }
public final boolean dispatchNestedPreFling(float paramFloat1, float paramFloat2) { if ((this.mIsNestedScrollingEnabled) && (this.mNestedScrollingParent != null)) { return ViewParentCompat.onNestedPreFling( this.mNestedScrollingParent, this.mView, paramFloat1, paramFloat2); } return false; }
public boolean sendEventForVirtualView(int i, int j) { android.view.ViewParent viewparent; if (i != 0x80000000 && mManager.isEnabled()) { if ((viewparent = mView.getParent()) != null) { AccessibilityEvent accessibilityevent = createEvent(i, j); return ViewParentCompat.requestSendAccessibilityEvent( viewparent, mView, accessibilityevent); } } return false; }
public final boolean startNestedScroll(int paramInt) { if (hasNestedScrollingParent()) { return true; } if (this.mIsNestedScrollingEnabled) { ViewParent localViewParent = this.mView.getParent(); View localView = this.mView; while (localViewParent != null) { if (ViewParentCompat.onStartNestedScroll( localViewParent, localView, this.mView, paramInt)) { this.mNestedScrollingParent = localViewParent; ViewParentCompat.onNestedScrollAccepted(localViewParent, localView, this.mView, paramInt); return true; } if ((localViewParent instanceof View)) { localView = (View) localViewParent; } localViewParent = localViewParent.getParent(); } } return false; }
public final boolean dispatchNestedPreScroll( int paramInt1, int paramInt2, int[] paramArrayOfInt1, int[] paramArrayOfInt2) { boolean bool1 = this.mIsNestedScrollingEnabled; boolean bool2 = false; if (bool1) { ViewParent localViewParent = this.mNestedScrollingParent; bool2 = false; if (localViewParent != null) { if ((paramInt1 == 0) && (paramInt2 == 0)) { break label174; } int i = 0; int j = 0; if (paramArrayOfInt2 != null) { this.mView.getLocationInWindow(paramArrayOfInt2); i = paramArrayOfInt2[0]; j = paramArrayOfInt2[1]; } if (paramArrayOfInt1 == null) { if (this.mTempNestedScrollConsumed == null) { this.mTempNestedScrollConsumed = new int[2]; } paramArrayOfInt1 = this.mTempNestedScrollConsumed; } paramArrayOfInt1[0] = 0; paramArrayOfInt1[1] = 0; ViewParentCompat.onNestedPreScroll( this.mNestedScrollingParent, this.mView, paramInt1, paramInt2, paramArrayOfInt1); if (paramArrayOfInt2 != null) { this.mView.getLocationInWindow(paramArrayOfInt2); paramArrayOfInt2[0] -= i; paramArrayOfInt2[1] -= j; } if (paramArrayOfInt1[0] == 0) { int k = paramArrayOfInt1[1]; bool2 = false; if (k == 0) {} } else { bool2 = true; } } } label174: do { return bool2; bool2 = false; } while (paramArrayOfInt2 == null); paramArrayOfInt2[0] = 0; paramArrayOfInt2[1] = 0; return false; }
public final void stopNestedScroll() { if (this.mNestedScrollingParent != null) { ViewParentCompat.onStopNestedScroll(this.mNestedScrollingParent, this.mView); this.mNestedScrollingParent = null; } }