summaryrefslogtreecommitdiff
path: root/core/java/android/window/VirtualDisplayTaskEmbedder.java
Commit message (Collapse)AuthorAgeFilesLines
* Deleting ActivityViewAntonio Kantek2021-05-201-426/+0
| | | | | | Test: atest CtsAccessibilityServiceTestCases Bug: 179161778 Change-Id: Ic66f3740819634366edb20a34a7c8177af258c2f
* Remove single task display pathWinson Chung2020-10-211-11/+1
| | | | | | | Test: atest TaskStackChangedListenerTest Test: atest RecentTasksTest Bug: 165794879 Change-Id: I4c86e58026be7bcbbd8a2568b396a281668b9385
* Replace StackInfo with TaskInfoLouis Chang2020-09-031-22/+23
| | | | | | Bug: 148895075 Test: existing test pass Change-Id: I97a12397b61f4ee67810dc4ae0423de07d4befa8
* Require permission to create trusted displaysAndrii Kulian2020-08-121-1/+8
| | | | | | | | | | | | 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
* VirtualDisplayTaskEmbedder: Post background color change callbackRobert Carr2020-06-031-2/+2
| | | | | | | | | | Otherwise we will end up calling SurfaceView#setResizeBackgroundColor from a Binder thread and potentially cause a crash. This mirrors the behavior of TaskOrganizerTaskEmbedder. Bug: 157605189 Test: Existing tests pass Change-Id: Iafe9e4c3eb4d32a52a6a1479aa9a2b295cd4ad6f
* Merge "Add WindowMetricsHelper" into rvc-devCharles Chen2020-05-111-5/+1
|\
| * Add WindowMetricsHelperCharles Chen2020-05-041-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This metrics now is used for calculating the value reported by Display#getSize. It could be extended to have more function later. Also replace getCurrentMetrics usages to make them report Display#getSize value. Bug: 148904274 Test: atest WindowMetricsHelperTest Change-Id: I182b6e63f7c28752eee22839cb9e69f073046c3f
* | Migrate Tap exclusion logic to TaskEmbedder.Yuncheol Heo2020-05-051-51/+7
| | | | | | | | | | | | | | | | | | We want to pass the touches on ActivityView to the Activity inside ActivityView, not to be consumed by Activity hosting ActivityView. To do that, we need to set a tap exclude region, so touches can go through. Bug: 155424730 Test: Make sure the Activity inside ActivityView gets touch. Change-Id: Ia9b2c7eba0c48512a633c798b1012e5fbec8422f
* | Add the IME insets to virtual display for bubbleYunfan Chen2020-04-301-0/+8
|/ | | | | | | | | | | | | | | | | | | | | | | | This patch will add a fake IME window to virtual display when IME is showing and covering a bubble window. Without the fake window, the bubble will not receive the correct IME insets. To do that, this patch: 1. Added an interface in ActivityView to get VirtualDisplay when needed, in order to create the display context. 2. Modify the visibility update. When the target is not a client controlled target, we ignore the client visibility. We also call visibility update when the control target updated. 3. With the modified infra, add the window with correct param and context. Bug: 150780413 Test: atest WmTests:DisplayPolicyLayoutTests Test: atest InsetsStateTest Test: atest InsetsPolicyTest Test: go/wm-smoke Test: See reproduce steps in the bug Change-Id: I52691b5c7f81261de580bb4fc762e88486e78141
* Make ActivityViews backing virtual display privateLinus Tufvesson2020-04-161-4/+11
| | | | | | | | | Bug: 150310377 Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest Test: Used bubbles test app to verify that it's still happy when using private VDs Change-Id: I02c6840b1f908a5177c217494de0110f5ce78f7e
* Send task description changed though task org taskInfoChangedWinson Chung2020-04-111-5/+13
| | | | | | | | | | | | | - This removes the need for a separate task stack listener and aligns with other task info change properties - Also implement equals/hashCode for the token so we can use it in containers Bug: 148977538 Test: atest TaskOrganizerTests Signed-off-by: Winson Chung <winsonc@google.com> Change-Id: Ie035e6389fdbdc374c1a4b4a684758efa0cb7a9e
* Move multi window mode to the caller.Yuncheol Heo2020-04-081-2/+0
| | | | | | Bug: 153576019 Test: Checks if Maps will move into the ActivityView when Home is pressed (in AAOS) Change-Id: I040bf008a2f41130d6f118f359c9cefffb5acfc4
* Move always-on-top to the callersWinson Chung2020-04-011-1/+0
| | | | | | | | | | - This was accidentally included in ag/10788780, where only the bubbles AV should be using an always-on-top MW task Bug: 152808872 Test: Start auto in emulator and ensure the task is not always on top Change-Id: If0de9d5856b15dbca7661bf97a88b10fd63ec9db
* Add TestApi interfaces for window organizersWale Ogunwale2020-04-011-0/+456
Enables testing the API surfaces from CTS. Bug: 149338177 Test: they pass! Change-Id: I7e1f2852585a10c20d299bd87e9a87f828d06d6a