Commit Graph

8 Commits

Author SHA1 Message Date
Kohsuke Yatoh
5045660bba Use fake NotoSerif fonts in test.
Bug: 195058030
Test: atest UpdatableSystemFontTest
Change-Id: I7b4a53cf401d72998411bf0e60d1d8f13746f03a
2022-02-16 16:36:25 -08:00
Kohsuke Yatoh
865a9cb8f0 Add test for font family update.
Bug: 186966067
Test: atest UpdatableSystemFontTest
Change-Id: Ia03aa7818047f3269a0cf932126b9eabcefeb7ae
2021-06-03 20:32:41 +00:00
Kohsuke Yatoh
f74e3b69d4 Make UpdatableSystemFontTest device side test.
As commit 679a824773 removed 'adb shell
stop', this test doesn't need to be a host side test.

This allows us to call FontManager Java API in UpdatableSystemFontTest.
I will rewrite 'cmd font' to FontManager API calls in a following CL.

Bug: 186966067
Test: atest UpdatableSystemFontTest
Change-Id: I3bad29a3ea8402c990ae0dd553d3230db2d9f67c
2021-05-03 11:07:09 -07:00
Kohsuke Yatoh
f0c113eac8 Verify updated font is used in app process.
This CL adds a VTS test that:
1. Updates NotoColorEmoji font
2. Launches a test app that renders an emoji
3. Verifies that the updated NotoColorEmoji font file is used by the app
   process.

Bug: 180370569
Test: atest UpdatableSystemFontTest
Change-Id: I418d7cc23a290ebe4ae6e5b8af782b336497fbdd
2021-04-13 15:22:23 -07:00
Kohsuke Yatoh
bd636d8391 Allow same version update.
Bug: 184862662
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Change-Id: Ic955e2713c08e4c258d61cd3b597a472e1e3298c
2021-04-08 12:58:57 -07:00
Kohsuke Yatoh
4ba65f0a54 Revert "Add crash detection and recovery."
This partially reverts the following commits:
- commit de417e735e
- commit 45c6231908

Reason for revert: Caused boot time regression.

Bug: 176939176
Bug: 181536798
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Change-Id: Ibb5505018b24caa442fcbefda57aaa674ab9441e
2021-03-02 11:29:01 -08:00
Kohsuke Yatoh
45c6231908 Add test for font crash protection.
This test modifies the installed font file with block_device_writer.
FontManagerService should detect it and remove the modified file.

Bug: 176939176
Test: atest ApkVerityTest
Test: atest UpdatableSystemFontTest
Change-Id: I7da3f2911459619d5d56a94e091b912d67cb27d3
2021-02-04 21:10:21 -08:00
Kohsuke Yatoh
bc7182206b Integration test for updatable system font.
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
2021-02-01 13:57:19 -08:00