d4b7862785f14d591f13f4a1bd547b65d8e5c479 |
|
23-Sep-2017 |
Makoto Onuki <omakoto@google.com> |
Don't take a lock on the UI thread. Bug 66719356 Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests Test: adb shell am instrument -w -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 Change-Id: I1045eda4910e3c7d3172038a1efd31cdf9346729
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
3e99f654fbf56d3b7ef7130658b8ef83d2d0cdbd |
|
06-Jul-2017 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #34471029: Don't allow audio use from background apps. This is becoming a common pattern (keeping track of which processes are cached and not allowing them to do stuff in that state), so I am turning this in to a general mechanism for monitoring this state through the activity manager's IUidObserver. Now we can just have AudoService implement its own IUidObserver to get this state and update which uids it is blocking. This required making some changes to uid change reports so that the integer is now a bit mask instead of an enumerations, but that is what it was already turning in to anyway. (This gets rid of the crazy GONE_IDLE constant that we'd needed to add before because it wasn't a bit mask). Eventually the power manager should be changed to be told about these changes to cached state instead of listening to every proc state change, but we'll do that later, it is more disruption than I want to take for now. However, while working on this, I noticed that the power manager had regressed in the cached uids it would actually block, because the activity manager was no longer telling it about all uids that are idle. (I think this happened when I had to change the default idle state of UidRecord to true.) So I am adding a bit of new code to keep track of what idle state we last reported to observers, to make sure we tell it about newly created uids that are idle but have never actually become active. Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services Change-Id: I7bfd46bacadd4cab2a69f40e6e52afb4e67b456a
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
50a320e51ed280c148dc79f8745b48e79998d6c6 |
|
31-May-2017 |
Makoto Onuki <omakoto@google.com> |
Add dumpsys option to print last restore status Now "dumpsys shortcut" will *not* dump UID states. "dumpsys shortcut -u" will do so. "dumpsys shortcut -f" now dumps dump taken after the last restore. Bug: 62108985 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 Change-Id: I5e8451b576081328242b485850f5311258fe7779
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
8947f59f964fba9f06a34297ba4a8f63ac2d3e4a |
|
15-May-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
Fix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcuts) b/38304824 Test: cts tests in ag/2262246 and also full build and tried the system image. Change-Id: I8f021aa2bb1a0e99597bc00064ab1e9d85569bcb
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
4703746f500933b920236a72f70f629304ea2578 |
|
09-May-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
Update ShortcutManager/Service javadoc/impl around sizing to account for AdaptiveIconDrawable type of shortcuts Test: builds for now.. If Makoto is happy with this change, will add tests b/37743074 Change-Id: Ieecd95d621db57f858fac449d3bcedd173c8607c
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
01ce92b8ac98da3887515e4aa85353ac6cbcbd01 |
|
28-Apr-2017 |
Makoto Onuki <omakoto@google.com> |
Move the last user save from onCleanupUser to onStopUser Bug: 37780857 Test: manual test with work profile 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: I8b053c6a55df374a89ab85d76b9d36abf639f649
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
6a7a967b712145a84771de2920082d3647de2d24 |
|
04-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Remove/fix broken test due to change to DUMP permission check." into oc-dev
|
c4361e34ad6fbc1bab34271ece668ebf79232a64 |
|
03-Apr-2017 |
Makoto Onuki <omakoto@google.com> |
Remove/fix broken test due to change to DUMP permission check. Bug 36854321 Test: adb shell am instrument -e class 'com.android.server.pm.ShortcutManagerTest2' -w com.android.frameworks.servicestests Change-Id: I80f2a326b70f8d0598246732510e3725a0c58871
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
ef7dff2563ccbe74564ab3b417d810a04df556e7 |
|
03-Apr-2017 |
Makoto Onuki <omakoto@google.com> |
Merge "Revert "Push chooser targets to the shortcut manager."" into oc-dev
|
6df866a8510af2776c48425a361f708ae7f5d7d6 |
|
31-Mar-2017 |
Jeff Sharkey <jsharkey@android.com> |
Enforce PACKAGE_USAGE_STATS for usage data. Some system services are offering package usage data through both public/system APIs and through dump() calls. In principle, usage data hould always be protected with PACKAGE_USAGE_STATS, so start enforcing that. (Otherwise if a user blocked PACKAGE_USAGE_STATS access to an app, that app could still obtain the data via dump() if they held the DUMP permission.) Bottom line, let's respect the user's wishes. Protecting the entire output like this is pretty blunt, but future CLs can add more nuance to the output if desired. Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest Bug: 32806790 Change-Id: I46173562713bea7d89e12a4313c78eb52ea8d77d
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
fe9a53bc45fd0124a876dc0a49680aaf86641d3e |
|
31-Mar-2017 |
Jeff Sharkey <jsharkey@android.com> |
Consistent dump() permission checking. This change introduces new methods on DumpUtils that can check if the caller has DUMP and/or PACKAGE_USAGE_STATS access. It then moves all existing dump() methods to use these checks so that we emit consistent error messages. Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest Bug: 32806790 Change-Id: Iaff6b9506818ee082b1e169c89ebe1001b3bfeca
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
82fb2eb057032bb7f38f547fb3667c7bf2547517 |
|
01-Apr-2017 |
Makoto Onuki <omakoto@google.com> |
Handle disabled packages as removed. Bug 36600272 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: I272334cef00337d5ba01ce4b878c799d9476432f
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
341455319799a9d3d2688a7d040bdece826a634d |
|
15-Mar-2017 |
Makoto Onuki <omakoto@google.com> |
Workaround for b/36228253 Dynamic shortcuts must have target activities, but somehow the invariant was broken. Bug: 36228253 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: I9163d57121f102d88baa3e34791877412719da50
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
8025580449081ddd21f449f8719bc87d1cc9fc7b |
|
04-Mar-2017 |
Sudheer Shanka <sudheersai@google.com> |
Update IUidObserver.onUidStateChanged to include procStateSeq. This procStateSeq is associated with the process state change of an uid and will help in identifying if network policy rules have been updated for a process state change. Bug: 27803922 Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services Change-Id: Iaab8d004f476b96f28d08c886c7b0a6b585b9fef
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
e096df0063f9b22af1bf9159e4b6056c1c5c70f0 |
|
03-Mar-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Adding support for passing arbitrary extras when requesting to pin a widget. Also defining an extra constant for widget preview which can be used by developers to provide a snapshot of the widget with the pin request"
|
4ad6b57700bef4c484021f49e018117046562e6b |
|
28-Feb-2017 |
Sunny Goyal <sunnygoyal@google.com> |
Adding support for passing arbitrary extras when requesting to pin a widget. Also defining an extra constant for widget preview which can be used by developers to provide a snapshot of the widget with the pin request Bug: 35811129 Test: All exisiting tests passing for f in 1 2 3 4 5 6 7 8 9 10; do \ adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest$f \ -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner; \ done; adb shell am instrument -e class com.android.server.appwidget.AppWidgetServiceImplTest \ -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner Change-Id: Id854bd28468a5bf0416ff1a1b19c44d850016f32
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
096d304ae3d85c1bfcda1a1d9cd4eb13d0815500 |
|
31-Jan-2017 |
Svetoslav Ganov <svetoslavganov@google.com> |
Add instant cookie APIs This change adds APIs for instant apps to store cookie data that is presisted across instant installs and across the upgrade from an instant to a standard app. Standard apps can use the cookie APIs but when they are uninstalled the cookie is also deleted. The cookies are kept longer than the instant apps as they are much smaller - 16KB by default. We can change the cookie size via a system setting i.e. after we ship we can increase size if needed. We also add internal APIs to surface information about installed and uninstalled instant apps which should be used for showing them in the UI. For this puporse we store the icon, permissions, and label of uninstalled apps. If the app is re-installed we drop this meta-data but keep the cookie around. If we have cookie data stored and the signing cert of the app changes when it gets re-intalled we wipe the cookie. Test: CTS tests pass; hiddent APIs tested manually Change-Id: If145c0440cc61a5303e2cbb70228d235d36037a5
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
33d9bc529e4969444aca821190f16b565a7726a9 |
|
26-Jan-2017 |
Sunny Goyal <sunnygoyal@google.com> |
Merge "Adding AppWidgetManager.isRequestPinAppWidgetSupported"
|
7f7372ae2abeecb564d426ec3efbfa039c797885 |
|
24-Jan-2017 |
Sunny Goyal <sunnygoyal@google.com> |
Adding AppWidgetManager.isRequestPinAppWidgetSupported Launchers can choose to implement support pin shortcut or pin appwidget or both by specifying different actions in the intent filter Test: Automated tests and CTS Bug: 34174006 Change-Id: I4456dbb943cfba11d465556f0732f0ed629ab3ba
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
66e4a2b801fe0ff2ee1db5e0578a3e7cb6e1f6d6 |
|
23-Jan-2017 |
Makoto Onuki <omakoto@google.com> |
Do not allow ephemeral apps to access ShortcutManager Bug: 34178279 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: I5672f15705a1bf6568a8df58b66e48c802c11852
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
a6be88a10d6f6391b09f626ead051d0c698fb2d1 |
|
13-Jan-2017 |
Sunny Goyal <sunnygoyal@google.com> |
Adding support for apps to return PinItemRequest to launchers as a result of Intent.ACTION_CREATE_SHORTCUT > Adding API to allow launchers to query shortcut config activities in managed profiles. > Adding API to allow the default Launcher to start the shortcut config activity in managed profiles. > Updating the ACTION_CREATE_SHORTCUT documentation to represend changes in the expected result. Test: Manual tests and all the unit tests adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests ... to test10 Change-Id: I785c4f2fba782b864cc401ac7905330ea4498289
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
255461f676f09db9be3876c156d571f4e08981ee |
|
10-Jan-2017 |
Makoto Onuki <omakoto@google.com> |
Allow adding target activity via requestPinShortcut(). Also now ShortcutManager tries to fill in the main activity as the target activity if the caller has one. 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: Running: 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 Bug 34047091 Change-Id: I2bf2b20e94a2384cfa6e6b7d40d56cfe96a94fd9
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
87a563e0707bb7e2be034c195e9827dfe3451cfd |
|
02-Jan-2017 |
Sunny Goyal <sunnygoyal@google.com> |
AppWidgetManager: direct add widget support. 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 test9 adb shell am instrument -e class com.android.server.appwidget.AppWidgetServiceImplTest -w com.android.frameworks.servicestests Bug 32404406 Change-Id: Icd6d4cbd25d9cdf4508da725d95d6401cc3a46a7
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
2d895c3efd625e09e9f2cc4d0c7131b34f52f154 |
|
03-Dec-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: direct pin shortcut support. 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: I11b81656959cccfb4efa83f08380b915e6eb84a6
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
54365465897a0fbb2d61c3fb2460698384328ad4 |
|
02-Dec-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "ShortcutManager: Floating shortcuts shouldn't have target activities."
|
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/services/core/java/com/android/server/pm/ShortcutService.java
|
b36c45fe3069bff85585759f6fad82b64d1e1953 |
|
01-Dec-2016 |
Makoto Onuki <omakoto@google.com> |
Fix issue with apps restored to lower versions. am: fac592f64c am: affadd52af Change-Id: I159f53023179cb67b7225969f4c7220ddd0c03dc
|
fac592f64c55004e9048e30e03d6dc65bdb4f00a |
|
21-Nov-2016 |
Makoto Onuki <omakoto@google.com> |
Fix issue with apps restored to lower versions. When restoring to a new device, if a restored app is not compatible with the old version (e.g. lower version or different signature), then we won't restore shortcuts, which is working as expected. However when it happens, the shortcut manager forgot to "un-shadow" the package information, causing the app to not have shortcuts at all. Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests Bug 32999759 Change-Id: I89832360114de0ce1c57d763bcaccab4fdb87b6d
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
dc589ac82b5fe2063f4cfd94c8ae26d43d5420a0 |
|
11-Nov-2016 |
Sudheer Shanka <sudheersai@google.com> |
Update usage of ActivityManagerNative. - Remove references to ActivityManagerProxy. - Add isSystemReady to ActivityManager. Bug: 30977067 Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts adb shell am instrument -e class com.android.server.am.ActivityManagerTest,com.android.server.am.TaskStackChangedListenerTest \ -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner Change-Id: I07390b6124fb1515821f5c0b37baf6ae74adc8fa
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
e07641d4fbdd0528c18305213e861a6e1aff4a3b |
|
10-Nov-2016 |
Dianne Hackborn <hackbod@google.com> |
Start implementing background restrictions for eph apps. This implements the additional intended path for checking allowed background operations, APP_START_MODE_DISABLED, which doesn't allow an app to launch in the background at all. Also change the semantics of delivering broadcasts to manifest receivers to always restrict those, not changing based on whether the app is currently idle. This is the desired intended behavior for apps as they explicitly update to work with bg check. And now that we have ephemerality associated with the uid state in the activity manager, we can propagate this through the relevant callbacks in IUidObserver so things watching these changes can immediately determine whether they should do their more aggressive shut down work for the uid rather than having to walk through all their state looking for package associated with that uid and whether they should be shut down. Also remove the "lenient" bg check mode, since that was just an early experiment that we won't actually use. Add a new "make-idle" activity manager command to immediately put a uid into the idle state (if possible) to make it easier to test. Test: manually against an eph app Change-Id: I43a138ff281f69a9251d3f29ab6e13f48cff8ad6
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
80361c9ea7f3ff694425b6bd9e42e8c933b1196c |
|
09-Nov-2016 |
Dianne Hackborn <hackbod@google.com> |
Merge "Move code for handling uid obs "cutoff" to activity manager"
|
5614bf5a1ae4522dfc1a041f003cebc9b25c8b93 |
|
08-Nov-2016 |
Dianne Hackborn <hackbod@google.com> |
Move code for handling uid obs "cutoff" to activity manager To do this, I had to fix the PROCESS_STATE_NONEXISTENT constant to be the last value (instead of the special magical -1 value) so it semantically matches the public importance constants. I think this is better anyway. Also this fixes a big problem in the implementation, where we weren't keeping track of the last proc state per uid...! Duh. Test: manually ran testUidImportanceListener Change-Id: Ie3008f824446089840f896885e6033472abb065e
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
248a0ef3aa119f92858a2bb95d20595824b8d07b |
|
03-Nov-2016 |
Makoto Onuki <omakoto@google.com> |
Always scan all apps after each OTA for manifest shortcuts (W/ reverting Ia05363b30a5eeb989dc4c44cf5dbd71cde96de96) Test: FrameworksServicesTests Bug 32590013 Change-Id: I8f45c330d0b102a6a112e774205e6611c1c61af3
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
058f1e4468bd54d0ac39fdf81b4df7221b28721a |
|
03-Nov-2016 |
Dianne Hackborn <hackbod@google.com> |
Implement system API for monitoring uid importance changes. Changed the permission for registerUidObserver to be PACKAGE_USAGE_STATS, which better matches the semantics of this API and is accessible to system apps. Test: Added testUidImportanceListener() Change-Id: Ib47d02bd654fbe399a9c92550c89ecbd38f928dc
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
815fc3e53941473a9a8cbac52e2658b987609c75 |
|
01-Nov-2016 |
Mark Renouf <mrenouf@google.com> |
Workaround for javac compilation issue of lambda code am: e065f7c5a9 am: 6ce06e63a7 am: 72f59dd7cb Change-Id: I603a1709e35ba1d34cdd6b8abe9fd981e59166c8
|
e065f7c5a9ad4e47f5490793401445660af37624 |
|
01-Nov-2016 |
Mark Renouf <mrenouf@google.com> |
Workaround for javac compilation issue of lambda code Since ag/32554459 some Robolectric tests are compiling framework code with javac. For reasons unclear so far this code fails to compile with javac: > ShortcutService.java:408: error: variable ri might not have been initialized https://android-build.googleplex.com/builds/submitted/3416256/angelfish-userdebug/latest/logs Removing the lambda expressions corrects the issue. BUG: 32554459 Change-Id: I189c8ef02dc93b46ef6418c1ff14f2312097898a
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
354736e196ff79962b3ddb52619a674044d773e2 |
|
23-Aug-2016 |
Dianne Hackborn <hackbod@google.com> |
New infrastructure to switch remaining commands to "cmd" calls. This introduces a new feature of the IBinder command protocol to allow the shell command implementation to call back into its caller to ask it to open files in the calling context. This is needed so that commands that have arguments specifying files can open those files as the calling shell, not the system (or whatever) process. To test this all out, move the "am start" implementation over to ActivityManagerShellCommand, in particular along with its option to specify a file in which to write profiling data. Test: Manual Change-Id: I0c1e3857defefbd19a2ac29413aafbb34b1e48a3
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
c8c3329dd918b8ea16d6317d19ddee12325800f3 |
|
13-Sep-2016 |
Makoto Onuki <omakoto@google.com> |
Don't update publisher version code without scanning manifest - It was (theoretically) possible for shortcut manager to update the version code for a publisher package without rescanning manifest shortcuts, if backup happens right after unlocking a user before SM searches for updated packages. If it happens, then SM will not scan the manifest for this package until it's updated next time. So don't refresh the version code during backup, which we only have to do for launchers but not publishers. - Also fix the owner-user-id for launchers. (Luckily it's not causing any issues.) Bug 31402152 Change-Id: I5d898eb3882b74edaca8b2d5f960849370ffc23b
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
fc4cf2da34335fd7e84c020f51eea1a341d3f134 |
|
24-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
Shortcut: Improve backup & restore * Catch RuntimeException from restore, in case restoring from a partner device with an incompatible file format. * When a restore target app is already installed, and - if it has allowBackup=true, we'll restore normally, so all existing shortcuts will be replaced. (but manifest shortcuts will be re-published anyway.) We log a warning on logcat. - if it has allowBackup=false, we don't touch any of the existing shortcuts. Bug 31057974 Bug 30766177 Change-Id: Ic3f7e860e7ea0d086fc589d8cbed8c4cebdd4bc6
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
3366328245621fa6e8fd764a4d3c2f073774d096 |
|
23-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
Do not scan system apps unless after OTA Bug 30956231 Change-Id: I4af34cdd39cfaf0b8712b9ded1ef119efa3e04b0
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
085a05cd864252314bcf5c339017a16b68105204 |
|
19-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
Off-load unlocking users onto a worker thread Bug 29645168 (cherry picked from commit 3107ff78454d54c0494911bf69ca952152af7cf0) Change-Id: I3f8e768f6afeb6386a08ba9ac48e0e206395da2b
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
1e1732399a48c9521eea7a117f1f0e87ca64d2ab |
|
10-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
Fix two shortcut manager issues - isUserUnlocked check is still racy We used a local copy of each user state in mUnlockedUsers, and updated it in the service lifecycle events. However because SystemService.onUnlockUser() is called on Handler, there was a brief window between when the user was actually unlocked and the shortcut manager thought the user was unlocked. So now check with activity manager for the latest state too. We still check with the local copy first, because we want to consider STOPPING as "unlocked". - Messenger loses all bitmap icons. Because we delay-save the shortcuts.xml file, if the device shut down before we save the XML file but after removing the bitmap files, we'd lose the bitmaps. (Apparently SystemService.onCleanupUser() may not be called even when a device is cleanly shutting down.) So don't remove bitmap files synchronously, ever, and instead after saving the XML just run the dangling file cleanup. Bug 30784267 Bug 30730471 Change-Id: Ie58656efba2dca2b00582e145613bc56266a091e
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
377b7970ad70e87f8137ea7d9e7a6b00de1826ae |
|
09-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
Rescan apps after restore and re-publish manifest shortcuts Originally when I wrote backup & restore for ShortcutManager, there was no manifest shortcuts, so there was no need to handle preintalled apps specially. However, now we have manifest shortcuts, which are published when the user is unlocked, by the time restore happens preinstalled apps may already have manifest shortcuts, which will be overwritten by the restored shortcuts. So we need to re-publish manifest shortcuts after restore. Bug 30746028 Change-Id: I6afbae7790c9ed38483637f33c381ecb6f854677
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
64183d518813cc65efcaeaf0d4c28de092b32868 |
|
08-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager improve app udpate check - Don't use lastUpdateTime for system apps since it's not reliable. - Scan downgraded apps too. Bug 30708050 Bug 30734178 Change-Id: I98253f4c635466197548385275ab08c5e3a1a10b
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
33525d2f1a8116820f58fc90941cb53bcba54805 |
|
04-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Update foreground check. - When the cached UID state says a UID is in the background, check with AM and get the latest state, since the state might just have been changed. Bug 30640208 Change-Id: If448f6f21f290fa0fc13550d9c740f56aa8bfce0
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
02f338e23d06499790c6948709afb1587416eb40 |
|
29-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
LauncherApps should also throw when user is locked otherwise it'd be racy. Bug 30406401 Change-Id: I953eb6ae58e029d254d9fdbd5d05a0090b8d2391
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
2ec16b08accd254b6c64f7b632575d07981380f1 |
|
01-Aug-2016 |
Makoto Onuki <omakoto@google.com> |
Revert "LauncherApps should also throw when user is locked" This reverts commit bc4ad85d29cd4490ba71baaad58e2f4d68b7d325. Will retry when the updated launcher is in. Change-Id: I428dc93132615480df70aeca7977089af008c041
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
bc4ad85d29cd4490ba71baaad58e2f4d68b7d325 |
|
29-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
LauncherApps should also throw when user is locked otherwise it'd be racy. Bug 30406401 Change-Id: Id6b0295933c5639fa23c56d737a7f0199cbd7497
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
9c850012cacf0af4a392294566a8c7c897dc8771 |
|
27-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Prevent shortcut access when user is locked Also add some test utility methods that'll be used by CTS. Bug 30406401 Change-Id: I9396acebbdb3cbe64f6e85877ee62a2131cd6e61
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
3fa345b5c2cf5d7fd8c87e44d1887f011787c548 |
|
22-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "Unit tests for "cmd shortcut"" into nyc-mr1-dev
|
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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
0b9d1db5c1aab9017daf05abd0ba0f4de2c7192d |
|
18-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Unit tests for "cmd shortcut" Also removed unnecessary commands. Bug 29612099 Change-Id: Id554163c861fb144cb5140d7eb709178347f7868
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
76269928e677725e2d9b28e2e3aa79961a60a1d0 |
|
15-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Implement dumpsys --checkin for shortcut manager Dump the very basic stuff for now. We need to update GMS-core to actually collect the information. Bug 28535604 Change-Id: I6ce17ee2014786a0ef97f3dc973b8a01c2d2a814
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
1030520822c42cc7357b463d301c7e97e928ba22 |
|
15-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Cache the default launcher. Originally we always checked with PM for the default launcher, which would take ~2ms. Now we cache the result, and clears the cache when (any) preferred activities change. Bug 30126557 Change-Id: Iceef288cd372c8bb9b119aa493e5173d894f2302
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
83fa7a82558a41a18d959c7b9fb197b787c52779 |
|
15-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "Handle locale change and pacakge change in different way" into nyc-mr1-dev
|
13260b6ff0438a02bd0f1c5bbcfb4fef71c82135 |
|
14-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Don't allow shortcuts with non-main activities Bug 30122758 Change-Id: Id9ead6706d5460fec3d68c7457e3097f30a9a080
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
4e6cef49ef11bbb5bfc0e9f0fb865188492d88b0 |
|
14-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Handle locale change and pacakge change in different way - Stop using a custom callback from AM to detect locale changes and use the LOCALE_CHANGED broadcast instead. - This would open up a chance where a publisher app fetches its won manifest shortcuts after a locale change but ShortcutManager hasn't updated string resources. - So instead, at every entry point from ShortcutManager, check if the locale has changed, and if so, update all resources (and reset throttling). - Do the same for package change events too. At every entry point from ShortcutManager, check if the caller package has been updated, or any target activities have been disabled. If so, rescan the caller package. - We do *not* do the same check at the LauncherApps entry points, because the launcher should use the callback to listen to shortcut changes. - Also stopped using PackageMonitor for now because we want to set a higher priority and changing PackageMonitor at this point seems too much for DR. Bug 29895275 Bug 30123329 Change-Id: Ib4a2f626a936c7328e2cc032324f5c3d1c3b9122
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
f34c308dfd9cdda428b8ead8bf655de1608501a9 |
|
13-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Revert "Revert "Revert "Handle package broadcasts before apps do""" This reverts commit 886ba78dfb105eb45416587b73b6c6b336448de5. With the tests updated. Change-Id: I162e6ca23c667f90feddc1e9f42b554a416295cf
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
886ba78dfb105eb45416587b73b6c6b336448de5 |
|
13-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Revert "Revert "Handle package broadcasts before apps do"" This reverts commit efbbe7ea9db8adab6bff407db1d7fc54bbaf31ee. Change-Id: I3dbb080db5121307f533a7d411f4f5d47225500e
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
efbbe7ea9db8adab6bff407db1d7fc54bbaf31ee |
|
12-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Revert "Handle package broadcasts before apps do" And fix b/29939691 (don't try to load locked users) in a different way Bug 29939691 Bug 29895275 Change-Id: Ib55f9c5d5547c54daa4e05c1e50bf4bbceaf1991
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
83f6d2da372de339dc563d6a7786be3facc52e76 |
|
11-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Throw ActivityNotFoundException when failed to launch shortcut Originally the code used IIntentSender, but I had to switch to calling startActivitiesInPackage() directly, because sendIntentSender() does not support returning errors. Bug 30035853 Change-Id: I5d7669c96a2f1805373c71aebf45b97ac1d01ff6
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
a2241834a54dc91e2eef858741f1a56a743c27b2 |
|
06-Jul-2016 |
Makoto Onuki <omakoto@google.com> |
Handle package broadcasts before apps do - Have PM to call the shortcut manager directly before sending a pacakge broadcast. - The shortcut manager will enqueue a task to handle a package broadcast, which will be executed on Handler. - At the entry points of all external facing methods, block until all pending tasks are finished. Bug 29895275 Change-Id: Ib29fa3c9c8d9b9e0ca5c8f1e9da2a390324960a4
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
ee6b6e4a1861336f8db52d8c93dbf32ee9615cfa |
|
30-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Make sure persisted default launcher still exists. - Also make sure to ignore unexported activities. (e.g. unexported activities shouldn't have shortcuts.) - Also add unit tests for package manager related operations. - Also remove stale TODOs (per-activity shortcut count check is implemented already.) Bug 29699769 Bug 29516954 Change-Id: Ia18301baf6bec1ad71ae195d9ae3d10bd8386fc4
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
bc8e0052fdf92efd0471b97092ee6a7e1eb2320d |
|
30-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "Fix updateShortcuts() with icons" into nyc-mr1-dev
|
d6880797f72e1e397e18c6e709c0125f795c7d2e |
|
29-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Address API council feedback (continued) Got a second set of comments. Bug 29757958 Change-Id: Ib3a3ffd28bc3e35eb0218b0819870eb5c6ebadb5
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
dd097812fa84b898a46cb5dd253422e78779a150 |
|
29-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Fix updateShortcuts() with icons But 29822569 Change-Id: I72a0903ccc8acffc42f40d9df7b99ed6de26b66d
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
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/services/core/java/com/android/server/pm/ShortcutService.java
|
3bb436600654e4da253a4b77a86c1dbfa208da8e |
|
08-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "ShortcutManager: deal with changing resource IDs on app update" into nyc-mr1-dev
|
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/services/core/java/com/android/server/pm/ShortcutService.java
|
6dd9fb7004e888ec1efc4676cd3e4d42b7ac68c9 |
|
01-Jun-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Optimize package scanning SM needs to check all packages when a user is unlocked in case any apps have been upgraded while the user was not running, in which case it'll publish the manifest shortcuts. Currently it actually scans all apps' manifests. This CL optimizes it by remembering the last scan time (for each user) and checks only the packages that have been updated since then. Bug 29069154 Change-Id: Id10b6be8915fe7c1e26daccde7951ddbd01ea452
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
ac042501c816fa9a65aed005060ebdcfc0a0f3b2 |
|
21-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Implement usage report API Bug 28536054 Change-Id: I293e8eaad523e3b0d76d562fc381601633451ed3
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
7001a6154088c87a31d56641762ff0c2a48f1d57 |
|
27-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Implement max # of shortcuts - Each activity (launcher icon) can have at most 5 dynamic + manifest shortcuts. Bug 28536066 Change-Id: Id34371d51c4a1c5e3df7debe3b71b535eb157b6c
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
3ff41200470a05c662d636a22b70d20d44a5917a |
|
10-May-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "Clean up dangling bitmaps." into nyc-mr1-dev
|
85694526039fb0a80ab74b2dc3ab17bacc1a4a59 |
|
04-May-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManaegr: bug fixes Fixes 28590035 Fixes 28586105 Change-Id: Ia11d29e4996ad5b47b279a3c04d9586695cdc0a5
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
6c1dbd577bcf2b8bccb9a0d04d741ff7337898f2 |
|
03-May-2016 |
Makoto Onuki <omakoto@google.com> |
Clean up dangling bitmaps. Bug 28471799 Change-Id: I48785ccc533a7499d46e35264c6a0cbf0c5398d5
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
9ac59d0438833eee817e4b4e5c03ce5ec8fcf4dc |
|
26-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: When app's data is cleared, remove all shortcuts, as if it's uninstalled. Fixes 28196831 Change-Id: I1a410372f9e344a10567b00057fa0770eac9fd76
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
39686e8cdec3550c941d376929084f59ac0d78cd |
|
14-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
When app is updated, save the new version code, and update shortcuts with resource based icons. Bug 28152054 Change-Id: I14f537c08b1a0ba48dd508b0c42fc1d3ed4f5eb0
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
0033b2a190feeda8b41dd62b489aca3a19a09d5b |
|
15-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
Remove all icon bitmaps when a publisher is uninstalled. - Also show the directory sizes on dumpsys. Bug 28196831 Change-Id: I3202fcd3151da3b26b436732e8103caf93aba525
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
5ba0d3e3a3035b67d2ce3a59975145b1e0061ef4 |
|
11-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: First cut of CTS Bug 27548047 Change-Id: Idd7a768ea4fee44c2cf6e3bd473cea9e67f5f7cd
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
ac21497f174504472e92b99500709518b8ab2d71 |
|
04-Apr-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: More command for CTS, more tests.. and fix flakey tests. Bug 27548047 Change-Id: Ia5f189278f6111850277ca16aa747469f48c5f14
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
2e210c4d0f766e52ea4c087a1d54213c36a4e0ea |
|
30-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: implement backup & restore Also: - Fix cross profile pinning. Now ShortcutLauncher correctly keeps track of target package user IDs. - Add performance stats for package manager calls and show them on dumpsys. Bug 27548047 Change-Id: I2472980b2955b6c70947aaaa9b76f75d0616db6e
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
9da23fc6ac565b38129d52f4f8f174c833a9bd01 |
|
29-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: proper work profile support Bug 27548047 Change-Id: I8acea3355f8974a551f53814624dec30732f7b2f
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
d99c6f04bbb68f8be78f2c3ca625a3a8d5645275 |
|
28-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Fix work profile - Pinned shortcuts need to know not only which package has pinned them, but also on which user's, due to work profile. - Launcher can always launch shortcuts that it has pinned. Bug 27548047 Change-Id: I23b4e7dfbb6ecc42099d31008bcfd61d44e2c7fb
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
905e8855e7df111f835fecde32598479058fe4df |
|
28-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Cleanup package info handling Bug 27548047 Change-Id: I598b25d1901230cec6fb3760fe5efeff3b3fef96
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
0acbb14574d859b5f1cc0b7c6bbdfbeba38f3e55 |
|
23-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Handle package broadcasts. - Do a cleanup when an app is gone. - Record the app version and signatures. - Also make saveToXml() capable of saving for backup. Bug 27548047 Change-Id: I7eb2bbec7665b4d625630e7312c0f2a8b03c5ffa
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
3145924596ad0db9e8f1f5aead90fb50127243cb |
|
22-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Extract helper classes. Bug 27548047 Change-Id: I08656291a8dd509fde169f229ca9c503362254f3
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
cdc78f7137b8036dd96c92ff15fc04ee8fc49c5c |
|
21-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: Clean up for uninstalled packages. Bug 27548047 Change-Id: I95ca832af496fbf71023eb27a7e2647c124ffb86
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
45c1827c37ba9d8ed3c644aee89e993e4e5288b1 |
|
18-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "Improve ShortcutSrvice" into nyc-dev
|
a0a58a2fd5cbc1bb8056227bb04f276b364c6e96 |
|
17-Mar-2016 |
Jeff Sharkey <jsharkey@google.com> |
Merge "Refactoring FBE APIs based on council feedback." into nyc-dev
|
aa8b94aa79df94d77d0f7698ce532ac98f197a99 |
|
17-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Improve ShortcutSrvice - Delayed save - Reset logic update Bug 27548047 Change-Id: Ibd52f90a7986991974301b7ff1f1d8520f9ef0d9
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
8a372a0a280127743ce9a7ce4b6198c7a02d2a4f |
|
16-Mar-2016 |
Jeff Sharkey <jsharkey@android.com> |
Refactoring FBE APIs based on council feedback. Mostly consists of removing the word "encryption" from most APIs, since we can't actually make promises about the data being encrypted. Bug: 27531029 Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
4dbe0ded4ae9faaef580be80184fca0749e27198 |
|
15-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Fix launcher side callback - Fix crash in work profile case - Calculate shortcuts for each caller - Add tests Bug 27548047 Change-Id: I1a5b6a96956abac75d01eb5cc1cec9a9e8e379a3
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
4554d0e5b69433ddaa698e976ee584f7f4f14948 |
|
14-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Make "reset-throttling" per-user Also don't reset the counter when the time is invalid Bug 27549307 Change-Id: Ib9ad030e348ec5e32936709f1284e3c76e88e254
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
2d5b465fa9235e66ec176f6d6ffaaa0c18143e41 |
|
12-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Implement the launcher side permission. Only the default launcher can call the LauncherApps shortcut APIs. Bug 27548047 Change-Id: I6d597fcad80c5201a2f93b8cbecd567fc79926d8
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
3f4b1ca97ad7c31bdbe2ba29264841fb58683e81 |
|
11-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager refactor: per-user information class Bug 27548047 Change-Id: Id6de8bfbad6281daec5e89be85ba8b140b599268
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
34d1c919fd4f6b9f1adb7d62dd16ba1fa8e91c79 |
|
10-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Guard against null bitmap path Bug 27548047 Change-Id: I7130652f5ae6f7ff6bd4ae6a3ace31986a49be30
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
be4f470038bec4179c86459534c7e21653589bdf |
|
10-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Merge "Refactor ShortcutService" into nyc-dev
|
f3a572b5c0cab23a435bd90414d25de84e00398e |
|
10-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Fix crash-loop on wiped FBE device. Bug 27595678 Change-Id: I02708b3c9e5472c5548bda7e6e15189614056471
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
41066a61b912f22dd0342a002b4b5e060719cec9 |
|
10-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Refactor ShortcutService Move PackageShortcuts to the top level. Change-Id: If19a7dd979f8697e54a45c3aa654bad235f6259d
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.java
|
4362a66dba0b4cfa9fadb6c8af10c590e4ba880d |
|
09-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManaegr: load config from settings, also... support "cmd override-config" and "cmd reset-config" to help CTS. Bug 27548047 Change-Id: Id6c9e6f41a2238856dd3470d88d88d0e7e686f26
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|
43204b8357d781f284037fb8b7b7050ed04a2103 |
|
09-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Implement LauncherApps.startShortcut(). Bug 27548047 Change-Id: I357732e22be0959fb573fd6cdaee7c6b439ef7c4
/frameworks/base/services/core/java/com/android/server/pm/ShortcutService.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/services/core/java/com/android/server/pm/ShortcutService.java
|