Home
last modified time | relevance | path

Searched refs:overrideDensity (Results 1 – 4 of 4) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDisplayMetricsSession.java73 if (mInitialDisplayMetrics.overrideDensity != null) { in changeDisplayMetrics()
74 density = mInitialDisplayMetrics.overrideDensity; in changeDisplayMetrics()
81 final int overrideDensity = (int)(density * densityRatio); in changeDisplayMetrics() local
82 overrideDisplayMetrics(overrideSize, overrideDensity); in changeDisplayMetrics()
DActivityManagerTestBase.java2801 final Integer overrideDensity;
2820 return overrideDensity;
2841 if (overrideDensity != null) {
2842 setDensity(overrideDensity);
2864 return overrideDensity != null ? overrideDensity : physicalDensity;
2892 overrideDensity = Integer.parseInt(matcher.group(1));
2894 overrideDensity = null;
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DDisplayTests.java179 final Integer overrideDensity = (int) (originalDisplayMetrics.getPhysicalDensity() * 1.1); in testForceDisplayMetrics() local
180 displayMetricsSession.overrideDisplayMetrics(overrideSize, overrideDensity); in testForceDisplayMetrics()
185 assertEquals(overrideDensity, displayMetrics.getOverrideDensity()); in testForceDisplayMetrics()
195 assertEquals(overrideDensity, displayMetrics.getOverrideDensity()); in testForceDisplayMetrics()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayKeyguardTests.java141 final Integer overrideDensity = (int) (originalDisplayMetrics.getPhysicalDensity() * 1.1); in testShowKeyguardDialogDefaultDisplayChange() local
142 displayMetricsSession.overrideDisplayMetrics(overrideSize, overrideDensity); in testShowKeyguardDialogDefaultDisplayChange()