Fix modifier-related 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 "modifier"
Change-Id: Idf3c8d13c63770397e895bc05ba2374c10fb3bd1
This commit is contained in:
Yohei Yukawa
2022-03-08 20:23:17 -08:00
parent f1b6f5c09d
commit dc4679a818
6 changed files with 10 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ final class ButtonDispatcher {
}
};
public ButtonDispatcher(int id) {
ButtonDispatcher(int id) {
mId = id;
}

View File

@@ -82,7 +82,7 @@ final class DeadZone {
}
};
public DeadZone(NavigationBarView view) {
DeadZone(NavigationBarView view) {
mNavigationBarView = view;
onConfigurationChanged(Surface.ROTATION_0);
}

View File

@@ -100,7 +100,7 @@ final class KeyButtonDrawable extends Drawable {
}
};
public KeyButtonDrawable(Drawable d, @ColorInt int lightColor, @ColorInt int darkColor,
KeyButtonDrawable(Drawable d, @ColorInt int lightColor, @ColorInt int darkColor,
boolean horizontalFlip, Color ovalBackgroundColor) {
this(d, new ShadowDrawableState(lightColor, darkColor,
d instanceof AnimatedVectorDrawable, horizontalFlip, ovalBackgroundColor));
@@ -433,8 +433,8 @@ final class KeyButtonDrawable extends Drawable {
final boolean mSupportsAnimation;
final Color mOvalBackgroundColor;
public ShadowDrawableState(@ColorInt int lightColor, @ColorInt int darkColor,
boolean animated, boolean horizontalFlip, Color ovalBackgroundColor) {
ShadowDrawableState(@ColorInt int lightColor, @ColorInt int darkColor, boolean animated,
boolean horizontalFlip, Color ovalBackgroundColor) {
mLightColor = lightColor;
mDarkColor = darkColor;
mSupportsAnimation = animated;

View File

@@ -90,7 +90,7 @@ final class KeyButtonRipple extends Drawable {
private Type mType = Type.ROUNDED_RECT;
public KeyButtonRipple(Context ctx, View targetView, @DimenRes int maxWidthResource) {
KeyButtonRipple(Context ctx, View targetView, @DimenRes int maxWidthResource) {
mMaxWidthResource = maxWidthResource;
mMaxWidth = ctx.getResources().getDimensionPixelSize(maxWidthResource);
mTargetView = targetView;

View File

@@ -48,8 +48,8 @@ import java.util.function.Consumer;
* @hide
*/
public final class NavigationBarView extends FrameLayout {
final static boolean DEBUG = false;
final static String TAG = "NavBarView";
private static final boolean DEBUG = false;
private static final String TAG = "NavBarView";
// Copied from com.android.systemui.animation.Interpolators#FAST_OUT_SLOW_IN
private static final Interpolator FAST_OUT_SLOW_IN = new PathInterpolator(0.4f, 0f, 0.2f, 1f);

View File

@@ -39,7 +39,7 @@ class ReverseLinearLayout extends LinearLayout {
/** If true, the layout is opposite to it's natural reversity from the layout direction */
private boolean mIsAlternativeOrder;
public ReverseLinearLayout(Context context, @Nullable AttributeSet attrs) {
ReverseLinearLayout(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
@@ -128,7 +128,7 @@ class ReverseLinearLayout extends LinearLayout {
public static class ReverseRelativeLayout extends RelativeLayout implements Reversible {
public ReverseRelativeLayout(Context context) {
ReverseRelativeLayout(Context context) {
super(context);
}