1/* 2 * Copyright (C) 2022 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.os.statsd.automotive.car; 20 21import "frameworks/proto_logging/stats/atoms.proto"; 22import "frameworks/proto_logging/stats/atom_field_options.proto"; 23 24option java_package = "com.android.os.car"; 25option java_multiple_files = true; 26 27extend Atom { 28 optional CarWakeupFromSuspendReported car_wakeup_from_suspend_reported = 852 [(module) = "car"]; 29} 30 31/** 32 * Logs when a wakeup from suspend event occurs. 33 * 34 * Logged from package: packages/services/Car/service 35 */ 36message CarWakeupFromSuspendReported { 37 enum ResumeType { 38 UNSPECIFIED = 0; 39 RAM = 1; 40 DISK = 2; 41 } 42 optional ResumeType resume_type = 1; 43 optional int64 kernel_start_wall_time_millis = 2; 44 optional int64 car_service_start_wall_time_millis = 3; 45 optional int64 user_perceived_start_wall_time_millis = 4; 46 optional int64 device_start_wall_time_millis = 5; 47} 48