diff options
author | Cole Faust <colefaust@google.com> | 2023-12-20 19:02:09 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-12-20 19:02:09 +0000 |
commit | d4721ae7cb25d8262fb3becd3fd2480a235f548b (patch) | |
tree | aecdbc4c8879711aeb7eb7736bd2f24fd9f0ebc3 | |
parent | c311e46da99d5f7772a7f74cf17f60762bd32b7c (diff) | |
parent | 1b84971b5a8c5bcbc109d48cd887f996fcd583c9 (diff) | |
download | chre-d4721ae7cb25d8262fb3becd3fd2480a235f548b.tar.gz |
Sandbox chre_atoms_log.h am: 1b84971b5a
Original change: https://android-review.googlesource.com/c/platform/system/chre/+/2880528
Change-Id: I50161f46f663f1bc75071afaf1880b0a3b167181
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 11 | ||||
-rw-r--r-- | core/chre_metrics_with_atom.proto | 50 |
2 files changed, 60 insertions, 1 deletions
@@ -362,7 +362,16 @@ cc_test_host { genrule { name: "chre_atoms_log.h", tools: ["stats-log-api-gen"], - cmd: "$(location stats-log-api-gen) --header $(genDir)/chre_atoms_log.h --module chre --namespace android,chre,Atoms --vendor-proto hardware/google/pixel/pixelstats/pixelatoms.proto", + srcs: [ + "core/chre_metrics_with_atom.proto", + "core/chre_metrics.proto", + ":libstats_atom_options_protos", + ":libprotobuf-internal-descriptor-proto", + ], + cmd: "$(location stats-log-api-gen) --header $(out) " + + "--module chre " + + "--namespace android,chre,Atoms " + + "--vendor-proto $(location core/chre_metrics_with_atom.proto)", out: [ "chre_atoms_log.h", ], diff --git a/core/chre_metrics_with_atom.proto b/core/chre_metrics_with_atom.proto new file mode 100644 index 00000000..afd436de --- /dev/null +++ b/core/chre_metrics_with_atom.proto @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2023 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"; + +// !!!!!!!!!!!!!!!!!!!!!!!!!!!!! DISCLAIMER !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +// The messages definition here must be in sync with atoms definitions in +// hardware/google/pixel/pixelstats/pixelatoms.proto + +// C++ namespace: android.chre.metrics +package android.chre.metrics; + +option optimize_for = LITE_RUNTIME; + +option java_package = "android.chre"; +option java_outer_classname = "Metrics"; + +import "system/chre/core/chre_metrics.proto"; +import "frameworks/proto_logging/stats/atom_field_options.proto"; + +message Atom { + oneof pushed { + // AOSP atom ID range starts at 105000 + ChreHalNanoappLoadFailed chre_hal_nanoapp_load_failed = 105031 + [(android.os.statsd.module) = "chre"]; + ChrePalOpenFailed chre_pal_open_failed = 105032 + [(android.os.statsd.module) = "chre"]; + ChreApiErrorCodeDistributionTaken chre_api_error_code_distribution_taken = + 105033 [(android.os.statsd.module) = "chre"]; + ChreDynamicMemorySnapshotReported chre_dynamic_memory_snapshot_reported = + 105034 [(android.os.statsd.module) = "chre"]; + ChreEventQueueSnapshotReported chre_event_queue_snapshot_reported = 105035 + [(android.os.statsd.module) = "chre"]; + ChreApWakeUpOccurred chre_ap_wake_up_occurred = 105036 + [(android.os.statsd.module) = "chre"]; + } +} |