Searched refs:captioningManager (Results 1 – 3 of 3) sorted by relevance
27 private CaptioningManager captioningManager; field in ShadowCaptioningManagerTest32 captioningManager = in setUp()40 assertThat(captioningManager.isEnabled()).isFalse(); in setEnabled_true()42 shadowOf(captioningManager).setEnabled(true); in setEnabled_true()44 assertThat(captioningManager.isEnabled()).isTrue(); in setEnabled_true()49 shadowOf(captioningManager).setEnabled(false); in setEnabled_false()51 assertThat(captioningManager.isEnabled()).isFalse(); in setEnabled_false()57 shadowOf(captioningManager).setFontScale(fontScale); in setFontScale_changesValueOfGetFontScale()59 assertThat(captioningManager.getFontScale()).isWithin(0.001f).of(fontScale); in setFontScale_changesValueOfGetFontScale()65 captioningManager.addCaptioningChangeListener(captioningChangeListener); in setFontScale_notifiesObservers()[all …]
269 CaptioningManager captioningManager = in isCaptionManagerEnabled() local271 return captioningManager.isEnabled(); in isCaptionManagerEnabled()276 CaptioningManager captioningManager = in getUserCaptionFontScaleV19() local278 return captioningManager.getFontScale(); in getUserCaptionFontScaleV19()283 CaptioningManager captioningManager = in getUserCaptionStyleV19() local285 return CaptionStyleCompat.createFromCaptionStyle(captioningManager.getUserStyle()); in getUserCaptionStyleV19()
180 CaptioningManager captioningManager = in setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettingsV19() local182 if (captioningManager == null || !captioningManager.isEnabled()) { in setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettingsV19()186 Locale preferredLocale = captioningManager.getLocale(); in setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettingsV19()