diff options
author | Winson Chung <winsonc@google.com> | 2020-10-02 14:18:00 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2020-10-23 20:00:19 +0000 |
commit | c932060175133e266233f1c7667dc69470fbc62e (patch) | |
tree | 95780066e1d1b3d97cb42c480a48c1e4e54532c2 /rs/java/android/renderscript/ProgramStore.java | |
parent | 283d7b9c82e7c23c430b796dc29efe8152f7e31e (diff) |
1/ Add basic infra for global drag handling in the Shell
- Add private window flag INTERCEPT_GLOBAL_DRAG_AND_DROP (protected by
MANAGE_ACTIVITY_STACKS permission) to be considered as a part of the
normal flow for global drag and drops even if the window is not
visible. In addition, the window with the flag receives the clip
data on DRAG_STARTED and the drag surface on DROP. If the window
consumes the drop, then it will relinquish cleanup of the drag surface
from the system.
- Add MIMETYPE_APPLICATION_ACTIVITY for an app to report that they are
starting a global drag of an activity. The associated data must
include an intent with the pending intent and user to launch the
activity for.
- Add a test drag handler on the shell end to receive the drag, setup a
drag layout, and just launch the intent (for now).
Bug: 169894807
Test: atest DragDropControllerTest
Test: atest DragDropTest
Change-Id: I7f5cdca3cf515b693a8f1e507e90e22a670b5fa6
Merged-In: I7f5cdca3cf515b693a8f1e507e90e22a670b5fa6
Signed-off-by: Winson Chung <winsonc@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions