1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19// !!!!!!!!!!!!!!!!!!!!!!!!!!!!! DISCLAIMER !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 20// The messages definition here must be in sync with atoms definitions in 21// hardware/google/pixel/pixelstats/pixelatoms.proto 22 23// C++ namespace: android.chre.metrics 24package android.chre.metrics; 25 26option optimize_for = LITE_RUNTIME; 27 28option java_package = "android.chre"; 29option java_outer_classname = "Metrics"; 30 31import "system/chre/core/chre_metrics.proto"; 32import "frameworks/proto_logging/stats/atom_field_options.proto"; 33 34message Atom { 35 oneof pushed { 36 // AOSP atom ID range starts at 105000 37 ChreHalNanoappLoadFailed chre_hal_nanoapp_load_failed = 105031 38 [(android.os.statsd.module) = "chre"]; 39 ChrePalOpenFailed chre_pal_open_failed = 105032 40 [(android.os.statsd.module) = "chre"]; 41 ChreApiErrorCodeDistributionTaken chre_api_error_code_distribution_taken = 42 105033 [(android.os.statsd.module) = "chre"]; 43 ChreDynamicMemorySnapshotReported chre_dynamic_memory_snapshot_reported = 44 105034 [(android.os.statsd.module) = "chre"]; 45 ChreEventQueueSnapshotReported chre_event_queue_snapshot_reported = 105035 46 [(android.os.statsd.module) = "chre"]; 47 ChreApWakeUpOccurred chre_ap_wake_up_occurred = 105036 48 [(android.os.statsd.module) = "chre"]; 49 } 50} 51