Home
last modified time | relevance | path

Searched refs:lua_setfield (Results 1 – 21 of 21) sorted by relevance

/external/libtextclassifier/actions/
Dlua-utils.cc87 lua_setfield(env->state(), /*idx=*/-2, kTimeUsecKey); in PushAnnotation()
90 lua_setfield(env->state(), /*idx=*/-2, kGranularityKey); in PushAnnotation()
92 lua_setfield(env->state(), /*idx=*/-2, kCollectionKey); in PushAnnotation()
94 lua_setfield(env->state(), /*idx=*/-2, kScoreKey); in PushAnnotation()
96 lua_setfield(env->state(), /*idx=*/-2, kSerializedEntity); in PushAnnotation()
105 lua_setfield(env->state(), /*idx=*/-2, kTextKey); in PushAnnotation()
116 lua_setfield(env->state(), /*idx=*/-2, kBeginKey); in PushAnnotatedSpan()
118 lua_setfield(env->state(), /*idx=*/-2, kEndKey); in PushAnnotatedSpan()
120 lua_setfield(env->state(), /*idx=*/-2, kSpanKey); in PushAnnotatedSpan()
123 lua_setfield(env->state(), /*idx=*/-2, kClassificationKey); in PushAnnotatedSpan()
[all …]
Dlua-actions.cc116 lua_setfield(state_, /*idx=*/-2, "actions_scores"); in Initialize()
121 lua_setfield(state_, /*idx=*/-2, "reply_scores"); in Initialize()
126 lua_setfield(state_, /*idx=*/-2, "sensitivity"); in Initialize()
131 lua_setfield(state_, /*idx=*/-2, "triggering_score"); in Initialize()
/external/lua/src/
Dloadlib.c307 lua_setfield(L, -3, fieldname); /* package[fieldname] = path value */ in setpath()
335 lua_setfield(L, -3, path); /* CLIBS[path] = plib */ in addtoclib()
611 lua_setfield(L, 2, name); /* LOADED[name] = returned value */ in ll_require()
615 lua_setfield(L, 2, name); /* LOADED[name] = true */ in ll_require()
661 lua_setfield(L, -2, "_M"); /* module._M = module */ in modinit()
663 lua_setfield(L, -2, "_NAME"); in modinit()
669 lua_setfield(L, -2, "_PACKAGE"); in modinit()
699 lua_setfield(L, -2, "__index"); /* mt.__index = _G */ in ll_seeall()
747 lua_setfield(L, -3, "loaders"); /* put it in field 'loaders' */ in createsearcherstable()
749 lua_setfield(L, -2, "searchers"); /* put it in field 'searchers' */ in createsearcherstable()
[all …]
Dldblib.c109 lua_setfield(L, -2, k); in settabss()
114 lua_setfield(L, -2, k); in settabsi()
119 lua_setfield(L, -2, k); in settabsb()
135 lua_setfield(L, -2, fname); /* put object into table */ in treatstackoption()
366 lua_setfield(L, -2, "__mode"); /** hooktable.__mode = "k" */ in db_sethook()
Dlmathlib.c401 lua_setfield(L, -2, "pi"); in luaopen_math()
403 lua_setfield(L, -2, "huge"); in luaopen_math()
405 lua_setfield(L, -2, "maxinteger"); in luaopen_math()
407 lua_setfield(L, -2, "mininteger"); in luaopen_math()
Dlauxlib.c305 lua_setfield(L, -2, "__name"); /* metatable.__name = tname */ in luaL_newmetatable()
307 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ in luaL_newmetatable()
488 lua_setfield(L, -2, "__gc"); /* metatable.__gc = boxgc */ in newbox()
907 lua_setfield(L, -3, modname); /* LOADED[modname] = new table */ in luaL_pushmodule()
941 lua_setfield(L, -(nup + 2), l->name); in luaL_setfuncs()
959 lua_setfield(L, idx, fname); /* assign new table to field */ in luaL_getsubtable()
981 lua_setfield(L, -3, modname); /* LOADED[modname] = module */ in luaL_requiref()
Dliolib.c312 lua_setfield(L, LUA_REGISTRYINDEX, f); in g_iofile()
736 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */ in createmeta()
761 lua_setfield(L, LUA_REGISTRYINDEX, k); /* add file to registry */ in createstdfile()
763 lua_setfield(L, -2, fname); /* add file to module */ in createstdfile()
Dloslib.c199 lua_setfield(L, -2, key); in setfield()
206 lua_setfield(L, -2, key); in setboolfield()
Dlbaselib.c492 lua_setfield(L, -2, "_G"); in luaopen_base()
495 lua_setfield(L, -2, "_VERSION"); in luaopen_base()
Dlutf8lib.c253 lua_setfield(L, -2, "charpattern"); in luaopen_utf8()
Dltablib.c202 lua_setfield(L, 1, "n"); /* t.n = number of elements */ in pack()
Dlua.c569 lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); in pmain()
Dlua.h260 LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); variable
Dlstrlib.c1571 lua_setfield(L, -2, "__index"); /* metatable.__index = string */ in createmetatable()
Dlapi.c777 LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { in lua_setfield() function
/external/libtextclassifier/utils/intents/
Dintent-generator.cc180 lua_setfield(state_, /*idx=*/-2, "user_restrictions"); in SetupExternalHook()
186 lua_setfield(state_, /*idx=*/-2, "R"); in SetupExternalHook()
188 lua_setfield(state_, /*idx=*/-2, "android"); in SetupExternalHook()
216 lua_setfield(state_, -2, "language"); in HandleAndroidCallback()
218 lua_setfield(state_, -2, "region"); in HandleAndroidCallback()
220 lua_setfield(state_, -2, "script"); in HandleAndroidCallback()
721 lua_setfield(state_, /*idx=*/-2, kReferenceTimeUsecKey); in SetupExternalHook()
724 lua_setfield(state_, /*idx=*/-2, "entity"); in SetupExternalHook()
756 lua_setfield(state_, /*idx=*/-2, "conversation"); in SetupExternalHook()
759 lua_setfield(state_, /*idx=*/-2, "entity"); in SetupExternalHook()
/external/libtextclassifier/utils/
Dlua-utils.h96 lua_setfield(state, -2, kIndexKey); in NewIterator()
100 lua_setfield(state, -2, kLengthKey); in NewIterator()
104 lua_setfield(state, -2, kPairsKey); in NewIterator()
212 lua_setfield(state_, -2, kIndexKey); in BindTable()
Dregex-match.cc112 lua_setfield(state_, /*idx=*/-2, "begin"); in GetCapturingGroup()
114 lua_setfield(state_, /*idx=*/-2, "end"); in GetCapturingGroup()
116 lua_setfield(state_, /*idx=*/-2, "text"); in GetCapturingGroup()
Dlua-utils.cc84 lua_setfield(state, -2, kIndexKey); in PushFlatbuffer()
/external/skqp/src/utils/
DSkLua.cpp159 #define CHECK_SETFIELD(key) do if (key) lua_setfield(fL, -2, key); while (0)
164 lua_setfield(L, -2, key); in setfield_bool_if()
170 lua_setfield(L, -2, key); in setfield_string()
175 lua_setfield(L, -2, key); in setfield_number()
180 lua_setfield(L, -2, key); in setfield_boolean()
190 lua_setfield(L, -2, key); in setfield_function()
1082 lua_setfield(L, -2, "positions"); in lshader_asAGradient()
1991 lua_setfield(L, -2, "__index"); \
/external/skia/src/utils/
DSkLua.cpp159 #define CHECK_SETFIELD(key) do if (key) lua_setfield(fL, -2, key); while (0)
164 lua_setfield(L, -2, key); in setfield_bool_if()
170 lua_setfield(L, -2, key); in setfield_string()
175 lua_setfield(L, -2, key); in setfield_number()
180 lua_setfield(L, -2, key); in setfield_boolean()
190 lua_setfield(L, -2, key); in setfield_function()
1082 lua_setfield(L, -2, "positions"); in lshader_asAGradient()
1991 lua_setfield(L, -2, "__index"); \