Home
last modified time | relevance | path

Searched refs:getDesiredWidth (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DTextLineJustificationTest.kt66 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrCharacter_Latin()
83 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrCharacter_Japanese()
99 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrWord_Latin()
116 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrWord_Japanese()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DVariableDateView.kt73 return StaticLayout.getDesiredWidth(text, paint) in getDesiredWidthForText()
DSmartReplyView.java550 final float initialLeftTextWidth = Layout.getDesiredWidth(text, 0, initialPosition, paint); in estimateOptimalSqueezedButtonTextWidth()
552 Layout.getDesiredWidth(text, initialPosition, length, paint); in estimateOptimalSqueezedButtonTextWidth()
568 final float newLeftTextWidth = Layout.getDesiredWidth(text, 0, newPosition, paint); in estimateOptimalSqueezedButtonTextWidth()
570 Layout.getDesiredWidth(text, newPosition, length, paint); in estimateOptimalSqueezedButtonTextWidth()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DOtfFontFileParser.java106 int width = (int) Math.ceil(Layout.getDesiredWidth(testTextToDraw, p)); in tryToCreateTypeface()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DTextAnimatorTest.kt46 val width = ceil(Layout.getDesiredWidth(text, 0, text.length, paint)).toInt() in makeLayout()
DTextInterpolatorTest.kt75 val width = ceil(Layout.getDesiredWidth(text, 0, text.length, paint)).toInt() in makeLayout()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java283 lp.desiredWidth = (int) Layout.getDesiredWidth(getText(), 0, getText().length(), in getTextAppropriateLayoutParams()
/frameworks/base/core/java/android/text/
DLayout.java234 public static float getDesiredWidth(CharSequence source, in getDesiredWidth() method in Layout
236 return getDesiredWidth(source, 0, source.length(), paint); in getDesiredWidth()
247 public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) { in getDesiredWidth() method in Layout
248 return getDesiredWidth(source, start, end, paint, TextDirectionHeuristics.FIRSTSTRONG_LTR); in getDesiredWidth()
257 public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint, in getDesiredWidth() method in Layout
/frameworks/base/core/java/android/widget/
DSwitch.java1066 int width = (int) Math.ceil(Layout.getDesiredWidth(transformed, 0, in makeLayout()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/boot/
Dboot-image-profile.txt14659 HSPLandroid/text/Layout;->getDesiredWidth(Ljava/lang/CharSequence;IILandroid/text/TextPaint;)F
14660 HSPLandroid/text/Layout;->getDesiredWidth(Ljava/lang/CharSequence;Landroid/text/TextPaint;)F
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt29684 method public static float getDesiredWidth(java.lang.CharSequence, android.text.TextPaint);
29685 …method public static float getDesiredWidth(java.lang.CharSequence, int, int, android.text.TextPain…
/frameworks/base/config/
Dboot-image-profile.txt14723 HSPLandroid/text/Layout;->getDesiredWidth(Ljava/lang/CharSequence;IILandroid/text/TextPaint;)F
14724 HSPLandroid/text/Layout;->getDesiredWidth(Ljava/lang/CharSequence;Landroid/text/TextPaint;)F
/frameworks/base/core/api/
Dcurrent.txt47731 method public static float getDesiredWidth(CharSequence, android.text.TextPaint);
47732 method public static float getDesiredWidth(CharSequence, int, int, android.text.TextPaint);
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt55520 Landroid/text/Layout;->getDesiredWidth(Ljava/lang/CharSequence;IILandroid/text/TextPaint;Landroid/t…