Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/res/
DFontScaleConverterFactory.java158 public static boolean isNonLinearFontScalingActive(float fontScale) { in isNonLinearFontScalingActive() argument
159 return fontScale >= sMinScaleBeforeCurvesApplied; in isNonLinearFontScalingActive()
171 public static FontScaleConverter forScale(float fontScale) { in forScale() argument
172 if (!isNonLinearFontScalingActive(fontScale)) { in forScale()
176 FontScaleConverter lookupTable = get(fontScale); in forScale()
182 final int index = sLookupTables.indexOfKey(getKey(fontScale)); in forScale()
197 new float[]{fontScale} in forScale()
202 put(fontScale, converter); in forScale()
214 fontScale in forScale()
224 put(fontScale, converter); in forScale()
[all …]
DFontScaleConverter.java54 static boolean isNonLinearFontScalingActive(float fontScale) { in isNonLinearFontScalingActive() argument
55 return FontScaleConverterFactory.isNonLinearFontScalingActive(fontScale); in isNonLinearFontScalingActive()
73 static FontScaleConverter forScale(float fontScale) { in forScale() argument
74 return FontScaleConverterFactory.forScale(fontScale); in forScale()
DConfiguration.java110 public float fontScale; field in Configuration
1083 fontScale = o.fontScale; in setTo()
1123 sb.append(fontScale); in toString()
1306 protoOutputStream.write(FONT_SCALE, fontScale); in dumpDebug()
1376 fontScale = protoInputStream.readFloat(FONT_SCALE); in readFromProto()
1571 fontScale = 1; in setToDefaults()
1603 fontScale = 0; in unset()
1621 if (delta.fontScale > 0 && fontScale != delta.fontScale) { in updateFrom()
1623 fontScale = delta.fontScale; in updateFrom()
1814 fontScale = delta.fontScale; in setTo()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt39 private var fontScale: Float = 0.toFloat() variable
50 fontScale = currentConfig.fontScale
80 val fontScale = newConfig.fontScale in onConfigurationChanged() constant
84 if (density != this.density || fontScale != this.fontScale || in onConfigurationChanged()
90 this.fontScale = fontScale in onConfigurationChanged()
DPhoneStatusBarView.java184 float fontScale = newConfiguration.fontScale; in updateDisplayParameters() local
185 if (fontScale != mFontScale) { in updateDisplayParameters()
187 mFontScale = fontScale; in updateDisplayParameters()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontScaleConverterActivityTest.java84 assertThat(activity.getResources().getConfiguration().fontScale) in testFontsScaleNonLinearly()
113 config.fontScale = 1.2f; in testOnConfigurationChanged_doesNotCrash()
131 private void setSystemFontScale(float fontScale) { in setSystemFontScale() argument
136 fontScale in setSystemFontScale() local
146 .fontScale == fontScale in setSystemFontScale()
171 .fontScale == 1 in restoreSystemFontScaleToDefault()
/frameworks/base/core/tests/coretests/src/android/util/
DTypedValueTest.kt165 val fontScale = 2f in <lambda>() constant
168 metrics.scaledDensity = fontScale * metrics.density in <lambda>()
185 val fontScale = 2f in <lambda>() constant
188 metrics.scaledDensity = fontScale * metrics.density in <lambda>()
198 val fontScale = 2f in <lambda>() constant
201 metrics.scaledDensity = fontScale * metrics.density in <lambda>()
202 metrics.fontScaleConverter = FontScaleConverterFactory.forScale(fontScale) in <lambda>()
210 val fontScale = 2f in <lambda>() constant
213 metrics.scaledDensity = fontScale * metrics.density in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DConfigurableTexts.java50 final float fontScale = res.getConfiguration().fontScale; in add() local
53 final int sp = (int)(px / fontScale / density); in add()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DUserActionDistanceScopeImpl.kt48 override val fontScale: Float in <lambda>() constant
49 get() = layoutImpl.density.fontScale in <lambda>()
/frameworks/base/tests/MultiUser/src/com/android/test/multiuser/
DMultiUserSettingsTests.java54 return mContext.getResources().getConfiguration().fontScale; in getGlobalFontScale()
69 private void setFontScaleOfUser(float fontScale, int userId) throws InterruptedException { in setFontScaleOfUser() argument
70 Settings.System.putFloatForUser(mContentResolver, FONT_SCALE, fontScale, userId); in setFontScaleOfUser()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DRegisterComponentCallbacksTest.java66 config.fontScale = 1.2f; in testRegisterComponentCallbacks()
97 config.fontScale = 1.2f; in testRegisterComponentCallbacksBeforeT()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DConfigurationContainerTests.java73 rootOverrideConfig.fontScale = 1.3f; in testConfigurationInit()
82 rootParentConfig.fontScale = 0.8f; in testConfigurationInit()
99 rootOverrideConfig.fontScale = 1.3f; in testConfigurationChangeOnAddRemove()
124 rootOverrideConfig2.fontScale = 1.1f; in testConfigurationChangeOnAddRemove()
145 rootOverrideConfig.fontScale = 1.3f; in testConfigurationChangePropagation()
/frameworks/base/core/java/android/security/
DConfirmationPrompt.java224 float fontScale = Settings.System.getFloat(contentResolver, in getUiOptionsAsFlags() local
226 if (fontScale > 1.0) { in getUiOptionsAsFlags()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DTransition.kt59 override val fontScale: Float = 1f constant
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java294 final float fontScale = getFontScale(); in notifyFontScaleChanged() local
297 listener.onFontScaleChanged(fontScale); in notifyFontScaleChanged()
659 public void onFontScaleChanged(float fontScale) {} in onFontScaleChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt114 config.fontScale = 1.5f in fontChanged_listenerNotified()
120 config.fontScale = 1.4f in fontChanged_listenerNotified()
DPhoneStatusBarViewTest.kt263 configuration.fontScale = 1f in onConfigurationChanged_fontScaleChanged_updatesInsets()
270 configuration.fontScale = 2f in onConfigurationChanged_fontScaleChanged_updatesInsets()
/frameworks/base/core/tests/coretests/src/android/content/
DContextWrapperTest.java129 dispatchedConfig.fontScale = 1.2f; in testRegisterComponentCallbacks()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileLayoutTest.java251 final float originalFontScale = mContext.getResources().getConfiguration().fontScale;
294 configuration.fontScale = scale; in changeFontScaling()
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/
DActivityThreadClientTest.java239 currentConfig.fontScale = 0.8f; in testShouldReportChange()
240 newConfig.fontScale = 1.2f; in testShouldReportChange()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DIntervalStatsTests.java127 config1.fontScale = 3.3f; in populateIntervalStats()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt484 fontScale = if (titleScaleDisabled) 1f else fontScale, in TopAppBarLayout()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java48 config.fontScale = 0.3f; in config()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/fontscaling/
DFontScalingDialogDelegate.kt245 previewConfig.fontScale = strEntryValues[index].toFloat() in createTextPreview()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java232 public void onFontScaleChanged(float fontScale) {
233 mClosedCaptionLayout.setFontScale(fontScale);
1440 public void setFontScale(float fontScale) { in setFontScale() argument

12