Skip to content
Snippets Groups Projects
  1. Mar 23, 2024
  2. Jan 31, 2024
    • Aditya Choudhary's avatar
      [DON'T BLOCK] Test ownership migration rules · b4262276
      Aditya Choudhary authored
      This CL is created as a best effort to migrate test targets
      to the new android ownership model. If you find incorrect or unnecessary
      attribution in this CL, please create a separate CL to fix that.
      
      For more details please refer to the link below,
      <add g3 doc link>
      
      Bug: 304529413
      Test: N/A
      Change-Id: Iee8a9d8357c174532902d88d5d59e41c6c518c2f
      b4262276
  3. Jan 09, 2024
  4. Oct 06, 2023
  5. Jul 21, 2023
  6. Dec 15, 2022
    • Seigo Nonaka's avatar
      Add family-list tag element to fonts_customization.xml · 9e233cd5
      Seigo Nonaka authored
      family-list can be used as a named font family definition.
      Multiple families can be used as a fallback for the named
      family.
      
      Bug: 249787583
      Test: atest TypefaceSystemFallbackTest FontListParserTest
      Test: atest UpdatableFontDirTest UpdatableSystemFontTest
      Test: atest GtsFontHostTestCases FontManagerTest
      Change-Id: Ic459a533ac4b5081660c0a4a7519ef7e87a6b628
      9e233cd5
  7. Nov 23, 2022
    • Seigo Nonaka's avatar
      Check signature of updated font during boot · e9b53c20
      Seigo Nonaka authored
      config_fontManagerServiceCert is a new config symbol that has
      a list of der certificates to be used for font file verification.
      
      After this change, the signature is stored next to the font file
      and it is verified with the stored signature on boot time. If the
      signature file is missing, e.g. due to device update, the updated
      font file is discarded.
      
      Bug: 242892591
      Test: atest GtsFontHostTestCases
      Test: atest UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Test: atest FontManagerTest
      Test: Manually verified the font files can be updated
      Change-Id: Ia4a6720b863163be523b845b883915185cee656c
      Merged-In: Ia4a6720b863163be523b845b883915185cee656c
      e9b53c20
  8. Nov 22, 2022
    • Seigo Nonaka's avatar
      Check signature of updated font during boot · ab543953
      Seigo Nonaka authored
      config_fontManagerServiceCert is a new config symbol that has
      a list of der certificates to be used for font file verification.
      
      After this change, the signature is stored next to the font file
      and it is verified with the stored signature on boot time. If the
      signature file is missing, e.g. due to device update, the updated
      font file is discarded.
      
      Bug: 242892591
      Test: atest GtsFontHostTestCases
      Test: atest UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Test: atest FontManagerTest
      Test: Manually verified the font files can be updated
      Change-Id: Ia4a6720b863163be523b845b883915185cee656c
      Merged-In: Ia4a6720b863163be523b845b883915185cee656c
      ab543953
  9. Nov 21, 2022
    • Seigo Nonaka's avatar
      Check signature of updated font during boot · 06345f24
      Seigo Nonaka authored
      config_fontManagerServiceCert is a new config symbol that has
      a list of der certificates to be used for font file verification.
      
      After this change, the signature is stored next to the font file
      and it is verified with the stored signature on boot time. If the
      signature file is missing, e.g. due to device update, the updated
      font file is discarded.
      
      Bug: 242892591
      Test: atest GtsFontHostTestCases
      Test: atest UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Test: atest FontManagerTest
      Test: Manually verified the font files can be updated
      Change-Id: Ia4a6720b863163be523b845b883915185cee656c
      Merged-In: Ia4a6720b863163be523b845b883915185cee656c
      06345f24
  10. Nov 03, 2022
    • Seigo Nonaka's avatar
      Check signature of updated font during boot · 57b67d94
      Seigo Nonaka authored
      config_fontManagerServiceCert is a new config symbol that has
      a list of der certificates to be used for font file verification.
      
      After this change, the signature is stored next to the font file
      and it is verified with the stored signature on boot time. If the
      signature file is missing, e.g. due to device update, the updated
      font file is discarded.
      
      Bug: 242892591
      Test: atest GtsFontHostTestCases
      Test: atest UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Test: atest FontManagerTest
      Test: Manually verified the font files can be updated
      Change-Id: Ia4a6720b863163be523b845b883915185cee656c
      57b67d94
  11. Jul 27, 2022
    • Yike's avatar
      Add a missing dependency for UpdatableSystemFontTest · 5533e7fb
      Yike authored
      All of a test's dependencies should be explicitly declared in the Soong build module to enable infrastructure features that ensure correctness and optimize runtime.
      
      Here UpdatableSystemFontTest uses EmojiRenderingTestApp, but it doesn't declare the dependency in its Soong build module. This change declares EmojiRenderingTestApp in UpdatableSystemFontTest's `data` attribute.
      
      Bug: 222438068
      Test: atest-src UpdatableSystemFontTest \
                --experimental-device-driven-test \
                --experimental-java-runtime-dependencies \
                --bazel-arg=--test_timeout=48000
      Test: atest UpdatableSystemFontTest
      Change-Id: Ic1b5b94aabd4c95744109f2cc7443ae04c43b3a6
      5533e7fb
  12. Jul 26, 2022
    • Yike's avatar
      Add a missing test dependency for UpdatableSystemFontTest · cb9c9c7b
      Yike authored
      In Android.bp, all dependencies of a test should be declared explicitly, so that test infrastructure could only provide the needed dependencies instead of all to run a test. This change adds the missing dependency that is used in test config file but not declared in Android.bp.
      
      Bug: 222438068
      Test: atest-src UpdatableSystemFontTest \
                --experimental-device-driven-test \
                --experimental-java-runtime-dependencies \
                --bazel-arg=--test_timeout=48000
      Test: atest UpdatableSystemFontTest
      Merged-In: Ic1b5b94aabd4c95744109f2cc7443ae04c43b3a6
      Change-Id: Ie23b74f37af3019e50753e2169752abadbf3e0fa
      cb9c9c7b
    • Yike's avatar
      Add a missing dependency for UpdatableSystemFontTest · d031ce0e
      Yike authored
      All of a test's dependencies should be explicitly declared in the Soong build module to enable infrastructure features that ensure correctness and optimize runtime.
      
      Here UpdatableSystemFontTest uses EmojiRenderingTestApp, but it doesn't declare the dependency in its Soong build module. This change declares EmojiRenderingTestApp in UpdatableSystemFontTest's `data` attribute.
      
      Bug: 222438068
      Test: atest-src UpdatableSystemFontTest \
                --experimental-device-driven-test \
                --experimental-java-runtime-dependencies \
                --bazel-arg=--test_timeout=48000
      Test: atest UpdatableSystemFontTest
      Change-Id: Ic1b5b94aabd4c95744109f2cc7443ae04c43b3a6
      d031ce0e
  13. Jul 25, 2022
    • Yike's avatar
      Add a missing dependency for UpdatableSystemFontTest · cdb5fe34
      Yike authored
      All of a test's dependencies should be explicitly declared in the Soong build module to enable infrastructure features that ensure correctness and optimize runtime.
      
      Here UpdatableSystemFontTest uses EmojiRenderingTestApp, but it doesn't declare the dependency in its Soong build module. This change declares EmojiRenderingTestApp in UpdatableSystemFontTest's `data` attribute.
      
      Bug: 222438068
      Test: atest-src UpdatableSystemFontTest \
                --experimental-device-driven-test \
                --experimental-java-runtime-dependencies \
                --bazel-arg=--test_timeout=48000
      Test: atest UpdatableSystemFontTest
      Change-Id: Ic1b5b94aabd4c95744109f2cc7443ae04c43b3a6
      cdb5fe34
  14. Feb 17, 2022
  15. Jul 22, 2021
  16. Jun 30, 2021
    • Kohsuke Yatoh's avatar
      Remove dependency to real NotoColorEmoji.ttf. · 5ef0ea1d
      Kohsuke Yatoh authored
      NotoColorEmoji.ttf has 'by-exception-only' license and should not have
      been depended by vts.
      This CL swaps it with a fake NotoColorEmoji.ttf font.
      testdata/NotoColorEmoji.ttx is based on
      cts/tests/tests/text/assets/fonts/samplefont.ttx
      
      Bug: 191914223
      Test: atest UpdatableSystemFontTest
      Change-Id: If5f57471b492cae1eb35f6d4a4ac0054270b23a3
      5ef0ea1d
  17. Jun 10, 2021
    • Kohsuke Yatoh's avatar
      Read font attributes from buffer. · a3f5f22c
      Kohsuke Yatoh authored
      minikin::Font::typeface() is expensive because it will open the font file.
      Font attribute getters should avoid calling it.
      
      Bug: 188201287
      Test: atest UpdatableSystemFontTest
      Test: atest CtsGraphicsTestCases:FontTest
      Test: atest CtsGraphicsTestCases:SystemFontsTest
      Change-Id: Ic8554f6dfacbe27ddfea6b375633c96bced2cc09
      a3f5f22c
  18. Jun 03, 2021
  19. May 14, 2021
  20. May 13, 2021
    • Kohsuke Yatoh's avatar
      Close FDs / mmap handles promptly. · 048d4b17
      Kohsuke Yatoh authored
      Currently we rely on GC to close them.
      This may cause system_server crash depending on the timing of GC.
      
      Bug: 187879195
      Test: atest UpdatableSystemFontTest
      Change-Id: I09ac3f349e5ec100e4164320cbf27977474cc4bb
      048d4b17
  21. May 06, 2021
    • Kohsuke Yatoh's avatar
      Ignore 'cmd font clear' failure in tearDown(). · 7a295f21
      Kohsuke Yatoh authored
      This would fail (as expected) on Pixel 3 / 3a.
      On Pixel 3 / 3a, we skip the test in assumeTrue() in setUp(). tearDown()
      should not throw and make the test fail.
      
      Bug: 187364676
      Test: forrest
      Change-Id: I9e82c2e27c3ef71e73bf022db543318cfc0f2ef7
      7a295f21
  22. May 03, 2021
    • Kohsuke Yatoh's avatar
      Use FontManager Java API in tests. · 353937a6
      Kohsuke Yatoh authored
      Thanks to commit 84383b5e, now Shell has
      UPDATE_FONTS permission and we can use it in instrumentation tests via
      UiAutomation#adoptShellPermissionIdentity().
      
      Bug: 186966067
      Test: atest UpdatableSystemFontTest
      Change-Id: Idd2043f53d95b7c904d563dd3ef1d1846841c0d6
      353937a6
    • Kohsuke Yatoh's avatar
      Make UpdatableSystemFontTest device side test. · f74e3b69
      Kohsuke Yatoh authored
      As commit 679a8247 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
      f74e3b69
  23. Apr 22, 2021
    • Kohsuke Yatoh's avatar
      Do not actually reboot the device in VTS test. · 679a8247
      Kohsuke Yatoh authored
      - Sometimes reboot takes longer time and makes following tests fail.
      - If the device has a screen lock, tests get stuck there.
      
      This is not a new issue, but a recently added test (#launchApp) tries
      to start an Activity and it fails when the device is still booting or at
      a screen lock.
      
      Bug: 185483743
      Bug: 185576411
      Test: atest FrameworksServicesTests:UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Change-Id: I86d4be1761e648114503b5f3560992a89c0b34d7
      679a8247
  24. Apr 20, 2021
    • Kohsuke Yatoh's avatar
      Wait more time for activity start. · cebe8bc8
      Kohsuke Yatoh authored
      - Looks like 5 seconds is too short on some emulator devices.
      - Makes sure that the app is installed and enabled.
      
      Bug: 185483743
      Bug: 185576411
      Test: atest UpdatableSystemFontTest#launchApp --rerun-until-failure
      Change-Id: Ibc1dba9f4b2b3c694e186798f65a456e712cba9e
      cebe8bc8
  25. Apr 13, 2021
    • Kohsuke Yatoh's avatar
      Verify updated font is used in app process. · f0c113ea
      Kohsuke Yatoh authored
      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
      f0c113ea
  26. Apr 08, 2021
    • Kohsuke Yatoh's avatar
      Allow same version update. · bd636d83
      Kohsuke Yatoh authored
      Bug: 184862662
      Test: atest FrameworksServicesTests:UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Change-Id: Ic955e2713c08e4c258d61cd3b597a472e1e3298c
      bd636d83
  27. Mar 02, 2021
    • Kohsuke Yatoh's avatar
      Revert "Add crash detection and recovery." · 4ba65f0a
      Kohsuke Yatoh authored
      This partially reverts the following commits:
      - commit de417e73
      - commit 45c62319
      
      Reason for revert: Caused boot time regression.
      
      Bug: 176939176
      Bug: 181536798
      Test: atest FrameworksServicesTests:UpdatableFontDirTest
      Test: atest UpdatableSystemFontTest
      Change-Id: Ibb5505018b24caa442fcbefda57aaa674ab9441e
      4ba65f0a
  28. Feb 23, 2021
    • Bob Badour's avatar
      [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base · d5949585
      Bob Badour authored
      Added SPDX-license-identifier-Apache-2.0 to:
        apct-tests/perftests/contentcapture/Android.bp
        apct-tests/perftests/inputmethod/Android.bp
        apex/appsearch/Android.bp
        apex/appsearch/framework/Android.bp
        apex/appsearch/service/Android.bp
        apex/appsearch/testing/Android.bp
        apex/jobscheduler/service/jni/Android.bp
        apex/media/service/Android.bp
        cmds/abx/Android.bp
        cmds/uinput/Android.bp
        cmds/uinput/jni/Android.bp
        core/tests/GameManagerTests/Android.bp
        core/tests/batterystatstests/BatteryStatsLoadTests/Android.bp
        core/tests/batterystatstests/BatteryStatsViewer/Android.bp
        core/tests/devicestatetests/Android.bp
        libs/WindowManager/Shell/tests/flicker/Android.bp
        libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/Android.bp
        libs/androidfw/fuzz/cursorwindow_fuzzer/Android.bp
        native/android/tests/activitymanager/UidImportanceHelperApps/Android.bp
        native/android/tests/activitymanager/nativeTests/Android.bp
        packages/SettingsLib/BannerMessagePreference/Android.bp
        packages/SettingsLib/CollapsingToolbarBaseActivity/Android.bp
        packages/SettingsLib/EmergencyNumber/Android.bp
        packages/SettingsLib/FooterPreference/Android.bp
        packages/SettingsLib/MainSwitchPreference/Android.bp
        packages/SettingsLib/TopIntroPreference/Android.bp
        packages/SettingsLib/UsageProgressBarPreference/Android.bp
        packages/overlays/AccentColorAmethystOverlay/Android.bp
        packages/overlays/AccentColorAquamarineOverlay/Android.bp
        packages/overlays/AccentColorBlackOverlay/Android.bp
        packages/overlays/AccentColorCarbonOverlay/Android.bp
        packages/overlays/AccentColorCinnamonOverlay/Android.bp
        packages/overlays/AccentColorGreenOverlay/Android.bp
        packages/overlays/AccentColorOceanOverlay/Android.bp
        packages/overlays/AccentColorOrchidOverlay/Android.bp
        packages/overlays/AccentColorPaletteOverlay/Android.bp
        packages/overlays/AccentColorPurpleOverlay/Android.bp
        packages/overlays/AccentColorSandOverlay/Android.bp
        packages/overlays/AccentColorSpaceOverlay/Android.bp
        packages/overlays/AccentColorTangerineOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationCornerOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationDoubleOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationHoleOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationNarrowOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationTallOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationWaterfallOverlay/Android.bp
        packages/overlays/DisplayCutoutEmulationWideOverlay/Android.bp
        packages/overlays/FontNotoSerifSourceOverlay/Android.bp
        packages/overlays/IconPackCircularAndroidOverlay/Android.bp
        packages/overlays/IconPackCircularLauncherOverlay/Android.bp
        packages/overlays/IconPackCircularSettingsOverlay/Android.bp
        packages/overlays/IconPackCircularSystemUIOverlay/Android.bp
        packages/overlays/IconPackCircularThemePickerOverlay/Android.bp
        packages/overlays/IconPackFilledAndroidOverlay/Android.bp
        packages/overlays/IconPackFilledLauncherOverlay/Android.bp
        packages/overlays/IconPackFilledSettingsOverlay/Android.bp
        packages/overlays/IconPackFilledSystemUIOverlay/Android.bp
        packages/overlays/IconPackFilledThemePickerOverlay/Android.bp
        packages/overlays/IconPackKaiAndroidOverlay/Android.bp
        packages/overlays/IconPackKaiLauncherOverlay/Android.bp
        packages/overlays/IconPackKaiSettingsOverlay/Android.bp
        packages/overlays/IconPackKaiSystemUIOverlay/Android.bp
        packages/overlays/IconPackKaiThemePickerOverlay/Android.bp
        packages/overlays/IconPackRoundedAndroidOverlay/Android.bp
        packages/overlays/IconPackRoundedLauncherOverlay/Android.bp
        packages/overlays/IconPackRoundedSettingsOverlay/Android.bp
        packages/overlays/IconPackRoundedSystemUIOverlay/Android.bp
        packages/overlays/IconPackRoundedThemePickerOverlay/Android.bp
        packages/overlays/IconPackSamAndroidOverlay/Android.bp
        packages/overlays/IconPackSamLauncherOverlay/Android.bp
        packages/overlays/IconPackSamSettingsOverlay/Android.bp
        packages/overlays/IconPackSamSystemUIOverlay/Android.bp
        packages/overlays/IconPackSamThemePickerOverlay/Android.bp
        packages/overlays/IconPackVictorAndroidOverlay/Android.bp
        packages/overlays/IconPackVictorLauncherOverlay/Android.bp
        packages/overlays/IconPackVictorSettingsOverlay/Android.bp
        packages/overlays/IconPackVictorSystemUIOverlay/Android.bp
        packages/overlays/IconPackVictorThemePickerOverlay/Android.bp
        packages/overlays/IconShapeHeartOverlay/Android.bp
        packages/overlays/IconShapePebbleOverlay/Android.bp
        packages/overlays/IconShapeRoundedRectOverlay/Android.bp
        packages/overlays/IconShapeSquareOverlay/Android.bp
        packages/overlays/IconShapeSquircleOverlay/Android.bp
        packages/overlays/IconShapeTaperedRectOverlay/Android.bp
        packages/overlays/IconShapeTeardropOverlay/Android.bp
        packages/overlays/IconShapeVesselOverlay/Android.bp
        packages/overlays/NavigationBarMode2ButtonOverlay/Android.bp
        packages/overlays/NavigationBarMode3ButtonOverlay/Android.bp
        packages/overlays/NavigationBarModeGesturalOverlay/Android.bp
        packages/overlays/NavigationBarModeGesturalOverlayExtraWideBack/Android.bp
        packages/overlays/NavigationBarModeGesturalOverlayNarrowBack/Android.bp
        packages/overlays/NavigationBarModeGesturalOverlayWideBack/Android.bp
        packages/overlays/OneHandedModeGesturalOverlay/Android.bp
        packages/services/CameraExtensionsProxy/Android.bp
        services/core/java/com/android/server/speech/Android.bp
        services/musicrecognition/Android.bp
        services/searchui/Android.bp
        services/smartspace/Android.bp
        services/tests/PackageManagerServiceTests/host/libs/IntentVerifyUtils/Android.bp
        services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/Android.bp
        services/tests/PackageManagerServiceTests/host/test-apps/IntentVerifier/Android.bp
        services/tests/PackageManagerServiceTests/host/test-apps/IntentVerifierTarget/Android.bp
        services/tests/PackageManagerServiceTests/host/test-apps/UsesStaticLibrary/Android.bp
        services/tests/PackageManagerServiceTests/unit/Android.bp
        services/tests/inprocesstests/Android.bp
        services/tests/mockingservicestests/jni/Android.bp
        services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
        services/texttospeech/Android.bp
        services/translation/Android.bp
        tests/BatteryStatsPerfTest/Android.bp
        tests/FlickerTests/test-apps/Android.bp
        tests/Input/Android.bp
        tests/SilkFX/Android.bp
        tests/SurfaceViewBufferTests/Android.bp
        tests/UpdatableSystemFontTest/Android.bp
        tests/UpdatableSystemFontTest/testdata/Android.bp
        tests/benchmarks/internal/Android.bp
        tools/powerstats/Android.bp
        tools/processors/intdef_mappings/Android.bp
        tools/xmlpersistence/Android.bp
      
      Bug: 68860345
      Bug: 151177513
      Bug: 151953481
      
      Test: m all
      
      Exempt-From-Owner-Approval: janitorial work
      Change-Id: I1b8d155a26a1a589a38abedea5f7f366e00346c6
      d5949585
  29. Feb 17, 2021
    • Kohsuke Yatoh's avatar
      Move UpdatableSystemFontTest to presubmit. · b01ceacc
      Kohsuke Yatoh authored
      Bug: 180370699
      Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/graphics/fonts --dry-run
      Test: atest --test-mapping frameworks/base/tests/UpdatableSystemFontTest --dry-run
      Change-Id: I084c641eeb52b2b9e63251ae1e21f5ceb192803a
      b01ceacc
  30. Feb 05, 2021
    • Kohsuke Yatoh's avatar
      Add test for font crash protection. · 45c62319
      Kohsuke Yatoh authored
      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
      45c62319
  31. Feb 03, 2021
  32. 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
    • Kohsuke Yatoh's avatar
      Add tests/UpdatableSystemFontTest/OWNERS. · a1de31b2
      Kohsuke Yatoh authored
      Bug: 176939176
      Test: n/a
      Change-Id: I42c20dd5dd5121720acae6eb747a62953b26b3aa
      a1de31b2
Loading