History log of /frameworks/base/services/java/com/android/server/AppWidgetService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c3f581b0474a216938810885f4f606e0db1f21ff 05-Dec-2011 Winson Chung <winsonc@google.com> Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)

Change-Id: Ic57a7ce85f41d58cd40b7d30eef4a1bf685182e5
/frameworks/base/services/java/com/android/server/AppWidgetService.java
933decaa5e9402099b1bfbbe1012633908c84d11 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> Verify AppWidget ownership during update.

Bug: 5563081
Change-Id: I528ec944d404989bb21b32ef01feb3d35e23d3ad
/frameworks/base/services/java/com/android/server/AppWidgetService.java
9730031f8af9f20f3e85fbb2b8925461c3980233 13-Oct-2011 Adam Cohen <adamcohen@google.com> Fixing issue where widgets file was getting blown away, issue: 5036321

Change-Id: If40a9c79f70e11eee935b2dd2614e723423ff3bf
/frameworks/base/services/java/com/android/server/AppWidgetService.java
7bb9883d0564e1d3f7303d4934418998d540c1b8 06-Oct-2011 Adam Cohen <adamcohen@google.com> Adding logging to debug widget deletions

Change-Id: I15a943650f930fd3fb6163c60af85abc2865e684
/frameworks/base/services/java/com/android/server/AppWidgetService.java
15d161f61bd97e937e95fe8a8e520a947113c7b1 02-Sep-2011 Jeff Sharkey <jsharkey@android.com> Ensure appwidgets are loaded before usage.

Before accessing appwidget details, always ensure that configuration
is loaded from disk.

Change-Id: Ic71dd62fcdb1d1e5f7bae397efa8dce787434ba5
/frameworks/base/services/java/com/android/server/AppWidgetService.java
bac26a1205883ad30343f1d1f64a039dcdda9f63 17-Aug-2011 Adam Cohen <adamcohen@google.com> Getting rid of the (hidden) oldName parameter for widgets

Change-Id: I191cf64ed045fd7cb53e106f337cbeab5a914336
/frameworks/base/services/java/com/android/server/AppWidgetService.java
324afba161ae5b802e38f89c9015d8306ea3ddd1 22-Jul-2011 Adam Cohen <adamcohen@google.com> Fixing new minResizeWidth/Height API

Change-Id: I6b57cca32ed7678597e7c0d81dc483ee294537a9
/frameworks/base/services/java/com/android/server/AppWidgetService.java
1bfaf561b7c09388311f1834f17e057739cf587a 20-Jul-2011 Adam Cohen <adamcohen@google.com> Adding resizeMinWidth/Height to AppWidgetProviderInfo

Change-Id: I17dc27829938a3f25a664d8255965cf9b67cb17e
/frameworks/base/services/java/com/android/server/AppWidgetService.java
10e89712863f5b91a2982dc1783fbdfe39c1485d 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
/frameworks/base/services/java/com/android/server/AppWidgetService.java
4912f160875441927d012fc17b04fe7cc6567ef8 16-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix to clear calling identity when binding a widget.

Change-Id: Id66abc50ec9ee69317b9838f302c4153995664f7
/frameworks/base/services/java/com/android/server/AppWidgetService.java
50469db07167e3a837e10f215baa4eacb1319604 03-Jun-2011 Dianne Hackborn <hackbod@google.com> am 7322e557: am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

* commit '7322e557cfe42da42779625d69ced2db74a9df90':
Fix issue #4502672: Wrong xml resources used for homescreen widgets.
2f0b17573d4324832f7a20402a3d2b5920bc4866 01-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4502672: Wrong xml resources used for homescreen widgets.

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
/frameworks/base/services/java/com/android/server/AppWidgetService.java
2625feae79ab418355c2a4dafe8b162bba3cc1cf 24-Mar-2011 Adam Cohen <adamcohen@google.com> Modifying RemoteViewsFactory interface

