Searched refs:fontScale (Results 1 – 7 of 7) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ConfigChangeTests.java | 285 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()
|
D | ActivityManagerGetConfigTests.java | 248 config.fontScale, resConfig.configuration.fontScale, Float.MIN_VALUE*5); in checkResourceConfig()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | Settings_SystemTest.java | 80 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/ |
D | ConfigurationTest.java | 43 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()
|
D | ResourcesTest.java | 255 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/ |
D | AdapterViewTest.java | 215 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/ |
D | ThemeDeviceActivity.java | 84 config.fontScale = 1.0f; in onCreate()
|