Loading core/java/android/text/Layout.java +22 −16 Original line number Diff line number Diff line Loading @@ -3906,17 +3906,20 @@ public abstract class Layout { // Getters of parameters that is used for building Layout instance /////////////////////////////////////////////////////////////////////////////////////////////// // TODO(316208691): Revive following removed API docs. // @see Layout.Builder /** * Return the text used for creating this layout. * * @return the text used for creating this layout. * @see Layout.Builder */ @NonNull public final CharSequence getText() { return mText; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder /** * Return the paint used for creating this layout. * Loading @@ -3924,29 +3927,30 @@ public abstract class Layout { * drawing/measuring text. * * @return the paint used for creating this layout. * @see Layout.Builder */ @NonNull public final TextPaint getPaint() { return mPaint; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder /** * Return the width used for creating this layout in pixels. * * @return the width used for creating this layout in pixels. * @see Layout.Builder */ @IntRange(from = 0) public final int getWidth() { return mWidth; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder#setAlignment(Alignment) /** * Returns the alignment used for creating this layout in pixels. * * @return the alignment used for creating this layout. * @see Layout.Builder#setAlignment(Alignment) * @see StaticLayout.Builder#setAlignment(Alignment) */ @NonNull Loading @@ -3967,15 +3971,15 @@ public abstract class Layout { return mTextDir; } // TODO(316208691): Revive following removed API docs. // This is an alias of {@link #getLineSpacingMultiplier}. // @see Layout.Builder#setLineSpacingMultiplier(float) // @see Layout#getLineSpacingMultiplier() /** * Returns the multiplier applied to the line height. * * This is an alias of {@link #getLineSpacingMultiplier}. * * @return the line height multiplier. * @see Layout.Builder#setLineSpacingMultiplier(float) * @see StaticLayout.Builder#setLineSpacing(float, float) * @see Layout#getLineSpacingMultiplier() */ public final float getSpacingMultiplier() { return getLineSpacingMultiplier(); Loading @@ -3994,15 +3998,15 @@ public abstract class Layout { return mSpacingMult; } // TODO(316208691): Revive following removed API docs. // This is an alias of {@link #getLineSpacingAmount()}. // @see Layout.Builder#setLineSpacingAmount(float) // @see Layout#getLineSpacingAmount() /** * Returns the amount added to the line height. * * This is an alias of {@link #getLineSpacingAmount()}. * * @return the line height additional amount. * @see Layout.Builder#setLineSpacingAmount(float) * @see StaticLayout.Builder#setLineSpacing(float, float) * @see Layout#getLineSpacingAmount() */ public final float getSpacingAdd() { return getLineSpacingAmount(); Loading Loading @@ -4033,11 +4037,12 @@ public abstract class Layout { return mIncludePad; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder#setFallbackLineSpacingEnabled(boolean) /** * Return true if the fallback line space is enabled in this Layout. * * @return true if the fallback line space is enabled. Otherwise, returns false. * @see Layout.Builder#setFallbackLineSpacingEnabled(boolean) * @see StaticLayout.Builder#setUseLineSpacingFromFallbacks(boolean) */ // not being final because of already published API. Loading @@ -4045,17 +4050,18 @@ public abstract class Layout { return mFallbackLineSpacing; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder#setEllipsizedWidth(int) // @see Layout.Builder#setEllipsize(TextUtils.TruncateAt) // @see Layout#getEllipsize() /** * Return the width to which this layout is ellipsized. * * If no ellipsize is applied, the same amount of {@link #getWidth} is returned. * * @return the amount of ellipsized width in pixels. * @see Layout.Builder#setEllipsizedWidth(int) * @see StaticLayout.Builder#setEllipsizedWidth(int) * @see Layout.Builder#setEllipsize(TextUtils.TruncateAt) * @see StaticLayout.Builder#setEllipsize(TextUtils.TruncateAt) * @see Layout#getEllipsize() */ @IntRange(from = 0) public int getEllipsizedWidth() { // not being final because of already published API. Loading core/java/android/view/View.java +2 −1 Original line number Diff line number Diff line Loading @@ -32688,6 +32688,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, == PFLAG4_IMPORTANT_FOR_CREDENTIAL_MANAGER); } // TODO(316208691): Revive following removed API docs. // @see EditorInfo#setStylusHandwritingEnabled(boolean) /** * Set whether this view enables automatic handwriting initiation. * Loading @@ -32709,7 +32711,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @see android.view.inputmethod.InputMethodManager#startStylusHandwriting(View) * @param enabled whether auto handwriting initiation is enabled for this view. * @attr ref android.R.styleable#View_autoHandwritingEnabled * @see EditorInfo#setStylusHandwritingEnabled(boolean) */ public void setAutoHandwritingEnabled(boolean enabled) { if (enabled) { graphics/java/android/graphics/text/LineBreakConfig.java +8 −8 Original line number Diff line number Diff line Loading @@ -354,13 +354,13 @@ public final class LineBreakConfig implements Parcelable { return this; } // TODO(316208691): Revive following removed API docs. // Note: different from {@link #merge(LineBreakConfig)} if this function is called with // {@link #LINE_BREAK_STYLE_UNSPECIFIED}, the line break style is reset to // {@link #LINE_BREAK_STYLE_UNSPECIFIED}. /** * Sets the line-break style. * * Note: different from {@link #merge(LineBreakConfig)} if this function is called with * {@link #LINE_BREAK_STYLE_UNSPECIFIED}, the line break style is reset to * {@link #LINE_BREAK_STYLE_UNSPECIFIED}. * * @see <a href="https://unicode.org/reports/tr35/#UnicodeLineBreakStyleIdentifier"> * Unicode Line Break Style Identifier</a> * @see <a href="https://drafts.csswg.org/css-text/#line-break-property"> Loading @@ -374,13 +374,13 @@ public final class LineBreakConfig implements Parcelable { return this; } // TODO(316208691): Revive following removed API docs. // Note: different from {@link #merge(LineBreakConfig)} method, if this function is called // with {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}, the line break style is reset to // {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}. /** * Sets the line-break word style. * * Note: different from {@link #merge(LineBreakConfig)} method, if this function is called * with {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}, the line break style is reset to * {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}. * * @see <a href="https://unicode.org/reports/tr35/#UnicodeLineBreakWordIdentifier"> * Unicode Line Break Word Identifier</a> * @see <a href="https://drafts.csswg.org/css-text/#word-break-property"> Loading Loading
core/java/android/text/Layout.java +22 −16 Original line number Diff line number Diff line Loading @@ -3906,17 +3906,20 @@ public abstract class Layout { // Getters of parameters that is used for building Layout instance /////////////////////////////////////////////////////////////////////////////////////////////// // TODO(316208691): Revive following removed API docs. // @see Layout.Builder /** * Return the text used for creating this layout. * * @return the text used for creating this layout. * @see Layout.Builder */ @NonNull public final CharSequence getText() { return mText; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder /** * Return the paint used for creating this layout. * Loading @@ -3924,29 +3927,30 @@ public abstract class Layout { * drawing/measuring text. * * @return the paint used for creating this layout. * @see Layout.Builder */ @NonNull public final TextPaint getPaint() { return mPaint; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder /** * Return the width used for creating this layout in pixels. * * @return the width used for creating this layout in pixels. * @see Layout.Builder */ @IntRange(from = 0) public final int getWidth() { return mWidth; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder#setAlignment(Alignment) /** * Returns the alignment used for creating this layout in pixels. * * @return the alignment used for creating this layout. * @see Layout.Builder#setAlignment(Alignment) * @see StaticLayout.Builder#setAlignment(Alignment) */ @NonNull Loading @@ -3967,15 +3971,15 @@ public abstract class Layout { return mTextDir; } // TODO(316208691): Revive following removed API docs. // This is an alias of {@link #getLineSpacingMultiplier}. // @see Layout.Builder#setLineSpacingMultiplier(float) // @see Layout#getLineSpacingMultiplier() /** * Returns the multiplier applied to the line height. * * This is an alias of {@link #getLineSpacingMultiplier}. * * @return the line height multiplier. * @see Layout.Builder#setLineSpacingMultiplier(float) * @see StaticLayout.Builder#setLineSpacing(float, float) * @see Layout#getLineSpacingMultiplier() */ public final float getSpacingMultiplier() { return getLineSpacingMultiplier(); Loading @@ -3994,15 +3998,15 @@ public abstract class Layout { return mSpacingMult; } // TODO(316208691): Revive following removed API docs. // This is an alias of {@link #getLineSpacingAmount()}. // @see Layout.Builder#setLineSpacingAmount(float) // @see Layout#getLineSpacingAmount() /** * Returns the amount added to the line height. * * This is an alias of {@link #getLineSpacingAmount()}. * * @return the line height additional amount. * @see Layout.Builder#setLineSpacingAmount(float) * @see StaticLayout.Builder#setLineSpacing(float, float) * @see Layout#getLineSpacingAmount() */ public final float getSpacingAdd() { return getLineSpacingAmount(); Loading Loading @@ -4033,11 +4037,12 @@ public abstract class Layout { return mIncludePad; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder#setFallbackLineSpacingEnabled(boolean) /** * Return true if the fallback line space is enabled in this Layout. * * @return true if the fallback line space is enabled. Otherwise, returns false. * @see Layout.Builder#setFallbackLineSpacingEnabled(boolean) * @see StaticLayout.Builder#setUseLineSpacingFromFallbacks(boolean) */ // not being final because of already published API. Loading @@ -4045,17 +4050,18 @@ public abstract class Layout { return mFallbackLineSpacing; } // TODO(316208691): Revive following removed API docs. // @see Layout.Builder#setEllipsizedWidth(int) // @see Layout.Builder#setEllipsize(TextUtils.TruncateAt) // @see Layout#getEllipsize() /** * Return the width to which this layout is ellipsized. * * If no ellipsize is applied, the same amount of {@link #getWidth} is returned. * * @return the amount of ellipsized width in pixels. * @see Layout.Builder#setEllipsizedWidth(int) * @see StaticLayout.Builder#setEllipsizedWidth(int) * @see Layout.Builder#setEllipsize(TextUtils.TruncateAt) * @see StaticLayout.Builder#setEllipsize(TextUtils.TruncateAt) * @see Layout#getEllipsize() */ @IntRange(from = 0) public int getEllipsizedWidth() { // not being final because of already published API. Loading
core/java/android/view/View.java +2 −1 Original line number Diff line number Diff line Loading @@ -32688,6 +32688,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, == PFLAG4_IMPORTANT_FOR_CREDENTIAL_MANAGER); } // TODO(316208691): Revive following removed API docs. // @see EditorInfo#setStylusHandwritingEnabled(boolean) /** * Set whether this view enables automatic handwriting initiation. * Loading @@ -32709,7 +32711,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @see android.view.inputmethod.InputMethodManager#startStylusHandwriting(View) * @param enabled whether auto handwriting initiation is enabled for this view. * @attr ref android.R.styleable#View_autoHandwritingEnabled * @see EditorInfo#setStylusHandwritingEnabled(boolean) */ public void setAutoHandwritingEnabled(boolean enabled) { if (enabled) {
graphics/java/android/graphics/text/LineBreakConfig.java +8 −8 Original line number Diff line number Diff line Loading @@ -354,13 +354,13 @@ public final class LineBreakConfig implements Parcelable { return this; } // TODO(316208691): Revive following removed API docs. // Note: different from {@link #merge(LineBreakConfig)} if this function is called with // {@link #LINE_BREAK_STYLE_UNSPECIFIED}, the line break style is reset to // {@link #LINE_BREAK_STYLE_UNSPECIFIED}. /** * Sets the line-break style. * * Note: different from {@link #merge(LineBreakConfig)} if this function is called with * {@link #LINE_BREAK_STYLE_UNSPECIFIED}, the line break style is reset to * {@link #LINE_BREAK_STYLE_UNSPECIFIED}. * * @see <a href="https://unicode.org/reports/tr35/#UnicodeLineBreakStyleIdentifier"> * Unicode Line Break Style Identifier</a> * @see <a href="https://drafts.csswg.org/css-text/#line-break-property"> Loading @@ -374,13 +374,13 @@ public final class LineBreakConfig implements Parcelable { return this; } // TODO(316208691): Revive following removed API docs. // Note: different from {@link #merge(LineBreakConfig)} method, if this function is called // with {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}, the line break style is reset to // {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}. /** * Sets the line-break word style. * * Note: different from {@link #merge(LineBreakConfig)} method, if this function is called * with {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}, the line break style is reset to * {@link #LINE_BREAK_WORD_STYLE_UNSPECIFIED}. * * @see <a href="https://unicode.org/reports/tr35/#UnicodeLineBreakWordIdentifier"> * Unicode Line Break Word Identifier</a> * @see <a href="https://drafts.csswg.org/css-text/#word-break-property"> Loading