diff --git a/tests/UpdatableSystemFontTest/Android.bp b/tests/UpdatableSystemFontTest/Android.bp index c59a41ee0cd3f..9a9e42bfc3005 100644 --- a/tests/UpdatableSystemFontTest/Android.bp +++ b/tests/UpdatableSystemFontTest/Android.bp @@ -37,8 +37,6 @@ android_test { "vts", ], data: [ - ":NotoSerif-Regular.ttf", - ":NotoSerif-Bold.ttf", ":UpdatableSystemFontTestCertDer", ":UpdatableSystemFontTest_NotoColorEmoji.ttf", ":UpdatableSystemFontTest_NotoColorEmoji.sig", @@ -48,7 +46,9 @@ android_test { ":UpdatableSystemFontTest_NotoColorEmojiVPlus1.sig", ":UpdatableSystemFontTest_NotoColorEmojiVPlus2.ttf", ":UpdatableSystemFontTest_NotoColorEmojiVPlus2.sig", + ":UpdatableSystemFontTest_NotoSerif-Regular.ttf", ":UpdatableSystemFontTest_NotoSerif-Regular.sig", + ":UpdatableSystemFontTest_NotoSerif-Bold.ttf", ":UpdatableSystemFontTest_NotoSerif-Bold.sig", ], sdk_version: "test_current", diff --git a/tests/UpdatableSystemFontTest/AndroidTest.xml b/tests/UpdatableSystemFontTest/AndroidTest.xml index 6effa7bd0a501..9e2a4b643bf66 100644 --- a/tests/UpdatableSystemFontTest/AndroidTest.xml +++ b/tests/UpdatableSystemFontTest/AndroidTest.xml @@ -28,11 +28,7 @@ diff --git a/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java b/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java index 87fda0d220e58..cbe13d9aa1492 100644 --- a/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java +++ b/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java @@ -84,7 +84,7 @@ public class UpdatableSystemFontTest { private static final String NOTO_COLOR_EMOJI_POSTSCRIPT_NAME = "NotoColorEmoji"; private static final String NOTO_COLOR_EMOJI_TTF = - "/data/local/tmp/NotoColorEmoji.ttf"; + "/data/local/tmp/UpdatableSystemFontTest_NotoColorEmoji.ttf"; private static final String NOTO_COLOR_EMOJI_SIG = "/data/local/tmp/UpdatableSystemFontTest_NotoColorEmoji.sig"; // A font with revision == 0. @@ -105,13 +105,13 @@ public class UpdatableSystemFontTest { private static final String NOTO_SERIF_REGULAR_POSTSCRIPT_NAME = "NotoSerif"; private static final String NOTO_SERIF_REGULAR_TTF = - "/data/local/tmp/NotoSerif-Regular.ttf"; + "/data/local/tmp/UpdatableSystemFontTest_NotoSerif-Regular.ttf"; private static final String NOTO_SERIF_REGULAR_SIG = "/data/local/tmp/UpdatableSystemFontTest_NotoSerif-Regular.sig"; private static final String NOTO_SERIF_BOLD_POSTSCRIPT_NAME = "NotoSerif-Bold"; private static final String NOTO_SERIF_BOLD_TTF = - "/data/local/tmp/NotoSerif-Bold.ttf"; + "/data/local/tmp/UpdatableSystemFontTest_NotoSerif-Bold.ttf"; private static final String NOTO_SERIF_BOLD_SIG = "/data/local/tmp/UpdatableSystemFontTest_NotoSerif-Bold.sig"; diff --git a/tests/UpdatableSystemFontTest/testdata/Android.bp b/tests/UpdatableSystemFontTest/testdata/Android.bp index 64b698dd0db00..0bdb3a8c6b14c 100644 --- a/tests/UpdatableSystemFontTest/testdata/Android.bp +++ b/tests/UpdatableSystemFontTest/testdata/Android.bp @@ -21,11 +21,19 @@ package { default_applicable_licenses: ["frameworks_base_license"], } -// An existing module name is reused to avoid merge conflicts. -// TODO: fix the font file name. filegroup { name: "UpdatableSystemFontTest_NotoColorEmoji.ttf", - srcs: ["NotoColorEmoji.ttf"], + srcs: ["UpdatableSystemFontTest_NotoColorEmoji.ttf"], +} + +filegroup { + name: "UpdatableSystemFontTest_NotoSerif-Regular.ttf", + srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"], +} + +filegroup { + name: "UpdatableSystemFontTest_NotoSerif-Bold.ttf", + srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"], } filegroup { @@ -43,10 +51,6 @@ filegroup { srcs: ["UpdatableSystemFontTestCert.der"], } -genrule_defaults { - name: "updatable_system_font_increment_font_revision_default", -} - genrule { name: "UpdatableSystemFontTest_NotoColorEmojiV0.ttf", srcs: [":UpdatableSystemFontTest_NotoColorEmoji.ttf"], @@ -124,13 +128,13 @@ genrule { genrule { name: "UpdatableSystemFontTest_NotoSerif-Regular.sig", defaults: ["updatable_system_font_sig_gen_default"], - srcs: [":NotoSerif-Regular.ttf"], + srcs: ["UpdatableSystemFontTest_NotoSerif-Regular.ttf"], out: ["UpdatableSystemFontTest_NotoSerif-Regular.sig"], } genrule { name: "UpdatableSystemFontTest_NotoSerif-Bold.sig", defaults: ["updatable_system_font_sig_gen_default"], - srcs: [":NotoSerif-Bold.ttf"], + srcs: ["UpdatableSystemFontTest_NotoSerif-Bold.ttf"], out: ["UpdatableSystemFontTest_NotoSerif-Bold.sig"], } diff --git a/tests/UpdatableSystemFontTest/testdata/NotoColorEmoji.ttf b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoColorEmoji.ttf similarity index 100% rename from tests/UpdatableSystemFontTest/testdata/NotoColorEmoji.ttf rename to tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoColorEmoji.ttf diff --git a/tests/UpdatableSystemFontTest/testdata/NotoColorEmoji.ttx b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoColorEmoji.ttx similarity index 100% rename from tests/UpdatableSystemFontTest/testdata/NotoColorEmoji.ttx rename to tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoColorEmoji.ttx diff --git a/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Bold.ttf b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Bold.ttf new file mode 100644 index 0000000000000..66c1bd2a09b16 Binary files /dev/null and b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Bold.ttf differ diff --git a/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Bold.ttx b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Bold.ttx new file mode 100644 index 0000000000000..8c4215eafc608 --- /dev/null +++ b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Bold.ttx @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copyright (C) 2022 The Android Open Source Project + + + Sample Font + + + Bold + + + Sample Font + + + + NotoSerif-Bold + + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + http://www.apache.org/licenses/LICENSE-2.0 + + + + + + + + + + + + + + + + diff --git a/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Regular.ttf b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Regular.ttf new file mode 100644 index 0000000000000..707ae281d9900 Binary files /dev/null and b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Regular.ttf differ diff --git a/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Regular.ttx b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Regular.ttx new file mode 100644 index 0000000000000..754eae31c7c19 --- /dev/null +++ b/tests/UpdatableSystemFontTest/testdata/UpdatableSystemFontTest_NotoSerif-Regular.ttx @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copyright (C) 2022 The Android Open Source Project + + + Sample Font + + + Regular + + + Sample Font + + + + NotoSerif + + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + http://www.apache.org/licenses/LICENSE-2.0 + + + + + + + + + + + + + + + +