OSDN Git Service

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