/frameworks/base/core/java/android/content/res/ |
D | FontScaleConverterFactory.java | 158 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 …]
|
D | FontScaleConverter.java | 54 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()
|
D | Configuration.java | 110 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/ |
D | ConfigurationControllerImpl.kt | 39 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()
|
D | PhoneStatusBarView.java | 184 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/ |
D | FontScaleConverterActivityTest.java | 84 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/ |
D | TypedValueTest.kt | 165 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/ |
D | ConfigurableTexts.java | 50 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/ |
D | UserActionDistanceScopeImpl.kt | 48 override val fontScale: Float in <lambda>() constant 49 get() = layoutImpl.density.fontScale in <lambda>()
|
/frameworks/base/tests/MultiUser/src/com/android/test/multiuser/ |
D | MultiUserSettingsTests.java | 54 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/ |
D | RegisterComponentCallbacksTest.java | 66 config.fontScale = 1.2f; in testRegisterComponentCallbacks() 97 config.fontScale = 1.2f; in testRegisterComponentCallbacksBeforeT()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ConfigurationContainerTests.java | 73 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/ |
D | ConfirmationPrompt.java | 224 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/ |
D | Transition.kt | 59 override val fontScale: Float = 1f constant
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 294 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/ |
D | ConfigurationControllerImplTest.kt | 114 config.fontScale = 1.5f in fontChanged_listenerNotified() 120 config.fontScale = 1.4f in fontChanged_listenerNotified()
|
D | PhoneStatusBarViewTest.kt | 263 configuration.fontScale = 1f in onConfigurationChanged_fontScaleChanged_updatesInsets() 270 configuration.fontScale = 2f in onConfigurationChanged_fontScaleChanged_updatesInsets()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextWrapperTest.java | 129 dispatchedConfig.fontScale = 1.2f; in testRegisterComponentCallbacks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TileLayoutTest.java | 251 final float originalFontScale = mContext.getResources().getConfiguration().fontScale; 294 configuration.fontScale = scale; in changeFontScaling()
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 239 currentConfig.fontScale = 0.8f; in testShouldReportChange() 240 newConfig.fontScale = 1.2f; in testShouldReportChange()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | IntervalStatsTests.java | 127 config1.fontScale = 3.3f; in populateIntervalStats()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/ |
D | CustomizedAppBar.kt | 484 fontScale = if (titleScaleDisabled) 1f else fontScale, in TopAppBarLayout()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TestUtils.java | 48 config.fontScale = 0.3f; in config()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/fontscaling/ |
D | FontScalingDialogDelegate.kt | 245 previewConfig.fontScale = strEntryValues[index].toFloat() in createTextPreview()
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 232 public void onFontScaleChanged(float fontScale) { 233 mClosedCaptionLayout.setFontScale(fontScale); 1440 public void setFontScale(float fontScale) { in setFontScale() argument
|