Home | History | Annotate | Download | only in os
      1 /*
      2  * Copyright (C) 2016 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 syntax = "proto2";
     17 
     18 option java_multiple_files = true;
     19 
     20 import "frameworks/base/libs/incident/proto/android/privacy.proto";
     21 
     22 package android.os;
     23 
     24 message KernelWakeSourcesProto {
     25     option (android.msg_privacy).dest = DEST_AUTOMATIC;
     26 
     27     // Kernel records of what caused the application processor to wake up
     28     message WakeupSource {
     29         option (android.msg_privacy).dest = DEST_AUTOMATIC;
     30 
     31         // Name of the event which triggers application processor
     32         optional string name = 1;
     33 
     34         optional int32 active_count = 2;
     35 
     36         optional int32 event_count = 3;
     37 
     38         optional int32 wakeup_count = 4;
     39 
     40         optional int32 expire_count = 5;
     41 
     42         optional int64 active_since = 6;
     43 
     44         optional int64 total_time = 7;
     45 
     46         optional int64 max_time = 8;
     47 
     48         optional int64 last_change = 9;
     49 
     50         optional int64 prevent_suspend_time = 10;
     51 
     52         // Next Tag: 11
     53     }
     54     repeated WakeupSource wakeup_sources = 1;
     55 }
     56