Move ProtoLog to shared place

Designed to work with both WM and WM-Shell
- source code is moved to com.android.internal.protolog, on contrast,
  com.android.internal.logging is mainly used for uieventlogger
- the protolog-lib is defined in frameworks/base/Android.bp, similar to
  uieventloggerlib as well
- to include protolog, reference what's in services/core/Android.bp

See also go/protolog-migration-s

Bug: 161561475
Test: atest ProtoLogImplTest \
            ProtoLogViewerConfigReaderTest \
            WmTests:ProtoLogIntegrationTest \
            LogDataTypeTest \
            protologtool-tests
Change-Id: I249a5675527d54778ac01529b4cb39fb09cb5d59
This commit is contained in:
Hongwei Wang
2020-07-20 18:04:35 -07:00
parent a108670622
commit 6014caf1ed
60 changed files with 272 additions and 243 deletions

View File

@@ -1415,3 +1415,30 @@ filegroup {
name: "framework-telephony-jarjar-rules",
srcs: ["telephony/framework-telephony-jarjar-rules.txt"],
}
// protolog start
filegroup {
name: "protolog-common-src",
srcs: [
"core/java/com/android/internal/protolog/common/**/*.java",
],
}
java_library {
name: "protolog-lib",
platform_apis: true,
srcs: [
"core/java/com/android/internal/protolog/ProtoLogImpl.java",
"core/java/com/android/internal/protolog/ProtoLogViewerConfigReader.java",
":protolog-common-src",
],
}
java_library {
name: "protolog-groups",
srcs: [
"core/java/com/android/internal/protolog/ProtoLogGroup.java",
":protolog-common-src",
],
}
// protolog end