Searched refs:fontScale (Results 1 – 6 of 6) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowCaptioningManagerTest.java | 56 float fontScale = 1.5f; in setFontScale_changesValueOfGetFontScale() local 57 shadowOf(captioningManager).setFontScale(fontScale); in setFontScale_changesValueOfGetFontScale() 59 assertThat(captioningManager.getFontScale()).isWithin(0.001f).of(fontScale); in setFontScale_changesValueOfGetFontScale() 64 float fontScale = 1.5f; in setFontScale_notifiesObservers() local 67 shadowOf(captioningManager).setFontScale(fontScale); in setFontScale_notifiesObservers() 69 verify(captioningChangeListener).onFontScaleChanged(fontScale); in setFontScale_notifiesObservers() 74 float fontScale = 1.5f; in addCaptioningChangeListener_doesNotRegisterSameListenerTwice() local 79 shadowOf(captioningManager).setFontScale(fontScale); in addCaptioningChangeListener_doesNotRegisterSameListenerTwice() 80 verify(captioningChangeListener).onFontScaleChanged(fontScale); in addCaptioningChangeListener_doesNotRegisterSameListenerTwice()
|
D | ShadowConfigurationTest.java | 28 assertThat(configuration.fontScale).isEqualTo(1.0f); in setToDefaultsShouldSetRealDefaults()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowCaptioningManager.java | 13 private float fontScale = 1; field in ShadowCaptioningManager 21 return fontScale; in getFontScale() 25 public void setFontScale(float fontScale) { in setFontScale() argument 26 this.fontScale = fontScale; in setFontScale() 29 captioningChangeListener.onFontScaleChanged(fontScale); in setFontScale()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/ |
D | TextLayer.java | 154 float fontScale = textSize / 100f; in drawTextGlyphs() local 168 float textLineWidth = getTextLineWidthForGlyphs(textLine, font, fontScale, parentScale); in drawTextGlyphs() 181 drawGlyphTextLine(textLine, documentData, parentMatrix, font, canvas, parentScale, fontScale); in drawTextGlyphs() 189 Font font, Canvas canvas, float parentScale, float fontScale) { in drawGlyphTextLine() argument 198 drawCharacterAsGlyph(character, parentMatrix, fontScale, documentData, canvas); in drawGlyphTextLine() 199 float tx = (float) character.getWidth() * fontScale * Utils.dpScale() * parentScale; in drawGlyphTextLine() 280 String textLine, Font font, float fontScale, float parentScale) { in getTextLineWidthForGlyphs() argument 289 textLineWidth += character.getWidth() * fontScale * Utils.dpScale() * parentScale; in getTextLineWidthForGlyphs() 311 float fontScale, in drawCharacterAsGlyph() argument 320 matrix.preScale(fontScale, fontScale); in drawCharacterAsGlyph()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | ActivityControllerTest.java | 228 final float newFontScale = config.fontScale *= 2; in configurationChange_callsLifecycleMethodsAndAppliesConfig() 234 … assertThat(controller.get().getResources().getConfiguration().fontScale).isEqualTo(newFontScale); in configurationChange_callsLifecycleMethodsAndAppliesConfig() 242 final float newFontScale = config.fontScale *= 2; in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged() 249 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged() 257 final float newFontScale = config.fontScale *= 2; in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged() 265 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | SubtitleView.java | 177 float fontScale = Util.SDK_INT >= 19 && !isInEditMode() ? getUserCaptionFontScaleV19() : 1f; in setUserDefaultTextSize() local 178 setFractionalTextSize(DEFAULT_TEXT_SIZE_FRACTION * fontScale); in setUserDefaultTextSize()
|