Home
last modified time | relevance | path

Searched refs:Engine (Results 1 – 25 of 62) sorted by relevance

123

/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DEngine.cpp46 StreamCollection &Engine::getCollection<audio_stream_type_t>() in getCollection()
67 Engine::Engine() : mPolicyParameterMgr(new ParameterManagerWrapper()) in Engine() function in android::audio_policy::Engine
75 Engine::~Engine() in ~Engine()
81 status_t Engine::initCheck() in initCheck()
106 Property Engine::getPropertyForKey(Key key) const in getPropertyForKey()
137 status_t Engine::setPhoneState(audio_mode_t mode) in setPhoneState()
146 audio_mode_t Engine::getPhoneState() const in getPhoneState()
183 status_t Engine::loadAudioPolicyEngineConfig() in loadAudioPolicyEngineConfig()
353 void Engine::updateDeviceSelectionCache() in updateDeviceSelectionCache()
384 EngineInterface *Engine::queryInterface() in queryInterface()
[all …]
H A DEngine.h32 class Engine : public EngineBase, AudioPolicyPluginInterface
35 Engine();
36 virtual ~Engine();
102 Engine(const Engine &object);
103 Engine &operator=(const Engine &object);
H A DEngineInstance.cpp41 Engine *EngineInstance::getEngine() const in getEngine()
43 static Engine engine; in getEngine()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/tts/
H A DTtsPlaybackPreferenceControllerTest.java136 TextToSpeech.Engine.DEFAULT_RATE); in setUp()
138 TextToSpeech.Engine.DEFAULT_PITCH); in setUp()
153 TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); in onCreate_startsCheckVoiceData()
180 TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, data); in voiceDataCheck_processActivityResult_dataIsNotNull_updatesDefaultSynth()
204 TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, data); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()
262 TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, data); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault()
286 TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, data); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale()
310 TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, data); in defaultLanguage_handlePreferenceChanged_passLocale_setsSummary()
325 int newSpeechRate = TextToSpeech.Engine.DEFAULT_RATE + 40; in speechRate_handlePreferenceChanged_updatesSecureSettings()
444 TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, data); in refreshUi_defaultLocaleNotSupported_disablesPreferencesExceptLanguage()
[all …]
H A DTtsPlaybackSettingsManagerTest.java68 TextToSpeech.Engine.DEFAULT_RATE); in setUp()
70 TextToSpeech.Engine.DEFAULT_PITCH); in setUp()
75 int newSpeechRate = TextToSpeech.Engine.DEFAULT_RATE + 40; in updateSpeechRate_updatesSetting()
84 int newSpeechRate = TextToSpeech.Engine.DEFAULT_RATE + 40; in updateSpeechRate_updatesTts()
91 int newSpeechRate = TextToSpeech.Engine.DEFAULT_RATE + 40; in getCurrentSpeechRate_returnsCorrectRate()
99 int newSpeechRate = TextToSpeech.Engine.DEFAULT_RATE + 40; in resetSpeechRate_setsToDefault()
105 TextToSpeech.Engine.DEFAULT_RATE); in resetSpeechRate_setsToDefault()
110 int newVoicePitch = TextToSpeech.Engine.DEFAULT_PITCH + 40; in updateVoicePitch_updatesSetting()
119 int newVoicePitch = TextToSpeech.Engine.DEFAULT_PITCH + 40; in updateVoicePitch_updatesTts()
126 int newVoicePitch = TextToSpeech.Engine.DEFAULT_PITCH + 40; in getCurrentVoicePitch_returnsCorrectRate()
[all …]
/aosp12/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java271 public class Engine { class in TextToSpeech
1438 mParams.putInt(Engine.KEY_PARAM_RATE, intRate);
1462 mParams.putInt(Engine.KEY_PARAM_PITCH, intPitch);
1718 mParams.putString(Engine.KEY_PARAM_COUNTRY, country);
1951 copyIntParam(bundle, params, Engine.KEY_PARAM_STREAM);
1952 copyIntParam(bundle, params, Engine.KEY_PARAM_SESSION_ID);
1954 copyFloatParam(bundle, params, Engine.KEY_PARAM_VOLUME);
1955 copyFloatParam(bundle, params, Engine.KEY_PARAM_PAN);
1985 verifyIntegerBundleParam(bundle, Engine.KEY_PARAM_STREAM);
1988 verifyFloatBundleParam(bundle, Engine.KEY_PARAM_VOLUME);
[all …]
H A DTextToSpeechService.java36 import android.speech.tts.TextToSpeech.Engine;
724 mVolume = Engine.DEFAULT_VOLUME; in AudioOutputParams()
725 mPan = Engine.DEFAULT_PAN; in AudioOutputParams()
745 Engine.KEY_PARAM_AUDIO_ATTRIBUTES); in createFromParamsBundle()
748 Engine.KEY_PARAM_STREAM, Engine.DEFAULT_STREAM); in createFromParamsBundle()
759 Engine.KEY_PARAM_SESSION_ID, in createFromParamsBundle()
762 Engine.KEY_PARAM_VOLUME, in createFromParamsBundle()
763 Engine.DEFAULT_VOLUME), in createFromParamsBundle()
765 Engine.KEY_PARAM_PAN, in createFromParamsBundle()
766 Engine.DEFAULT_PAN), in createFromParamsBundle()
[all …]
H A DTtsEngines.java33 import android.speech.tts.TextToSpeech.Engine;
141 Intent intent = new Intent(Engine.INTENT_ACTION_TTS_SERVICE); in getEngineInfo()
163 Intent intent = new Intent(Engine.INTENT_ACTION_TTS_SERVICE); in getEngines()
203 Intent intent = new Intent(Engine.INTENT_ACTION_TTS_SERVICE); in getSettingsIntent()
236 parser = si.loadXmlMetaData(pm, TextToSpeech.Engine.SERVICE_META_DATA); in settingsActivityFromServiceInfo()
/aosp12/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.h45 class Engine : public EngineBase
48 Engine();
49 virtual ~Engine() = default;
74 Engine(const Engine &object);
75 Engine &operator=(const Engine &object);
H A DEngine.cpp62 Engine::Engine() in Engine() function in android::audio_policy::Engine
145 void Engine::filterOutputDevicesForStrategy(legacy_strategy strategy, in filterOutputDevicesForStrategy()
216 product_strategy_t Engine::remapStrategyFromContext(product_strategy_t strategy, in remapStrategyFromContext()
257 DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy, in getDevicesForStrategyInt()
441 sp<DeviceDescriptor> Engine::getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource()
607 void Engine::updateDeviceSelectionCache() in updateDeviceSelectionCache()
627 audio_devices_t Engine::getPreferredDeviceTypeForLegacyStrategy( in getPreferredDeviceTypeForLegacyStrategy()
638 DeviceVector Engine::getPreferredAvailableDevicesForProductStrategy( in getPreferredAvailableDevicesForProductStrategy()
658 DeviceVector Engine::getDevicesForProductStrategy(product_strategy_t strategy) const { in getDevicesForProductStrategy()
685 DeviceVector Engine::getOutputDevicesForAttributes(const audio_attributes_t &attributes, in getOutputDevicesForAttributes()
[all …]
H A DEngineInstance.cpp25 return new (std::nothrow) Engine(); in createEngineInstance()
30 delete static_cast<Engine*>(engine); in destroyEngineInstance()
/aosp12/frameworks/base/tests/Internal/src/android/service/wallpaper/
H A DWallpaperServiceTest.java38 public Engine onCreateEngine() { in testDeliversAmbientModeChanged()
39 return new Engine() { in testDeliversAmbientModeChanged()
47 WallpaperService.Engine engine = service.onCreateEngine(); in testDeliversAmbientModeChanged()
66 public Engine onCreateEngine() { in testDeliversZoomChanged()
67 return new Engine() { in testDeliversZoomChanged()
76 WallpaperService.Engine engine = service.onCreateEngine(); in testDeliversZoomChanged()
/aosp12/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DMockableCheckVoiceData.java41 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL, returnVal); in onCreate()
46 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES, in onCreate()
50 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES, in onCreate()
54 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, returnVal); in onCreate()
/aosp12/packages/apps/Settings/src/com/android/settings/tts/
H A DTextToSpeechSettings.java121 private int mDefaultPitch = TextToSpeech.Engine.DEFAULT_PITCH;
122 private int mDefaultRate = TextToSpeech.Engine.DEFAULT_RATE;
170 getActivity().setVolumeControlStream(TextToSpeech.Engine.DEFAULT_STREAM); in onCreate()
259 TextToSpeech.Engine.DEFAULT_PITCH) / 100.0f); in onResume()
482 Intent intent = new Intent(TextToSpeech.Engine.ACTION_GET_SAMPLE_TEXT); in getSampleText()
506 if (resultCode != TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL) { in onActivityResult()
635 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "Sample"); in speakSampleText()
689 KEY_DEFAULT_RATE, TextToSpeech.Engine.DEFAULT_RATE); in resetTts()
694 KEY_DEFAULT_PITCH, TextToSpeech.Engine.DEFAULT_PITCH); in resetTts()
757 Intent intent = new Intent(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); in checkVoiceData()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/tts/
H A DTtsPlaybackSettingsManager.java87 Settings.Secure.TTS_DEFAULT_RATE, TextToSpeech.Engine.DEFAULT_RATE); in getCurrentSpeechRate()
91 updateSpeechRate(TextToSpeech.Engine.DEFAULT_RATE); in resetSpeechRate()
103 Settings.Secure.TTS_DEFAULT_PITCH, TextToSpeech.Engine.DEFAULT_PITCH); in getCurrentVoicePitch()
107 updateVoicePitch(TextToSpeech.Engine.DEFAULT_PITCH); in resetVoicePitch()
H A DTtsPlaybackPreferenceController.java198 Intent intent = new Intent(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); in startEngineVoiceDataCheck()
219 Intent intent = new Intent(TextToSpeech.Engine.ACTION_GET_SAMPLE_TEXT); in startGetSampleText()
224 intent.putExtra(TextToSpeech.Engine.KEY_PARAM_LANGUAGE, mSampleTextLocale.getLanguage()); in startGetSampleText()
225 intent.putExtra(TextToSpeech.Engine.KEY_PARAM_COUNTRY, mSampleTextLocale.getCountry()); in startGetSampleText()
226 intent.putExtra(TextToSpeech.Engine.KEY_PARAM_VARIANT, mSampleTextLocale.getVariant()); in startGetSampleText()
245 if (data == null || resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL) { in onVoiceDataIntegrityCheckDone()
255 data.getStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES); in onVoiceDataIntegrityCheckDone()
275 String tmp = data.getStringExtra(TextToSpeech.Engine.EXTRA_SAMPLE_TEXT); in onSampleTextReceived()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/wallpaper/
H A DWallpaperServiceTests.java59 public Engine onCreateEngine() { in testNotifyColorsChanged_rateLimit()
60 return new WallpaperService.Engine(clockFunction, handler) { in testNotifyColorsChanged_rateLimit()
69 WallpaperService.Engine engine = service.onCreateEngine(); in testNotifyColorsChanged_rateLimit()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
H A DTextToSpeechFragment.java91 private int mDefaultRate = TextToSpeech.Engine.DEFAULT_RATE;
173 getActivity().setVolumeControlStream(TextToSpeech.Engine.DEFAULT_STREAM); in onCreate()
232 mDefaultRate = TextToSpeech.Engine.DEFAULT_RATE; in initSettings()
351 Intent intent = new Intent(TextToSpeech.Engine.ACTION_GET_SAMPLE_TEXT); in getSampleText()
403 features.contains(TextToSpeech.Engine.KEY_FEATURE_NETWORK_SYNTHESIS) && in isNetworkRequiredForSynthesis()
404 !features.contains(TextToSpeech.Engine.KEY_FEATURE_EMBEDDED_SYNTHESIS); in isNetworkRequiredForSynthesis()
432 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "Sample"); in speakSampleText()
563 Intent intent = new Intent(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); in checkVoiceData()
594 TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES); in onVoiceDataIntegrityCheckDone()
H A DTtsEngineSettingsFragment.java115 if (TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED.equals(intent.getAction())) {
194 new IntentFilter(TextToSpeech.Engine.ACTION_TTS_DATA_INSTALLED)); in onCreate()
218 Intent intent = new Intent(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); in checkTtsData()
231 if (resultCode != TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL) { in onActivityResult()
250 TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES); in updateVoiceDetails()
252 TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES); in updateVoiceDetails()
330 Intent intent = new Intent(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA); in installVoiceData()
/aosp12/frameworks/base/tests/Internal/src/stub/
H A DDummyWallpaperService.java26 public Engine onCreateEngine() { in onCreateEngine()
27 return new Engine(); in onCreateEngine()
/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/include/
H A DAudioPolicyEngineInstance.h25 class Engine; variable
59 Engine *getEngine() const;
/aosp12/hardware/google/pixel-sepolicy/sota_app/system_ext/
H A Dfactory_ota_app.te20 # Allow Factory OTA to call Update Engine
22 # Allow Update Engine to call the Factory OTA callback
/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/sepolicy/
H A Dfile.te1 # Policy Engine remote connection for runtime debug of parameter framework
/aosp12/packages/apps/Car/libs/car-uxr-client-lib/
H A DREADME.md3 Automotive app developers to add User Experience Restriction Engine
/aosp12/frameworks/av/services/audiopolicy/enginedefault/
H A DAndroid.bp13 "src/Engine.cpp",

123