Merge "Removing unnecessary device sumaltion code" into tm-qpr-dev

This commit is contained in:
Sunny Goyal
2023-04-04 17:00:34 +00:00
committed by Android (Google) Code Review
6 changed files with 39 additions and 395 deletions

View File

@@ -392,6 +392,13 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
return dpiFromPx(Math.min(bounds.bounds.width(), bounds.bounds.height()), densityDpi);
}
/**
* Returns all displays for the device
*/
public Set<CachedDisplayInfo> getAllDisplays() {
return Collections.unmodifiableSet(mPerDisplayBounds.keySet());
}
public int getDensityDpi() {
return densityDpi;
}