Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a004c226 authored by Jernej Virag's avatar Jernej Virag Committed by Android Build Coastguard Worker
Browse files

Disable memory trimming on AoD and on unlock

This disables font cache trimming on transition to AoD and when
unlocking the device - it's suspected to cause a large amount of jank.

The memory increases from fonts have been mitigated with other CLs, particularly I3f342fd7d427b8b6cfcd2e83480fbbb36d6782ea and I99dd4108eef34156c4f8f79bbb042703325ed82d . This CL doesn't seem to contribute much and is a strong suspect for adding a lot of jank.

Bug: 275486055
Bug: 286779126
Bug: 290277152
Test: ran perf test http://ab/I09600010175683794

(cherry picked from commit 064a05f3)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a33246b5c7b16475952755901e64de37a4ef52d9)
Merged-In: Iaf1735e605ee54845cd3943f8cac6a62c37a5877
Change-Id: Iaf1735e605ee54845cd3943f8cac6a62c37a5877
parent 9e7491f3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -683,11 +683,11 @@ object Flags {
    // TODO(b/283071711): Tracking bug
    @JvmField
    val TRIM_RESOURCES_WITH_BACKGROUND_TRIM_AT_LOCK =
            releasedFlag(2401, "trim_resources_with_background_trim_on_lock")
            unreleasedFlag(2401, "trim_resources_with_background_trim_on_lock")

    // TODO:(b/283203305): Tracking bug
    @JvmField
    val TRIM_FONT_CACHES_AT_UNLOCK = releasedFlag(2402, "trim_font_caches_on_unlock")
    val TRIM_FONT_CACHES_AT_UNLOCK = unreleasedFlag(2402, "trim_font_caches_on_unlock")

    // 2700 - unfold transitions
    // TODO(b/265764985): Tracking Bug