0ddf6aa0a4e5db30a19f27bb3372d8a86fba1660 |
|
21-Apr-2017 |
Sunny Goyal <sunnygoyal@google.com> |
Renaming setAsyncExecutor to setExecutor Bug: 37534990 Test: Tests updated Change-Id: I9ea467d05b4ac4d96c23d53750727096a511686d
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
7c7fbf6f45925b93833ab9d946b6704da0caf1fc |
|
14-Apr-2017 |
Makoto Onuki <omakoto@google.com> |
getApplicationInfo() should throw NameNotFoundException ... instead of returning null. Bug: 37324177 Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests Change-Id: I7f9f3729ee0eef6b342e4711379e02516559472c
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
f960248951c1f71f54c02fa3867e8342b494ae70 |
|
02-Jan-2017 |
Sunny Goyal <sunnygoyal@google.com> |
Adding API to allow async inflaiton of AppWidget Test: Manual and unit tests adb shell am instrument -e class android.widget.AppWidgetHostViewTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Bug: 22839968 Change-Id: Id9cb56619653f43b9f755c881f5d0936375f9c87
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
5c022639d7e1eebbeb190975980621a286bb2ff1 |
|
18-Feb-2016 |
Sunny Goyal <sunnygoyal@google.com> |
Adding support for async view loading in RemoteViewsAdapter > When loadingView is no available, the FirstView is always loaded on the background thread > AppWidgetHostView only inflates on the background thread, if the view has any costly operations Test: TBD Change-Id: I701caee7e4e6ba5972d0cf478cb57f8ec950da54
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
af6ef8f6f97e28e6f0bbb6947f70f4366116b09a |
|
23-May-2016 |
Kenny Guy <kennyguy@google.com> |
Set accessibility string for suspended widgets. Update the content description to mention the widget is suspended. Mark the remote views as not significant for accessibility. Bug: 28909714 Change-Id: I8804d41e520e2b4af7ade0fa8820ee7b2488bde5
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
a086f0436ad600915db1f8e0dc284d653d152e8d |
|
05-Feb-2016 |
Sunny Goyal <sunnygoyal@google.com> |
Using AppWidgetHostView in RemoteViewsAdapter instead of managing the RemoteViews inflation itself Change-Id: If6dd8a778096a07c58b543efe892bbffbe24098f (cherry picked from commit 89699a2811967fc0c3ad9e06f716d408d6949c86)
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
40dedd5a97b03408f37384ee0db7b9cbe5159a37 |
|
03-Feb-2016 |
Sunny Goyal <sunnygoyal@google.com> |
Merge "Added support for async inflation of RemoteViews"
|
4d1bf093396982d6838af934ab46672773772200 |
|
01-Feb-2016 |
Hyunyoung Song <hyunyoungs@google.com> |
Runtime exception on AppWidgetHostView should not cause crash to the hosting process. b/26797293 Change-Id: I7e1efad7d5314141d21440bf8915c101e35c2adf
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
dd292f4fab52f99d0b15fcf961864cd8186d662c |
|
02-Dec-2015 |
Sunny Goyal <sunnygoyal@google.com> |
Added support for async inflation of RemoteViews When enabled, the View inflation as well as some of the drawable loading is done on the background thread. It also assumes that all the views support inflation on the background thread, which is true for the default views supported by the platform For ViewGroup opetations, it maintains a virtual view tree which is used for findViewById. The final operations are applied on the UI thread in the end. Change-Id: Ib3ce55182ec04a344f2b2513981ee03afc8fa2e8
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac |
|
28-Feb-2015 |
John Spurlock <jspurlock@google.com> |
Remove unused imports in frameworks/base. Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
a54956a0bc611b1e9b3914edc7a604b59688f6b7 |
|
08-Jan-2015 |
Alan Viverette <alanv@google.com> |
Fix accessibility delegation Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
39999cf0263d0568337a87d0e586dcafd9e22ba1 |
|
17-Jul-2014 |
Svetoslav <svetoslavganov@google.com> |
Allow adding widgets from user profiles. The goal of this change is to enable support for appwidget from user profiles to the user main profile. A user profile is a user which is associated as a child of the main user profile. For example, a user may have a personal (parent) and corporate (child) profile. The device policy should be able to control whether adding a widget from a child profile and given packages is allowed. This change assumes that all packages from managed profiles are white listed. Another change will add the device policy changes. (cherrypicked 8cd27c3c to work around Gerrit issue) Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
94022e8997084be458a1faf46e72efab1d59e973 |
|
04-Dec-2012 |
Amith Yamasani <yamasani@google.com> |
Make 3rd party lockscreen widgets work on secondary users If you install a lockscreen widget app on a secondary user, lockscreen fails to find it. There were several places where the correct context and userId were required under the covers - AppWidgetHost, AppWidgetHostView and RemoteViewsAdapter. Set the user id in the required places and use it to query the package information. Bug: 7662835 Change-Id: Ife482c8ab2a2e601650b7cfe2660e88d3b8f2050
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
180cfd5feb4fe415d04494bf00f2013896f93b77 |
|
04-Nov-2012 |
Adam Cohen <adamcohen@google.com> |
If a default keyguard layout isn't specified, fallback to the default layout -> Also fixing a typo in AppWidgetProvider clone() -- this was the cause of the "couldn't load widget". It wasn't getting expressed before for various reasons. Change-Id: Ib7114565a414d66facd8b4baeb97d5a71e96b5e9
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
4ddcd573dd06a96c32285e34469cae6e7f03109b |
|
02-Nov-2012 |
Adam Cohen <adamcohen@google.com> |
Widget size policy, size callbacks -> vertically resizable widgets behave are sized to fill -> non-vertically resizable widgets use the small size all the time -> providing size call-backs. ensuring that we don't send excessive / incorrect size callbacks. These are expensive. Had to clean things up to ensure we only send the truth, and not bounce around. Change-Id: I8038de01096906526e2622c6f1cd24c171e3a4ec
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
c4842c11932ea4f60fe7ae09b0a59660207e1587 |
|
31-Oct-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Accessibility support for the lockscreen - phone. Change-Id: Idc99f1322a1d635dd07e1f5efa1665a4676267c2
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
a21bf0c6ea0205abced7bfdcaf552535f395f34f |
|
06-Oct-2012 |
Adam Cohen <adamcohen@google.com> |
Suppress unnecessary calls to update widget size (issue 7287744) Change-Id: I2cec03a32b42f7a56e0f538dcd5c09de4ce2e076
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
6ccf4e279170ef7f7602d1e2a63e9a2ef98cd57f |
|
22-Sep-2012 |
Adam Cohen <adamcohen@google.com> |
Fixing onRestoreInstanceState crash in Launcher -> Issue 7084152 Change-Id: Ic91074adfff5918e6471c861313a51d0a179ad08
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
0aa2d42e87e4a1ed5b83f356690e465d6a3587cc |
|
08-Sep-2012 |
Adam Cohen <adamcohen@google.com> |
Adding notion of keyguard widgets -> Persisting certain appwidget options -> Adding ability to specify appwidget options on bind so as to avoid AppWidgetProvider update call with no options. Change-Id: I5631039f19f1822b8e123b559b6353c880c0192e
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
e667a7add46a6389c64f2105bd33943cfe6a3fa4 |
|
10-Aug-2012 |
Jim Miller <jaggies@google.com> |
Update AppWidgetHost with better support for OnClickHandlers This updates AppWidgetHost and AppWidgetHostView to do a better job at refreshing widgets and their host views. It now allows an OnClickHandler to be specified when creating the AppWidgetHost which allows it to correctly update AppWidgetHostViews when needed. Change-Id: I710c1d00a8d145bf3a9fd5f5691885bec9d1c7e4
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
1affb937641fd42c3b94f0c2427b1b68336a572f |
|
15-May-2012 |
Guang Zhu <guangzhu@google.com> |
Expose class name in AppWidgetHostView for accessibility The class is public, part of framework, exposing it for launcher testing. Change-Id: Icd9b0f3e300de964b98de8d9f5f62fdc916584e3
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
f065c9663172094d2d79eb5f77c59d89e812437a |
|
09-May-2012 |
Adam Cohen <adamcohen@google.com> |
Accounting for widget padding in dips instead of pixels Change-Id: I29c4290274f8b9fa6d9b49072d3cf37cf6f1acb8
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
88f041ed312299f1d2746e570b989c336bfd97c8 |
|
09-May-2012 |
Adam Cohen <adamcohen@google.com> |
Account for auto-padding in AppWidgetHostView#updateAppWidgetSize (issue 6454251) Change-Id: Ibf837671cc13ee89ca979e9e6dc9d144b296deba
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
d2097ebacf3a3658624cad10669a4d98e8d7d846 |
|
02-May-2012 |
Adam Cohen <adamcohen@google.com> |
Changing app widget "extras" to "options" and another small API Review issue -> (issue 6427146), (issue 6427861) Change-Id: Ib69a9b3717a5b62317ec227936bc3b2fd5954043
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
c88d11f9493e65d318dcd3b094ef446e1905ebfd |
|
28-Apr-2012 |
Adam Cohen <adamcohen@google.com> |
Pushing widget resize callback responsibility to AppWidgetHost Change-Id: I33ca691deee11f8249eed6733a9ac82ed9bfbd15
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
e8724c82ab1479f13c85a2c6219841e1fd95f2d2 |
|
20-Apr-2012 |
Adam Cohen <adamcohen@google.com> |
Adding callback for widget size changed, and potentially other extra info Change-Id: I57738c92b6a0ba68ae66b19a533559470c64e6f1
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
4c96a59b4354c4a593a07a3273c186b51597bcc1 |
|
04-Nov-2011 |
Adam Cohen <adamcohen@google.com> |
Making default widget padding public API Change-Id: Ibf4f5dc1a36d84be1acc3ccdc4330276f82aa303
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
5d5f3405204ecb5045edc756fde71c97d10bcda4 |
|
01-Oct-2011 |
Adam Cohen <adamcohen@google.com> |
Adding default padding to AppWidgetHostView for widgets >= API level 14 Change-Id: Idbbeafba664847f01393bb0c6102f774390380d5
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
2148d43eb23c702e834c93ae427f822f32d280a2 |
|
28-Jul-2011 |
Adam Cohen <adamcohen@google.com> |
Fixing widget notifyDataSetChanged() not getting called, issue 5092676 Change-Id: I61a034a77c0c9d07aba71bfabe7a0864ce92c2e9
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
d110889cbca4d40f8cdeddfe6eb2f498f470ae4b |
|
17-Jan-2011 |
Adam Cohen <adamcohen@google.com> |
Fixing bug related to collisions with AppWidget view ids and AppWidgetHost view ids Change-Id: I2512b83078cff6c4d444c95275625ff39466ac83
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.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/core/java/android/appwidget/AppWidgetHostView.java
|
499cb9f516062b654952d282f211bee44c31a3c2 |
|
16-Jul-2010 |
Winson Chung <winsonc@google.com> |
Initial changes to allow collections in widgets. Change-Id: I3cfa899bae88cd252912cecebc12e93c27a3b7c9
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
a18dbdf420fabebb83e7403d000384a8d98daffa |
|
24-Jun-2010 |
Joe Onorato <joeo@android.com> |
am 801b63d3: am 51e895f0: Merge "Need to give the AppWidgetHostView the new info about the provider, in case the initialLayout changed." into gingerbread Merge commit '801b63d3b865054b3015e2cf315ca7c9386d1212' * commit '801b63d3b865054b3015e2cf315ca7c9386d1212': Need to give the AppWidgetHostView the new info about the provider, in case the initialLayout
|
c27bb559805ae5cd06f7ecf575959c60c51a22aa |
|
24-Jun-2010 |
Joe Onorato <joeo@android.com> |
Need to give the AppWidgetHostView the new info about the provider, in case the initialLayout changed. Bug: 2772728 Change-Id: I9e230fbe42d01cfc953cdafb86dd0d616d96a3ea
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
e6ac8b9aade9443ab8456c8f7a47cdfba3b70266 |
|
17-Jun-2010 |
Gilles Debunne <debunne@google.com> |
Removed API changes from CL 54712. onLoadClass(Class ) was replaced by onLoadClass(Class<?> ) in CL 54712. This changes the API and may introduce errors in users' implementations. Change reverted. Change-Id: Ie578a444168423959b44857f22e13f004e108965
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
3030193dc179b3010f2dd3bffe9c1dec54da38fc |
|
17-Jun-2010 |
Gilles Debunne <debunne@google.com> |
Removed warnings in LayoutInflater. These changes are similar to those of CL 49296. They do not include the generic fixes done on GenericInflater.java, which had issues and broke the build. Added a asSubClass method in LayoutInflater which will (correctly) throw a ClassCastException when the inflated class is not a View subclass. Performance testing on these changes showed a 10% performance improvement, which is still to be explained. Change-Id: Id4d3b45f0945baccdbbda15fcce095e855b23c9a
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
f140be6c3c21dd0f6d2214929e89d60de31d2c04 |
|
04-May-2010 |
Joe Onorato <joeo@android.com> |
Call into app widget hosts when the provider is updated. Change-Id: If0a2459901e88cf04810b23178e4673d44fa69cc
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 |
|
09-Jan-2010 |
Romain Guy <romainguy@android.com> |
Deprecate fill_parent and introduce match_parent. Bug: #2361749.
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
ae8dd29c035fffa6e302bd485d0552f97db39127 |
|
05-Nov-2009 |
Romain Guy <romainguy@android.com> |
Prevent crash in Home when using widgets whose ids collide with Home's resources. Bug #2228943. Approved by mcleron, triaged by ryanpc. Change-Id: Idf40f3b09502ae5d0d3b9a6a72c265a2de2ffca2
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
a8a720d8cd208d7d265de28ab69f7e68eb10140a |
|
16-Oct-2009 |
Romain Guy <romainguy@android.com> |
Fix possible NPE in the code that restores widgets' state. Bug #2189714 Reviewed by: ryanpc Change-Id: I0d74deb6dc8e90e3b0eafd6b3c16b0c557c72873
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
220dec2897d739ecb627e46b4cafbd664f4ff762 |
|
19-Aug-2009 |
Jeff Sharkey <jsharkey@android.com> |
Use remote Context when inflating initialLayout, add debug. To help track down http://b/2055197 this change adds back exception logging when inflating initialLayout. On a hunch, it also assigns the remote Context so generateLayoutParams() can inflate correctly.
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
09ddc08b0d9c849e22f778666f383b7ceefbd9c8 |
|
11-Aug-2009 |
Romain Guy <romainguy@android.com> |
Fixes #2021442. Prevent app widgets from clobbering Home's view ids.
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
b8560b66fd2bdf465a8c7fad983f2236778e8106 |
|
07-Aug-2009 |
Jeff Sharkey <jsharkey@android.com> |
Fix AppWidget layout inflation to resolve references. When RemoteViews inflates a layout and set of actions, it uses a cloned remote Context so it can fully access the resources needed to complete the inflate. However, in one specific case when inflating the root view, LayoutInflater calls back to the soon-to-be parent view to request the correct set of LayoutParams through generateLayoutParams(). The default implementation of generateLayoutParams() uses the Context of the /local/ View instead of the remote Context being used for the inflation, which means that any LayoutParam references in the root view are unresolved. To fix this, we internally create our own copy of the target remote Context. This way, when the remote LayoutInflater calls generateLayoutParams(), we inflate it using the remote Context to correctly resolve any references. This change is required as part of http://b/2038594
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
870e09fcd2dfdc12ac318962efd28b0420c562bb |
|
07-Jul-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1963229. Introduces Context#isRestricted(). A restricted Context is a special type of Context that prevents specific features from being used. For instance, android:onClick, used by View, can be dangerous when used from within apps widgets. By using a restricted Context to inflate apps widgets, widgets providers are prevented from using android:onClick.
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
a54755962ca7725d1e2b6cacbbaece6f1cbf5af4 |
|
02-Jul-2009 |
Romain Guy <romainguy@android.com> |
Cleanup a bunch of warnings in app widgets code.
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|
c39a6e0c51e182338deb8b63d07933b585134929 |
|
11-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137873
/frameworks/base/core/java/android/appwidget/AppWidgetHostView.java
|