-made onDestroy() one way
-moved uncaught exception handling to the application process

Change-Id: I958571a34eaa48b27e441e3a117c109fb2d2c644
/frameworks/base/services/java/com/android/server/AppWidgetService.java
c2be22cf209b675e36893d31ebe3166b6321ba6b 17-Mar-2011 Adam Cohen <adamcohen@google.com> Catching all Exceptions when calling through to RemoteViewsFactory

Change-Id: Ib20c880bb7626565541ab4697317fcfaa2e6b5b7
/frameworks/base/services/java/com/android/server/AppWidgetService.java
9611f2ea6c962c7eb05a2841d06656745f524097 28-Feb-2011 Adam Cohen <adamcohen@google.com> Small change to AppWidgetProviderInfo public field name and docs

Change-Id: Ia799cfc1824ccee1f7fd041ae8ecaa1a0395c3f6
/frameworks/base/services/java/com/android/server/AppWidgetService.java
54a351ed629e7c4adf71dc10bf3eddd653a0d84b 26-Feb-2011 Adam Cohen <adamcohen@google.com> Merge "Adding framework support for resizable widgets"
22bc69de50ebd9e6437eb3775ce6b06b8c6052dc 26-Feb-2011 Winson Chung <winsonc@google.com> Fixing build

Change-Id: I3d60c115190a6e478777229d4851dedc78111c39
/frameworks/base/services/java/com/android/server/AppWidgetService.java
d2e20de64b6de8b6391c63e2f5b02ce7698bf4bf 25-Feb-2011 Adam Cohen <adamcohen@google.com> Adding framework support for resizable widgets

-> 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
/frameworks/base/services/java/com/android/server/AppWidgetService.java
84bbb020217adcdfe0694c44ccab57e208ffde16 21-Feb-2011 Winson Chung <winsonc@google.com> Fixing issue where RemoteViewsService.onDestroy() was never being called.

Change-Id: I15ad04eee18bc3e09d4846c7f2f2d2d8d168e518
/frameworks/base/services/java/com/android/server/AppWidgetService.java
16c8d8a558f94ec14ef52bb5ac11044e2d0d902c 21-Jan-2011 Winson Chung <winsonc@google.com> Re-enabling queued unbinding of services after requests to the service. (3394210)

- Fix for crash when detaching from window
- Potential fix for occasional IllegalStateException when updating List based widgets

Change-Id: I3d3f2bb691552a1136111043db686c4926b510c6
/frameworks/base/services/java/com/android/server/AppWidgetService.java
32cf193412bb1261b0b8d9ab69df68e635a1e77d 19-Jan-2011 Winson Chung <winsonc@google.com> Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets.

Change-Id: Iee53d4930dc4007df4298a282cdd5101876215a1
/frameworks/base/services/java/com/android/server/AppWidgetService.java
81f39eb6e76d0be1dd341af835e8002a0f80524e 12-Jan-2011 Winson Chung <winsonc@google.com> Refactoring app widgets to address security/performance issues.

- 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
/frameworks/base/services/java/com/android/server/AppWidgetService.java
d070e89396e250782c015bc993bcae6e7e03af7a 08-Jan-2011 Joe Onorato <joeo@google.com> Make AppWidgetService handle components enabling and disabling.

Change-Id: Ie6b75cb90be38bbce694ccf2d5a342d7f0172fa4
/frameworks/base/services/java/com/android/server/AppWidgetService.java
a02fdf1ba03fad71cc80a89dfc74b17456d5b4a5 03-Nov-2010 Adam Cohen <adamcohen@google.com> Adding widget auto-advance capability

Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
/frameworks/base/services/java/com/android/server/AppWidgetService.java
267f4d6a22aade4f63831e166312647212816a3d 27-Aug-2010 Joe Onorato <joeo@google.com> am 8f0f1b1e: am 274ad982: Merge "Just disable widgets that come from apps on 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.
0add80b454c5fe99a158a9537666a4c8ab999359 27-Aug-2010 Joe Onorato <joeo@google.com> am 32982c70: am cc45381e: Merge "Fix typo that makes apps on sd work better with app widgets." into gingerbread

