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

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

No files matched your search

@@ -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;
}