summaryrefslogtreecommitdiff
path: root/core/java/android/view/WindowMetrics.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix the sample code in WindowMetrics javaDocCharles Chen2021-03-241-1/+1
| | | | | | | | | WindowInsets#getInsetsIgnoringVisibility was wrongly written as WindowInsets#getInsetsIgnoreVisibility fixes: 183372217 Test: build & run Change-Id: Ied3c73fe6bd51993b0ac8fe3befe919daedb35ad
* Add WindowMetricsHelperCharles Chen2020-05-041-9/+6
| | | | | | | | | | | | | 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
* Report bounds instead of size in WindowMetricsAndrii Kulian2020-03-241-15/+16
| | | | | | | | | | | | Use case: Jetpack WM will use them to get the location of windows on screen and compute the display feature positions in window coordinate space. Bug: 150908045 Test: atest FrameworksCoreTests:WindowMetricsTest Test: atest CtsWindowManagerDeviceTestCases:WindowMetricsTests Change-Id: Ia08950cd5df35971408e8b17bb27d97d29d0ab9b Exempt-From-Owner-Approval: API change
* Update document of WindowMetrics#getSizeCharles Chen2020-02-241-0/+25
| | | | | | | | | | | Update document to notify that reported size is different between WindowMetrics#getSize and Display#getSize and provide a sample code to transform between usages. Test: build & run Bug: 128338354 Change-Id: I06aee9aaf903c3864fbb0fe89ea1d3e15506fe1c (cherry picked from commit 2de0f42d50682ba45f615dadbae3ebba56dd2868)
* Introduce WindowMetrics and WM#getCurrent/MaximumWindowMetricsCharles Chen2020-01-221-0/+58
Bug: 128338354 Bug: 146820733 Test: atest WindowMetricsTests Change-Id: I328b1b5a2296e470072a439e412276c1b6008789