Merge commit '32982c701cee6f73262200468419b80343a0bea7'

* commit '32982c701cee6f73262200468419b80343a0bea7':
Fix typo that makes apps on sd work better with app widgets.
331fbdc7e9588018dac28de8b6196653cea1f08b 24-Aug-2010 Joe Onorato <joeo@google.com> Just disable widgets that come from apps on sd cards, because they don't work anyway.

Change-Id: I2d7ef4a63bcbd43547e40c01e997d813cc01e800
/frameworks/base/services/java/com/android/server/AppWidgetService.java
94258cd70438e444e139a26da12fd7e5a8782332 24-Aug-2010 Joe Onorato <joeo@google.com> Fix typo that makes apps on sd work better with app widgets.

Bug: 2489571
Change-Id: Idbfb91d960b952aaf32c604b7e52592d77b5ef2e
/frameworks/base/services/java/com/android/server/AppWidgetService.java
6394c0e52cf641d93f678fd052499aa952e3595d 16-Aug-2010 Winson Chung <winsonc@google.com> Adding callback and fix to RemoteViewsFactory on notifyDataSetChanged.
Also removing extra parameter in AppWidgetManager.notifyDataSetChanged.

Change-Id: Ic771fe045ae793a6dacf09f1230e7c1c4b59a13e
/frameworks/base/services/java/com/android/server/AppWidgetService.java
2dd2197805edb4d9547b143deef2226413218f4c 16-Aug-2010 Adam Cohen <adamcohen@google.com> -> Enabled partial updates to app widgets through AppWidgetManager.
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
/frameworks/base/services/java/com/android/server/AppWidgetService.java
499cb9f516062b654952d282f211bee44c31a3c2 16-Jul-2010 Winson Chung <winsonc@google.com> Initial changes to allow collections in widgets.

Change-Id: I3cfa899bae88cd252912cecebc12e93c27a3b7c9
/frameworks/base/services/java/com/android/server/AppWidgetService.java
d2db2a579440608453994b64eb5b425840f5307a 23-Jun-2010 Patrick Dubroy <dubroy@google.com> Add a new attribute to allow widgets to specify a preview image.

Change-Id: I0d79c85c6a2fc477af17eda05eabaa3151b0bef5
/frameworks/base/services/java/com/android/server/AppWidgetService.java
a8a8a42f8570bdbe66a09fc278564e7a549158da 16-Jun-2010 Joe Onorato <joeo@android.com> Fix bug 2772728 with the suggested fix. I wasn't able to reproduce it though.

Change-Id: Ic3e3a7c679a74b822a3567faeb353950af3cfbca
/frameworks/base/services/java/com/android/server/AppWidgetService.java
6de3a6fdd303b15ad944570daf37faa798dc1989 04-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I5f552b45caae639170674213c23f154437b58afd
bd742e4336a04ea1e8e9a15cf8f66ec6097b883f 30-Apr-2010 Patrick Tsai <yinghau76@gmail.com> Fix typo of <p> end tag in appwidgets.xml

Change-Id: Ic1f4d8ade0d32f3b74decbe557d4275dc2e19466
/frameworks/base/services/java/com/android/server/AppWidgetService.java
d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c 12-Mar-2010 Romain Guy <romainguy@android.com> Preserve widgets on upgrade.
Bug #2464545

Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
/frameworks/base/services/java/com/android/server/AppWidgetService.java
ff3e61c6d5de339300d26227b69bfd9ee0827103 12-Mar-2010 Romain Guy <romainguy@android.com> Support old/new package names for widgets.

