OSDN Git Service

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