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 */ 16syntax = "proto2"; 17 18package android.os.statsd.automotive.caruilib; 19 20import "frameworks/proto_logging/stats/atoms.proto"; 21import "frameworks/proto_logging/stats/atom_field_options.proto"; 22 23option java_package = "com.android.os.automotive.caruilib"; 24option java_multiple_files = true; 25 26extend Atom { 27 optional PluginInitialized plugin_initialized = 655 [(module) = "caruilib"]; 28} 29 30/** 31 * Logs from car-ui-lib on Android Automotive. 32 * 33 * Logged from package: packages/apps/Car/libs/car-ui-lib 34 */ 35message PluginInitialized { 36 37 enum Component { 38 UNSPECIFIED = 0; // go/proto-best-practices-checkers#enum-default-value 39 BASE_LAYOUTS = 1; // base layouts 40 APP_STYLED_VIEW = 2; // asv 41 RECYCLER_VIEW = 3; // Car Ui recycler view 42 PREFERENCES = 4; // preference 43 TEXT_VIEW = 5; // Car ui text view 44 PLUGIN = 6; // entire plugin 45 } 46 optional int32 uid = 1 [(is_uid) = true]; 47 optional int64 duration_millis = 2; // initial time to load a component 48 optional Component component = 3; 49 50 optional bool is_plugin_enabled = 4; 51} 52