Home
last modified time | relevance | path

Searched refs:LuaEngine (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/packages/ScriptExecutor/src/
DLuaEngine.cpp52 ScriptExecutorListener* LuaEngine::sListener = nullptr;
54 LuaEngine::LuaEngine() { in LuaEngine() function in com::android::car::scriptexecutor::LuaEngine
60 LuaEngine::~LuaEngine() { in ~LuaEngine()
64 lua_State* LuaEngine::getLuaState() { in getLuaState()
68 void LuaEngine::resetListener(ScriptExecutorListener* listener) { in resetListener()
75 int LuaEngine::loadScript(const char* scriptBody) { in loadScript()
99 lua_register(mLuaState, "log", LuaEngine::scriptLog); in loadScript()
100 lua_register(mLuaState, "on_success", LuaEngine::onSuccess); in loadScript()
101 lua_register(mLuaState, "on_script_finished", LuaEngine::onScriptFinished); in loadScript()
102 lua_register(mLuaState, "on_error", LuaEngine::onError); in loadScript()
[all …]
DScriptExecutorJni.cpp34 return static_cast<jlong>(reinterpret_cast<intptr_t>(new LuaEngine())); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInitLuaEngine()
39 delete reinterpret_cast<LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeDestroyLuaEngine()
84 LuaEngine* engine = reinterpret_cast<LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
85 LuaEngine::resetListener(new ScriptExecutorListener(env, listener)); in Java_com_android_car_scriptexecutor_ScriptExecutor_nativeInvokeScript()
DLuaEngine.h34 class LuaEngine {
36 LuaEngine();
38 virtual ~LuaEngine();
/packages/services/Car/tools/telemetry/lua-interpreter/
Dlua_engine.cc28 std::vector<std::string> LuaEngine::output_;
43 LuaEngine::LuaEngine() { in LuaEngine() function in lua_interpreter::LuaEngine
48 lua_register(lua_state_, "log", LuaEngine::ScriptLog); in LuaEngine()
49 lua_register(lua_state_, "on_success", LuaEngine::OnSuccess); in LuaEngine()
50 lua_register(lua_state_, "on_script_finished", LuaEngine::OnScriptFinished); in LuaEngine()
51 lua_register(lua_state_, "on_error", LuaEngine::OnError); in LuaEngine()
52 lua_register(lua_state_, "on_metrics_report", LuaEngine::OnMetricsReport); in LuaEngine()
55 LuaEngine::~LuaEngine() { lua_close(lua_state_); } in ~LuaEngine()
169 void LuaEngine::SaveSavedStateToRegistry(lua_State* lua_state, in SaveSavedStateToRegistry()
188 void LuaEngine::ClearSavedStateInRegistry(lua_State* lua_state) { in ClearSavedStateInRegistry()
[all …]
Dlua_engine.h32 class LuaEngine {
35 LuaEngine();
36 ~LuaEngine();
172 LuaEngine* NewLuaEngine();
181 LuaOutput* ExecuteScript(LuaEngine* l, char* script, char* function_name,
/packages/services/Car/packages/ScriptExecutor/tests/unit/src/com/android/car/scriptexecutortest/unit/
DJniUtilsTestHelper.cpp37 scriptexecutor::LuaEngine* engine = in hasValidNumberArray()
38 reinterpret_cast<scriptexecutor::LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in hasValidNumberArray()
79 scriptexecutor::LuaEngine* engine = in hasValidBooleanArray()
80 reinterpret_cast<scriptexecutor::LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in hasValidBooleanArray()
121 return static_cast<jlong>(reinterpret_cast<intptr_t>(new scriptexecutor::LuaEngine())); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativeCreateLuaEngine()
127 delete reinterpret_cast<scriptexecutor::LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativeDestroyLuaEngine()
133 scriptexecutor::LuaEngine* engine = in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleToLuaTableCaller()
134 reinterpret_cast<scriptexecutor::LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleToLuaTableCaller()
141 scriptexecutor::LuaEngine* engine = in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleListToLuaTableCaller()
142 reinterpret_cast<scriptexecutor::LuaEngine*>(static_cast<intptr_t>(luaEnginePtr)); in Java_com_android_car_scriptexecutortest_unit_JniUtilsTest_nativePushBundleListToLuaTableCaller()
[all …]
/packages/services/Car/tools/telemetry/lua-interpreter/tests/
Dlua_engine_test.cc32 lua_interpreter::LuaEngine lua_engine_;
309 char** array = LuaEngine::StringVectorToCharArray(vector); in TEST_F()
315 char** array = LuaEngine::StringVectorToCharArray(vector); in TEST_F()
/packages/services/Car/packages/ScriptExecutor/
DAndroid.bp42 "src/LuaEngine.cpp",