475c36539da9687d75447adb9054c98ce03c754a |
|
08-May-2017 |
Makoto Onuki <omakoto@google.com> |
Offload saving bitmaps from binder threads Bug 34691191 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 Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutManagerTestCases Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutHostTestCases Test: Manual test with the phone app Change-Id: Ibccf8ca162eae9179ee4cbdf0307ff34a6953aa1
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
bf563b63e5d3672ec102ee191a301e49e472139b |
|
04-May-2017 |
Makoto Onuki <omakoto@google.com> |
Show warning log when ShortcutInfo is re-published Bug 37986391 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: Id9ca30068440915d2e86850fe2ed3684c0ce2af8
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
d3aebf3320645859ddbc19470984dad53f6c47ff |
|
03-Apr-2017 |
Makoto Onuki <omakoto@google.com> |
Actually remove the chooser APIs Test: build Bug: 36186790 Change-Id: Ib03bb482c266f4c4f1080ca776c738d11a175219
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
99302b55c6a960c9078ad2c84ae9be3296bd32f3 |
|
29-Mar-2017 |
Makoto Onuki <omakoto@google.com> |
Revert "Push chooser targets to the shortcut manager." This reverts commit 58fc95dc578244b7beb687a48184045dcce788b8. Bug 36186790 Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutHostTestCases Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutManagerTestCases Also all unit tests, except for the known failrues. 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: I733ee7e12a419ee7ea17ca67c56afe7b039d189a
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
e4179e2c4e674b32390a9133bb9fbb3ef5df651b |
|
01-Mar-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
Change MaskableBitmap to AdaptiveBitmap Test: $ make dist -j30 b/35399620 Change-Id: I96d6eaceaf7ce9dec7de21634a5fa2bd40b0deba
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
58fc95dc578244b7beb687a48184045dcce788b8 |
|
14-Dec-2016 |
Hakan Seyalioglu <hseya@google.com> |
Push chooser targets to the shortcut manager. More info at go/direct-share-push Test: Some basic testing currently in, more to be added. Change-Id: I069f9779988c3eca2c4d8b83ec62501983854355
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
f281e7afae14f61e1d031f55cc80c59d0b39b528 |
|
13-Feb-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
ShortcutManager should support MaskableBitmap Icon type Note: https://ag/1872683/ is where initial code review happened. 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 Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest' Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest' b/34196580 Change-Id: I3b983c29387e474c7a8c687a524105ceaceac81e
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
9fd9019cf1f2c69c9bd1b9ea635a2605b3d9208f |
|
06-Jan-2017 |
Makoto Onuki <omakoto@google.com> |
Revert "ShortcutManager: Floating shortcuts shouldn't have target activities." This reverts commit 106ff7a0a1bef974ff04e9e79a25eb5e84555893. Test: All the unit tests (ShortcutManagerTest1*) CtsShortcutHostTestCases and CtsShortcutManagerTestCases Change-Id: Iadce2b3785cbf728daa60c4e2ff103e516d85896
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
a01f4f03e920277a48369b06983c728a73b8dcd4 |
|
16-Dec-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManagre: foreground check, more tests. Test: Manual test and all the unit tests: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests ... to test8 Bug 32908854 Change-Id: I30ba421e9730741776c1936e40ccf7b7431289da
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
106ff7a0a1bef974ff04e9e79a25eb5e84555893 |
|
01-Dec-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Floating shortcuts shouldn't have target activities. Previously, even floating shortcuts (pinned but not dynamic nor manifest) had target activities. Now we're going to allow headless apps to have pinned shortcuts, in which cases shortcuts won't have target activities, let's just always remove target activities from floating shortcuts. Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests ... to Test8. Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutManagerTestCases Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases Change-Id: I10e5b87338cafb90e6566b3526f892c5330c73e9
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
68d699d100584b7e5c76ac69737e717f3c6a88d4 |
|
15-Oct-2016 |
Kevin Hufnagle <khufnagle@google.com> |
docs: Updated ShortcutManager and ShortcutInfo class references. Bug: 32074598 Change-Id: I168d49a8542b411a074dc6e9120b0f08f72a829a
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
fe9c9669a4d727a99e78db73ce8708c7505a3b70 |
|
26-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Update ShortcutManager javadoc Bug 30359231 Change-Id: I01f1987416fa1ac3f0669afa1f15f88ff2dd1631
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
0eed441c0cf3bd03b8ac780e62fbeae5d7fcac4b |
|
21-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Follow-up to multiple intents support - More unit tests - LauncherApps.startShortcut() now supports sourceBounds (again) - Updated the javadoc. Bug 30218829 Change-Id: Iae208ffd4911d149246ccfd0c4380544c2aafffc
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
440a1ea8e2204ecb171e0187318beb2f08f6012c |
|
20-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Support multiple intents in ShortcutInfo Also fix b/30230996. TODO: Support the sourceBounds argument to LauncherApps. startShortcut(). Bug 30218829 Bug 30230996 Change-Id: Ibb6c59d5b7c0a320c21d09436d016d0eac94644f
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
347a6bd82059bc7581b1dcd229228f622c5cfca1 |
|
19-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Stop adding FLAG_ACTIVITY_RESET_TASK_IF_NEEDED when... starting a shortcut. - Also add API surface to support launching multiple intents - Also add SM.isRateLimitingActive() which was supposed to be added but was not due to a bad rebase. Bug 30218829 Change-Id: I82d60ec0df1e2b889538705f9f8870ee727dd55d
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
a97256b793a9ad9d6958645f098cff0b6e8918b1 |
|
15-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Fix the allowed icon type error message Bug 30162778 Change-Id: I925c563c1924c6525fe17afc44626d62864ba7e1
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
4a91096a4ccdeeccfbd96da4bc88d874ec0bf451 |
|
07-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager javadoc Bug 29515722 Change-Id: If4805a7f28a2ee602094fca06eb1ff30f258dc1e
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
598aca467283ed6be082fb240171bc3073ed720d |
|
07-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Hide APIs that shouldn't have been public Change-Id: I40f1c8e9c6fe991e782bf3dd772f305df641b267
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
b08790c3b2f3bdb0c2e2f7ff46e4584fb1127769 |
|
23-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Shortcut: Only "main" activities can have shortcuts. - Don't publish shortcuts when their target activities are not main. - Only scan manifest shortcuts for main activities. - When an app is updated, remove shortcuts that no longer belong to valid main activities. - Also re-publish manifest shortcuts after 'clear data' - Also listen to PACKAGE_CHANGED and disable/re-publish shortcuts properly. Bug 29355786 Bug 29582255 Bug 29601844 Change-Id: I6c701ce669cf30a227bc2af4aa01de467ef73e3a
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
b5a012fd6f088629746057a3902b5926f9fe8e08 |
|
21-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Shortcut Manager: Address API council feedback and fix TODOs Bug 29515722 Bug 29516909 Bug 29515090 Bug 29516954 Bug 29515088 Change-Id: Ibe1d27033cbd0fd50d37e3d9945b47551211c568
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
4d6b87ffdf06df3303239130ced685bc1a3fae50 |
|
17-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Launcher shortcut callback should deliver manifest shortcuts too - Also include "activity" in the key fields, as this is now an important field. - Also optimize ShortcutInfo parceling for the "key field only" case. Bug 29394043 Bug 29451629 Change-Id: I61b2bc2f61ad6ebdcbaf6d02f1bd88777c45a7f0
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
df6da040e00cba255cad64d2d231aae62928607a |
|
16-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Update manifest shortcut XML schema Use the standard <intent> tag instead of custom tags. - Also fix setDynamicShortcuts(), which was broken in the previous CL. - Also tolerate runtime exceptions while parsing XMLs - Also fix b/29422018 while I'm at it Bug 29390156 Bug 29077932 Bug 29422018 Change-Id: I2756c9d66c6d7b2962a982d9e57a7d84a5755b28
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
70a91541e9eb2acc6ee5a34785abdc420127a5ec |
|
15-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "ShortcutManger: Auto-adjust ranks." into nyc-mr1-dev
|
9e1f5595bd7ffe3af6ca35b3235dfca0ecd07978 |
|
08-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManger: Auto-adjust ranks. Spec: go/shortcutmanager-spec-ranks Bug 28984376 Bug 28536066 Change-Id: Ibffb92233c62792af06eeadc5a9a6379d0506a3c
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
a1d38b3c95cd6a38ee7336fd90729d3b3be6ae25 |
|
11-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Fix some exception messages and enhance unit tets Bug 29275393 Change-Id: Idaa8564d41f86de2a2cbefa4ff3c08b89a3a6dd2
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
157b1628fd84dc3ef0355fddd8d281618f94d33e |
|
03-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: deal with changing resource IDs on app update - When an app is upgraded, all the resource IDs may change. So if a shortcut is previously published with an icon for res ID 100 and the publisher is upgraded, resource #100 may refer to something different. - So now the service also remembers resource names for icon resources, as wells as string resources. When an app is updated, the service fetch the updated resource IDs by name. - Also extract all string resources when a shortcut is published and persist them, so that even when the original string resources are removed from the app, the launcher can still show the extracted strings. - When the system locale changes, re-extract all string resources. - Also really hide the constants in ShortcutInfo that were accidentally made public. Change-Id: I23c29b45c1de5d76175229190a1533c9c62c5960
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
eddbfecb8dd751161339a9ed16d07ce2e108a575 |
|
01-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: API rename The words "title" and "text" implies that "text" is a secondary label that's shown with the title, but it turned out the launcher would show only one of those depending on how much space it has. So now we change them to "shortLabel" and "longLabel" Note we're only changing the API surface -- in order to mimimize the impact to the code, internally we'll keep using the old names. - Also remove "shortcutRank" while I'm here -- it should be implied from the order of the XML elements. Bug 29057378 Change-Id: I3203f63b0318c7462c1c61fef43cf9755fa8c008
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
22fcc68e6be0edaa98f3dacf79d580a5e5d50005 |
|
17-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Support manifest shortcuts - Now apps can publish shortcuts via AndroidManifest.xml (Sample: I5b127150) - Rename some APIs per API council feedback - Publishers can now "disable" shortcuts. (https://docs.google.com/presentation/d/1raUn1QBURDb1yrd6mSmVxII9ezNh3MWukODdtufJ29U/edit#slide=id.g13ef592464_7_39) Bug 28785283 Bug 28536066 Change-Id: I4a126841e43e40139bb4baa6d0f98ad7b3a75ac1
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
20c95f854e54b71caa49f0efe07d47d1e6afd435 |
|
12-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: API changes for DR See https://goto.google.com/shortcutmanager-spec-dr for the details. This CL contains changes to ShortcutInfo and all the new API entry points, but not the implementation of the new APIs. - ShortcutInfo.activityComponent is now mandatory. - Publishers can now disable shortcuts. ShortcutInfo can now have "disabled message". - ShortcutInfo now supports string resources for all the String fields. -> When launcher fetches shortcuts, ShortcutService will automatically load resources and expose as strings. - LauncherApps now supports getShortcutIconDrawable() and getShortcutBadgedIconDrawable() to be consistent with LauncherActivityInfo. - ShortcutInfo.weight is replaced with "rank". - Added ShortcutManager.reportShortcutUsed(), which will be used for usage tracking / suggestion. Bug 28536054 Bug 28536066 Bug 28564134 Bug 28594168 Change-Id: Ib8245b39bb1e753991a9de89c0b73accacd90355
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
c51b2876ec5c0af449469a0f76bb38c51cfcff04 |
|
05-May-2016 |
Makoto Onuki <omakoto@google.com> |
Refactoring ShortcutManager + bug fixes. - Don't pass the ShortcutService instance as an argument. This tiny optimization is no longer meaningful now that PackageShortcut and PackageLauncher have reference to ShortcutUser. - Rename mLauncherComponent to mDefaultLauncherComponent for clarity. - Don't instantiate ShortcutPackage instances when not needed. - Don't allow intents with a null action. - Also improve javadoc. Bug 28592642 Bug 28474517 Bug 28557169 Change-Id: I8790d3494bf3b92c143c02824b0ed0e514504baa
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
4d36b3a8c5ba1289d851ef337e46709bba333100 |
|
27-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: finishing touches - Change back the throttling quota to 10 calls / day - Foreground apps are no longer throttled, and when an app comes to foreground the call counter will be reset. - When the system locale changes, reset throttling for all packages for all users. See LocalService.onSystemLocaleChangedNoLock() for how it's performed. Because the reset must happen before any other apps have a chance to publish shortcuts, the logic is not straightforward. - Added an internal API to reset the throttling upon inline-reply from a notification. - Stop supporting icons from "content:" URIs - Improved javadoc on several APIs. Also internal refactor needed to this: - ShortcutUser.getAllPackages()/getAllLaunchers() are no longer accessible to outer code to prevent accidentally adding/removing the content. Outer code should use forAllPackages() / forAllLaunchers(). Bug 27923857 Change-Id: I002511193d1d33718163bb1dabe77610bde58198
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
be73a8068ff3babe5b0a4f12656731ba8eea6149 |
|
15-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Categories should be Set, not List. Bug 27923857 Change-Id: Ife859da8e66478174f6c4463316886a23e5aa4e0
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
b6d3523dfb5d73ddda4b750a82c059cdc42acf8e |
|
05-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Address API review feedback. - "delete" -> "remove" - add/deleteDynamicShortcut() now takes a list. - Throttling default settings is now 2 calls / hour. - Add categories to ShortcutInfo. - getIconResourceId() is now public Bug 27923857 Bug 27548047 Change-Id: I8457b30e4b2f7c63ab2988648b37178fd16ea45b
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
abe8442951ff88aa01ed882adb54fb1b3472ca3e |
|
07-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
Add UserHandle to ShortcutInfo, and simplify LauncherApps APIs. - Also fixes the bitmap recycle bug in the service. Fixes 28053541 Change-Id: I2b244feda0f85c60e2c15af427fcad95ad5e6da5
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
2c0ae91f2d22b2c9a3b506d3a7f60bc31f72c57d |
|
31-Mar-2016 |
Jeff Sharkey <jsharkey@google.com> |
Merge changes Ifecff4f1,Ia302de46 into nyc-dev * changes: Make preferred activities direct-boot aware. Make Parcelable classes final, API cleanup.
|
70168dde6e1da06042818350fc6e258188d001ae |
|
31-Mar-2016 |
Jeff Sharkey <jsharkey@android.com> |
Make Parcelable classes final, API cleanup. Remove some Context methods that leaked through. Add lint rule to recommend using List<? extends Parcelable> instead of Parcelable[]. Bug: 27932224, 27930145, 27932911 Change-Id: Ia302de46cdb0c5101fa175a09316df91aeefcf0d
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
0e65d36607abd3d3c2315184bd8c46a77a271c1e |
|
29-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Clean up javadoc. Bug 27548047 Change-Id: I10410c969136db634bb98687710d011d159bca07
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
e3ae7ec14a3204ee502219b6bb46dc9ab8e24a36 |
|
30-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Support secondary text field. Bug 27548047 Change-Id: I2d184bab2c26e351b7326945fa0cacf826f16d1e
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
aa8b94aa79df94d77d0f7698ce532ac98f197a99 |
|
17-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Improve ShortcutSrvice - Delayed save - Reset logic update Bug 27548047 Change-Id: Ibd52f90a7986991974301b7ff1f1d8520f9ef0d9
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
de66737ae9c5d5c94155820fad65224a83d04c3d |
|
15-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Support multi-launcher Each launcher can have its won set of pinned shortcuts. - Shortcuts pinned by others should look like not pined to this launcher. This affects how ShortcutQueryFLAG_GET_PINNED works, as well as what ShortcutInfo.isPinned() returns. - When pinning a shortcut, it should be a visible one to itself -- a non-dynamic shortcut that's pinned by another launcher but not by the caller is not visible, so this launcher cannot pin it either. - Also clean up the dynamic shortcut adding. Bug 27548047 Change-Id: Ia478a2ea19b7d35557ec6ea42384c79a84d6b8de
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
7a6a05f0ccc8c57496d0a1e2b0882ab7de3175e5 |
|
11-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Test for ShortcutManager.updateShortcuts(), also ... fix bugs Bug 27548047 Change-Id: Ia55d35521912dcba2fb1bb9c20588a83d1a2d004
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
5504622fb01ab9774b5e73d05f86ee03a8b68ab7 |
|
08-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: add remaining APIs. - Icons are now persisted. (under /data/system_ce, as PNGs) - the "load icon" APIs in LauncherApps are supported. - Implement updateShortcuts() - Addressed all the comments on the previous CL - @hide the newly added constructor for PersistableBundle - Enhance incoming shortcut validation - A lot of internal clean-up. Bug 27548047 Change-Id: I8e3c1ccd3e0a997a6d271c84d81170f0c022b60e
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|
6f7362d92573e4ae693bc513dca586d6a4eb087b |
|
04-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Introducing ShortcutManager What's supported: - Most APIs are implemented, except for SM.updateShortcuts(), the icon APIs in LA, and LA.startShortcut(). - Persisting information, except for icons - Throttling In addition, now PersistableBundle has a public copy constructor from a Bundle. (Do we want to @hide it?) TODOs: - Add icon support - Implement missing APIs - Listen to PACKAGE_* broadcasts and do clean-up - Support multi-launcher apps (pinned shortcuts per launcher) - Dev option to reset throttling - Load throttling config from Settings - Backup & restore - Figure out LauncherApps permissions (BIND_APPWIDGETS??) - Other minor TODOs in the code - Better javadoc Note: This requires Idf2f9ae816e1f3d822a6286a4cf738c14e29a45e Bug 27325877 Change-Id: Ia5aa555a4759df5f79a859338f1dc5e624cd0e35
/frameworks/base/core/java/android/content/pm/ShortcutInfo.java
|