Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFontScalingTest.kt65 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
83 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
104 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
122 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
137 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
154 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
169 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
184 assertThat(activity.resources.configuration.fontScale).isWithin(0.02f).of(2f) in <lambda>()
200 private fun setSystemFontScale(fontScale: Float) { in <lambda>()
205 fontScale in <lambda>()
[all …]
DAdapterViewTest.java230 float fontScale = Settings.System.getFloat( in testAccessVisiblePosition() local
232 if (fontScale < 1) { in testAccessVisiblePosition()
233 fontScale = 1; in testAccessVisiblePosition()
236 int bottom = (int) (LAYOUT_HEIGHT * density * fontScale); in testAccessVisiblePosition()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DFontScaleActivity.java60 final float fontScale = getResources().getConfiguration().fontScale; in dumpFontSize() local
62 Log.i(getTag(), "fontPixelSize=" + fontPixelSize + ", fontScale=" + fontScale); in dumpFontSize() local
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DConfigChangeTests.java262 final float fontScale = 0.85f; in testChangeFontScale() local
264 fontScaleSession.set(fontScale); in testChangeFontScale()
280 () -> scaledPixelsToPixels(EXPECTED_FONT_SIZE_SP, fontScale, densityDpi) in testChangeFontScale()
323 private static int scaledPixelsToPixels(float sp, float fontScale, int densityDpi) { in scaledPixelsToPixels() argument
325 float f = densityDpi * (1.0f / DEFAULT_DENSITY) * fontScale * sp; in scaledPixelsToPixels()
327 + ", fontScale=" + fontScale + ", sp=" + sp in scaledPixelsToPixels()
DActivityManagerGetConfigTests.java248 config.fontScale, resConfig.configuration.fontScale, Float.MIN_VALUE*5); in checkResourceConfig()
DActivityMetricsLoggerTests.java320 final float originalFontScale = mContext.getResources().getConfiguration().fontScale; in testAppRelaunchSetsWaitResultDelayData()
324 originalFontScale != mContext.getResources().getConfiguration().fontScale); in testAppRelaunchSetsWaitResultDelayData()
/cts/tests/tests/content/src/android/content/wm/cts/
DContextRegisterComponentCallbacksTest.java92 config.fontScale = 1.2f; in testRegisterComponentCallbacksOnActivity()
118 config.fontScale = 1.2f; in testRegisterComponentCallbacksOnContextWrapper()
145 config.fontScale = 1.2f; in testRegisterComponentCallbacksOnContextWithoutOverriding()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_SystemTest.java95 float store = cfg.fontScale; in testSystemSettings()
129 cfg.fontScale = 1.2f; in testSystemSettings()
133 assertEquals(1.2f, cfg.fontScale, 0.001); in testSystemSettings()
149 cfg.fontScale = store; in testSystemSettings()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java55 mConfig.fontScale = 2; in makeConfiguration()
195 cfg1.fontScale = 2; in testCompareTo()
196 cfg2.fontScale = 3; in testCompareTo()
198 cfg1.fontScale = 3; in testCompareTo()
199 cfg2.fontScale = 2; in testCompareTo()
208 cfg1.fontScale = 2; in testGenerateDiff()
209 cfg2.fontScale = 3; in testGenerateDiff()
399 config.fontScale = 2; in testDiff()
489 assertEquals(1.0f, config.fontScale); in testSetToDefaults()
519 assertEquals(0.0f, config.fontScale); in testUnset()
[all …]
DResourcesTest.java286 assertTrue(cfg.fontScale != 5); in testUpdateConfiguration()
288 cfg.fontScale = 5; in testUpdateConfiguration()
290 assertEquals(5.0f, res.getConfiguration().fontScale, 0.001f); in testUpdateConfiguration()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTests.java185 expectedFontScale == callbacks.mConfiguration.fontScale); in testWindowContextGlobalConfigChanges()
286 assertThat(service.mConfiguration.fontScale).isEqualTo(expectedFontScale); in testWidowProviderServiceGlobalConfigChanges()
292 .that(service.getResources().getConfiguration().fontScale) in testWidowProviderServiceGlobalConfigChanges()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java103 config.fontScale = 1.0f; in onCreate()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt13870 field public float fontScale;