summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Ats Jenk <atsjenk@google.com> 2023-05-19 14:47:45 -0700
committer Ats Jenk <atsjenk@google.com> 2023-05-23 17:17:20 +0000
commitca89abc937a1182a6e30800fdf7ed31f62aa287e (patch)
tree10571a3a423413e3ea7129a5f0b7cd168bc8ae18 /libs/androidfw/FileStream.cpp
parent7713260e9fe051e30f8dfb4cac15a3fda0cbe5cc (diff)
If ProtoLog is not required, add fallback to logcat
Checks if logcat is enabled for a tag. If it is, logs directly to logcat from the stub class. Only applicable if REQUIRE_PROTOLOGTOOL is set to false which is only set in sysui studio based builds. Protolog tool does not run on the gradle based sysui studio build. Without the logcat fallback, sysui studio builds do not have any logging from protolog. This change does introduce a dependency on android.util.Log in ProtoLog class. This class is part of common sources for ProtoLog. And is imported in the protolog tool itself. Had to create a new filtered target of protolog common sources that excludes the ProtoLog class. Bug: 283499455 Test: m -j Test: build sysui from studio, enable ProtoLog to logcat for a tag, observe logs in logcat Change-Id: I9a085deaf39be1fb503c0df928a307e55c48ea4b
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions