1# Copyright (C) 2020 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15owner: Platform
16module: "android.sysprop.SuspendProperties"
17
18# Maximum time in milliseconds that system will wait between repeated suspend attempts
19prop {
20    api_name: "max_sleep_time_millis"
21    type: UInt
22    scope: Public
23    access: Readonly
24    prop_name: "suspend.max_sleep_time_millis"
25}
26
27# Base time in milliseconds that system will wait between repeated suspend attempts
28prop {
29    api_name: "base_sleep_time_millis"
30    type: UInt
31    scope: Public
32    access: Readonly
33    prop_name: "suspend.base_sleep_time_millis"
34}
35
36# Number of consecutive bad (short, failed) suspends above which time between attempts is scaled
37prop {
38    api_name: "backoff_threshold_count"
39    type: UInt
40    scope: Public
41    access: Readonly
42    prop_name: "suspend.backoff_threshold_count"
43}
44
45# Duration in milliseconds below which a given suspend is considered a short suspend
46prop {
47    api_name: "short_suspend_threshold_millis"
48    type: UInt
49    scope: Public
50    access: Readonly
51    prop_name: "suspend.short_suspend_threshold_millis"
52}
53
54# Factor for scaling the time between repeated suspend attempts
55prop {
56    api_name: "sleep_time_scale_factor"
57    type: Double
58    scope: Public
59    access: Readonly
60    prop_name: "suspend.sleep_time_scale_factor"
61}
62
63# If true, the wait time between repeated suspend attempts will be scaled on failed suspends
64prop {
65    api_name: "failed_suspend_backoff_enabled"
66    type: Boolean
67    scope: Public
68    access: Readonly
69    prop_name: "suspend.failed_suspend_backoff_enabled"
70}
71
72# If true, the wait time between repeated suspend attempts will be scaled on short suspends
73prop {
74    api_name: "short_suspend_backoff_enabled"
75    type: Boolean
76    scope: Public
77    access: Readonly
78    prop_name: "suspend.short_suspend_backoff_enabled"
79}