Move Field proto out of stats_log.proto to keep it clean.

Test: statsd unit test passed.

Change-Id: I31ffea40cf1b82c16bf37c706969bfb159639c7b
This commit is contained in:
Yangster-mac
2018-01-04 15:43:39 -08:00
parent a598c05d63
commit d19bcae42d
5 changed files with 32 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ statsd_common_src := \
../../core/java/android/os/IStatsManager.aidl \
src/stats_log.proto \
src/statsd_config.proto \
src/statsd_internal.proto \
src/atoms.proto \
src/field_util.cpp \
src/stats_log_util.cpp \

View File

@@ -17,6 +17,7 @@
#include "Log.h"
#include "frameworks/base/cmds/statsd/src/statsd_config.pb.h"
#include "frameworks/base/cmds/statsd/src/statsd_internal.pb.h"
#include "dimension.h"
#include "field_util.h"

View File

@@ -17,6 +17,7 @@
#pragma once
#include "frameworks/base/cmds/statsd/src/statsd_config.pb.h"
#include "frameworks/base/cmds/statsd/src/statsd_internal.pb.h"
#include "frameworks/base/cmds/statsd/src/stats_log.pb.h"
#include <unordered_map>

View File

@@ -24,12 +24,6 @@ option java_outer_classname = "StatsLog";
import "frameworks/base/cmds/statsd/src/atoms.proto";
message Field {
optional int32 field = 1;
optional int32 position_index = 2 [default = -1];
repeated Field child = 3;
}
message DimensionsValue {
optional int32 field = 1;

View File

@@ -0,0 +1,29 @@
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package android.os.statsd;
option java_package = "com.android.os";
option java_outer_classname = "StatsdInternalProto";
message Field {
optional int32 field = 1;
optional int32 position_index = 2 [default = -1];
repeated Field child = 3;
}