Merge "Revert^2 "Delete atoms.proto from statsd"" am: e72a1eb1eb am: 919a826dc8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1510611

Change-Id: I8ed2ab1fdad5a393eadf610633bff57bcfaadc76
This commit is contained in:
Baligh Uddin
2020-11-25 07:59:21 +00:00
committed by Automerger Merge Worker
10 changed files with 29 additions and 46 deletions

View File

@@ -812,13 +812,17 @@ java_library_host {
name: "platformprotos", name: "platformprotos",
srcs: [ srcs: [
":ipconnectivity-proto-src", ":ipconnectivity-proto-src",
":libstats_internal_protos",
"cmds/am/proto/instrumentation_data.proto", "cmds/am/proto/instrumentation_data.proto",
"cmds/statsd/src/**/*.proto", "cmds/statsd/src/**/*.proto",
"core/proto/**/*.proto", "core/proto/**/*.proto",
"libs/incident/proto/**/*.proto", "libs/incident/proto/**/*.proto",
], ],
proto: { proto: {
include_dirs: ["external/protobuf/src"], include_dirs: [
"external/protobuf/src",
"frameworks/proto_logging/stats",
],
type: "full", type: "full",
}, },
errorprone: { errorprone: {

View File

@@ -14,34 +14,6 @@
// limitations under the License. // limitations under the License.
// //
// ==========================================================
// Build the library for use on the host
// ==========================================================
cc_library_host_shared {
name: "libstats_proto_host",
srcs: [
"src/atoms.proto",
"src/atom_field_options.proto",
],
shared_libs: [
"libplatformprotos",
],
proto: {
type: "full",
export_proto_headers: true,
include_dirs: [
"external/protobuf/src",
],
},
export_shared_lib_headers: [
"libplatformprotos",
]
}
cc_defaults { cc_defaults {
name: "statsd_defaults", name: "statsd_defaults",
@@ -275,9 +247,8 @@ cc_test {
// atom_field_options.proto needs field_options.proto, but that is // atom_field_options.proto needs field_options.proto, but that is
// not included in libprotobuf-cpp-lite, so compile it here. // not included in libprotobuf-cpp-lite, so compile it here.
":libprotobuf-internal-protos", ":libprotobuf-internal-protos",
":libstats_internal_protos",
"src/atom_field_options.proto",
"src/atoms.proto",
"src/shell/shell_data.proto", "src/shell/shell_data.proto",
"src/stats_log.proto", "src/stats_log.proto",
"tests/AlarmMonitor_test.cpp", "tests/AlarmMonitor_test.cpp",
@@ -341,7 +312,10 @@ cc_test {
proto: { proto: {
type: "lite", type: "lite",
include_dirs: ["external/protobuf/src"], include_dirs: [
"external/protobuf/src",
"frameworks/proto_logging/stats",
],
}, },
} }
@@ -358,6 +332,7 @@ cc_benchmark {
// atom_field_options.proto needs field_options.proto, but that is // atom_field_options.proto needs field_options.proto, but that is
// not included in libprotobuf-cpp-lite, so compile it here. // not included in libprotobuf-cpp-lite, so compile it here.
":libprotobuf-internal-protos", ":libprotobuf-internal-protos",
":libstats_internal_protos",
"benchmark/duration_metric_benchmark.cpp", "benchmark/duration_metric_benchmark.cpp",
"benchmark/filter_value_benchmark.cpp", "benchmark/filter_value_benchmark.cpp",
@@ -367,14 +342,15 @@ cc_benchmark {
"benchmark/main.cpp", "benchmark/main.cpp",
"benchmark/metric_util.cpp", "benchmark/metric_util.cpp",
"benchmark/stats_write_benchmark.cpp", "benchmark/stats_write_benchmark.cpp",
"src/atom_field_options.proto",
"src/atoms.proto",
"src/stats_log.proto", "src/stats_log.proto",
], ],
proto: { proto: {
type: "lite", type: "lite",
include_dirs: ["external/protobuf/src"], include_dirs: [
"external/protobuf/src",
"frameworks/proto_logging/stats",
],
}, },
cflags: [ cflags: [
@@ -406,11 +382,14 @@ java_library {
sdk_version: "core_current", sdk_version: "core_current",
proto: { proto: {
type: "lite", type: "lite",
include_dirs: ["external/protobuf/src"], include_dirs: [
"external/protobuf/src",
"frameworks/proto_logging/stats",
],
}, },
srcs: [ srcs: [
"src/atoms.proto", ":libstats_atoms_proto",
"src/shell/shell_config.proto", "src/shell/shell_config.proto",
"src/shell/shell_data.proto", "src/shell/shell_data.proto",
"src/stats_log.proto", "src/stats_log.proto",

View File

@@ -21,7 +21,7 @@ package android.os.statsd;
option java_package = "com.android.os.statsd"; option java_package = "com.android.os.statsd";
option java_outer_classname = "ShellDataProto"; option java_outer_classname = "ShellDataProto";
import "frameworks/base/cmds/statsd/src/atoms.proto"; import "frameworks/proto_logging/stats/atoms.proto";
// The output of shell subscription, including both pulled and pushed subscriptions. // The output of shell subscription, including both pulled and pushed subscriptions.
message ShellData { message ShellData {

View File

@@ -21,7 +21,7 @@ package android.os.statsd;
option java_package = "com.android.os"; option java_package = "com.android.os";
option java_outer_classname = "StatsLog"; option java_outer_classname = "StatsLog";
import "frameworks/base/cmds/statsd/src/atoms.proto"; import "frameworks/proto_logging/stats/atoms.proto";
message DimensionsValue { message DimensionsValue {
optional int32 field = 1; optional int32 field = 1;

View File

@@ -16,8 +16,8 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "frameworks/base/cmds/statsd/src/atoms.pb.h"
#include "frameworks/base/core/proto/android/stats/launcher/launcher.pb.h" #include "frameworks/base/core/proto/android/stats/launcher/launcher.pb.h"
#include "frameworks/proto_logging/stats/atoms.pb.h"
#include "log/log_event_list.h" #include "log/log_event_list.h"
#include "stats_event.h" #include "stats_event.h"

View File

@@ -20,9 +20,9 @@
#include <vector> #include <vector>
#include "frameworks/base/cmds/statsd/src/atoms.pb.h"
#include "frameworks/base/cmds/statsd/src/shell/shell_config.pb.h" #include "frameworks/base/cmds/statsd/src/shell/shell_config.pb.h"
#include "frameworks/base/cmds/statsd/src/shell/shell_data.pb.h" #include "frameworks/base/cmds/statsd/src/shell/shell_data.pb.h"
#include "frameworks/proto_logging/stats/atoms.pb.h"
#include "stats_event.h" #include "stats_event.h"
#include "tests/metrics/metrics_test_helper.h" #include "tests/metrics/metrics_test_helper.h"
#include "tests/statsd_test_util.h" #include "tests/statsd_test_util.h"

View File

@@ -20,7 +20,7 @@
#include <map> #include <map>
#include "frameworks/base/cmds/statsd/src/atoms.pb.h" #include "frameworks/proto_logging/stats/atoms.pb.h"
namespace android { namespace android {
namespace stats_log_api_gen { namespace stats_log_api_gen {

View File

@@ -24,7 +24,7 @@
#include <set> #include <set>
#include <vector> #include <vector>
#include "frameworks/base/cmds/statsd/src/atom_field_options.pb.h" #include "frameworks/proto_logging/stats/atom_field_options.pb.h"
namespace android { namespace android {
namespace stats_log_api_gen { namespace stats_log_api_gen {

View File

@@ -9,7 +9,7 @@
#include <vector> #include <vector>
#include "Collation.h" #include "Collation.h"
#include "frameworks/base/cmds/statsd/src/atoms.pb.h" #include "frameworks/proto_logging/stats/atoms.pb.h"
#include "java_writer.h" #include "java_writer.h"
#include "java_writer_q.h" #include "java_writer_q.h"
#include "native_writer.h" #include "native_writer.h"

View File

@@ -16,8 +16,8 @@
syntax = "proto2"; syntax = "proto2";
import "frameworks/base/cmds/statsd/src/atoms.proto"; import "frameworks/proto_logging/stats/atoms.proto";
import "frameworks/base/cmds/statsd/src/atom_field_options.proto"; import "frameworks/proto_logging/stats/atom_field_options.proto";
package android.stats_log_api_gen; package android.stats_log_api_gen;