diff options
author | 2024-10-07 17:08:18 +0100 | |
---|---|---|
committer | 2024-10-07 17:08:18 +0100 | |
commit | 24e7ea358fb984bd9d8d60991e483f97a33907d6 (patch) | |
tree | 3b34c04690aa97ec5921eabe652099f6ff5a4da0 | |
parent | 95b75a128b8e29eb3d22f6fc672c713bdf1f4c38 (diff) | |
download | latinime-24e7ea358fb984bd9d8d60991e483f97a33907d6.tar.gz latinime-24e7ea358fb984bd9d8d60991e483f97a33907d6.tar.xz latinime-24e7ea358fb984bd9d8d60991e483f97a33907d6.zip |
Fully qualify @attr reference to android.R field
Currently, Metalava has some special handling of '@attr ref R.<field>`
references to make sure that they are fully qualified, i.e.
`@attr ref android.R.<field>`. That special handling complicates
Metalava and is blocking some flagged API work so will be removed.
Before that can be done, the existing incorrect documentation needs to
be cleaned up.
This change cleans up those cases in this repo.
Bug: 371997321
Test: Run `m offline-sdk-docs` before and after to make sure that
there are no differences.
Flag: DOCS_ONLY
Change-Id: Ic3d959fd8e95ac4524be5feb93feae3a08389370
7 files changed, 99 insertions, 99 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index faa21070e..a42108477 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -46,36 +46,36 @@ import javax.annotation.Nullable; /** * A view that renders a virtual {@link Keyboard}. * - * @attr ref R.styleable#KeyboardView_keyBackground - * @attr ref R.styleable#KeyboardView_functionalKeyBackground - * @attr ref R.styleable#KeyboardView_spacebarBackground - * @attr ref R.styleable#KeyboardView_spacebarIconWidthRatio - * @attr ref R.styleable#Keyboard_Key_keyLabelFlags - * @attr ref R.styleable#KeyboardView_keyHintLetterPadding - * @attr ref R.styleable#KeyboardView_keyPopupHintLetter - * @attr ref R.styleable#KeyboardView_keyPopupHintLetterPadding - * @attr ref R.styleable#KeyboardView_keyShiftedLetterHintPadding - * @attr ref R.styleable#KeyboardView_keyTextShadowRadius - * @attr ref R.styleable#KeyboardView_verticalCorrection - * @attr ref R.styleable#Keyboard_Key_keyTypeface - * @attr ref R.styleable#Keyboard_Key_keyLetterSize - * @attr ref R.styleable#Keyboard_Key_keyLabelSize - * @attr ref R.styleable#Keyboard_Key_keyLargeLetterRatio - * @attr ref R.styleable#Keyboard_Key_keyLargeLabelRatio - * @attr ref R.styleable#Keyboard_Key_keyHintLetterRatio - * @attr ref R.styleable#Keyboard_Key_keyShiftedLetterHintRatio - * @attr ref R.styleable#Keyboard_Key_keyHintLabelRatio - * @attr ref R.styleable#Keyboard_Key_keyLabelOffCenterRatio - * @attr ref R.styleable#Keyboard_Key_keyHintLabelOffCenterRatio - * @attr ref R.styleable#Keyboard_Key_keyPreviewTextRatio - * @attr ref R.styleable#Keyboard_Key_keyTextColor - * @attr ref R.styleable#Keyboard_Key_keyTextColorDisabled - * @attr ref R.styleable#Keyboard_Key_keyTextShadowColor - * @attr ref R.styleable#Keyboard_Key_keyHintLetterColor - * @attr ref R.styleable#Keyboard_Key_keyHintLabelColor - * @attr ref R.styleable#Keyboard_Key_keyShiftedLetterHintInactivatedColor - * @attr ref R.styleable#Keyboard_Key_keyShiftedLetterHintActivatedColor - * @attr ref R.styleable#Keyboard_Key_keyPreviewTextColor + * @attr ref android.R.styleable#KeyboardView_keyBackground + * @attr ref android.R.styleable#KeyboardView_functionalKeyBackground + * @attr ref android.R.styleable#KeyboardView_spacebarBackground + * @attr ref android.R.styleable#KeyboardView_spacebarIconWidthRatio + * @attr ref android.R.styleable#Keyboard_Key_keyLabelFlags + * @attr ref android.R.styleable#KeyboardView_keyHintLetterPadding + * @attr ref android.R.styleable#KeyboardView_keyPopupHintLetter + * @attr ref android.R.styleable#KeyboardView_keyPopupHintLetterPadding + * @attr ref android.R.styleable#KeyboardView_keyShiftedLetterHintPadding + * @attr ref android.R.styleable#KeyboardView_keyTextShadowRadius + * @attr ref android.R.styleable#KeyboardView_verticalCorrection + * @attr ref android.R.styleable#Keyboard_Key_keyTypeface + * @attr ref android.R.styleable#Keyboard_Key_keyLetterSize + * @attr ref android.R.styleable#Keyboard_Key_keyLabelSize + * @attr ref android.R.styleable#Keyboard_Key_keyLargeLetterRatio + * @attr ref android.R.styleable#Keyboard_Key_keyLargeLabelRatio + * @attr ref android.R.styleable#Keyboard_Key_keyHintLetterRatio + * @attr ref android.R.styleable#Keyboard_Key_keyShiftedLetterHintRatio + * @attr ref android.R.styleable#Keyboard_Key_keyHintLabelRatio + * @attr ref android.R.styleable#Keyboard_Key_keyLabelOffCenterRatio + * @attr ref android.R.styleable#Keyboard_Key_keyHintLabelOffCenterRatio + * @attr ref android.R.styleable#Keyboard_Key_keyPreviewTextRatio + * @attr ref android.R.styleable#Keyboard_Key_keyTextColor + * @attr ref android.R.styleable#Keyboard_Key_keyTextColorDisabled + * @attr ref android.R.styleable#Keyboard_Key_keyTextShadowColor + * @attr ref android.R.styleable#Keyboard_Key_keyHintLetterColor + * @attr ref android.R.styleable#Keyboard_Key_keyHintLabelColor + * @attr ref android.R.styleable#Keyboard_Key_keyShiftedLetterHintInactivatedColor + * @attr ref android.R.styleable#Keyboard_Key_keyShiftedLetterHintActivatedColor + * @attr ref android.R.styleable#Keyboard_Key_keyPreviewTextColor */ public class KeyboardView extends View { // XML attributes diff --git a/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java b/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java index 00d4fa236..fc8744ec6 100644 --- a/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java @@ -69,45 +69,45 @@ import javax.annotation.Nullable; /** * A view that is responsible for detecting key presses and touch movements. * - * @attr ref R.styleable#MainKeyboardView_languageOnSpacebarTextRatio - * @attr ref R.styleable#MainKeyboardView_languageOnSpacebarTextColor - * @attr ref R.styleable#MainKeyboardView_languageOnSpacebarTextShadowRadius - * @attr ref R.styleable#MainKeyboardView_languageOnSpacebarTextShadowColor - * @attr ref R.styleable#MainKeyboardView_languageOnSpacebarFinalAlpha - * @attr ref R.styleable#MainKeyboardView_languageOnSpacebarFadeoutAnimator - * @attr ref R.styleable#MainKeyboardView_altCodeKeyWhileTypingFadeoutAnimator - * @attr ref R.styleable#MainKeyboardView_altCodeKeyWhileTypingFadeinAnimator - * @attr ref R.styleable#MainKeyboardView_keyHysteresisDistance - * @attr ref R.styleable#MainKeyboardView_touchNoiseThresholdTime - * @attr ref R.styleable#MainKeyboardView_touchNoiseThresholdDistance - * @attr ref R.styleable#MainKeyboardView_keySelectionByDraggingFinger - * @attr ref R.styleable#MainKeyboardView_keyRepeatStartTimeout - * @attr ref R.styleable#MainKeyboardView_keyRepeatInterval - * @attr ref R.styleable#MainKeyboardView_longPressKeyTimeout - * @attr ref R.styleable#MainKeyboardView_longPressShiftKeyTimeout - * @attr ref R.styleable#MainKeyboardView_ignoreAltCodeKeyTimeout - * @attr ref R.styleable#MainKeyboardView_keyPreviewLayout - * @attr ref R.styleable#MainKeyboardView_keyPreviewOffset - * @attr ref R.styleable#MainKeyboardView_keyPreviewHeight - * @attr ref R.styleable#MainKeyboardView_keyPreviewLingerTimeout - * @attr ref R.styleable#MainKeyboardView_keyPreviewShowUpAnimator - * @attr ref R.styleable#MainKeyboardView_keyPreviewDismissAnimator - * @attr ref R.styleable#MainKeyboardView_moreKeysKeyboardLayout - * @attr ref R.styleable#MainKeyboardView_moreKeysKeyboardForActionLayout - * @attr ref R.styleable#MainKeyboardView_backgroundDimAlpha - * @attr ref R.styleable#MainKeyboardView_showMoreKeysKeyboardAtTouchPoint - * @attr ref R.styleable#MainKeyboardView_gestureFloatingPreviewTextLingerTimeout - * @attr ref R.styleable#MainKeyboardView_gestureStaticTimeThresholdAfterFastTyping - * @attr ref R.styleable#MainKeyboardView_gestureDetectFastMoveSpeedThreshold - * @attr ref R.styleable#MainKeyboardView_gestureDynamicThresholdDecayDuration - * @attr ref R.styleable#MainKeyboardView_gestureDynamicTimeThresholdFrom - * @attr ref R.styleable#MainKeyboardView_gestureDynamicTimeThresholdTo - * @attr ref R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdFrom - * @attr ref R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdTo - * @attr ref R.styleable#MainKeyboardView_gestureSamplingMinimumDistance - * @attr ref R.styleable#MainKeyboardView_gestureRecognitionMinimumTime - * @attr ref R.styleable#MainKeyboardView_gestureRecognitionSpeedThreshold - * @attr ref R.styleable#MainKeyboardView_suppressKeyPreviewAfterBatchInputDuration + * @attr ref android.R.styleable#MainKeyboardView_languageOnSpacebarTextRatio + * @attr ref android.R.styleable#MainKeyboardView_languageOnSpacebarTextColor + * @attr ref android.R.styleable#MainKeyboardView_languageOnSpacebarTextShadowRadius + * @attr ref android.R.styleable#MainKeyboardView_languageOnSpacebarTextShadowColor + * @attr ref android.R.styleable#MainKeyboardView_languageOnSpacebarFinalAlpha + * @attr ref android.R.styleable#MainKeyboardView_languageOnSpacebarFadeoutAnimator + * @attr ref android.R.styleable#MainKeyboardView_altCodeKeyWhileTypingFadeoutAnimator + * @attr ref android.R.styleable#MainKeyboardView_altCodeKeyWhileTypingFadeinAnimator + * @attr ref android.R.styleable#MainKeyboardView_keyHysteresisDistance + * @attr ref android.R.styleable#MainKeyboardView_touchNoiseThresholdTime + * @attr ref android.R.styleable#MainKeyboardView_touchNoiseThresholdDistance + * @attr ref android.R.styleable#MainKeyboardView_keySelectionByDraggingFinger + * @attr ref android.R.styleable#MainKeyboardView_keyRepeatStartTimeout + * @attr ref android.R.styleable#MainKeyboardView_keyRepeatInterval + * @attr ref android.R.styleable#MainKeyboardView_longPressKeyTimeout + * @attr ref android.R.styleable#MainKeyboardView_longPressShiftKeyTimeout + * @attr ref android.R.styleable#MainKeyboardView_ignoreAltCodeKeyTimeout + * @attr ref android.R.styleable#MainKeyboardView_keyPreviewLayout + * @attr ref android.R.styleable#MainKeyboardView_keyPreviewOffset + * @attr ref android.R.styleable#MainKeyboardView_keyPreviewHeight + * @attr ref android.R.styleable#MainKeyboardView_keyPreviewLingerTimeout + * @attr ref android.R.styleable#MainKeyboardView_keyPreviewShowUpAnimator + * @attr ref android.R.styleable#MainKeyboardView_keyPreviewDismissAnimator + * @attr ref android.R.styleable#MainKeyboardView_moreKeysKeyboardLayout + * @attr ref android.R.styleable#MainKeyboardView_moreKeysKeyboardForActionLayout + * @attr ref android.R.styleable#MainKeyboardView_backgroundDimAlpha + * @attr ref android.R.styleable#MainKeyboardView_showMoreKeysKeyboardAtTouchPoint + * @attr ref android.R.styleable#MainKeyboardView_gestureFloatingPreviewTextLingerTimeout + * @attr ref android.R.styleable#MainKeyboardView_gestureStaticTimeThresholdAfterFastTyping + * @attr ref android.R.styleable#MainKeyboardView_gestureDetectFastMoveSpeedThreshold + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicThresholdDecayDuration + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicTimeThresholdFrom + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicTimeThresholdTo + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdFrom + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdTo + * @attr ref android.R.styleable#MainKeyboardView_gestureSamplingMinimumDistance + * @attr ref android.R.styleable#MainKeyboardView_gestureRecognitionMinimumTime + * @attr ref android.R.styleable#MainKeyboardView_gestureRecognitionSpeedThreshold + * @attr ref android.R.styleable#MainKeyboardView_suppressKeyPreviewAfterBatchInputDuration */ public final class MainKeyboardView extends KeyboardView implements DrawingProxy, MoreKeysPanel.Controller { diff --git a/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingTextDrawingPreview.java b/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingTextDrawingPreview.java index 5443c2a8c..cb50b76ae 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingTextDrawingPreview.java +++ b/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingTextDrawingPreview.java @@ -35,13 +35,13 @@ import javax.annotation.Nonnull; * The class for single gesture preview text. The class for multiple gesture preview text will be * derived from it. * - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewTextSize - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewTextColor - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewTextOffset - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewColor - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewHorizontalPadding - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewVerticalPadding - * @attr ref R.styleable#KeyboardView_gestureFloatingPreviewRoundRadius + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewTextSize + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewTextColor + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewTextOffset + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewColor + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewHorizontalPadding + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewVerticalPadding + * @attr ref android.R.styleable#KeyboardView_gestureFloatingPreviewRoundRadius */ public class GestureFloatingTextDrawingPreview extends AbstractDrawingPreview { protected static final class GesturePreviewTextParams { diff --git a/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeDrawingParams.java b/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeDrawingParams.java index 478639d2d..eeba67892 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeDrawingParams.java +++ b/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeDrawingParams.java @@ -23,10 +23,10 @@ import com.android.inputmethod.latin.R; /** * This class holds parameters to control how a gesture stroke is sampled and drawn on the screen. * - * @attr ref R.styleable#MainKeyboardView_gestureTrailMinSamplingDistance - * @attr ref R.styleable#MainKeyboardView_gestureTrailMaxInterpolationAngularThreshold - * @attr ref R.styleable#MainKeyboardView_gestureTrailMaxInterpolationDistanceThreshold - * @attr ref R.styleable#MainKeyboardView_gestureTrailMaxInterpolationSegments + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailMinSamplingDistance + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailMaxInterpolationAngularThreshold + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailMaxInterpolationDistanceThreshold + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailMaxInterpolationSegments */ public final class GestureStrokeDrawingParams { public final double mMinSamplingDistance; // in pixel diff --git a/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeRecognitionParams.java b/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeRecognitionParams.java index 07b14514c..e98729d43 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeRecognitionParams.java +++ b/java/src/com/android/inputmethod/keyboard/internal/GestureStrokeRecognitionParams.java @@ -25,16 +25,16 @@ import com.android.inputmethod.latin.utils.ResourceUtils; * This class holds parameters to control how a gesture stroke is sampled and recognized. * This class also has parameters to distinguish gesture input events from fast typing events. * - * @attr ref R.styleable#MainKeyboardView_gestureStaticTimeThresholdAfterFastTyping - * @attr ref R.styleable#MainKeyboardView_gestureDetectFastMoveSpeedThreshold - * @attr ref R.styleable#MainKeyboardView_gestureDynamicThresholdDecayDuration - * @attr ref R.styleable#MainKeyboardView_gestureDynamicTimeThresholdFrom - * @attr ref R.styleable#MainKeyboardView_gestureDynamicTimeThresholdTo - * @attr ref R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdFrom - * @attr ref R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdTo - * @attr ref R.styleable#MainKeyboardView_gestureSamplingMinimumDistance - * @attr ref R.styleable#MainKeyboardView_gestureRecognitionMinimumTime - * @attr ref R.styleable#MainKeyboardView_gestureRecognitionSpeedThreshold + * @attr ref android.R.styleable#MainKeyboardView_gestureStaticTimeThresholdAfterFastTyping + * @attr ref android.R.styleable#MainKeyboardView_gestureDetectFastMoveSpeedThreshold + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicThresholdDecayDuration + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicTimeThresholdFrom + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicTimeThresholdTo + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdFrom + * @attr ref android.R.styleable#MainKeyboardView_gestureDynamicDistanceThresholdTo + * @attr ref android.R.styleable#MainKeyboardView_gestureSamplingMinimumDistance + * @attr ref android.R.styleable#MainKeyboardView_gestureRecognitionMinimumTime + * @attr ref android.R.styleable#MainKeyboardView_gestureRecognitionSpeedThreshold */ public final class GestureStrokeRecognitionParams { // Static threshold for gesture after fast typing diff --git a/java/src/com/android/inputmethod/keyboard/internal/GestureTrailDrawingParams.java b/java/src/com/android/inputmethod/keyboard/internal/GestureTrailDrawingParams.java index 088f03aa6..074862a70 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/GestureTrailDrawingParams.java +++ b/java/src/com/android/inputmethod/keyboard/internal/GestureTrailDrawingParams.java @@ -27,11 +27,11 @@ import com.android.inputmethod.latin.R; * sampled and interpolated. This class controls how those gesture strokes are displayed as a * gesture trail and animated on the screen. * - * @attr ref R.styleable#MainKeyboardView_gestureTrailFadeoutStartDelay - * @attr ref R.styleable#MainKeyboardView_gestureTrailFadeoutDuration - * @attr ref R.styleable#MainKeyboardView_gestureTrailUpdateInterval - * @attr ref R.styleable#MainKeyboardView_gestureTrailColor - * @attr ref R.styleable#MainKeyboardView_gestureTrailWidth + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailFadeoutStartDelay + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailFadeoutDuration + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailUpdateInterval + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailColor + * @attr ref android.R.styleable#MainKeyboardView_gestureTrailWidth */ final class GestureTrailDrawingParams { private static final int FADEOUT_START_DELAY_FOR_DEBUG = 2000; // millisecond diff --git a/java/src/com/android/inputmethod/keyboard/internal/SlidingKeyInputDrawingPreview.java b/java/src/com/android/inputmethod/keyboard/internal/SlidingKeyInputDrawingPreview.java index 73a6f9516..6837f0fcb 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/SlidingKeyInputDrawingPreview.java +++ b/java/src/com/android/inputmethod/keyboard/internal/SlidingKeyInputDrawingPreview.java @@ -28,10 +28,10 @@ import com.android.inputmethod.latin.common.CoordinateUtils; /** * Draw rubber band preview graphics during sliding key input. * - * @attr ref R.styleable#MainKeyboardView_slidingKeyInputPreviewColor - * @attr ref R.styleable#MainKeyboardView_slidingKeyInputPreviewWidth - * @attr ref R.styleable#MainKeyboardView_slidingKeyInputPreviewBodyRatio - * @attr ref R.styleable#MainKeyboardView_slidingKeyInputPreviewShadowRatio + * @attr ref android.R.styleable#MainKeyboardView_slidingKeyInputPreviewColor + * @attr ref android.R.styleable#MainKeyboardView_slidingKeyInputPreviewWidth + * @attr ref android.R.styleable#MainKeyboardView_slidingKeyInputPreviewBodyRatio + * @attr ref android.R.styleable#MainKeyboardView_slidingKeyInputPreviewShadowRatio */ public final class SlidingKeyInputDrawingPreview extends AbstractDrawingPreview { private final float mPreviewBodyRadius; |