Home
last modified time | relevance | path

Searched refs:fontScale (Results 1 – 7 of 7) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DConfigChangeTests.java285 for (float fontScale = 0.85f; fontScale <= 1.3f; fontScale += 0.15f) { in testChangeFontScale()
287 fontScaleSession.set(fontScale); in testChangeFontScale()
294 scaledPixelsToPixels(EXPECTED_FONT_SIZE_SP, fontScale, densityDpi)); in testChangeFontScale()
337 private static int scaledPixelsToPixels(float sp, float fontScale, int densityDpi) { in scaledPixelsToPixels() argument
339 float f = densityDpi * (1.0f / DEFAULT_DENSITY) * fontScale * sp; in scaledPixelsToPixels()
DActivityManagerGetConfigTests.java248 config.fontScale, resConfig.configuration.fontScale, Float.MIN_VALUE*5); in checkResourceConfig()
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SystemTest.java80 float store = cfg.fontScale; in testSystemSettings()
110 cfg.fontScale = 1.2f; in testSystemSettings()
114 assertEquals(1.2f, cfg.fontScale, 0.001); in testSystemSettings()
125 cfg.fontScale = store; in testSystemSettings()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java43 mConfig.fontScale = 2; in makeConfiguration()
168 cfg1.fontScale = 2; in testCompareTo()
169 cfg2.fontScale = 3; in testCompareTo()
171 cfg1.fontScale = 3; in testCompareTo()
172 cfg2.fontScale = 2; in testCompareTo()
288 config.fontScale = 2; in testDiff()
343 assertEquals(1.0f, config.fontScale); in testSetToDefaults()
370 assertEquals(0.0f, config.fontScale); in testUnset()
721 config.fontScale = 13.37f; in createConfig()
DResourcesTest.java255 assertTrue(cfg.fontScale != 5); in testUpdateConfiguration()
257 cfg.fontScale = 5; in testUpdateConfiguration()
259 assertEquals(5.0f, res.getConfiguration().fontScale, 0.001f); in testUpdateConfiguration()
/cts/tests/tests/widget/src/android/widget/cts/
DAdapterViewTest.java215 float fontScale = Settings.System.getFloat( in testAccessVisiblePosition() local
217 if (fontScale < 1) { in testAccessVisiblePosition()
218 fontScale = 1; in testAccessVisiblePosition()
221 int bottom = (int) (LAYOUT_HEIGHT * density * fontScale); in testAccessVisiblePosition()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java84 config.fontScale = 1.0f; in onCreate()