| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
CharSequence#toString()
Bug: 186789881
Test: Not needed for a null check.
Change-Id: I015ba5943ca3aa218048fe2d11ebd501b5ddab07
|
| |
|
|
|
|
| |
Bug: 184537397
Test: Presubmit
Change-Id: I3e634b5bd761a566d6b08519ac58ffdbee2b1e59
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
Also add more developer docs.
Test: atest AppWidgetServiceImplTest#testLoadDescription passed
Bug: b/180015383
Change-Id: Ie6fff9d880ba4721bf6babcd51acaa8fc9bd3cd9
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Design doc: go/widget-sizing-api-dd
New attributes added:
* maxResizeWidth
* maxResizeHeight
* targetCellWidth
* targetCellHeight
Bug: 179807199
Test: atest FrameworksServicesTests:AppWidgetServiceImplTest
Change-Id: Icadc73da9bd010e42459735493f452cb892e5744
|
| |
|
|
|
|
|
|
| |
Test: atest FrameworksServicesTests:AppWidgetServiceImplTest. Newly
added test passed.
Bug: 179063291
Change-Id: I17cf97b580ac03d9688d82eeccd3a68e77287655
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
for AppWidgetProviderInfo.
Test: Instrumentation test added- AppWidgetServiceImplTest_testLoadDescription
Bug: 178460757
Change-Id: Ic9b9cd8c592936bbe421183f8715ba5d8f770742
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Bug: 74408961
Test: N/A
Change-Id: I4320c5e265b52338eb2f4b2e5ea80ea05b9ca28f
|
| |
|
|
|
|
|
|
|
| |
supported features
Bug: 63931362
Bug: 36537581
Test: Added CTS for new APIs
Change-Id: I2bd3278bfdf40d88fc8e6f72bfbc7505c64accff
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
for PinItemRequest
Test: Manually tested on device
Change-Id: I7bbf7e93e052ef25c2a4a98ff0795ef500f68cc0
|
| |
|
|
| |
Change-Id: Id62398255799844cc89affcb4bafc86b6479dad0
|
| |
|
|
| |
Change-Id: I4cb0084a89cc079383d666ad1c5711d96ea81ebe
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
bug:14991269
Change-Id: I5996f8c69a3d151ff1ecd8f19403dd606f588150
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I2d53f226dbc328f0dbda7006eac647c6468c6b36
|
| |
|
|
| |
Change-Id: Ie17d9b9a47c979774b39a37e87f75d9dadc79ad9
|
| |
|
|
| |
Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
|
| |
|
|
|
|
|
|
| |
-> 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
|
| |
|
|
| |
Change-Id: Ieb6c57ef736712b3266de08027f9626104cdf1bb
|
| |
|
|
|
|
| |
-> issue 7238875
Change-Id: Ifad890b4061784889f3fc7711a165452cf230fbd
|
| |
|
|
|
|
|
|
| |
-> Fixes issue 7208464
-> Fixed issue with partial update as well, should address
issue 7214731
Change-Id: Ib8d9d5bee68b4fa7d6b4fbbc2f6609c287689958
|
| |
|
|
|
|
|
|
|
| |
-> 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
|
| |
|
|
| |
Change-Id: I191cf64ed045fd7cb53e106f337cbeab5a914336
|
| |
|
|
| |
Change-Id: I6b57cca32ed7678597e7c0d81dc483ee294537a9
|
| |
|
|
| |
Change-Id: I17dc27829938a3f25a664d8255965cf9b67cb17e
|
| |
|
|
| |
Change-Id: Ia799cfc1824ccee1f7fd041ae8ecaa1a0395c3f6
|
| |
|
|
|
|
|
|
|
| |
-> 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
|
| | |
|
| |
|
|
| |
Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
|
| |
|
|
| |
Change-Id: I0d79c85c6a2fc477af17eda05eabaa3151b0bef5
|
| |
|
|
|
|
| |
Bug #2464545
Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
|
| | |
|
| |
|