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 19package android.hardware.istats; 20 21option java_package = "android.hardware.istats"; 22option java_outer_classname = "TestVendorAtom"; 23 24import "frameworks/proto_logging/stats/atom_field_options.proto"; 25 26/* Allocated atom IDs. */ 27message Atom { 28 oneof pushed { 29 TestVendorAtomReported test_vendor_atom_reported = 109999 30 [(android.os.statsd.module) = "istatsvts"]; 31 } 32} 33 34message TestVendorAtomNestedMessage { 35 optional int32 int_value = 1; 36 optional int64 long_value = 2; 37 optional float float_value = 3; 38} 39 40/** 41 * Logs the test vendor atom for IStats VTS 42 */ 43message TestVendorAtomReported { 44 optional string reverse_domain_name = 1; 45 optional int32 int_value = 2; 46 optional int64 long_value = 3; 47 optional float float_value = 4; 48 optional string string_value = 5; 49 optional bool bool_value = 6; 50 repeated int32 repeated_int_value = 7; 51 repeated int64 repeated_long_value = 8; 52 repeated float repeated_float_value = 9; 53 repeated string repeated_string_value = 10; 54 repeated bool repeated_bool_value = 11; 55 optional TestVendorAtomNestedMessage byte_array_value = 12 56 [(android.os.statsd.log_mode) = MODE_BYTES]; 57} 58