Skip to content
Snippets Groups Projects
  1. Feb 01, 2021
    • Kohsuke Yatoh's avatar
      Integration test for updatable system font. · bc718220
      Kohsuke Yatoh authored
      This test:
      (1) signs a font file with the test key.
      (2) side-loads the test cert to the device under test.
      (3) verifies that the signed font file can be installed.
      
      The device must be rootable for doing step (2).
      
      Bug: 176939176
      Test: atest UpdatableSystemFontTest
      Change-Id: I7a9b614aa3c77589c3495b663cb76056ba657006
      bc718220
  2. Dec 08, 2020
    • Jeff Sharkey's avatar
      Improve OWNERS coverage across frameworks/base/. · 52b9862f
      Jeff Sharkey authored
      As general background, OWNERS files expedite code reviews by helping
      code authors quickly find relevant reviewers, and they also ensure
      that stakeholders are involved in code changes in their areas.
      
      Some teams under frameworks/base/ have been using OWNERS files
      successfully for many years, and we're ready to expand them to cover
      more areas.  Here's the historical coverage statistics for the last
      two years of changes before these new OWNERS changes land:
      
      -- 56% of changes are fully covered by OWNERS
      -- 17% of changes are partially covered by OWNERS
      -- 25% of changes have no OWNERS coverage
      
      Working closely with team leads, we've now identified clear OWNERS on
      a per-package basis, and we're using "include" directives whenever
      possible to to simplify future maintenance.  With this extensive
      effort, we've now improved our coverage as follows:
      
      -- 98% of changes are fully covered by OWNERS
      -- 1% of changes are partially covered by OWNERS
      -- 1% of changes have no OWNERS coverage
      
      This specific change is automatically generated by a script that
      identifies relevant "include" directives.
      
      Bug: 174932174
      Test: manual
      Exempt-From-Owner-Approval: refactoring with team leads buy-in
      Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
      Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
      52b9862f
  3. Mar 16, 2020
  4. Mar 07, 2020
  5. May 16, 2019
    • Qingqing Deng's avatar
      Update fontchain_linter.py to support more flags. · 0b5f2721
      Qingqing Deng authored
      Android Q will support all region flags in UNSUPPORTED_FLAGS list.
      BL - Saint Barthélemy
      BQ - Caribbean Netherlands
      MQ - Martinique
      RE - Réunion
      TF - French Southern Territories
      
      Bug: 127811703
      Test: Verified on device.
      Test: m fontchain_lint
      Test: minikin_tests --gtest_filter=EmojiTest.cpp
      Test: atest cts/tests/tests/text/src/android/text/cts/EmojiTest.java
      Test: atest frameworks/base/core/tests/coretests/src/android/text/EmojiTest.java
      Change-Id: Ice1fb10af35dc4e180735d9712167b71635920da
      0b5f2721
  6. Mar 26, 2019
  7. Sep 28, 2018
    • Seigo Nonaka's avatar
      Introduce OEM customization XML parser · 3328d1ce
      Seigo Nonaka authored
      As the initial version of the OEM customization XML, support
      new-named-family customization. This allows OEMs to add new named
      family.
      
      Bug: 111544833
      Test: atest FrameworksCoreTests:android.graphics
      Change-Id: If58711fc038898175fcad0ae095865312bd738e2
      3328d1ce
  8. Jul 19, 2018
  9. Jul 12, 2018
  10. May 15, 2018
    • Seigo Nonaka's avatar
      Update font chain linter to match latest font file · c1808631
      Seigo Nonaka authored
      - FAMILY emoji now has own gender neutral emoji
      - Some flags are newly supported
      - Some regions may have the same flags.
      
      Bug: 77148691
      Test: m fontchain_lint
      Change-Id: If1a69974230f025d35503eb49bea105923593e87
      c1808631
  11. Apr 19, 2018
    • Siyamed Sinir's avatar
      Update fontchain_linter for emoji 11 · d97df5a2
      Siyamed Sinir authored
      * Add default genders for super villain and super hero.
      * Read capability to read from emoji exclusions file.
      * Update lint rule to use different glyphs for couple with heart.
      
      Test: m fontchain_lint
      Test: Visual test with a build and sample app
      Bug: 77148691
      Change-Id: Icd92f0455709625b3998fc8eef1d448e17a5d71f
      Merged-In: Icd92f0455709625b3998fc8eef1d448e17a5d71f
      Merged-In: I56dd3c1e1258bab2fcbdf42e5c42587e45dd92fe
      (cherry picked from commit e853efc0)
      d97df5a2
  12. Apr 18, 2018
    • Siyamed Sinir's avatar
      Add Emoji 11 font will all glyphs · cf3980dd
      Siyamed Sinir authored
      We now use different glyphs for couple with heart emoji. This CL
      removes the constraint from font chain lint.
      
      Test: m fontchain_lint
      Test: Build and visual check
      Bug: 77148691
      Change-Id: I56dd3c1e1258bab2fcbdf42e5c42587e45dd92fe
      cf3980dd
  13. Apr 12, 2018
    • Siyamed Sinir's avatar
      Update fontchain _linter for new emoji · e853efc0
      Siyamed Sinir authored
      * Add default genders for super villain and super hero.
      * Read capability to read from emoji exclusions file 
      
      Test: m fontchain_lint
      Test: Visual test with a build and sample app
      Bug: 77148691
      Change-Id: Icd92f0455709625b3998fc8eef1d448e17a5d71f
      e853efc0
  14. Mar 21, 2018
  15. Jan 19, 2018
    • Seigo Nonaka's avatar
      Ignore missing font in fontchain_linter.py · 1403ff2b
      Seigo Nonaka authored
      It is totally valid if the font is missing even if the font is listed in
      fonts.xml. Android Watch has less fonts and OEM vendor may reduce the
      font files.
      
      Bug: 72159040
      Test: m fontchain_lint
      Change-Id: I22bdf7bfeb6d80a2a338ebf7536c8eaf193b03c5
      1403ff2b
  16. Nov 20, 2017
  17. Nov 17, 2017
  18. Oct 17, 2017
    • Roozbeh Pournader's avatar
      Enable patterns for Belarusian and Latin languages · 7e04dd18
      Roozbeh Pournader authored
      The native frameworks code now knows about Belarusian and Latin
      patterns.
      
      Also, the fontchain_lint tool needed to know the script for any
      hyphenation patterns added, and now it does.
      
      Bug: 65626527
      Test: make -j fontchain_lint
      Change-Id: I747cbb5ea3d36ca63335bfe6b337fad1e75ee79b
      7e04dd18
  19. May 30, 2017
    • Andrew Sapperstein's avatar
      Create fonts.xml module for adding fonts.xml to system/etc · 7459bc49
      Andrew Sapperstein authored
      Previously, we used PRODUCT_COPY_FILES. However, that does not allow
      overriding the file to use a different one on a per-device basis.
      This change migrates the logic to using a BUILD_PREBUILT module
      called fonts.xml.
      To add additional fonts, the add_additional_fonts.py script has been
      added. If ADDITIONAL_FONTS_FILE is defined, add_additional_fonts.py
      is run and generates a new version of fonts.xml that contains the
      content of ADDITIONAL_FONTS_FILE added where
      "<!-- fallback fonts -->" is added.
      
      Bug: 36855735
      Bug: 37997769
      Test: manual. built multiple devices and verified that the correct
      versions of fonts.xml were showing.
      
      Change-Id: I8308f0cb3068274bca5ebd25a38cc023babbd69d
      7459bc49
  20. May 19, 2017
    • Roozbeh Pournader's avatar
      Check CJK punctuation in early non-CJK fonts · 63d4d0d3
      Roozbeh Pournader authored
      Added tests check that CJK punctuation marks do not appear in
      non-CJK fonts that appear earlier than CJK fonts.
      
      This should prevent bugs like those fixed by
      Ic2cbc79cecf9539ace8a432f373685eeff81e106 and
      Ieeb4c04ca785e07a5db94006a6da31ad040b7e7a to appear again.
      
      Change-Id: I622dccd2a619b2366987a81d1c7f8f49334f5638
      Fixes: 38182099
      Bug: 19355391
      Test: make -j fontchain_lint
      63d4d0d3
  21. Apr 25, 2017
  22. Apr 10, 2017
    • Roozbeh Pournader's avatar
      Update fontchain_lint to test new emoji font · aa3ee8e0
      Roozbeh Pournader authored
      The new emoji font has been update to Unicode 10/Emoji 5, and has a
      new mechanism for flag fallbacks. It also shares glyphs between
      gendered emoji and non-genders ones.
      
      Test: make fontchain_lint passes
      Bug: 34688862
      Bug: 33276970
      Bug: 34738377
      Change-Id: I4d43b8c777deb93be1e6a784eaa109e2e7febd7d
      aa3ee8e0
  23. Apr 05, 2017
  24. Mar 31, 2017
    • Jungshik Shin's avatar
      Use variable fonts for Noto Sans Khmer · 88b11140
      Jungshik Shin authored
      Update fonts.xml to use NotoSansKhmer-VF.ttf.
      
      The weight range of Khmer is also extended to have 9 weight instances
      (three more than Roboto with 200, 600 and 800).
      
      The width range for Khmer is left alone partly because of an apparent
      lack of support in fonts.xml for non-normal width fallback fonts.
      
      Note that Noto Sans Khmer UI is left alone because of a baseline issue.
      
      BUG: 22667753
      Test: See the QA instruction in comment 10 of the bug.
      Test: fontchain_lint
      Change-Id: Idf6d4fec86822663ac08feb8979edacbc6c709a0
      88b11140
  25. Mar 18, 2017
    • Roozbeh Pournader's avatar
      Read emoji addtions from data file · 1800ba4f
      Roozbeh Pournader authored
      We now read the emoji additions from a data file, instead of keeping
      them in code.
      
      Test: updated lint script passes.
      Change-Id: Ica1ca10eaba0ca2b4a178d08354e31729cb88ce5
      1800ba4f
  26. Mar 17, 2017
    • Roozbeh Pournader's avatar
      Update fontchain_lint.py to read Emoji 5.0 data · fabeed69
      Roozbeh Pournader authored
      This corresponds to an update in emoji-zwj-sequences.txt in
      I956ba139737bd79f5e31324ed77df9182342df4e.
      
      Test: The updated script passes with the update data file.
      Bug: 30999328
      Change-Id: I989dee6e571645daa324ae3eb667e3a92a31511f
      fabeed69
  27. Feb 24, 2017
    • Roozbeh Pournader's avatar
      Load hyphenation patterns for Bulgarian and Church Slavonic · e626fb53
      Roozbeh Pournader authored
      Patterns for Bulgarian (bg) and Church Slavonic (cu) are now loaded
      too.
      
      Also make changes to fontchain_lint.py, so it knows the script for Bulgarian
      and Church Slavonic is Cyrillic.
      
      Test: make -j works and creates .hyb files for bg and cu
      Change-Id: I0586f6c49380279ef88fe952b5cfd2d3594c5524
      e626fb53
  28. Feb 23, 2017
    • Roozbeh Pournader's avatar
      Load hyphenation patterns for Bulgarian and Church Slavonic · 033b2226
      Roozbeh Pournader authored
      Patterns for Bulgarian (bg) and Church Slavonic (cu) are now loaded
      too.
      
      Also make changes to fontchain_lint.py, so it knows the script for Bulgarian
      and Church Slavonic is Cyrillic.
      
      Test: make -j works and creates .hyb files for bg and cu
      Change-Id: I0586f6c49380279ef88fe952b5cfd2d3594c5524
      033b2226
  29. Jan 11, 2017
    • Seigo Nonaka's avatar
      Check the count of the families in a default collection. · 9092dc2f
      Seigo Nonaka authored
      After I9e01d237c9adcb05e200932401cb1a4780049f86, Minikin can
      accept up to 254 font families. To make sure we don't exeed this limit,
      introduce an assertion to fontchain_lint.py
      
      Bug: 33562608
      Test: m fontchain_lint
      Change-Id: I35fc104fd4763f77145bef0e7c5facf30fa99644
      9092dc2f
  30. Sep 14, 2016
    • yirui's avatar
      Fix incorrect emoji presentation for 'Zsym' script · f9936b9b
      yirui authored
      If the language tag "und-Zsym" is applied to a TextView, the default
      presentation should be text-style. However, it didn't work before this
      patch, due to a lack of "und-Zsym" language tag in fonts.xml.
      
      Bug: 31297127
      Change-Id: Ieed8fe1532806dd1e75c58aa0d7a724bfeed7796
      f9936b9b
  31. Aug 22, 2016
  32. Aug 09, 2016
  33. Jul 27, 2016
    • Roozbeh Pournader's avatar
      Add test for ascent and descent of serif and mono fonts · ede3a17f
      Roozbeh Pournader authored
      fontchain_lint now has tests making sure that their ascent and
      descent matches that of Roboto.
      
      Also, this moves a test class that contains a similar test and and
      other related tests from graphictests to coretests.
      
      Bug: 19791102
      Change-Id: I8b473dd2a5f97ae2e3d322a2cabc16f3d32489f6
      ede3a17f
    • Roozbeh Pournader's avatar
      Test Roboto's vertical font metrics · bac1aec6
      Roozbeh Pournader authored
      Test that yMin, yMax, Ascent, and Descent values of Roboto are not
      changed.
      
      Bug: 26187231
      Change-Id: Ia41f5a118e292b8eda8dae5124be112dc0cdbc8d
      bac1aec6
    • Roozbeh Pournader's avatar
      Check defaults for Android default-emoji characters [DO NOT MERGE] · 84b17461
      Roozbeh Pournader authored
      There are 12 characters that Android is defaulting to emoji,
      differing from UTR #51 recommendation. This tests for their proper
      support.
      
      Bug: 30379358
      Change-Id: Icd570510090ef29b3b7a3520bc368c5f77f99fa4
      (cherry picked from commit 10ea8f74)
      84b17461
    • Roozbeh Pournader's avatar
      Re-enable disabled emoji tests [DO NOT MERGE] · 8cd1b1ba
      Roozbeh Pournader authored
      Since I2e508ced90515409ff6882b3c98d8911094b9b86 updates the emoji
      data to version 4.0 beta, we can now re-enable the disabled emoji
      tests.
      
      Also fix some style issues, update data file parsing method to handle
      the new emoji format, add UN to unsupported flags, and do a little
      refactoring.
      
      Bug: 30379358
      Bug: 26187231
      Change-Id: I441fdfed68381d08e5e0b3af91e94bfae742eef6
      8cd1b1ba
  34. Jul 26, 2016
  35. Jul 25, 2016
    • Roozbeh Pournader's avatar
      Re-enable disabled emoji tests · 3b3c78e6
      Roozbeh Pournader authored
      Since Ib68f803c6adfb41db70f7319b7736d17cdbb6ec2 updates the emoji
      data to version 4.0 beta, we can now re-enable the disabled emoji
      tests.
      
      Also fix some style issues, update data file parsing method to handle
      the new emoji format, add UN to unsupported flags, and do a little
      refactoring.
      
      Bug: 26187231
      Change-Id: I441fdfed68381d08e5e0b3af91e94bfae742eef6
      3b3c78e6
  36. Jul 13, 2016
    • Doug Felt's avatar
      Patch out part of the emoji tests. · 4970cdac
      Doug Felt authored
      This is temporary, until we have proper attribution for additional
      emoji data.
      
      Bug: 29939737
      Change-Id: I5b97c8e055fa2ccf44b13bf801f681b860d47286
      (cherry picked from commit f874a194)
      4970cdac
  37. Jul 09, 2016
    • Doug Felt's avatar
      Patch out part of the emoji tests. · f874a194
      Doug Felt authored
      This is temporary, until we have proper attribution for additional
      emoji data.
      
      Bug: 29939737
      Change-Id: I5b97c8e055fa2ccf44b13bf801f681b860d47286
      f874a194
Loading