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.carlauncher; 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.carlauncher"; 24option java_multiple_files = true; 25 26extend Atom { 27 optional CarRecentsEventReported car_recents_event_reported = 770 [(module) = "carlauncher"]; 28 optional CarCalmModeEventReported car_calm_mode_event_reported = 797 [(module) = "carlauncher"]; 29} 30 31/** 32 * Logs when an recents event occurs in carlauncher. 33 * 34 * Logged from package: packages/apps/Car/Launcher 35 */ 36message CarRecentsEventReported { 37 enum RecentsEventType { 38 UNSPECIFIED = 0; 39 SESSION_STARTED = 1; 40 SESSION_FINISHED = 2; 41 APP_LAUNCHED = 3; 42 APP_DISMISSED = 4; 43 CLEAR_ALL = 5; 44 } 45 optional int64 session_id = 1; 46 optional int64 event_id = 2; 47 optional RecentsEventType event_type = 3; 48 optional int32 total_task_count = 4; 49 optional int32 event_task_index = 5; 50 optional int64 time_to_event_millis = 6; 51 optional int32 package_uid = 7 [(is_uid) = true]; 52} 53 54/** 55 * Logs when a calm mode event occurs in carlauncher. 56 * 57 * Logged from package: packages/apps/Car/Launcher 58 */ 59message CarCalmModeEventReported { 60 enum CalmModeEventType { 61 UNSPECIFIED_EVENT_TYPE = 0; 62 SESSION_STARTED = 1; 63 SESSION_FINISHED = 2; 64 } 65 enum CalmModeLaunchType { 66 UNSPECIFIED_LAUNCH_TYPE = 0; 67 SETTINGS = 1; 68 QUICK_CONTROLS = 2; 69 } 70 optional int64 session_id = 1; 71 optional int64 event_id = 2; 72 optional CalmModeEventType event_type = 3; 73 optional CalmModeLaunchType launch_type = 4; 74} 75