- 14 3月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
To share the calculated coverage information across the processes, make SparseBitSet serializable. Bug: 34042446 Test: minikin_tests passes Change-Id: I0463138adcf234739bb3ce1cdadf382021921f3e
-
- 07 3月, 2017 1 次提交
-
-
由 Roozbeh Pournader 提交于
With this change, different languages can have a different minimum length for suffix and prefixes when hyphenating. Previously, the defaults used for English, 2 and 3, were used for every language. Bug: 35712376 Test: Minikin unit tests were updated and the pass Change-Id: Iffaf11c6b208c57d28d45b17246e177572dc1210
-
- 03 3月, 2017 1 次提交
-
-
由 Roozbeh Pournader 提交于
This adds better support for Arabic script languages, Armenian, Catalan, Hebrew, Kannada, Malayalam, Polish, Tamil, and Telugu by adding various hyphenation types and edits appropriate for the locales. For Arabic script languages, soft hyphens act transparently with regard to joining: If a line is broken at a soft hyphen where the two characters around the soft hyphen were joining each other before, they will continue to appear joining if the line is broken at the soft hyphen and a hyphen glyph is inserted. This is needed for Central Asian languages such as Uighur. For Armenian, U+058A ARMENIAN HYPHEN is used for line breaks caused by either automatic hyphenation or soft hyphens. For Catalan, nonstandard line breaks are implemented for "l·l", which hyphenates as "l-/l". For Polish, when there is a line break at a hyphen, the hyphen is repeated at the next line. For the South Indic languages, when breaks happen due to soft breaks or automatic hyphenation, no visible hyphen is inserted, although a penalty is added. For Hebrew, support for using U+05BE HEBREW PUNCTUATION MAQAF has been implemented, but it's turned off pending confirmation of desirability. Also, hard hyphens, which previously had no penalty added for breaking the line after them, now have the same penalty as an automatic or soft break, with the difference that no hyphen is inserted when they break. Finally, some bugs have been fixed with hyphenating multiscript and multi-font words. Bug: 19950445 Bug: 19955011 Bug: 25623243 Bug: 26154469 Bug: 26154471 Bug: 33387871 Bug: 33560754 Bug: 33752592 Bug: 33754204 Test: Unit tests added, plus thorough manual testing Change-Id: Iaccf776ce8d1d434ee8b1c534ff3659d80fdc338
-
- 24 2月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
Let's use shared_ptr since manual ref counting can be a bug-prone and using the global mutex inside destructor is not useful for some time. To remove raw pointer manipulation, needed to change Layout constructors. Layout is no longer copyable and need to pass FontCollection to constructor. Bug: 28119474 Test: minikin_tests passed Test: hwui_unit_tests passed Test: No performance regression in minikin_perftest. Change-Id: I8824593206ecba74cbc9731e298f045e1ae442a3
-
- 22 2月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
Test: None Change-Id: I203d9ba7e1a1fcfdb10cd6a711d9a35136cbddd6
-
- 15 2月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
Keep the region code and pass it to HarfBuzz during doing layout. Test: minikin_tests Bug: 30746293 Change-Id: I7c908701ca677238f663c82c597f8615d190e055
-
- 08 2月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
The Flag sequence is well handled by latest ICU. Just add unit tests for catching regression in future. Test: ran minikin_tests Change-Id: I78d5461de8ff4d002ca06fb5bb81fcd7bc45d95e
-
- 07 2月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
"adb sync data" pushes test data as well as test executables. Test: ran minikin_perftests Test: ran minikin_tests Change-Id: I08219f8abc4b59bd26d8f9155975b65b56a88b7b
-
- 31 1月, 2017 1 次提交
-
-
由 Seigo Nonaka 提交于
This is 2nd attempt of I08e9b74192f8af1d045f1276498fa4e60d73863e. The original CL was reverted due to conflicting with another CL submitted before. Here is the original commit message of reverted change. This lays the groundwork for variation settings support. Since we should regard different variations of a font as different fonts, we need to create new typefaces. To reuse the same instance of MinikinFont, as much as possible, FontFamily::createFamilyWithVariation now reuses an existence instance, while incrementing the reference count. Test: minikin_tests Bug: 33062398 Change-Id: Ib25bf1bb5a5191e15a6523954146521464c91906
-
- 20 1月, 2017 3 次提交
-
-
由 Seigo Nonaka 提交于
This is 2nd attempt of 41e02e96 The difference is adding clearElementsEithLock to Font class which is necessary to delete Fonts object outside of minikin. This method should be removed once http://b/28119474 is fixed. Here is original commit message of reverted change. This lays the groundwork for making SparseBitSet serializable. FontFamily.addFont is only used when the FontFamily is constructed. Thus, instead of calling FontFamily.addFont multiple time, passes Font list to the constructor. By this change, FontFamily can be immutable now. By making FontFamily immutable, We can create FontFamily with pre-calculated SparseBitSet. Bug: 34042446 Bug: 28119474 Bug: 34378805 Test: minikin_tests has passed Change-Id: Ice433931196f5ae79a1a7ee0c98020f914aeb5f2
-
由 Siyamed Sinir 提交于
This reverts commit 41e02e96. Bug: 34378805 Change-Id: I8f1ee00b365c8b17c6140e9e286fbea082e31364
-
由 Siyamed Sinir 提交于
This reverts commit 90e6b188. Bug: 34378805 Change-Id: I22b683f774813724f220b1b8584ab188f3cf4fa7
-
- 12 1月, 2017 2 次提交
-
-
由 Seigo Nonaka 提交于
This lays the groundwork for variation settings support. Since we should regard different variations of a font as different fonts, we need to create new typefaces. To reuse the same instance of MinikinFont, as much as possible, FontFamily::createFamilyWithVariation now reuses an existence instance, while incrementing the reference count. Test: minikin_tests Bug: 33062398 Change-Id: I08e9b74192f8af1d045f1276498fa4e60d73863e
-
由 Seigo Nonaka 提交于
This lays the groundwork for making SparseBitSet serializable. FontFamily.addFont is only used when the FontFamily is constructed. Thus, instead of calling FontFamily.addFont multiple time, passes Font list to the constructor. By this change, FontFamily can be immutable now. By making FontFamily immutable, We can create FontFamily with pre-calculated SparseBitSet. Bug: 34042446 Test: minikin_tests has passed Change-Id: I2576789fba6cb27687e920e2488e8bedbcf7d36f
-
- 10 1月, 2017 1 次提交
-
-
由 Mark Salyzyn 提交于
Use log/log.h to harden code against liblog changes. Test: compile Bug: 30465923 Change-Id: I3dea82e76d28d9ef52d7c0f11e038c4298863eb9
-
- 28 12月, 2016 1 次提交
-
-
由 Mark Salyzyn 提交于
- replace cutils/log.h with android/log.h (main buffer logging) - replace cutils/log.h with log.log.h (+SafetyNet logging) - define LOG_TAG before use. Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I7a4803dd66f31b7103e09e5ff5b8fa523fa0fd60
-
- 16 12月, 2016 1 次提交
-
-
由 Dan Willemsen 提交于
This will handle installation for local builds as well as for the test bundles. Test: m -j minikin_tests; ls $OUT/data/nativetest*/minikin_tests Test: m -j continous_native_tests dist; zipinfo -1 out/dist/*continuous_native_tests*.zip Test: /data/nativetest{,64}/minikin_tests/minikin_tests Change-Id: Iafd31fa119e7c4d92937ca8ae8346e268a6c1f38 Merged-In: Iafd31fa119e7c4d92937ca8ae8346e268a6c1f38
-
- 14 12月, 2016 1 次提交
-
-
由 Dan Willemsen 提交于
This will handle installation for local builds as well as for the test bundles. Test: m -j minikin_tests; ls $OUT/data/nativetest*/minikin_tests Test: m -j continous_native_tests dist; zipinfo -1 out/dist/*continuous_native_tests*.zip Test: /data/nativetest{,64}/minikin_tests/minikin_tests Change-Id: Iafd31fa119e7c4d92937ca8ae8346e268a6c1f38
-
- 06 12月, 2016 1 次提交
-
-
由 Yirui Huang 提交于
Change language score calculation in the calculation of the font family. Instead of language and script matching, a match in subtag is added. In addition, a match in subtag has a higher priority than a match in script. The score levels are divided into 5 score levels and the limit of the number of font languages is changed to 12 from 17. Multiple languages selection rule could to be added in the future. Bug: 31608997 Test: Done by unittests. Change-Id: I1e7177095f604fd1794bc99ca36c705dcb4c56e7
-
- 03 12月, 2016 1 次提交
-
-
由 Colin Cross 提交于
minikin_tests was copying its test data to $OUT/data/DATA/nativetest/minikin_test, and then packaging that with LOCAL_PICKUP_FILES=$OUT/data/DATA, which would also pick up anything any other module copyied to $OUT/data/DATA. $OUT/data/DATA isn't where the tests expect to find their data, they look in /data/nativetest/minikin_test. Copy the files to the intermediates directory instead. A future change will install LOCAL_PICKUP_FILES for local builds to the correct place, so adb sync and adb shell /data/nativetest/minikin_tests/minikin_tests will run the tests. Test: mma -j Change-Id: I808ce743f51e5ccac711e22821e7e0d7cd94ffdf
-
- 21 11月, 2016 1 次提交
-
-
由 yirui 提交于
Parse Emoji subtag and store into 4 different styles: default, text, color and empty. Replace hasEmojiFlag function with getEmojiStyle to get effective status according to script and subtag. However, score calculation for the font selection needs to be completed in the next stage. No performance regression is observed with this CL. Bug: 31608997 Test: Done by unittests. Change-Id: I923243641c946248dd5a0aa9fb9c940515310d34
-
- 17 11月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
This is 2nd attempt of Ifcd7a348d7fb5af081192899dbcdfc7fb4eebbf9 After Id766ab16a8d342bf7322a90e076e801271d527d4, GetTable is no longer used in production due to poor performance and it is now only used in tests. This CL removes GetTable interface from MinikinFont and update tests code to use new interfaces, GetFontData, GetFontSize and GetFontIndex. Bug: 27860101 Test: Manually done Change-Id: Ib48973ff25cdc61a4c666d28128266df0aaea83e
-
- 16 11月, 2016 2 次提交
-
-
由 Martijn Coenen 提交于
Test: fixes master build. Change-Id: I8b2822d310c0cf423b15834e6d6ae3a9ea64233b
-
由 Seigo Nonaka 提交于
Add a wordSpacing paint parameter, which will be used for justification. Bug: 31707212 Test: ran minikin_tests Change-Id: I91224ab8ef882ac0c87425c28ab731fead283612
-
- 25 10月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
This reverts commit 1d525df4. This causes a crash on Android Auto. Bug: 32374752 Change-Id: Ia2ff77bf9a12351c6949f79ef6fa2d8016e3022d
-
- 18 10月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
After Id766ab16a8d342bf7322a90e076e801271d527d4, GetTable is no longer used in production due to poor performance and it is now only used in tests. This CL removes GetTable interface from MinikinFont and update tests code to use new interfaces, GetFontData, GetFontSize and GetFontIndex. Bug: 27860101 Test: Manually done Change-Id: Ifcd7a348d7fb5af081192899dbcdfc7fb4eebbf9
-
- 15 9月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
This is partial revert of Iced1349e3ca750821d8882c551551f65bb569794. Due to sorting of target family vectors, the font family order from XML settings file is broken. Making unique operation stable doesn't fix the issue completely since some font families are appended for the fallback which also breaks the original order. By this change, itemization becomes 3x slower than before if variation selector is appended. Bug: 29585939 Change-Id: I7c1a8a57f04111a30cd41a5cd5bec25fcfb3972e
-
- 12 8月, 2016 1 次提交
-
-
由 Roozbeh Pournader 提交于
This reverts commit 9431bb96. Bug: 30815709 Change-Id: I057d9bcd05246e58894abb4e9633bd10f6fab211
-
- 06 8月, 2016 1 次提交
-
-
由 Ben Wagner 提交于
Skia is moving to returning smart pointers from its factory methods. This updates uses of SkTypeface::CreateXXX to SkTypeface::MakeXXX and generally updates use of SkTypeface to sk_sp. This will allow for the removal of the SK_SUPPORT_LEGACY_TYPEFACE_PTR define. Change-Id: If3e600c6cb86080576667bc77d427da4f6560afa
-
- 14 7月, 2016 3 次提交
-
-
由 Seigo Nonaka 提交于
Unicode recommends that the zwj sequences should be emoji presentation even if they don't have the proper U+FE0F. Thus always lookup the glyph for the code point before and after zwj as if they have a U+FE0F variation selector. Bug: 30056627 Change-Id: I03958a92337eaba4a8dd9c5be824b2665aa4a103
-
由 Seigo Nonaka 提交于
Bug: 29885295 Change-Id: I1bf191a46d05e7099265d863bae0523c50817d0b
-
由 Seigo Nonaka 提交于
FEMALE SIGN(U+2640), MALE SIGN(U+2642), StAFF OF AESCULAPIUS(U+2695) will be used as the ZWJ sequenced in gender balanced emoji sequence. To be in the same run with ZWJ, mark these emoji as sticky chracters. With this fix, Female police officer sequence will be shown correctly regardless of VS16. Bug: 30026374 Change-Id: I503fc061eaa943d45208bb69e885151610c430ce
-
- 12 7月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
Unicode recommends that the zwj sequences should be emoji presentation even if they don't have the proper U+FE0F. Thus always lookup the glyph for the code point before and after zwj as if they have a U+FE0F variation selector. Bug: 30056627 Change-Id: I03958a92337eaba4a8dd9c5be824b2665aa4a103
-
- 11 7月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
Bug: 29885295 Change-Id: I1bf191a46d05e7099265d863bae0523c50817d0b
-
- 08 7月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
FEMALE SIGN(U+2640), MALE SIGN(U+2642), StAFF OF AESCULAPIUS(U+2695) will be used as the ZWJ sequenced in gender balanced emoji sequence. To be in the same run with ZWJ, mark these emoji as sticky chracters. With this fix, Female police officer sequence will be shown correctly regardless of VS16. Bug: 30026374 Change-Id: I503fc061eaa943d45208bb69e885151610c430ce
-
- 28 6月, 2016 3 次提交
-
-
由 Seigo Nonaka 提交于
stat.st_size is off_t not size_t, so need to cast to size_t before compare it. Change-Id: I6b742746fbb9f254701fc91e515c293f93f912c5
-
由 Seigo Nonaka 提交于
This CL introduces performance tests for FontCollection. To support TTC file in /system/fonts, this CL also extends FontTestUtils Bug:29142734 Change-Id: I9d8ad24ca55f61031b85623ab7c26234239e4f41
-
由 Seigo Nonaka 提交于
This CL introduces performance tests for following three modules: - Hyphenator - WordBreaker - GraphemeBreak During using UnicodeUtils, need to decouple it from gtest since perftest doesn't have gtest dependencies. Bug:29142734 Change-Id: I700c662fa7d0a52f19d8e93150ad1a85dc28769f
-
- 21 6月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
This fixes following three memory leaks in test utilities. There is no problem in production code and this CL doesn't affect any production behaviors. - SkTypeface leaks due to forget calling SkSafeUnref in dtor. - MinikinFontForTest leaks during constructing FontCollection. - FontCollection leaks due to unnecessary AddRef. Change-Id: I22e1e0307f1b2499296acb1aacc3ef66076a36e9
-
- 10 6月, 2016 1 次提交
-
-
由 Seigo Nonaka 提交于
Here is a new policy of the namespace of minikin. - All components should be in minikin namespace. - All tests are also in minikin namespace and no anonymous namespace. Bug: 29233740 Change-Id: I71a8a35049bb8d624f7a78797231e90fed1e2b8c
-