Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63fc97c8 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Fix remaining lint erros under a.i.navigationbar

This is a mechanical cleanup CL.  There should be no behavior change.

Bug: 215443343
Test: prebuilts/checkstyle/checkstyle.py -f \
  frameworks/base/core/java/android/inputmethodservice/navigationbar/ \
  | grep ".java:"
Change-Id: Ib9dcddc675bdd540ae93a1eb5b1db00d1dccecb1
parent 0b1522bc
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -92,13 +92,15 @@ final class DeadZone {
    }

    private float getSize(long now) {
        if (mSizeMax == 0)
        if (mSizeMax == 0) {
            return 0;
        }
        long dt = (now - mLastPokeTime);
        if (dt > mHold + mDecay)
        if (dt > mHold + mDecay) {
            return mSizeMin;
        if (dt < mHold)
        } else if (dt < mHold) {
            return mSizeMax;
        }
        return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay);
    }

@@ -177,8 +179,9 @@ final class DeadZone {

    private void poke(MotionEvent event) {
        mLastPokeTime = event.getEventTime();
        if (DEBUG)
        if (DEBUG) {
            Log.v(TAG, "poked! size=" + getSize(mLastPokeTime));
        }
        if (mShouldFlash) mNavigationBarView.postInvalidate();
    }

+2 −2
Original line number Diff line number Diff line
@@ -310,8 +310,8 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
            switch (action) {
                case KeyEvent.ACTION_DOWN:
                    handled = ims.onKeyDown(ev.getKeyCode(), ev);
                    mTracking = handled && ev.getRepeatCount() == 0 &&
                            (ev.getFlags() & KeyEvent.FLAG_START_TRACKING) != 0;
                    mTracking = handled && ev.getRepeatCount() == 0
                            && (ev.getFlags() & KeyEvent.FLAG_START_TRACKING) != 0;
                    break;
                case KeyEvent.ACTION_UP:
                    handled = ims.onKeyUp(ev.getKeyCode(), ev);
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ public final class NavigationBarView extends FrameLayout {
    }

    /**
     * Applies {@param consumer} to each of the nav bar views.
     * Applies {@code consumer} to each of the nav bar views.
     */
    public void forEachView(Consumer<View> consumer) {
        if (mHorizontal != null) {
+20 −20

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.