blob: e0b62aa757448a01ba84686ca42b3c1f9d700078 [file] [log] [blame]
Yi Jin0a3406f2017-06-22 19:23:11 -07001/*
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
17syntax = "proto3";
18
19option java_multiple_files = true;
20option java_outer_classname = "WakeupSourcesProto";
21
22package android.os;
23
24message KernelWakeSources {
25 // Kernel records of what caused the application processor to wake up
26 repeated WakeupSourceProto wakeup_sources = 1;
27}
28
Yi Jinb44f7d42017-07-21 12:12:59 -070029// Next Tag: 11
Yi Jin0a3406f2017-06-22 19:23:11 -070030message WakeupSourceProto {
31 // Name of the event which triggers application processor
32 string name = 1;
33
34 int32 active_count = 2;
35
36 int32 event_count = 3;
37
38 int32 wakeup_count = 4;
39
40 int32 expire_count = 5;
41
42 int64 active_since = 6;
43
44 int64 total_time = 7;
45
46 int64 max_time = 8;
47
48 int64 last_change = 9;
49
50 int64 prevent_suspend_time = 10;
51}