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"; 18 19import "frameworks/base/core/proto/android/server/statlogger.proto"; 20import "frameworks/base/core/proto/android/privacy.proto"; 21 22package com.android.server; 23 24option java_multiple_files = true; 25 26// Dump from com.android.server.ForceAppStandbyTracker. 27// 28// Next ID: 13 29message ForceAppStandbyTrackerProto { 30 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 31 32 // Whether all apps are forced standby or not. 33 optional bool force_all_apps_standby = 1; 34 35 // UIDs currently active. 36 repeated int32 active_uids = 2; 37 38 // UIDs currently in the foreground. 39 repeated int32 foreground_uids = 11; 40 41 // App ids that are in power-save whitelist. 42 repeated int32 power_save_whitelist_app_ids = 3; 43 44 // App ids that are in power-save user whitelist. 45 repeated int32 power_save_user_whitelist_app_ids = 12; 46 47 // App ids that are in temporary power-save whitelist. 48 repeated int32 temp_power_save_whitelist_app_ids = 4; 49 50 message RunAnyInBackgroundRestrictedPackages { 51 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 52 53 optional int32 uid = 1; 54 optional string package_name = 2; 55 } 56 // Packages that are disallowed OP_RUN_ANY_IN_BACKGROUND. 57 repeated RunAnyInBackgroundRestrictedPackages run_any_in_background_restricted_packages = 5; 58 59 // Whether device is a small battery device 60 optional bool is_small_battery_device = 6; 61 62 // Whether force app standby for small battery device setting is enabled 63 optional bool force_all_apps_standby_for_small_battery = 7; 64 65 // Whether device is plugged in to the charger 66 optional bool is_plugged_in = 8; 67 68 // Performance stats. 69 optional StatLoggerProto stats = 9; 70 71 message ExemptedPackage { 72 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 73 74 optional int32 user_id = 1; 75 optional string package_name = 2; 76 } 77 78 // Packages that are in the EXEMPT bucket. 79 repeated ExemptedPackage exempted_packages = 10; 80} 81