Add intrange to VirtualNavigationTouchpadConfig getters.
BUG: 262711286 Test: only added annotation Change-Id: I04b71660154488ad292ec4843499e482ae9f5f97
This commit is contained in:
@@ -4893,8 +4893,8 @@ package android.hardware.input {
|
||||
|
||||
public final class VirtualNavigationTouchpadConfig extends android.hardware.input.VirtualInputDeviceConfig implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method public int getHeight();
|
||||
method public int getWidth();
|
||||
method @IntRange(from=1) public int getHeight();
|
||||
method @IntRange(from=1) public int getWidth();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.hardware.input.VirtualNavigationTouchpadConfig> CREATOR;
|
||||
}
|
||||
|
||||
@@ -49,12 +49,12 @@ public final class VirtualNavigationTouchpadConfig extends VirtualInputDeviceCon
|
||||
}
|
||||
|
||||
/** Returns the touchpad height. */
|
||||
public int getHeight() {
|
||||
@IntRange(from = 1) public int getHeight() {
|
||||
return mHeight;
|
||||
}
|
||||
|
||||
/** Returns the touchpad width. */
|
||||
public int getWidth() {
|
||||
@IntRange(from = 1) public int getWidth() {
|
||||
return mWidth;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user