Lines Matching defs:engine

90      * of engine).
101 * engine (as opposed to when then screen is being initialized for the first
368 private void updateDefaultEngine(String engine) {
370 Log.d(TAG, "Updating default synth to : " + engine);
374 // rate preference while the engine is being swapped.
376 // Keep track of the previous engine that was being used. So that
377 // we can reuse the previous engine.
380 // the very least that we successfully bound to the engine service.
383 // Step 1: Shut down the existing TTS engine.
389 Log.e(TAG, "Error shutting down TTS engine" + e);
393 // Step 2: Connect to the new TTS engine.
395 // the app binds successfully to the engine.
397 Log.d(TAG, "Updating engine : Attempting to connect to engine: " + engine);
399 mTts = new TextToSpeech(getApplicationContext(), mUpdateListener, engine);
637 * Check whether the voice data for the engine is ok.
639 private void checkVoiceData(String engine) {
641 intent.setPackage(engine);
644 Log.d(TAG, "Updating engine: Checking voice data: " + intent.toUri(0));
653 * Called when the TTS engine is initialized.
658 Log.d(TAG, "TTS engine for settings screen initialized.");
662 Log.d(TAG, "TTS engine for settings screen failed to initialize successfully.");
674 * Step 3: We have now bound to the TTS engine the user requested. We will
675 * attempt to check voice data for the engine if we successfully bound to it,
676 * or revert to the previous engine if we didn't.
681 Log.d(TAG, "Updating engine: Successfully bound to the engine: " +
687 Log.d(TAG, "Updating engine: Failed to bind to engine, reverting.");
692 // null if the previous bind to this engine failed.
780 * Ask the current default engine to return a string of sample text to be
791 Log.e(TAG, "Failed to get default language from engine " + currentEngine);
849 // The engine is guaranteed to have been initialized here
879 final String engine = mTts.getCurrentEngine();
881 if (engine == null) {
882 Log.e(TAG, "Voice data check complete, but no engine bound");
892 Settings.Secure.putString(getContentResolver(), TTS_DEFAULT_SYNTH, engine);
910 * Ask the current default engine to launch the matching INSTALL_TTS_DATA