summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Pablo Gamito <pablogamito@google.com> 2024-11-08 13:26:19 +0000
committer Pablo Gamito <pablogamito@google.com> 2024-11-20 15:37:51 +0000
commit49a37555a8502603b79bfe958e947bd1115624ba (patch)
treebc752e51cae9616538231b1f26a8a0f1ebb441d3 /libs/androidfw/misc.cpp
parentf85fa9da7d3d6854baee24190f4477c9f6090610 (diff)
Update ProtoLog cache updater to take an ProtoLog instance object
Instead to querying the static variable directly, we pass the instance to use to query the state of tracing. This makes testing easier, but also addressed the issue of having to call the cacheUpdate method while enabling the PerfettoProtoLogImpl which has to happen before we set the instance as the static singleton this means the update cache method cannot rely on this static variable on the first call since it won't be set yet as the ProtoLogImpl will not be fully initialized at that point. Flag: android.tracing.perfetto_protolog_tracing Bug: 369560789 Test: atest TracingTests Change-Id: Ib2befa74bf3f4a89dcf093bdbb0b9cf37c3ac456
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions