1/* 2 * Copyright (C) 2017 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 android.service.battery; 19 20option java_multiple_files = true; 21option java_outer_classname = "BatteryServiceProto"; 22 23import "frameworks/base/core/proto/android/os/enums.proto"; 24import "frameworks/base/core/proto/android/privacy.proto"; 25 26message BatteryServiceDumpProto { 27 option (android.msg_privacy).dest = DEST_AUTOMATIC; 28 29 // If true: UPDATES STOPPED -- use 'reset' to restart 30 optional bool are_updates_stopped = 1; 31 // Plugged status of power sources 32 optional android.os.BatteryPluggedStateEnum plugged = 2; 33 // Max current in microamperes. This may be 0 if the device's kernel drivers 34 // don't support it. 35 optional int32 max_charging_current = 3; 36 // Max voltage. This may be 0 if the device's kernel drivers don't support 37 // it. 38 optional int32 max_charging_voltage = 4; 39 // Battery capacity in microampere-hours 40 optional int32 charge_counter = 5; 41 // Charging status 42 optional android.os.BatteryStatusEnum status = 6; 43 // Battery health 44 optional android.os.BatteryHealthEnum health = 7; 45 // True if the battery is present 46 optional bool is_present = 8; 47 // Charge level, from 0 through "scale" inclusive 48 optional int32 level = 9; 49 // The maximum value for the charge level 50 optional int32 scale = 10; 51 // Battery voltage in millivolts 52 optional int32 voltage = 11; 53 // Battery temperature in tenths of a degree Centigrade 54 optional int32 temperature = 12; 55 // The type of battery installed, e.g. "Li-ion" 56 optional string technology = 13; 57} 58