summaryrefslogtreecommitdiff
path: root/core/java/android/appwidget/AppWidgetProviderInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Add API in AppWidgetServiceImplSihua Ma2022-10-261-0/+6
| | | | | | | | | | | A new function is created to notify the service of inheritance information of the widget provider. Test: N/A Bug: 221890505 Change-Id: I5f43f8d6ecd66b54869bef58898b1d3809b43d9e (cherry picked from commit 0b51675e5639ce86308f4c66cd10b23e0a4e7162) Merged-In: I5f43f8d6ecd66b54869bef58898b1d3809b43d9e
* Correct documentation of AppWidgetProviderInfoPierre Barbier de Reuille2021-09-131-6/+6
| | | | | | | | | All the dimensions are in pixel, not dp. The conversion from complex value to pixel is done in AppWidgetProviderInfo#updateDimensions. Fix: 199524613 Test: N/A Change-Id: Ifdc90e7338ade8494d90e567fc95500b650c4ebb
* Add null check in AppWidgetProvider#loadDescription before callingAlina Zaidi2021-05-041-5/+6
| | | | | | | | CharSequence#toString() Bug: 186789881 Test: Not needed for a null check. Change-Id: I015ba5943ca3aa218048fe2d11ebd501b5ddab07
* Updating AppWidgetProviderInfo APISunny Goyal2021-04-051-1/+1
| | | | | | Bug: 184537397 Test: Presubmit Change-Id: I3e634b5bd761a566d6b08519ac58ffdbee2b1e59
* Fix flag value for configuration_optional widget feature.Yogisha Dixit2021-03-031-1/+1
| | | | | | | | | | | | | | | | | The flag value should be 4 and not 3 so that we can use bitwise operations to determine the existence of a flag. For example, we want to use the following to determine if a widget is reconfigurable: (providerInfo.widgetFeatures & WIDGET_FEATURE_RECONFIGURABLE) != 0 But if the value of WIDGET_FEATURE_CONFIGURATION_OPTIONAL is 3, the above check would fail. Test: atest FrameworksServicesTests:AppWidgetServiceImplTest, atest CtsAppWidgetTestCases Bug: 177977976 Change-Id: I15d4baae5e17acb9a0b936485a53f9b3359d65ca
* Adjust AppWidgetProviderInfo#getDescription to return CharSequence.Alina Zaidi2021-02-191-8/+17
| | | | | | | | Also add more developer docs. Test: atest AppWidgetServiceImplTest#testLoadDescription passed Bug: b/180015383 Change-Id: Ie6fff9d880ba4721bf6babcd51acaa8fc9bd3cd9
* Add new attributes for widget sizing controls.TreeHugger Robot2021-02-171-1/+53
| | | | | | | | | | | | | | Design doc: go/widget-sizing-api-dd New attributes added: * maxResizeWidth * maxResizeHeight * targetCellWidth * targetCellHeight Bug: 179807199 Test: atest FrameworksServicesTests:AppWidgetServiceImplTest Change-Id: Icadc73da9bd010e42459735493f452cb892e5744
* Add a layout attribute in widget metadata for widget previewSteven Ng2021-02-081-2/+22
| | | | | | | | Test: atest FrameworksServicesTests:AppWidgetServiceImplTest. Newly added test passed. Bug: 179063291 Change-Id: I17cf97b580ac03d9688d82eeccd3a68e77287655
* Adding APIs to get manifest entries for Launcher activities and widgetsSunny Goyal2021-02-011-0/+8
| | | | | | | | | | | | and getting resources for a particular config This would allow fetching display infos for the activity in a particular config independent of system config. Bug: 156154533 Test: Included CTS Change-Id: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599 Merged-In: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
* Include an attribute for description of the widget in the attributes file ↵Alina Zaidi2021-01-261-0/+30
| | | | | | | | | | for AppWidgetProviderInfo. Test: Instrumentation test added- AppWidgetServiceImplTest_testLoadDescription Bug: 178460757 Change-Id: Ic9b9cd8c592936bbe421183f8715ba5d8f770742
* Add a new widget feature value, configuration_optionalSteven Ng2021-01-201-0/+10
| | | | | | | | | | | | | | | | If configuration_optional is present, the widget provides a default configuration. The host may decide not to launch the provided configuration activity. Design doc: go/deferrable-widget-config Test: Successfully built blueline-userdebug. Since this CL only adds a new value for an existing field, no unit test will be added at this point. Once we introduce unit tests for widget configurations xml, we will add related unit tests. Bug: 177977976 Change-Id: I507cba0b9b8900f9b9616d76c48eb0ed9c50ed72
* Hand-migration to TypedXml interface.Jeff Sharkey2020-12-021-0/+3
| | | | | | | | | | | | Previous changes have applied mechanical refactorings, but this change hand-migrates the remaining logic which was too complex to identify. This change should have no behavior change; famous last words. Bug: 171832118 Test: manual Exempt-From-Owner-Approval: trivial refactoring Change-Id: I85cd830eb6bfde18fca6e73ee7adfdc385a890de
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I8789f8499d4dca08580672e9e45ed9a7026dd686
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Framework: Remove a nonsensical substring(0)Andreas Gampe2018-09-051-1/+1
| | | | | | | | | | | String.substring(0) will return the same String instance. There is also no reason to make a copy. Found by errorprone. Bug: 114129741 Test: m Change-Id: Ic089f04efc3c73f70aa15a132d62ac665c8b8f4c
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-091-0/+2
| | | | | | | | | | | | | | | | | For packages: android.appwidget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I738f99248aaabe0ef29533e339ae7c5721384d52 Merged-In: Idbddc50320e7df92e0f260c1e309e5390b502d28
* Adding IntDef annotations to some flag based propertiesSunny Goyal2018-03-151-0/+32
| | | | | | Bug: 74408961 Test: N/A Change-Id: I4320c5e265b52338eb2f4b2e5ea80ea05b9ca28f
* Adding widgetFeatures so that a provider can indicate a set ofSunny Goyal2017-12-051-22/+39
| | | | | | | | | supported features Bug: 63931362 Bug: 36537581 Test: Added CTS for new APIs Change-Id: I2bd3278bfdf40d88fc8e6f72bfbc7505c64accff
* Add ResourceId validation helper methodAdam Lesinski2017-05-241-1/+2
| | | | | | | | | | | | | An invalid, 'null' resource ID is defined as 0. Apps often use -1. Add a helper method that makes checking valid IDs easy and more centralized. Eventually make it public API. Bug: 38393777 Test: manual Change-Id: I969ec4a45e86bdab3d7f57d357d475b77c7f8a78
* Valid resource IDs may be negativeAdam Lesinski2017-04-281-4/+4
| | | | | | | | | | Package IDs greater than 0x7f are interpreted as negative numbers in Java's signed integer. The proper check for existence of a resource ID is that it is not 0. Bug: 37498913 Test: none Change-Id: I446fb6abb514bf7cf2d0dcbfbd81dd5718cd2cb4
* Fixing dimensions for AppWidgetProviderInfo not getting updated properlySunny Goyal2017-01-191-0/+13
| | | | | | | for PinItemRequest Test: Manually tested on device Change-Id: I7bbf7e93e052ef25c2a4a98ff0795ef500f68cc0
* Generalizing Recents widget category to Search box. (Bug 17334589)Winson Chung2014-09-041-2/+2
| | | | Change-Id: Id62398255799844cc89affcb4bafc86b6479dad0
* Fixing wrong tag usageSunny Goyal2014-08-151-1/+1
| | | | Change-Id: I4cb0084a89cc079383d666ad1c5711d96ea81ebe
* Returning null when preview image is not available for AppWidgetProviderInfoSunny Goyal2014-08-151-7/+8
| | | | | | | | The default application icon generally has a different aspect ratio that a preview image, and cannot transparently be used in place of the image. Returning null will allow the apps to handle the case as they see fit. Change-Id: Ie6e8e16dd7b4e58b222187a81c62d27eccab45a9
* Polish the new cross-profile app widget APIsSvetoslav2014-08-081-2/+3
| | | | | | bug:14991269 Change-Id: I5996f8c69a3d151ff1ecd8f19403dd606f588150
* Polish of the app widgets cross-profiles feature.Svetoslav2014-08-071-35/+4
| | | | | | | | | | | | | | | | | | | | 1. Added API for badging an arbitrary drawable at a given location. 2. Updated the icon and previewImage deprecation as they are no longer returning a badged drawable. The methods to load the icon and the preview are now just making it easier for a developer to get the drawables. 3. Fixed a bug in AppWidgetServiceImpl leading to a crash when a user is removed. 4. Fixed a bug in AppWidgetHost which was unnecessarily caching its package name and having code paths where the cached value was not populated when calling into the system. bug:14991269 Change-Id: I50d011a6597d88814715d5ec04ee67815e8ce0bd
* Allow adding widgets from user profiles.Svetoslav2014-08-051-7/+133
| | | | | | | | | | | | | 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. Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
* Exposing the API to support widgets in Recents.Winson Chung2014-05-051-1/+0
| | | | Change-Id: I2d53f226dbc328f0dbda7006eac647c6468c6b36
* Adding ability to load a search widget into Recents.Winson Chung2014-05-021-0/+6
| | | | Change-Id: Ie17d9b9a47c979774b39a37e87f75d9dadc79ad9
* Tabs -> spaces in frameworks/base.John Spurlock2014-02-251-1/+1
| | | | Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
* If a default keyguard layout isn't specified, fallback to the default layoutAdam Cohen2012-11-041-1/+1
| | | | | | | | -> 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
* Stripping dead API related to keyguard widgetsAdam Cohen2012-10-311-24/+0
| | | | Change-Id: Ieb6c57ef736712b3266de08027f9626104cdf1bb
* Getting rid of keyguard widget flag that isn't usedAdam Cohen2012-09-281-9/+2
| | | | | | -> issue 7238875 Change-Id: Ifad890b4061784889f3fc7711a165452cf230fbd
* Fixing AppWidgetService / AppWidgetHost to work in system processAdam Cohen2012-09-261-0/+22
| | | | | | | | -> Fixes issue 7208464 -> Fixed issue with partial update as well, should address issue 7214731 Change-Id: Ib8d9d5bee68b4fa7d6b4fbbc2f6609c287689958
* Adding notion of keyguard widgetsAdam Cohen2012-09-111-0/+65
| | | | | | | | | -> 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
* Getting rid of the (hidden) oldName parameter for widgetsAdam Cohen2011-08-171-11/+0
| | | | Change-Id: I191cf64ed045fd7cb53e106f337cbeab5a914336
* Fixing new minResizeWidth/Height APIAdam Cohen2011-07-221-0/+4
| | | | Change-Id: I6b57cca32ed7678597e7c0d81dc483ee294537a9
* Adding resizeMinWidth/Height to AppWidgetProviderInfoAdam Cohen2011-07-191-2/+22
| | | | Change-Id: I17dc27829938a3f25a664d8255965cf9b67cb17e
* Small change to AppWidgetProviderInfo public field name and docsAdam Cohen2011-02-281-3/+9
| | | | Change-Id: Ia799cfc1824ccee1f7fd041ae8ecaa1a0395c3f6
* Adding framework support for resizable widgetsAdam Cohen2011-02-251-0/+27
| | | | | | | | | -> 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
* previewImage API shouldn't be hidden.Patrick Dubroy2011-01-191-2/+0
|
* Adding widget auto-advance capabilityAdam Cohen2010-11-101-6/+9
| | | | Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
* Add a new attribute to allow widgets to specify a preview image.Patrick Dubroy2010-06-281-0/+13
| | | | Change-Id: I0d79c85c6a2fc477af17eda05eabaa3151b0bef5
* Preserve widgets on upgrade.Romain Guy2010-03-111-0/+12
| | | | | | Bug #2464545 Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
* Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.Joe Onorato2009-07-151-0/+3
|
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-0/+168