summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Pinyao Ting <pinyaoting@google.com> 2021-11-10 21:20:15 +0000
committer Pinyao Ting <pinyaoting@google.com> 2021-12-11 04:30:18 +0000
commit338430cebb328ba1e7c183871e24005c20f18f55 (patch)
treeb02953ed6de5a8bb4a949ea67723a37decb4618a /libs/input/PointerController.cpp
parent1d584f23e770a63267698a3401ff9d74488430ef (diff)
Include new api to exlude a shortcut from launcher
Include a new field in ShortcutInfo which serves as an indication of whether a shortcut is exlucded from launcher. Shortcut marked as excluded from launcher will not be included in the search result in LauncherApps nor ShortcutManager. This generally means the shortcut would not be displayed by a launcher app (e.g. Long-Press menu), while remain visible in other surfaces such as assistant or on-device-intelligence. - setDynamicShortcuts/addDynamicShortcuts/pushDynamicShortcuts: Shortcuts that are marked as hidden from launcher are ignored. - updateShortcuts: Similar to enabled/long-lived, developers cannot make shortcut hidden from launcher by calling this api. An exception would be thrown when updating a shortcut that is hidden from launcher. - remove APIs: Unchanged. - reportShortcutUsed: Unchanged. - applyRestore: Unchanged. - disableShortcuts/enableShortcuts Unchanged. - requestPinShortcuts: A shortcut cannot be pinned by launcher if it's hidden from launcher. An exception would be thrown upon requesting to pin a shortcut that is hidden from launcher. Bug: 202335257 Test: manual enable feature flag for appsearch integration, then run atest ShortcutManagerTest1 Change-Id: Ia0e5d31549c9d83efac9bc2a7ea894df425fd5cd
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions