Home
last modified time | relevance | path

Searched refs:engine (Results 1 – 25 of 102) sorted by relevance

12345

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/
DUwbFilterEngineTest.java41 UwbFilterEngine engine = new UwbFilterEngine.Builder().build(); in basic() local
42 engine.add(SphericalVector.fromRadians(1, 1.2f, 1.3f).toAnnotated(), 0); in basic()
43 SphericalVector currentVector = engine.compute(0); in basic()
47 engine.close(); in basic()
52 UwbFilterEngine engine = new UwbFilterEngine.Builder().build(); in testBadReading() local
55 engine.add(annotated, 0); in testBadReading()
56 Annotated currentVector = engine.compute(0); in testBadReading()
60 engine.close(); in testBadReading()
65 UwbFilterEngine engine = new UwbFilterEngine.Builder().build(); in testIntermittentReading() local
66 engine.add(SphericalVector.fromRadians(1, 1.2f, 1.3f).toAnnotated(), 0); in testIntermittentReading()
[all …]
/packages/services/Car/packages/ScriptExecutor/tests/unit/src/com/android/car/scriptexecutortest/unit/
DJniUtilsTestHelper.cpp37 scriptexecutor::LuaEngine* engine = in hasValidNumberArray() local
40 auto* luaState = engine->getLuaState(); in hasValidNumberArray()
79 scriptexecutor::LuaEngine* engine = in hasValidBooleanArray() local
82 auto* luaState = engine->getLuaState(); in hasValidBooleanArray()
133 scriptexecutor::LuaEngine* engine = in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleToLuaTableCaller() local
135 scriptexecutor::pushBundleToLuaTable(env, engine->getLuaState(), bundle); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleToLuaTableCaller()
141 scriptexecutor::LuaEngine* engine = in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleListToLuaTableCaller() local
143 scriptexecutor::pushBundleListToLuaTable(env, engine->getLuaState(), bundleList); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleListToLuaTableCaller()
151 scriptexecutor::LuaEngine* engine = in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativeGetObjectSize() local
153 return lua_rawlen(engine->getLuaState(), static_cast<int>(index)); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativeGetObjectSize()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/wallpaperconnection/
DWallpaperEngineConnection.kt29 var engine: IWallpaperEngine? = null in <lambda>() variable in com.android.wallpaper.util.wallpaperconnection.WallpaperEngineConnection
38 return engine in <lambda>()
50 override fun attachEngine(engine: IWallpaperEngine?, displayId: Int) { in <lambda>()
54 this.engine = engine in <lambda>()
55 engine?.apply { in <lambda>()
62 override fun engineShown(engine: IWallpaperEngine?) { in <lambda>()
63 if (engine != null) { in <lambda>()
64 dispatchWallpaperCommand(engine) in <lambda>()
67 this.engine?.let { engineContinuation?.resumeWith(Result.success(it)) } in <lambda>()
71 private fun dispatchWallpaperCommand(engine: IWallpaperEngine) { in <lambda>()
[all …]
DWallpaperConnectionUtils.kt103 engineConnection.engine?.let { in <lambda>()
128 engineConnection.engine?.destroy() in <lambda>()
167 engineConnection.engine?.destroy() in <lambda>()
182 val engine = in <lambda>() constant
185 .let { engineKey -> engineMap[engineKey]?.await()?.second?.engine } in <lambda>()
187 if (engine != null) { in <lambda>()
192 engine.dispatchPointer(dup) in <lambda>()
194 engine.dispatchWallpaperCommand( in <lambda>()
202 engine.dispatchWallpaperCommand( in <lambda>()
281 engine: IWallpaperEngine, in <lambda>()
[all …]
/packages/modules/Bluetooth/floss/hcidoc/src/
Dmain.rs4 mod engine; module
8 use crate::engine::RuleEngine;
87 let mut engine = RuleEngine::new(); in main() localVariable
88 engine.add_rule_group("Collisions".into(), collisions::get_collisions_group()); in main()
89 engine.add_rule_group("Connections".into(), connections::get_connections_group()); in main()
90 engine.add_rule_group("Controllers".into(), controllers::get_controllers_group()); in main()
91 engine.add_rule_group("Informational".into(), informational::get_informational_group()); in main()
99 Ok(p) => engine.process(p), in main()
114 engine.report(&mut writer); in main()
118 engine.report_signals(&mut writer); in main()
/packages/services/Car/cpp/computepipe/example/
DRunner.cpp37 using android::automotive::computepipe::runner::engine::RunnerEngine;
38 using android::automotive::computepipe::runner::engine::RunnerEngineFactory;
54 std::shared_ptr<RunnerEngine> engine = in main() local
59 engine)); in main()
62 engine->setPrebuiltGraph(std::move(graph)); in main()
66 sClientFactory.createClientInterface("aidl", options, engine); in main()
71 engine->setClientInterface(std::move(client)); in main()
73 engine->activate(); in main()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DPreferredEngineOptionsPreferenceController.java66 for (TextToSpeech.EngineInfo engine : mEnginesHelper.getEngines()) { in onCreateInternal()
68 preference.setKey(engine.name); in onCreateInternal()
69 preference.setTitle(engine.label); in onCreateInternal()
74 if (areEnginesEqual(current, engine)) { in onCreateInternal()
77 updateDefaultEngine(engine.name); in onCreateInternal()
111 private boolean areEnginesEqual(TextToSpeech.EngineInfo engine, CharSequence name, in areEnginesEqual() argument
113 return TextUtils.equals(engine.name, name) && TextUtils.equals(engine.label, label); in areEnginesEqual()
174 TextToSpeech createTts(TextToSpeech.OnInitListener listener, String engine) { in createTts() argument
175 return new TextToSpeech(getContext(), listener, engine); in createTts()
/packages/services/Car/cpp/computepipe/runner/engine/
DFactory.cpp22 namespace engine { namespace
26 std::unique_ptr<DefaultEngine> engine = std::make_unique<DefaultEngine>(); in createDefaultEngine() local
27 if (engine->setArgs(engine_args) != Status::SUCCESS) { in createDefaultEngine()
30 return engine; in createDefaultEngine()
34 std::unique_ptr<RunnerEngine> RunnerEngineFactory::createRunnerEngine(std::string engine, in createRunnerEngine() argument
36 if (engine == kDefault) { in createRunnerEngine()
/packages/services/Car/cpp/computepipe/runner/stream_manager/
DFactory.cpp33 std::shared_ptr<StreamEngineInterface> engine, in buildSemanticManager() argument
37 semanticManager->setEngineInterface(engine); in buildSemanticManager()
45 const proto::OutputConfig& config, std::shared_ptr<StreamEngineInterface> engine, in buildPixelStreamManager() argument
49 pixelStreamManager->setEngineInterface(engine); in buildPixelStreamManager()
59 const proto::OutputConfig& config, std::shared_ptr<StreamEngineInterface> engine, in getStreamManager() argument
66 return buildSemanticManager(config, engine, maxPackets); in getStreamManager()
68 return buildPixelStreamManager(config, engine, maxPackets); in getStreamManager()
DMockEngine.cpp25 void MockEngine::delegateToFake(const std::shared_ptr<StreamEngineInterface>& engine) { in delegateToFake() argument
26 mFake = engine; in delegateToFake()
/packages/services/Car/packages/ScriptExecutor/src/
DScriptExecutorJni.cpp84 LuaEngine* engine = reinterpret_cast<LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript() local
93 auto status = engine->loadScript(scriptStr); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
102 status = engine->pushFunction(functionNameStr); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
111 pushBundleListToLuaTable(env, engine->getLuaState(), bundleList); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
114 pushBundleToLuaTable(env, engine->getLuaState(), publishedData); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
119 pushBundleToLuaTable(env, engine->getLuaState(), savedState); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
122 engine->run(); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DBackAzimuthPrimerTest.java58 UwbFilterEngine engine = new UwbFilterEngine.Builder() in rotationTrackingTest() local
64 simulateRotation(-40, 220, 8, engine); in rotationTrackingTest()
72 simulateRotation(130, 360 - 130, 12, engine); in rotationTrackingTest()
79 UwbFilterEngine engine) { in simulateRotation() argument
99 engine.add(reading.toAnnotated(), mNow); in simulateRotation()
100 SphericalVector result = engine.compute(mNow); in simulateRotation()
/packages/services/Car/cpp/computepipe/runner/client_interface/
DFactory.cpp29 const std::shared_ptr<ClientEngineInterface>& engine) { in buildAidlClient() argument
30 return std::make_unique<AidlClient>(options, engine); in buildAidlClient()
37 const std::shared_ptr<ClientEngineInterface>& engine) { in createClientInterface() argument
39 return buildAidlClient(graphOptions, engine); in createClientInterface()
/packages/apps/Settings/src/com/android/settings/tts/
DTtsEnginePreferenceFragment.java119 for (EngineInfo engine : engines) { in getCandidates()
120 final EngineCandidateInfo info = new EngineCandidateInfo(engine); in getCandidates()
122 mEngineMap.put(engine.name, info); in getCandidates()
165 private void updateDefaultEngine(String engine) { in updateDefaultEngine() argument
166 Log.d(TAG, "Updating default synth to : " + engine); in updateDefaultEngine()
189 Log.i(TAG, "Updating engine : Attempting to connect to engine: " + engine); in updateDefaultEngine()
190 mTts = new TextToSpeech(mContext, mUpdateListener, engine); in updateDefaultEngine()
/packages/apps/Settings/tests/robotests/src/com/android/settings/tts/
DTtsEnginePreferenceFragmentTest.java100 final TtsEngines engine = mock(TtsEngines.class); in getDefaultKey_validKey_returnCorrectKey() local
101 ShadowTtsEngines.setInstance(engine); in getDefaultKey_validKey_returnCorrectKey()
107 when(engine.getDefaultEngine()).thenReturn(TEST_ENGINE); in getDefaultKey_validKey_returnCorrectKey()
115 final TtsEngines engine = mock(TtsEngines.class); in setDefaultKey_validKey_callingTtsEngineFunction() local
116 ShadowTtsEngines.setInstance(engine); in setDefaultKey_validKey_callingTtsEngineFunction()
125 verify(engine).isEngineInstalled(mContext.getPackageName()); in setDefaultKey_validKey_callingTtsEngineFunction()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTextToSpeechFragment.java258 for (TextToSpeech.EngineInfo engine : engines) { in initSettings()
260 new TtsEnginePreference(getPreferenceManager().getContext(), engine, in initSettings()
540 private void updateDefaultEngine(String engine) { in updateDefaultEngine() argument
541 if (DBG) Log.d(TAG, "Updating default synth to : " + engine); in updateDefaultEngine()
566 if (DBG) Log.d(TAG, "Updating engine : Attempting to connect to engine: " + engine); in updateDefaultEngine()
567 mTts = new TextToSpeech(getActivity().getApplicationContext(), mUpdateListener, engine); in updateDefaultEngine()
599 private void checkVoiceData(String engine) { in checkVoiceData() argument
601 intent.setPackage(engine); in checkVoiceData()
614 final String engine = mTts.getCurrentEngine(); in onVoiceDataIntegrityCheckDone() local
616 if (engine == null) { in onVoiceDataIntegrityCheckDone()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowTtsEngines.java59 protected Intent getSettingsIntent(String engine) { in getSettingsIntent() argument
60 return sInstance.getSettingsIntent(engine); in getSettingsIntent()
64 protected boolean isEngineInstalled(String engine) { in isEngineInstalled() argument
65 return sInstance.isEngineInstalled(engine); in isEngineInstalled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowTextToSpeech.java46 String engine, in __constructor__() argument
49 sEngine = engine; in __constructor__()
53 String engine) { in __constructor__() argument
54 __constructor__(context, listener, engine, null, false); in __constructor__()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperConnection.java274 public void attachEngine(IWallpaperEngine engine, int displayId) { in attachEngine() argument
277 mEngine = engine; in attachEngine()
301 engine.destroy(); in attachEngine()
336 public void engineShown(IWallpaperEngine engine) { in engineShown() argument
341 engine.dispatchWallpaperCommand("android.wallpaper.previewinfo", 0, 0, 0, bundle); in engineShown()
458 IWallpaperEngine engine; in mirrorAndReparent() local
464 engine = mEngine; in mirrorAndReparent()
468 SurfaceControl wallpaperMirrorSC = engine.mirrorSurfaceControl(); in mirrorAndReparent()
/packages/services/Car/cpp/evs/manager/aidl/tests/fuzz/
DCommon.cpp39 std::default_random_engine engine(r()); in initializeMockEvsHal() local
42 std::make_shared<MockEvsHal>(/* numCameras= */ uniform_dist(engine), in initializeMockEvsHal()
43 /* numDisplays= */ uniform_dist(engine)); in initializeMockEvsHal()
/packages/modules/OnDevicePersonalization/federatedcompute/jni/cpp/
Dfl_runner_jni.cc46 const fcp::client::engine::jni::FlagsImpl flags; in JFUN()
48 fcp::client::engine::jni::SimpleTaskEnvironmentWrapperImpl in JFUN()
57 fcp::client::engine::jni::LogManagerWrapperImpl log_manager_impl( in JFUN()
/packages/modules/Virtualization/libs/bssl/src/
Devp.rs109 let engine = ptr::null_mut(); // Engine is not used. in new_raw_public_key() localVariable
116 engine, in new_raw_public_key()
179 let engine = ptr::null_mut(); // Use the default engine. in verify() localVariable
188 engine, in verify()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJSScriptEngineTest.java964 JSScriptEngine engine = in testIsolateIsClosedWhenEvaluationIsCancelled() local
968 engine.evaluate( in testIsolateIsClosedWhenEvaluationIsCancelled()
1010 JSScriptEngine engine = in testIsolateIsClosedWhenEvaluationTimesOut() local
1021 engine.evaluate( in testIsolateIsClosedWhenEvaluationTimesOut()
1049 JSScriptEngine engine = in testThrowsExceptionAndRecreateSandboxIfIsolateCreationFails() local
1060 engine, in testThrowsExceptionAndRecreateSandboxIfIsolateCreationFails()
1125 JSScriptEngine engine, IsolateSettings isolateSettings) { in callJSEngineAndAssertExecutionException() argument
1130 engine, in callJSEngineAndAssertExecutionException()
1231 @NonNull JSScriptEngine engine, in callJSEngineAsync()
1238 Objects.requireNonNull(engine); in callJSEngineAsync()
[all …]
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DTextToSpeechCompat.java31 public Engine(TextToSpeech.Engine engine) { in Engine() argument
32 mEngine = engine; in Engine()
/packages/services/Car/cpp/computepipe/tests/fuzz/
DGrpcGraphFuzzer.cpp54 std::shared_ptr<PrebuiltEngineInterfaceImpl> engine; in LLVMFuzzerTestOneInput() local
56 engine = std::make_shared<PrebuiltEngineInterfaceImpl>(); in LLVMFuzzerTestOneInput()
57 Status status = graph->initialize(runner::test::kAddress, engine); in LLVMFuzzerTestOneInput()

12345