Searched refs:ShadowTextToSpeech (Results 1 – 4 of 4) sorted by relevance
35 import com.android.car.settings.testutils.ShadowTextToSpeech;50 @Config(shadows = {ShadowTtsEngines.class, ShadowTextToSpeech.class})77 ShadowTextToSpeech.setInstance(mTextToSpeech); in setUp()95 ShadowTextToSpeech.reset(); in tearDown()153 ShadowTextToSpeech.callInitializationCallbackWithStatus(TextToSpeech.SUCCESS); in performClick_otherEngine_initSuccess_changeCurrentEngine()154 assertThat(ShadowTextToSpeech.getLastConstructedEngine()).isEqualTo(OTHER_ENGINE_INFO.name); in performClick_otherEngine_initSuccess_changeCurrentEngine()164 ShadowTextToSpeech.callInitializationCallbackWithStatus(TextToSpeech.ERROR); in performClick_otherEngine_initFail_keepCurrentEngine()165 assertThat(ShadowTextToSpeech.getLastConstructedEngine()).isEqualTo( in performClick_otherEngine_initFail_keepCurrentEngine()
46 import com.android.car.settings.testutils.ShadowTextToSpeech;64 @Config(shadows = {ShadowTextToSpeech.class, ShadowTtsEngines.class,95 ShadowTextToSpeech.setInstance(mTextToSpeech); in setUp()137 ShadowTextToSpeech.reset(); in tearDown()199 ShadowTextToSpeech.callInitializationCallbackWithStatus(TextToSpeech.SUCCESS); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()387 ShadowTextToSpeech.callInitializationCallbackWithStatus(TextToSpeech.SUCCESS); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference()402 ShadowTextToSpeech.callInitializationCallbackWithStatus(TextToSpeech.SUCCESS); in refreshUi_defaultLocaleNotSupported_disablesPreferencesExceptLanguage()427 ShadowTextToSpeech.callInitializationCallbackWithStatus(TextToSpeech.SUCCESS); in refreshUi_initialized_defaultLocaleSupported_enablesPreference()
34 import com.android.car.settings.testutils.ShadowTextToSpeech;50 @Config(shadows = {ShadowTtsEngines.class, ShadowTextToSpeech.class, ShadowSecureSettings.class})66 ShadowTextToSpeech.setInstance(mTts); in setUp()81 ShadowTextToSpeech.reset(); in tearDown()
31 public class ShadowTextToSpeech { class