Change-Id: I134c4e694e66aaea47ad7da83d37b6621f4a527a
/frameworks/base/services/java/com/android/server/AppWidgetService.java
20cb56e26e91df91bd64d4251222e0d421cdbe47 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix some bugs.

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.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
8a9b22056b13477f59df934928c00c58b5871c95 27-Feb-2010 Joe Onorato <joeo@android.com> Switch the services library to using the new Slog
/frameworks/base/services/java/com/android/server/AppWidgetService.java
2269d1572e5fcfb725ea55f5764d8c3280d69f6d 25-Feb-2010 Dianne Hackborn <hackbod@google.com> Re-arrange android-common so framework no longer links with it.

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.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
5f85780db058d3babb435466b33834c3cc70f5c1 11-Feb-2010 Bjorn Bringert <bringert@android.com> Fix NPE in AppWidgetService.addProvidersForPackageLocked()

queryBroadcastReceivers() can return null, so AppWidgetService
should guard against that.

Fixes http://b/issue?id=2418982

Change-Id: I1ba83c0c37622e0280f3dba2fef5eca2cc90c975
/frameworks/base/services/java/com/android/server/AppWidgetService.java
b56ae20b22fd7283df32072a431ab6d4965f3c1b 05-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Rename media resource broadcasts
Add checks for fwdlocked and updated system apps
add more tests
remove duplicate adds
/frameworks/base/services/java/com/android/server/AppWidgetService.java
08675a3376819a82aa5ab344bc3e7b1635c30b05 28-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Apps on sdcard: Add new broadcasts

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.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
f6133febaead08d597c4454d543ee3cba5158a90 02-Feb-2010 Joe Onorato <joeo@android.com> Fix bug 2362761 AppWidgetService should use Intent.setPackage()

Thanks Bjorn for the tip.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 21-Dec-2009 Tom Taylor <tomtaylor@google.com> Update imports to android-common

Several files were moved to android-common. Update all the references
to import those files from the new location.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
63c2d9ed9cb2174137ee43acb6ee2a86ff4451ea 23-Oct-2009 Eric Fischer <enf@google.com> Update the names of the widgets when the locale changes.

Bug 1814373, Bug 2152730
/frameworks/base/services/java/com/android/server/AppWidgetService.java
8550f255232eb4e4852466c5297fdc125887f5af 30-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Check if rename of backed up file fails before persisting new changes.
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
/frameworks/base/services/java/com/android/server/AppWidgetService.java
e21167a9e5978f167fa6e8d26bbb2986b6609372 24-Sep-2009 Ken Shirriff <kens@google.com> Fix widget stopListening NPE.

lookupHostLocked caller needs to check for null return value.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
002716d49a27d72efff810418b08c1ec8620aa8c 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2049588: App widget can crash causing system to be unable to boot
/frameworks/base/services/java/com/android/server/AppWidgetService.java
be96b3a2aa7ec6d57ac038d4a5326fc168585ad6 15-Jul-2009 Joe Onorato <joeo@android.com> Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
a54755962ca7725d1e2b6cacbbaece6f1cbf5af4 02-Jul-2009 Romain Guy <romainguy@android.com> Cleanup a bunch of warnings in app widgets code.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
8f25c426b118c35f558cbf27bd413e1eb6d59823 01-Jul-2009 Mitsuru Oshima <oshima@google.com> resolve complex value in application context instead of system context.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
54796e740584b50323fe742a27e5d3f5be01ca06 01-May-2009 Marco Nelissen <marcone@google.com> Make the home screen come up in the simulator.
/frameworks/base/services/java/com/android/server/AppWidgetService.java
1d442e0d990b581357f33f5463c7c5cb49b551e8 21-Apr-2009 Dianne Hackborn <hackbod@google.com> More optimization of dumpsys output.

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).
/frameworks/base/services/java/com/android/server/AppWidgetService.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/frameworks/base/services/java/com/android/server/AppWidgetService.java