• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2018 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";
18package com.android.internal.os;
19
20option java_multiple_files = true;
21
22// next: 41
23message PowerProfileProto {
24    optional double cpu_suspend = 1;
25
26    optional double cpu_idle = 2;
27
28    optional double cpu_active = 3;
29
30    message CpuCluster {
31        optional int32 id = 1;
32        optional double cluster_power = 2;
33        optional int32 cores = 3;
34        repeated int64 speed = 4;
35        repeated double core_power = 5;
36    }
37
38    repeated CpuCluster cpu_cluster = 40;
39
40    optional double wifi_scan = 4;
41
42    optional double wifi_on = 5;
43
44    optional double wifi_active = 6;
45
46    optional double wifi_controller_idle = 7;
47
48    optional double wifi_controller_rx = 8;
49
50    optional double wifi_controller_tx = 9;
51
52    repeated double wifi_controller_tx_levels = 10;
53
54    optional double wifi_controller_operating_voltage = 11;
55
56    optional double bluetooth_controller_idle = 12;
57
58    optional double bluetooth_controller_rx = 13;
59
60    optional double bluetooth_controller_tx = 14;
61
62    optional double bluetooth_controller_operating_voltage = 15;
63
64    optional double modem_controller_sleep = 16;
65
66    optional double modem_controller_idle = 17;
67
68    optional double modem_controller_rx = 18;
69
70    repeated double modem_controller_tx = 19;
71
72    optional double modem_controller_operating_voltage = 20;
73
74    optional double gps_on = 21;
75
76    repeated double gps_signal_quality_based = 22;
77
78    optional double gps_operating_voltage = 23;
79
80    optional double bluetooth_on = 24;
81
82    optional double bluetooth_active = 25;
83
84    optional double bluetooth_at_cmd = 26;
85
86    optional double ambient_display = 27;
87
88    optional double screen_on = 28;
89
90    optional double radio_on = 29;
91
92    optional double radio_scanning = 30;
93
94    optional double radio_active = 31;
95
96    optional double screen_full = 32;
97
98    optional double audio = 33;
99
100    optional double video = 34;
101
102    optional double flashlight = 35;
103
104    optional double memory = 36;
105
106    optional double camera = 37;
107
108    optional double wifi_batched_scan = 38;
109
110    optional double battery_capacity = 39;
111}
112