diff options
author | DvTonder <david.vantonder@gmail.com> | 2013-01-08 16:25:09 -0500 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2013-01-18 09:27:54 +0100 |
commit | 1dc51e521b868dcda27fad1d93a041913b0efa38 (patch) | |
tree | 84a66c94e1f372990be3de05af2d831f0db2a3f9 /AndroidManifest.xml | |
parent | f9c9c2850954bca9023993bf22a1355a40779835 (diff) | |
download | android_packages_apps_LockClock-1dc51e521b868dcda27fad1d93a041913b0efa38.tar.gz android_packages_apps_LockClock-1dc51e521b868dcda27fad1d93a041913b0efa38.tar.bz2 android_packages_apps_LockClock-1dc51e521b868dcda27fad1d93a041913b0efa38.zip |
Chronus: Optimize widget loading/display
Completely refactors the Calendar handling and changes the refresh
interval from every minute to the minimum of either the next weather
refresh or the next event start/end.
It also now detects more events (new calendar entry, deleted calendar
entry, location change, timezone change etc)
Patch set 7 : Change the startup of the provider to only update the
required panels on enabling the appwigdet and updates
This further reduces the number of times the widget
refreshes itself, now limited only to actual events
Patch set 8 : Change the weather refresh time to be absolute, not
relative to current time
Patch set 9 : Refactor the calendar to use a CalendarInfo class that
maintains a static list of events. This allows the
refreshing of the lock screen widget without querying
the calendar provider every time the screen turns on
Patch set 10: Simplified onReceive loading/updating of widget with
additional tweaks to handling deleted widgets and
a fix to the refresh timer calculations including a
check of the lookahead window.
Patch set 11: Change the alarmservice to wake the CPU and do the
update if the device is sleeping. This way, since the
updates are so infrequent now, it makes sense to ensure
things are updated (if needed) when the user turns the
screen on after a while.
Patch set 12: Change application ID to an ID registered for Chronus
Patch set 13: Store the returned WOEID in sharedPreferences it if its
valid and retrieve the previously stored one if not. This
allows for the querying of weather data even though the
Yahoo Placefinder service API limit has been exceeded and
it returns an invalid XML result on geocode query.
Patch set 14: Add a flag to determine when we want the real placefinder
result or the cached result is also OK
Patch set 15: Final comments and code formatting cleanup
Patch set 16: Factor out weather fetching to separate service to
decouple weather fetching from widget update. Also
optimize a lot of code.
Patch set 17: Fix alarms refresh and optimize calendar query and weather
refresh behaviour.
Patch set 18: Unify debug flags
Change-Id: I0496dad356c92fb26ad7289268327b27b365b6cd
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9d7d2ad..8f49700 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -25,8 +25,11 @@ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_CALENDAR" /> + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> + <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> <application @@ -49,13 +52,26 @@ <!-- The Widget receiver --> <receiver android:name="com.cyanogenmod.lockclock.ClockWidgetProvider" > + <meta-data android:name="android.appwidget.provider" android:resource="@xml/lock_clock" /> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> - </intent-filter> - <meta-data android:name="android.appwidget.provider" android:resource="@xml/lock_clock" /> + <action android:name="android.intent.action.TIMEZONE_CHANGED"/> + <action android:name="android.intent.action.DATE_CHANGED"/> + <action android:name="android.intent.action.TIME_SET"/> + <action android:name="android.intent.action.LOCALE_CHANGED"/> + <action android:name="android.intent.action.BOOT_COMPLETED"/> + <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> + <action android:name="com.android.deskclock.NEXT_ALARM_TIME_SET"/> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.PROVIDER_CHANGED"/> + <data android:scheme="content"/> + <data android:host="com.android.calendar"/> + </intent-filter> </receiver> - <service android:name="com.cyanogenmod.lockclock.ClockWidgetService"></service> + <service android:name=".ClockWidgetService"></service> + <service android:name=".weather.WeatherUpdateService"></service> </application> |