summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/AppWidgetService.java
Commit message (Collapse)AuthorAgeFilesLines
* am 7322e557: am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml ↵Dianne Hackborn2011-06-031-0/+1
|\ | | | | | | | | | | | | resources used for homescreen widgets." into honeycomb-mr2 * commit '7322e557cfe42da42779625d69ced2db74a9df90': Fix issue #4502672: Wrong xml resources used for homescreen widgets.
| * Fix issue #4502672: Wrong xml resources used for homescreen widgets.Dianne Hackborn2011-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a race in the system process between applying the initial configuration and executing code in higher-level system services like the app widget service that relies on the config. For some reason it starting showing up more after my code changes; it should now be completely fixed. Also fix the activity starting window to run in compatibility mode if its application is going to be in compatibility mode. And some various cleanup and small fixes. Change-Id: I0566933bf1bbb4259c1d99a60c0a3c19af1542e5
* | Modifying RemoteViewsFactory interfaceAdam Cohen2011-03-241-1/+3
|/ | | | | | | -made onDestroy() one way -moved uncaught exception handling to the application process Change-Id: I958571a34eaa48b27e441e3a117c109fb2d2c644
* Catching all Exceptions when calling through to RemoteViewsFactoryAdam Cohen2011-03-161-3/+3
| | | | Change-Id: Ib20c880bb7626565541ab4697317fcfaa2e6b5b7
* Small change to AppWidgetProviderInfo public field name and docsAdam Cohen2011-02-281-1/+1
| | | | Change-Id: Ia799cfc1824ccee1f7fd041ae8ecaa1a0395c3f6
* Merge "Adding framework support for resizable widgets"Adam Cohen2011-02-251-6/+9
|\
| * Adding framework support for resizable widgetsAdam Cohen2011-02-251-6/+9
| | | | | | | | | | | | | | | | | | -> Added resizeMode to the widget xml -> Fixed an unexposed bug in AppWidgetHost where minWidth and minHeight were never being converted from complex type to dp Change-Id: Ibbc4fc6542d095623ac2a40694b6a3dbfeb279ad
* | Fixing buildWinson Chung2011-02-251-1/+1
| | | | | | | | Change-Id: I3d60c115190a6e478777229d4851dedc78111c39
* | Fixing issue where RemoteViewsService.onDestroy() was never being called.Winson Chung2011-02-251-5/+81
|/ | | | Change-Id: I15ad04eee18bc3e09d4846c7f2f2d2d8d168e518
* Re-enabling queued unbinding of services after requests to the service. ↵Winson Chung2011-01-261-33/+42
| | | | | | | | | (3394210) - Fix for crash when detaching from window - Potential fix for occasional IllegalStateException when updating List based widgets Change-Id: I3d3f2bb691552a1136111043db686c4926b510c6
* Disabling queued unbinding of RemoteViewsServices until we fix flashing in ↵Winson Chung2011-01-191-1/+1
| | | | | | widgets. Change-Id: Iee53d4930dc4007df4298a282cdd5101876215a1
* Refactoring app widgets to address security/performance issues.Winson Chung2011-01-181-18/+150
| | | | | | | - Moving the service binding to AppWidgetService to prevent arbitrary apps from binding to widget services - Requiring RemoteViewsServices to require android.permission.BIND_REMOTEVIEWS permission Change-Id: Id135bafba998299eb278067712b8a5d8487cfd04
* Make AppWidgetService handle components enabling and disabling.Joe Onorato2011-01-101-2/+12
| | | | Change-Id: Ie6b75cb90be38bbce694ccf2d5a342d7f0172fa4
* Adding widget auto-advance capabilityAdam Cohen2010-11-101-0/+2
| | | | Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
* am 8f0f1b1e: am 274ad982: Merge "Just disable widgets that come from apps on ↵Joe Onorato2010-08-261-1/+7
|\ | | | | | | | | | | | | | | | | sd cards, because they don\'t work anyway." into gingerbread Merge commit '8f0f1b1e9defc61c2831e8856b18f2e00cfd789d' * commit '8f0f1b1e9defc61c2831e8856b18f2e00cfd789d': Just disable widgets that come from apps on sd cards, because they don't work anyway.
| * Just disable widgets that come from apps on sd cards, because they don't ↵Joe Onorato2010-08-241-1/+7
| | | | | | | | | | | | work anyway. Change-Id: I2d7ef4a63bcbd43547e40c01e997d813cc01e800
* | am 32982c70: am cc45381e: Merge "Fix typo that makes apps on sd work better ↵Joe Onorato2010-08-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | with app widgets." into gingerbread Merge commit '32982c701cee6f73262200468419b80343a0bea7' * commit '32982c701cee6f73262200468419b80343a0bea7': Fix typo that makes apps on sd work better with app widgets.
| * Fix typo that makes apps on sd work better with app widgets.Joe Onorato2010-08-241-1/+1
| | | | | | | | | | Bug: 2489571 Change-Id: Idbfb91d960b952aaf32c604b7e52592d77b5ef2e
* | Adding callback and fix to RemoteViewsFactory on notifyDataSetChanged.Winson Chung2010-08-171-6/+4
| | | | | | | | | | | | Also removing extra parameter in AppWidgetManager.notifyDataSetChanged. Change-Id: Ic771fe045ae793a6dacf09f1230e7c1c4b59a13e
* | -> Enabled partial updates to app widgets through AppWidgetManager.Adam Cohen2010-08-171-1/+24
| | | | | | | | | | | | | | | | | | | | Partial updates are not cached by the AppWidgetService. -> Added the ability to insert commands with no parameters into RemoteViews objects. -> Added showNext() and showPrevious() methods to RemoteViews. -> Made showNext() / showPrevious() of AdapterViewFlipper remotable. Change-Id: Ic5491bb374424a54728c4ca92b94b1f00dfb87ff
* | Initial changes to allow collections in widgets.Winson Chung2010-07-191-0/+38
| | | | | | | | Change-Id: I3cfa899bae88cd252912cecebc12e93c27a3b7c9
* | Add a new attribute to allow widgets to specify a preview image.Patrick Dubroy2010-06-281-0/+3
|/ | | | Change-Id: I0d79c85c6a2fc477af17eda05eabaa3151b0bef5
* Fix bug 2772728 with the suggested fix. I wasn't able to reproduce it though.Joe Onorato2010-06-161-0/+1
| | | | Change-Id: Ic3e3a7c679a74b822a3567faeb353950af3cfbca
* merge from open-source masterThe Android Open Source Project2010-05-041-1/+1
|\ | | | | | | Change-Id: I5f552b45caae639170674213c23f154437b58afd
| * Fix typo of <p> end tag in appwidgets.xmlPatrick Tsai2010-05-011-1/+1
| | | | | | | | Change-Id: Ic1f4d8ade0d32f3b74decbe557d4275dc2e19466
* | Preserve widgets on upgrade.Romain Guy2010-03-111-1/+6
| | | | | | | | | | | | Bug #2464545 Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
* | Support old/new package names for widgets.Romain Guy2010-03-111-0/+10
| | | | | | | | Change-Id: I134c4e694e66aaea47ad7da83d37b6621f4a527a
* | Fix some bugs.Dianne Hackborn2010-03-041-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #2376231: Apps lose window focus (and back key causes ANR) if the lock screen is dismissed while the phone is in landscape mode This is another case where we weren't recomputing the focused window after changing the visibility policy. bug #2479958: Investigate source of "Resources don't contain package for resource number 0x7f0a0000" Um, okay, so it turns out there were bugs all over the place where we would load an XML resource from a another application, but not use the Resources for that application to retrieve its resources...! I think the only reason any of this stuff was working at all was because it typically only cared about retrieving the resource identifiers of the items (it would look up the values later). Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService Add some null checks.
* | Switch the services library to using the new SlogJoe Onorato2010-03-011-13/+13
| |
* | Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-251-1/+1
| | | | | | | | | | | | | | This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
* | Fix NPE in AppWidgetService.addProvidersForPackageLocked()Bjorn Bringert2010-02-101-3/+3
| | | | | | | | | | | | | | | | | | queryBroadcastReceivers() can return null, so AppWidgetService should guard against that. Fixes http://b/issue?id=2418982 Change-Id: I1ba83c0c37622e0280f3dba2fef5eca2cc90c975
* | Rename media resource broadcastsSuchi Amalapurapu2010-02-081-4/+4
| | | | | | | | | | | | Add checks for fwdlocked and updated system apps add more tests remove duplicate adds
* | Apps on sdcard: Add new broadcastsSuchi Amalapurapu2010-02-021-14/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | Add new broadcasts ACTION_MEDIA_RESOURCES_AVAILABLE and ACTION_MEDIA_RESOURCES_UNAVAILABLE that get broadcast by PackageManagerService when sdcard gets mounted/unmounted by MountService so that packages on sdcard get recognized by various system services as being installed/available or removed/unavailable by the system. The broadcasts are sent before the actual package cleanup which includes mounting/unmounting the packages and we force a gc right after so that any lingering file references to resources on sdcard get released.
* | Fix bug 2362761 AppWidgetService should use Intent.setPackage()Joe Onorato2010-02-011-4/+2
| | | | | | | | Thanks Bjorn for the tip.
* | Update imports to android-commonTom Taylor2009-12-211-1/+1
|/ | | | | Several files were moved to android-common. Update all the references to import those files from the new location.
* Update the names of the widgets when the locale changes.Eric Fischer2009-10-221-0/+23
| | | | Bug 1814373, Bug 2152730
* Check if rename of backed up file fails before persisting new changes.Suchi Amalapurapu2009-09-301-2/+7
| | | | | | | | | If not these system services will end up with inconsistent settings files when the device runs out of storage. Delete mangled settings file in PackageManager if the current write fails so that we don't end up overwriting the backed up version with the mangled version Include null check when retrieving fwd locked resource for an existing package
* Fix widget stopListening NPE.Ken Shirriff2009-09-231-2/+4
| | | | lookupHostLocked caller needs to check for null return value.
* Fix issue #2049588: App widget can crash causing system to be unable to bootDianne Hackborn2009-08-121-2/+1
|
* Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.Joe Onorato2009-07-151-2/+6
|
* Cleanup a bunch of warnings in app widgets code.Romain Guy2009-07-011-13/+19
|
* resolve complex value in application context instead of system context.Mitsuru Oshima2009-07-011-4/+11
|
* Make the home screen come up in the simulator.Marco Nelissen2009-04-301-1/+2
|
* More optimization of dumpsys output.Dianne Hackborn2009-04-221-15/+38
| | | | | | | | There are three major classes of changes here: - Avoid writing lines where their values are often empty, false, or some other typical thing. - Use partial writes to the PrintWriter to avoid creating temporary strings. - Use StringBuilder where we need to generate real String objects (and where possible cache the result).
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-0/+1148