summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Bubbles to wm-shell (5/n)Tony Huang2020-11-041-665/+0
| | | | | | | | | | Move bubbles package and related resources to shell package, also copied some used codes and resources. Bug: 161980186 Test: atest SystemUITests Test: atest WMShellUnitTests Change-Id: Ia108bd4149b3c3bf86631ba1a7a6bce0e76af78f
* Migrate Bubbles to wm-shell (4/n)Tony Huang2020-10-281-18/+20
| | | | | | | | | | | | Move BubbleController sysui dependent code to new class BubblesManager and remove using of Dependency of Bubbles. TODO: Tests still need to be remain on sysui, find suitable method to test both classes independently. Bug: 161980186 Test: atest SystemUITests Change-Id: I7be1dfb81f7ddfb5fc20b180fc5affb7a1d8e93c
* Fix null executor in TaskView with bubblesMady Mellor2020-10-271-2/+7
| | | | | | | | | | The handler is only available when the view has been attached to the window, so set it on TaskView in there instead of passing through constructor. Test: expand a bubble, nothing crashes Bug: none Change-Id: If1638aeef73c8a7c5585f4afc602c619ce67a0bb
* Support task listener by task id.Wale Ogunwale2020-10-191-1/+3
| | | | | | | | | Allows for managing specific task regardless of windowing mode. Converted TaskView which to use the new API. Bug: 170153209 Test: All tests pass and bubbles works! Change-Id: Ic5281bc9dd9124841834c88f2b85545107567417
* Merge "Add the flags for shortcut bubbles"TreeHugger Robot2020-10-201-0/+1
|\
| * Add the flags for shortcut bubblesMady Mellor2020-10-191-0/+1
| | | | | | | | | | | | Test: manual with test app now that it does shortcuts too Fixes: 170976167 Change-Id: I923b82e62e7a1247a9b4c073a8e4bf00ebb02b48
* | Vertical bubbles in landscapeMady Mellor2020-10-191-64/+89
|/ | | | | | | | | | | | | | | - in landscape the bubbles now show on left/right side & layout vertically instead of remaining at the top and being horizontal - introduces BubblePositioner to track the config changes and available screen rect for bubbles based on insets / cutouts - pointer can now go left or right - fixes issue where overflow could be past screen height in landscape Test: manual - bubbles at the top in portrait, bubbles on left / right side in landscape, bubbles at the top with notch, bubbles on left / right side in landscape with notch, with/without gesture nav Bug: 167413172 Change-Id: I4528035fd03d17d11865ddcdddc4732f5a8e616a
* Bubbles & TaskOrganizerMady Mellor2020-10-131-348/+155
| | | | | | | | | | | | | | | | | | | | | | Move bubbles off of ActivityView & onto TaskOrganizer. This mostly impacts BubbleExpandedView, there are a couple of differences spawning from that: * taskId is the new thing, displayId's are old news * No longer need to send back events to the bubble (we can set the bubble'd task to intercept now). * Now we have to subtract the touch region of the activity content * IME insets don't work the "normal" way (?) instead we're now using PinnedStackListener for all our IME needs BubbleTaskView is the ActivityView replacement & it uses BubbleTaskManager internally to deal with the tasks. Test: atest BubbleControllerTest BubbleDataTest (existing) Test: atest MultiWindowTaskListenerTest TaskViewTest Bug: 148977538 Change-Id: Id6e3bf4950218036b1626481c846ffe57b9ef857
* Remove injection from BubbleOverflowActivityMady Mellor2020-10-081-0/+5
| | | | | | | | Bug: 161980186 Test: atest BubbleControllerTest BubbleDataTest manual - check bubbles appear in overflow & can be promoted Change-Id: I1edf1ed14d48c5a4dfeb23c92cb7d952d50ca0ce
* Migrate Bubbles to wm-shell (1/n)Tony Huang2020-09-221-4/+4
| | | | | | | | | | | | Create Bubbles interface and optional mechanism The Dependency using still remain in some class will remove or refactor in follow-up CL. Bug: 161980186 Test: atest SystemUITests Test: manual Change-Id: I88e5cc6ead1c56985aac07fe8eac39f08f114248
* Remove the legacy insets modeTiger Huang2020-09-181-16/+2
| | | | | | | | | | This CL also refines the color view logic which checks the system bar appearance instead of system UI flags. Bug: 149813814 Test: atest InsetsAnimationControlImplTest InsetsControllerTest InsetsStateTest InsetsPolicyTest InsetsStateControllerTest Change-Id: I26d93b3508c84e436133085bd316ade54d00d76a
* Use Builder for ActivityViewCharles Chen2020-09-161-3/+5
| | | | | | fixes: 162901735 Test: touched tests Change-Id: I230d65d76b1bc8dfbae304b33579e7eb96d0593d
* Disable launching bubble tasks in MW windowing mode until task orgWinson Chung2020-09-021-1/+1
| | | | | | Bug: 165710928 Test: Launch a bubble and verify it shows Change-Id: I59b96d31d541aaeab52e44bcc8e30ba2154872d4
* Require permission to create trusted displaysAndrii Kulian2020-08-121-1/+1
| | | | | | | | | | | | Bug: 162627132 Test: atest VirtualDisplayTest#testTrustedVirtualDisplay Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles Test: atest DisplayTest Test: atest VirtualDisplayTest#testTrustedVirtualDisplay Test: atest VirtualDisplayTest#testUntrustedSysDecorVirtualDisplay Change-Id: Id06b2013ef5fdeadf321f14f8b611c733031d54d
* Merge "Use theme color for AV container background to avoid a white flash in ↵Josh Tsuji2020-08-061-3/+4
|\ | | | | | | dark mode."
| * Use theme color for AV container background to avoid a white flash in dark mode.Josh Tsuji2020-08-041-3/+4
| | | | | | | | | | | | Bug: 159654050 Test: manual Change-Id: Iecd94cb96ffceff4cea8f5bf5f6ea32a2bf64cfa
* | Merge "Check if inflation task is cancelled post execute"Lyn Han2020-08-041-2/+20
|\ \ | |/ |/|
| * Check if inflation task is cancelled post executeLyn Han2020-08-031-2/+20
| | | | | | | | | | | | Fixes: 159994627 Test: treehugger Change-Id: I8fe254db178eb3fc6def26cb4e32c2f3ce7a8e72
* | Remove deprecated code from stack & expanded viewLyn Han2020-07-231-9/+0
|/ | | | | | | | | Bug: 161939484 Test: tap manage menu app settings => stack collapses so fast that there is no discernable difference between waiting and not waiting for collapse animation to finish before starting the settings activity Change-Id: I87b8c4418bd8f99821a2f6221fd35f651a98a748
* Merge "Make sure PendingIntent cancel listener is unregistered" into rvc-dev ↵Mady Mellor2020-07-011-0/+3
|\ | | | | | | | | | | | | | | am: 0e3d9d31a2 am: 8c7fa9de80 am: 6f9511d8a4 am: 44f7c4e1d8 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12037679 Change-Id: Ibe38cf1c37027025c36411119b49b38e18082589
| * Make sure PendingIntent cancel listener is unregisteredMady Mellor2020-06-301-0/+3
| | | | | | | | | | | | | | Test: manual Fixes: 160177818 Fixes: 149918957 Change-Id: I429fc3bcd409cf57276617bd8c9aab26194d3af9
* | Merge "Null-check AV before checking its alpha." into rvc-dev am: 1b824ba3df ↵Josh Tsuji2020-06-271-5/+2
|\| | | | | | | | | | | | | | | am: 1e4f4aec95 am: 047d1e5cb7 am: 79ed761e3c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12010086 Change-Id: I90efd719d9626a84210094d39c059a6ef11aad75
| * Null-check AV before checking its alpha.Josh Tsuji2020-06-261-5/+2
| | | | | | | | | | | | Bug: 159769573 Test: no crashing Change-Id: I139091a1b4689e13b2b3337ee2988df662798204
* | Merge "Expand dumpsys coverage to all known factors in empty expanded view ↵TreeHugger Robot2020-06-251-0/+8
|\| | | | | | | | | | | | | | | issues." into rvc-dev am: d65287ec7b am: 7c8b242780 am: 2d79d7f263 am: 41ece504f1 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000522 Change-Id: I515a8fa1727fcaa0577938a61d28f906eb504c91
| * Expand dumpsys coverage to all known factors in empty expanded view issues.Josh Tsuji2020-06-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the following to the stack state: expandedContainerVis: 0 expandedContainerAlpha: 1.0 expandedContainerMatrix: Matrix{[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]} As well as a new 'expanded bubble state': Expanded bubble state: expandedBubbleKey: 0|com.facebook.orca|10000|ONE_TO_ONE:903330182:1183835847|10375 expandedViewVis: 0 expandedViewAlpha: 1.0 expandedViewTaskId: 27543 activityViewVis: 0 activityViewAlpha: 1.0 Test: dumpsys Bug: 159861400 Change-Id: I964803b77ad5a0b3780c219ac919d6bd4316c53f
* | Merge "Hide the IME using InputMethodManagerInternal, because doing it that ↵Josh Tsuji2020-06-241-1/+0
|\| | | | | | | | | | | | | | | way actually works." into rvc-dev am: 88e88190eb am: 644d1add13 am: 5648d9349e am: d32a0e7a8a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11948939 Change-Id: I3760639b9ffb949ce9770333fe12e803e76ad3b4
| * Merge "Hide the IME using InputMethodManagerInternal, because doing it that ↵Josh Tsuji2020-06-241-1/+0
| |\ | | | | | | | | | way actually works." into rvc-dev
| | * Hide the IME using InputMethodManagerInternal, because doing it that way ↵Joshua Tsuji2020-06-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actually works. This technique is also used by the Recents animation to hide the IME. It replaces the AV back press workaround entirely, which fixes the IME hanging around issue (and by extension, the weirdness around the insets). Test: open a bubble (go/use-bubbles), focus an input field, then tap outside the bubbles UI to close the stack, observe that the IME hides Test: open a bubble, focus an input field, switch to another bubble, observe IME hides Test: open bubble, focus input field, switch to another bubble, focus input field, switch to the original bubble, focus input field, collapse stack, observe IME hides (previously the IME would remain visible) Bug: 159369847 Bug: 159561847 Change-Id: I09f27b3c187a7bcfbef663cd3101a74ad8ab95ab
* | | Merge "Merge "Set shortcut info even if metadata doesn't have shortcut id" ↵Automerger Merge Worker2020-06-241-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | into rvc-dev am: a5ac201acd am: 87ee1802a7 am: 23c2510f0f" into rvc-qpr-dev-plus-aosp am: aec62ad88e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11976562 Change-Id: I29e8068a2683449b2ad168c99169ef7f52e8c124
| * | Set shortcut info even if metadata doesn't have shortcut idLyn Han2020-06-231-3/+4
| |/ | | | | | | | | | | | | Fixes: 159540176 Test: overflow labels set to chat name instead of app name Test: only bubbles with metadata shortcut persist after phone reboot Change-Id: Ia102f257953c7ba09cacb37aa1915f1dd1798d5f
* | Merge "Always showContentVisibility(true) after switch/expand animations." ↵TreeHugger Robot2020-06-201-0/+5
|\| | | | | | | | | | | | | | | into rvc-dev am: c74779746e am: b0682c456f am: e5062ff26c am: fcf885f21a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11932514 Change-Id: Ica68b7aa3e0420a482b9bbf07ec239c036befbb7
| * Always showContentVisibility(true) after switch/expand animations.Joshua Tsuji2020-06-191-0/+5
| | | | | | | | | | | | | | | | This usually happens via onSingleTaskDisplayDrawn but this is occassionally not called despite the display drawiing just fine. Bug: 158787329 Test: open like 200 bubbles Change-Id: I704f8e4246eb96cac5a62803f4e4b7c11f01b046
* | Merge "Fix off-center bubble pointer" into rvc-dev am: ade182cdb6 am: ↵TreeHugger Robot2020-06-191-6/+6
|\| | | | | | | | | | | | | | | b5a4639c36 am: c1a9c426ef am: 2936598044 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11925297 Change-Id: I76904ab23d20f53232978824c95e8f1de125d189
| * Fix off-center bubble pointerLyn Han2020-06-181-6/+6
| | | | | | | | | | | | | | | | | | | | Bubble position is calculated w.r.t left screen edge. Pointer position is set w.r.t right end of expanded view left padding. Add missing correction for expanded view left padding. Fixes: 158621663 Test: pointer points to bubble center Change-Id: I94d320b0b599865378d8297d50f555d5edd07203
* | Merge "Fix issues with landscape transition" into rvc-dev am: f769298b62 am: ↵TreeHugger Robot2020-06-171-1/+1
|\| | | | | | | | | | | | | | | 7ea1586752 am: d0e74868ab am: 3e401ce43d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11848935 Change-Id: Ieb39bf1750345f1c9776e9c9f2bcbf0e13d065a9
| * Merge "Fix issues with landscape transition" into rvc-devTreeHugger Robot2020-06-171-1/+1
| |\
| | * Fix issues with landscape transitionLyn Han2020-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 158675544 Bug: 158675318 Test: manual - rotate phone to landscape, with stack expanded / collapsed-then-expanded, select bubbles and overflow, see that Overflow height matches normal bubble activity Expanded view at correct location and size Pointer still points to correct bubble Bubble spacing is wider as intended Change-Id: I32bf1cdeaa4bade4d806e04b423f56991b41c3be
* | | Merge "decouple Bubble from NotificationEntry" into rvc-dev am: 37a5b89e32 ↵TreeHugger Robot2020-06-171-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: ef27095582 am: afc476e35d am: cbec8ce283 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11873745 Change-Id: I33f1050269c83bb7bbfac163dc384ecf865eca48
| * | Merge "decouple Bubble from NotificationEntry" into rvc-devTreeHugger Robot2020-06-171-1/+1
| |\ \
| | * | decouple Bubble from NotificationEntryPinyao Ting2020-06-161-1/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. decouple Bubble from NotificationEntry 2. save title from Bubble into BubbleEntity 3. copied boolean values from NotificationEntry into Bubble for UI variants (e.g. isVisuallyInterruptive, isClearable, shouldSuppressNotificationDot... e.t.c) Bug: 151474524, 159061670 Change-Id: I606c6ff93b3dc3867b4d0a6129d7117d9999c170 Test: atest android.app.cts.NotificationManagerTest This reverts commit 2e73117c0e71554de126c75ee4135c89852bdb90. Reason for revert: issue fixed, rolling forward again Change-Id: I1180954a76bee9782df46de0f202c614f05d560f
* | | Merge "Let activity resume after bubbles expanded" into rvc-dev am: ↵Tony Huang2020-06-171-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | 5ee6fd6f43 am: 943d53ddd3 am: bddb8105f9 am: 2701a3fb07 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11833785 Change-Id: I77ea8c39101e9684fa39ddb70441747f68b419d3
| * | Merge "Let activity resume after bubbles expanded" into rvc-devTony Huang2020-06-171-0/+7
| |\ \
| | * | Let activity resume after bubbles expandedTony Huang2020-06-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add moveTaskToFront call to ensure activity resume when bubbles expanded which means activityView status is activity started. Bug: 152416787 Test: Check event log Test: Open FB messengers, expand FB messengers bubbles and click back Change-Id: I9f95e42a4573185df83c0e7438972fea84bbb176
* | | | Merge "Fixed the conflict of the release methods of ActivityView & ↵Shawn Lin2020-06-161-5/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TaskEmbedder" into rvc-dev am: 1c2e8eafff am: 3983dda63e am: a221212709 am: afa2d8c4d1 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11862402 Change-Id: I30ae73cfa7129bb5fd1863c96d4788e349420e09
| * | | Merge "Fixed the conflict of the release methods of ActivityView & ↵Shawn Lin2020-06-161-5/+1
| |\ \ \ | | |_|/ | |/| | | | | | TaskEmbedder" into rvc-dev
| | * | Fixed the conflict of the release methods of ActivityView & TaskEmbeddershawnlin2020-06-151-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a case in Bubble that we might release a un-initialized TaskEmbedder while calling ActivityView.release() (ex. create a bubble and don't expand it and then dismiss it) which will cause an exception. Allow ActivityView.release() to be called at anytime and check the initialization state before calling TaskEmbedder.release(). Bug: 155417004 Test: 1. Add bubbles and don't expands them then dimiss them 2. Check logs. Change-Id: I583ddd36f407c908cb63c109834940fc91c8d130
* | | | Merge "Revert "decouple Bubble from NotificationEntry"" into rvc-dev am: ↵TreeHugger Robot2020-06-161-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f8af41376 am: 6756cf6956 am: 905ddb8fab am: 834b207364 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11872875 Change-Id: Id8d4b4e39f183593276ffa5615acc5dca402df40
| * | | Merge "Revert "decouple Bubble from NotificationEntry"" into rvc-devTreeHugger Robot2020-06-151-1/+1
| |\ \ \ | | |/ / | |/| |
| | * | Revert "decouple Bubble from NotificationEntry"Pinyao Ting2020-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d07c2deaf035e8aae86fa5f0b11ef36d237d653a. Reason for revert: debug test failure in b/158986168 Bug: 158986168 Change-Id: I10cb613e4f160561c06944aebccaf16c090bcd9e
* | | | Merge "decouple Bubble from NotificationEntry" into rvc-dev am: 7fc567f7a3 ↵TreeHugger Robot2020-06-131-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2aab9277e0 am: 5b24703e52 am: 7f0c392328 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11668704 Change-Id: Id474023d2a0299f5e84f7b8be42719a70adfed50