Debian Codegraph @

core/proto/android/server/appstatetracker.proto

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