summaryrefslogtreecommitdiff
path: root/core/java/android/view/WindowCallbacks.java
Commit message (Collapse)AuthorAgeFilesLines
* Push drag-resize mode to the clientTiger Huang2022-03-201-3/+15
| | | | | | | | | | | | | | | The goal of this CL is to remove RELAYOUT_RES_DRAG_RESIZING_DOCKED and RELAYOUT_RES_DRAG_RESIZING_FREEFORM, which is a step to make relayout an oneway binder call. When the resize mode is changed at the server side, the server will send the new mode to the client via IWindow#resized, so the client doesn't need to obtain the resize mode from the flags returned from relayout. Bug: 161810301 Test: Perform drag-resize and drag-move on a freeform task and see if there is any unexpected behavior. Change-Id: I450abc113932b6c1dc0ce0e2b76bebdf85a60777
* Rename & package shuffleJohn Reck2018-10-041-1/+2
| | | | | | | | | | Rename DisplayListCanvas -> RecordingCanvas Move RecordingCanvas to android.graphics Move RenderNode to android.graphics Bug: 112709971 Test: make & boot Change-Id: Iddeb6a89f8923ea81a1f37bbee4e9b1db8ede238
* Add shadow during resizing in docked modeJorim Jaggi2016-03-251-1/+15
| | | | | Bug: 27738239 Change-Id: I48c45bd97c2aa7f3d7bbb5b1ba650fbe408bd0bf
* Fix bug where surface was not clipped off during resizingJorim Jaggi2016-02-041-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | When dragging the divider in a way such the task size goes through the following transition - Half size - Full screen - Half size the surface wasn't clipped off anymore. This was because in full screen configuration, computeDragResizing() == false thus when going full screen -> half size, we reset the draw state to DRAW_PENDING to get notified when it has finished drawn. However, this also broke clipping. In order to fix this, we always put the window into a resizing mode no matter whether the bounds are fullscreen or not. However, this introduces an ugly flickering on the navigation bar, when going into docked mode, because the app doesn't draw navigation bar background in resize mode. To fix that, we calculate the presence of navigation bar whether the window is fullscreen, and not just whether it's resizing. For that, we need to calculate the presence in BackdropFrameRenderer, by using the insets just sent by window manager. Change-Id: Idf56df4ae7fefe67d068bc2eeda8dc4d83bbefb7
* Fix missing frame or wrong frame position when resize startsChong Zhang2015-10-121-2/+9
| | | | | | | | | | | | | When multi-thread renderer is used, delay the report to draw to the first doFrame in ResizeFrameThread. Otherwise we could unfreeze the window before the frame is drawn. Also when content draw bounds is updated for the first frame, let content draw before ResizeFrameThread so that the bounds get applied. bug: 24715185 Change-Id: I5485dc0be3eae24c555bcc31ee8f71523b68ca8d
* Resolving incorrect rendering of content while resizeSkuhne2015-10-061-0/+7
| | | | | | | | The staged content bounds need to be set by the content renderer and not by the resize thread. Bug: 24671393 Change-Id: I8f84ec01a4ac6c1e783cc6208ca77ca6c01ba838
* Rendering the window frame with a second threadSkuhne2015-10-021-0/+48
Using a multi threaded render node to render the window frame asynchronously from the application relayout. Bug: 22527834 Bug: 24400680 Bug: 24459827 Bug: 24409773 Bug: 24537510 Change-Id: I1010fc6a8b6e38424178140afa3ca124433ab7e4