[CS] Define DisplayMetricsRepo and use it for QsFrameTranslateImpl.
CentralSurfacesImpl updated the display metrics on configuration change (see #updateDisplaySize), so the new repo does the same. Removing QsFrameTranslateImpl's usage of CentralSurfaces is necessary to make NotificationPanelViewController a singleton. Bug: 277762009 Bug: 277764509 Test: atest DisplayMetricsRepositoryTest Test: `adb shell dumpsys activity service com.android.systemui/.SystemUIService DisplayMetricsRepo` -> dumps the display metric changes. Notably, the widthPixels and heightPixels change when the device is rotated. Change-Id: Ibef256bab38db5a7226d29a8b68546f093b78dd8
Loading
Please register or sign in to comment