commit | 5ec9f8674dacafd74bf3b529a350f4886b6c1acb | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Fri Dec 23 11:11:52 2022 +0000 |
committer | Riddle Hsu <riddlehsu@google.com> | Wed Jan 04 10:30:53 2023 +0000 |
tree | 15ddf7dc7747f9304b1e1c71386fa55476de657c | |
parent | 099f82439d2115f29e8c0dbe7fda6247fb9e0ad8 [diff] |
Simplify the parameter of getWindowInsets Since getLayoutHint is removed, it no longer needs a window layout parameter to get insets. And because the param is empty, enforceInsetsPolicyForTarget was also no-op. This can reduce write/read fifty unused fields to parcel, and ensure the insets sources are only copied once to the output. Bug: 151908239 Test: atest android.view.WindowMetricsTest Change-Id: I086aa229a9e2468b0c2c302deabe2234abd90080