Enable background resource cache trim when device goes idle

The trim implementation was changed from trimMemory(BACKGROUND) to new
trimCaches() implementation which is more appropriate for the context.

See change I32b524ff55d732c0f0879301cc0956ba21e50174 for new
implementation.

Bug: 275486055
Test: atest ResourceTrimmerTest / perfetto profiling on cheetah
Change-Id: Ibd345a5a329ee2b1079fbe82e2bd8d037a476449
This commit is contained in:
Jernej Virag
2023-05-26 14:59:08 +02:00
parent 247df5876f
commit ff7271383b

View File

@@ -678,7 +678,7 @@ object Flags {
// TODO(b/283071711): Tracking bug
@JvmField
val TRIM_RESOURCES_WITH_BACKGROUND_TRIM_AT_LOCK =
unreleasedFlag(2401, "trim_resources_with_background_trim_on_lock")
releasedFlag(2401, "trim_resources_with_background_trim_on_lock")
// TODO:(b/283203305): Tracking bug
@JvmField