History log of /frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0606a8874d9f50f13227497762ff0f0698415c50 01-Feb-2018 Seigo Nonaka <nona@google.com> Use new minikin::Font constructor

This is 2nd attempt of I4d7af881ed1a6c

Bug: 37567215
Test: minikin_tests
Test: hwui_unit_tests
Test: atest CtsTextTestCases \
CtsWidgetTestCases:EditTextTest \
CtsWidgetTestCases:TextViewFadingEdgeTest \
FrameworksCoreTests:TextViewFallbackLineSpacingTest \
FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest \
CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
Test: bit FrameworksCoreTests:android.text.

Change-Id: I596c67b9453688f998a88031b9724425e2305b20
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
36dadcfc7e063ca60dc22dbb4517832326d26c30 07-Feb-2018 Seigo Nonaka <nona@google.com> Revert "Use new minikin::Font constructor"

This causes a regression for some characters

This reverts commit ab40df9e6979c955f89a06a358385ecec361c9d9.

Bug: 73054061
Change-Id: Icf1f9d2b89b75031aabb47507135e45a21bc5363
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
ab40df9e6979c955f89a06a358385ecec361c9d9 01-Feb-2018 Seigo Nonaka <nona@google.com> Use new minikin::Font constructor

Bug: 37567215
Test: minikin_tests
Test: hwui_unit_tests
Test: atest CtsTextTestCases \
CtsWidgetTestCases:EditTextTest \
CtsWidgetTestCases:TextViewFadingEdgeTest \
FrameworksCoreTests:TextViewFallbackLineSpacingTest \
FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest \
CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
Test: bit FrameworksCoreTests:android.text.

Change-Id: I4d7af881ed1a6cceb79e827d88e050789da46d01
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
99d66f061340f603cf8a859cadb56ae21a11dbda 31-Jan-2018 Seigo Nonaka <nona@google.com> Update Typeface test implementation not to copy minikin::Font

Test: hwui_unit_tests
Bug: 65024629
Change-Id: I974c11ed4d258934fb4f2bec95bede33b2261629
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
c52075ee2bcfde4cf9b091e404517a74ff7cec60 18-Nov-2017 Seigo Nonaka <nona@google.com> Update FontStyle location in minikin.

Bug: 65024629
Test: hwui_unit_tests
Change-Id: I54d701945dfb0792f08a4c26cc1f8b6a6ab9e67e
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
20866c140438a9aca3e1ad09fe646308678e9383 27-Oct-2017 Seigo Nonaka <nona@google.com> Use enum class for FontVariation and update MinikinUtils

This CL contains followins:
- Use enum class FontVariation instead of legacy enum.
- Store FontStyle in MinikinPaint.

Bug: 65024629
Test: minikin_tests
Change-Id: I86bf64fd5d9a8c08eff47db851fa4655da84b1e4
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 03-Nov-2017 John Reck <jreck@google.com> Format the world (or just HWUI)

Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
2763fb726b1dfdf6b9a0685794ca9fa538322776 06-Oct-2017 Ben Wagner <bungeman@google.com> Use own enum instead of SkTypeface::Style.

The current use of SkTypeface::Style and the naming of
Typeface::fSkiaStyle are misleading. Neither is used to actually
interact with Skia (which no longer uses the type in its API). Instead,
this type and field are used to track the values which will be exposed
through the jni layer which match the Android SDK values for the
constants on the android.graphics.Typeface type.

This change allows Skia to hide and eventually remove SkTypeface::Style,
as this is the last known external user. Additionally this allows
Android an easier path when updating the Typeface API in the future.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: Ic820105a5b0d98727586fdc4a9a1c45e8ad40ff3
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
839a186fc3d6a8efb69272ba5e527d5ea94cb4f7 26-Sep-2017 Mike Reed <reed@google.com> use new SkFontMgr API

Test: make

Change-Id: I926b604fac4ad92ddf72bbec2ce937bd1d2aac6e
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
318ca04079bd6242cb6186d9005b9caeee22e845 02-Aug-2017 Seigo Nonaka <nona@google.com> Refactoring: Deprecate Paint.mNativeTypeface.

Bug: 64269689
Test: m checkbuild
Test: bit CtsGraphicsTestCases:*
Test: bit CtsViewTestCases:*
Test: bit CtsTextTestCases:*
Change-Id: Idc9f2b4612741be949204cd06efc41e1738d6587
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp
1f9c461e6a9537f91a6509e73eeb04ee6d5706cf 02-May-2017 Seigo Nonaka <nona@google.com> Fix double bolding

resolveStyle increases minikinStyle's weight value based on Skia's style
value. Since we compute Skia's style based on given weight value, we
should not add extra bold weight to minikinStyle.

This CL also fixes misunderstanding of base weight.
The base weight is only used for computing weight relative to the
weighted alias. Thus, base weight should not be updated except for
createWeightAlias method.

To be clear, this CL changes the function names but keeps the same
semantics as before.

Test: adb shell /data/nativetest/hwui_unit_tests/hwui_unit_tests
Test: am instrument -w -e class android.graphics.cts.TypefaceTest\
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Bug: 37880319

Change-Id: Ied73189b11792fb062da46f45afd2db664e6ecb4
/frameworks/base/libs/hwui/tests/unit/TypefaceTests.cpp