/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/ |
D | UwbFilterEngineTest.java | 41 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/ |
D | JniUtilsTestHelper.cpp | 37 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/ |
D | WallpaperEngineConnection.kt | 29 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 …]
|
D | WallpaperConnectionUtils.kt | 103 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/ |
D | main.rs | 4 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/ |
D | Runner.cpp | 37 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/ |
D | PreferredEngineOptionsPreferenceController.java | 66 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/ |
D | Factory.cpp | 22 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/ |
D | Factory.cpp | 33 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()
|
D | MockEngine.cpp | 25 void MockEngine::delegateToFake(const std::shared_ptr<StreamEngineInterface>& engine) { in delegateToFake() argument 26 mFake = engine; in delegateToFake()
|
/packages/services/Car/packages/ScriptExecutor/src/ |
D | ScriptExecutorJni.cpp | 84 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/ |
D | BackAzimuthPrimerTest.java | 58 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/ |
D | Factory.cpp | 29 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/ |
D | TtsEnginePreferenceFragment.java | 119 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/ |
D | TtsEnginePreferenceFragmentTest.java | 100 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/ |
D | TextToSpeechFragment.java | 258 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/ |
D | ShadowTtsEngines.java | 59 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/ |
D | ShadowTextToSpeech.java | 46 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/ |
D | WallpaperConnection.java | 274 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/ |
D | Common.cpp | 39 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/ |
D | fl_runner_jni.cc | 46 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/ |
D | evp.rs | 109 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/ |
D | JSScriptEngineTest.java | 964 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/ |
D | TextToSpeechCompat.java | 31 public Engine(TextToSpeech.Engine engine) { in Engine() argument 32 mEngine = engine; in Engine()
|
/packages/services/Car/cpp/computepipe/tests/fuzz/ |
D | GrpcGraphFuzzer.cpp | 54 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()
|