OSDN Git Service

Upgrade the clock widget correctly.
[android-x86/packages-apps-DeskClock.git] / AndroidManifest.xml
1 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2         package="com.android.deskclock">
3
4     <original-package android:name="com.android.alarmclock" />
5     <original-package android:name="com.android.deskclock" />
6
7     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
8     <uses-permission android:name="android.permission.WAKE_LOCK"/>
9     <uses-permission android:name="android.permission.VIBRATE"/>
10     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
11     <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
12     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
13     <uses-permission android:name="android.permission.DEVICE_POWER" />
14
15     <application android:label="@string/app_label"
16                  android:icon="@drawable/ic_launcher_alarmclock">
17
18         <provider android:name="AlarmProvider" android:authorities="com.android.deskclock" />
19
20         <activity android:name="DeskClock"
21                 android:label="@string/app_label"
22                 android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
23                 android:icon="@drawable/ic_launcher_alarmclock"
24                 android:launchMode="singleInstance"
25                 android:configChanges="orientation|keyboardHidden|keyboard|navigation">
26                 >
27
28             <!-- while docked, this is our home application -->
29             <meta-data android:name="android.dock_home" android:value="true" />
30
31             <intent-filter>
32                 <action android:name="android.intent.action.MAIN" />
33                 <category android:name="android.intent.category.DEFAULT" />
34                 <category android:name="android.intent.category.LAUNCHER" />
35                 <category android:name="android.intent.category.DESK_DOCK" />
36             </intent-filter>
37         </activity>
38
39         <activity android:name="AlarmClock"
40                 android:label="@string/alarm_list_title"
41                 android:taskAffinity=""
42                 android:excludeFromRecents="true"
43                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"
44                 >
45             <intent-filter>
46                 <action android:name="android.intent.action.MAIN" />
47             </intent-filter>
48         </activity>
49
50         <activity android:name="SettingsActivity"
51                 android:label="@string/settings"
52                 android:taskAffinity=""
53                 android:excludeFromRecents="true"
54                 >
55             <intent-filter>
56                 <action android:name="android.intent.action.MAIN" />
57             </intent-filter>
58         </activity>
59
60         <activity android:name="SetAlarm" android:label="@string/set_alarm"
61                 android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
62
63         <activity android:name="AlarmAlert"
64                 android:excludeFromRecents="true"
65                 android:theme="@style/alarm_alert"
66                 android:launchMode="singleInstance"
67                 android:taskAffinity=""
68                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
69
70         <!-- This activity is basically the same as AlarmAlert but with a more
71              generic theme. It also shows as full screen (with status bar) but
72              with the wallpaper background. -->
73         <activity android:name="AlarmAlertFullScreen"
74                 android:excludeFromRecents="true"
75                 android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
76                 android:launchMode="singleInstance"
77                 android:taskAffinity=""
78                 android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
79
80         <receiver android:name="AlarmReceiver">
81             <intent-filter>
82                <action android:name="com.android.deskclock.ALARM_ALERT" />
83                <action android:name="alarm_killed" />
84                <action android:name="cancel_snooze" />
85             </intent-filter>
86         </receiver>
87
88         <!-- This service receives the same intent as AlarmReceiver but it does
89              not respond to the same broadcast. The AlarmReceiver will receive
90              the alert broadcast and will start this service with the same
91              intent. The service plays the alarm alert and vibrates the device.
92              This allows the alert to continue playing even if another activity
93              causes the AlarmAlert activity to pause. -->
94         <service android:name="AlarmKlaxon">
95             <intent-filter>
96                 <action android:name="com.android.deskclock.ALARM_ALERT" />
97             </intent-filter>
98         </service>
99
100         <receiver android:name="AlarmInitReceiver">
101             <intent-filter>
102                 <action android:name="android.intent.action.BOOT_COMPLETED" />
103                 <action android:name="android.intent.action.TIME_SET" />
104                 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
105                 <action android:name="android.intent.action.LOCALE_CHANGED" />
106             </intent-filter>
107         </receiver>
108
109         <receiver android:name="com.android.alarmclock.AnalogAppWidgetProvider" android:label="@string/analog_gadget"
110                 android:icon="@drawable/ic_widget_analog_clock">
111             <intent-filter>
112                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
113             </intent-filter>
114             <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" />
115             <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" />
116         </receiver>
117     </application>
118 </manifest>
119