• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2        package="com.android.deskclock"
3        android:versionCode="302" android:versionName="3.0.2">
4
5    <original-package android:name="com.android.alarmclock" />
6    <original-package android:name="com.android.deskclock" />
7
8    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
9    <uses-permission android:name="android.permission.WAKE_LOCK"/>
10    <uses-permission android:name="android.permission.VIBRATE"/>
11    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
12    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
13    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
14    <uses-permission android:name="android.permission.DEVICE_POWER" />
15    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
16
17    <application android:label="@string/app_label"
18                 android:icon="@mipmap/ic_launcher_alarmclock"
19                 android:requiredForAllUsers="true"
20                 android:supportsRtl="true">
21
22        <provider android:name=".provider.ClockProvider"
23                android:authorities="com.android.deskclock"
24                android:exported="false" />
25
26        <activity android:name="DeskClock"
27                android:label="@string/app_label"
28                android:theme="@style/DeskClock"
29                android:icon="@mipmap/ic_launcher_alarmclock"
30                android:launchMode="singleTask"
31                >
32
33            <intent-filter>
34                <action android:name="android.intent.action.MAIN" />
35                <category android:name="android.intent.category.DEFAULT" />
36                <category android:name="android.intent.category.LAUNCHER" />
37            </intent-filter>
38        </activity>
39
40        <activity-alias android:name="DockClock"
41                android:targetActivity="DeskClock"
42                android:label="@string/app_label"
43                android:theme="@style/DeskClock"
44                android:icon="@mipmap/ic_launcher_alarmclock"
45                android:launchMode="singleTask"
46                android:enabled="@bool/config_dockAppEnabled"
47                >
48            <intent-filter>
49                <action android:name="android.intent.action.MAIN" />
50                <category android:name="android.intent.category.DEFAULT" />
51                <category android:name="android.intent.category.DESK_DOCK" />
52            </intent-filter>
53        </activity-alias>
54
55        <activity android:name="SettingsActivity"
56                android:label="@string/settings"
57                android:theme="@style/SettingsTheme"
58                android:taskAffinity=""
59                android:excludeFromRecents="true"
60                >
61            <intent-filter>
62                <action android:name="android.intent.action.MAIN" />
63            </intent-filter>
64        </activity>
65
66        <activity android:name=".worldclock.CitiesActivity"
67                android:label="@string/cities_activity_title"
68                android:theme="@style/CitiesTheme"
69                android:taskAffinity=""
70                android:excludeFromRecents="true"
71                >
72            <intent-filter>
73                <action android:name="android.intent.action.MAIN" />
74            </intent-filter>
75        </activity>
76
77        <activity android:name=".alarms.AlarmActivity"
78                android:taskAffinity=""
79                android:excludeFromRecents="true"
80                android:theme="@style/AlarmAlertFullScreenTheme"
81                android:windowSoftInputMode="stateAlwaysHidden"
82                android:showOnLockScreen="true"
83                android:configChanges="orientation|screenSize|keyboardHidden|keyboard|navigation"/>
84
85        <activity android:name="ScreensaverActivity"
86                android:excludeFromRecents="true"
87                android:taskAffinity=""
88                android:theme="@style/ScreensaverActivityTheme"
89                android:configChanges="orientation|screenSize|keyboardHidden|keyboard" />
90
91        <receiver android:name=".alarms.AlarmStateManager"
92                  android:exported="false">
93        </receiver>
94
95        <service android:name=".alarms.AlarmService"
96                 android:exported="false">
97        </service>
98
99        <activity android:name="HandleApiCalls"
100                android:theme="@android:style/Theme.NoDisplay"
101                android:excludeFromRecents="true"
102                android:permission="com.android.alarm.permission.SET_ALARM">
103            <intent-filter>
104                <action android:name="android.intent.action.SET_ALARM" />
105                <category android:name="android.intent.category.DEFAULT" />
106            </intent-filter>
107            <intent-filter>
108                <action android:name="android.intent.action.SHOW_ALARMS" />
109                <category android:name="android.intent.category.DEFAULT" />
110            </intent-filter>
111            <intent-filter>
112                <action android:name="android.intent.action.SET_TIMER" />
113                <category android:name="android.intent.category.DEFAULT" />
114            </intent-filter>
115        </activity>
116
117        <activity-alias android:name="HandleSetAlarm"
118            android:targetActivity=".HandleApiCalls"
119            android:exported="true">
120        </activity-alias>
121
122
123        <receiver android:name="AlarmInitReceiver">
124            <intent-filter>
125                <action android:name="android.intent.action.BOOT_COMPLETED" />
126                <action android:name="android.intent.action.TIME_SET" />
127                <action android:name="android.intent.action.TIMEZONE_CHANGED" />
128                <action android:name="android.intent.action.LOCALE_CHANGED" />
129            </intent-filter>
130        </receiver>
131
132        <receiver android:name="com.android.alarmclock.AnalogAppWidgetProvider" android:label="@string/analog_gadget"
133           android:icon="@mipmap/ic_launcher_alarmclock">
134            <intent-filter>
135                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
136            </intent-filter>
137            <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" />
138            <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
139        </receiver>
140
141        <receiver android:name="com.android.alarmclock.DigitalAppWidgetProvider" android:label="@string/digital_gadget"
142           android:icon="@mipmap/ic_launcher_alarmclock">
143            <intent-filter>
144                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
145                <action android:name="com.android.deskclock.ON_QUARTER_HOUR" />
146                <action android:name="android.intent.action.DATE_CHANGED" />
147                <action android:name="android.intent.action.TIMEZONE_CHANGED" />
148                <action android:name="android.intent.action.SCREEN_ON" />
149                <action android:name="android.intent.action.TIME_SET" />
150                <action android:name="android.intent.action.LOCALE_CHANGED" />
151                <action android:name="android.intent.action.ALARM_CHANGED" />
152                <action android:name="android.app.action.NEXT_ALARM_CLOCK_CHANGED" />
153                <action android:name="com.android.deskclock.worldclock.update" />
154                </intent-filter>
155            <meta-data android:name="android.appwidget.provider" android:resource="@xml/digital_appwidget" />
156        </receiver>
157
158        <service android:name="com.android.alarmclock.DigitalAppWidgetService"
159             android:permission="android.permission.BIND_REMOTEVIEWS"
160             android:exported="false" />
161
162        <receiver android:name="com.android.alarmclock.DigitalWidgetViewsFactory"
163             android:exported="false" />
164
165        <!-- Dream (screensaver) implementation -->
166        <service android:name="Screensaver"
167            android:exported="true"
168            android:label="@string/app_label"
169            android:permission="android.permission.BIND_DREAM_SERVICE">
170            <intent-filter>
171                <action android:name="android.service.dreams.DreamService" />
172                <action android:name="android.app.action.NEXT_ALARM_CLOCK_CHANGED" />
173                <category android:name="android.intent.category.DEFAULT" />
174            </intent-filter>
175            <meta-data
176                android:name="android.service.dream"
177                android:resource="@xml/dream_info" />
178        </service>
179
180        <!-- Settings activity for screensaver -->
181        <activity android:name=".ScreensaverSettingsActivity"
182                android:label="@string/screensaver_settings"
183                android:theme="@style/ScreensaverSettingsActivityTheme"
184                android:taskAffinity=""
185                android:excludeFromRecents="true"
186                android:exported="true"
187                >
188            <intent-filter>
189                <action android:name="android.intent.action.MAIN" />
190            </intent-filter>
191        </activity>
192
193        <!-- This activity is basically like the TimerFragment in DeskClock
194         but only during lock screen
195         so that is only has the fired timers -->
196        <activity android:name="com.android.deskclock.timer.TimerAlertFullScreen"
197                android:excludeFromRecents="true"
198                android:theme="@style/TimerAlertFullScreenTheme"
199                android:launchMode="singleInstance"
200                android:showOnLockScreen="true"
201                android:taskAffinity=""
202                android:configChanges="orientation|screenSize|keyboardHidden|keyboard|navigation"/>
203
204        <service android:name="TimerRingService"
205                android:exported="false"
206                android:description="@string/timer_ring_service_desc">
207            <intent-filter>
208                <action android:name="com.android.deskclock.TIMER_ALERT" />
209            </intent-filter>
210        </service>
211
212        <receiver android:name="com.android.deskclock.timer.TimerReceiver"
213                android:exported="false">
214            <intent-filter>
215                <action android:name="start_timer" />
216                <action android:name="delete_timer" />
217                <action android:name="times_up" />
218                <action android:name="timer_stop" />
219                <action android:name="timer_reset" />
220                <action android:name="timer_done" />
221                <action android:name="timer_update" />
222                <action android:name="notif_in_use_show" />
223                <action android:name="notif_in_use_cancel" />
224                <action android:name="notif_times_up_stop" />
225                <action android:name="notif_times_up_plus_one" />
226                <action android:name="notif_times_up_show" />
227                <action android:name="notif_times_up_cancel" />
228            </intent-filter>
229        </receiver>
230
231        <service android:name="com.android.deskclock.stopwatch.StopwatchService"
232                android:exported="false"
233                android:description="@string/stopwatch_service_desc">
234            <intent-filter>
235                <action android:name="start_stopwatch" />
236                <action android:name="lap_stopwatch" />
237                <action android:name="stop_stopwatch" />
238                <action android:name="reset_stopwatch" />
239                <action android:name="share_stopwatch" />
240            </intent-filter>
241        </service>
242    </application>
243</manifest>
244
245