forked from rock64-android/device-rockchip-common
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalarm_alignment_conf.xml
89 lines (81 loc) · 3.67 KB
/
alarm_alignment_conf.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!--
/*
* Copyright (C) 2016-2017 Intel Mobile Communications GmbH
*
* Sec Class: Intel Confidential (IC)
*
* All rights reserved.
*/
alarm-align:
strategy: the alarm alignment strategy.
"fixed2": force align alarm in a fixed interval, the alignment base is boot elapsed time.
"none": no optimization, android default.
default value: "none"
fixed_alignment: fixed alignment unit.
for strategy: "fixed2"
default value: 0
strict: if this is true:
1, the repeat_alignment below will be invalid,
and the value of repeat_alignment will be set to a value
according to what current strategy is.
fixed2: set repeat_alignment to the same as fixed_alignment
2, the repeat alarm will also be aligned.
for strategy: "fixed2"
default value: true
skip_non_wakeup: defer triggering of the non-wakeup App alarm, until screen on.
for strategy: all strategy
default value: true
align_non_wakeup: determine if the non-wakeup App alarm should be aligned.
for strategy: all strategy
default value: false
align_system: set to "true" to also align system alarms, otherwise "false".
for strategy: all strategy
default value: false
skip_short_len: some App alarm has very short trigger time, and it could be very
critical to the App, we can't modify it. This configuration item
is to set the length of the short interval at most we need to
check before modify the alarm (based on second).
for strategy: all strategy
default value: 0
repeat_alignment: force extend the interval for repeat alarm (based on second).
for strategy: all strategy
default value: 0
white-list: skip the alarms in this list.
for strategy: all strategy
ignore_top_app: skip the alarms set by the App with top activity (on top screen). Options: true or false. NOTE: NOT implemented currently.
app:
package: the package name of the App.
action: the intent action of the alarm. NOTE: the string should be regex pattern.
black-list: always align the alarm in this list.
for strategy: all strategy
app:
package: the package name of the App.
action: the intent action of the alarm. NOTE: the string should be regex pattern.
NOTE:
1, the implementation will check if an alarm needs to be aligned in following priority.
balcklist > whitelist > system flag check
-->
<alarm-align strategy="fixed2" strict="true" skip_non_wakeup="false"
fixed_alignment="300" skip_short_len="10" repeat_alignment="300">
<white-list>
<!-- SAMPLE
<app package="com.tencent.mobileqq" action="com\.tencent\.mobileqq:MSF_.*" />
-->
<app package="com.google.android.deskclock" />
<app package="com.alarmclock.xtreme" />
<app package="com.alarmclock.xtreme.free" />
<app package="com.zdworks.android.zdclock" />
<app package="com.tiantian.ttclock" />
<app package="com.macropinch.axe" />
<app package="com.maize.digitalClock" />
<app package="nl.jsource.retroclock.android" />
<app package="com.asus.deskclock" />
</white-list>
<black-list>
<!-- SAMPLE
<app package="com.tencent.mobileqq" action="com\.tencent\.mobileqq:MSF_.*" />
-->
<app package="com.android.phone" action="com.android.internal.telephony.data-stall" />
</black-list>
</alarm-align>