Home
last modified time | relevance | path

Searched refs:kIndexStackTop (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/native/utils/
Dlua-utils.cc74 const char* field_name = lua_tostring(state_, /*idx=*/kIndexStackTop); in GetField()
216 << lua_type(state_, /*idx=*/kIndexStackTop); in ReadFlatbuffer()
232 ReadFlatbuffer(/*index=*/kIndexStackTop, buffer->Mutable(field)); in ReadFlatbuffer()
235 buffer->Set(field, Read<bool>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
238 buffer->Set(field, Read<int8>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
241 buffer->Set(field, Read<uint8>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
244 buffer->Set(field, Read<int32>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
247 buffer->Set(field, Read<uint32>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
250 buffer->Set(field, Read<int64>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
253 buffer->Set(field, Read<uint64>(/*index=*/kIndexStackTop)); in ReadFlatbuffer()
[all …]
Dlua-utils.h47 static constexpr const int kIndexStackTop = -1; variable
286 << lua_type(state_, /*idx=*/kIndexStackTop);
292 result.push_back(Read<T>(/*index=*/kIndexStackTop));
413 int64 pos = lua_isnil(env->state(), /*idx=*/kIndexStackTop) in Next()
415 : env->Read<int64>(/*index=*/kIndexStackTop); in Next()
443 switch (lua_type(env->state(), kIndexStackTop)) { in Dispatch()
446 const int64 index = env->Read<int64>(/*index=*/kIndexStackTop) - 1; in Dispatch()
455 return key_callback(env->ReadString(kIndexStackTop)); in Dispatch()
459 << lua_type(env->state(), kIndexStackTop); in Dispatch()
468 switch (lua_type(env->state(), kIndexStackTop)) { in Dispatch()
[all …]
/external/libtextclassifier/native/utils/intents/
Djni-lua.cc116 const StringPiece key = ReadString(kIndexStackTop); in HandleExternalCallback()
131 const StringPiece key = ReadString(kIndexStackTop); in HandleAndroidCallback()
215 const StringPiece key_str = ReadString(kIndexStackTop); in HandleUserRestrictionsCallback()
332 const StringPiece url = ReadString(kIndexStackTop); in HandleUrlHost()
365 const StringPiece input = ReadString(kIndexStackTop); in HandleHash()
382 if (lua_type(state_, kIndexStackTop) != LUA_TSTRING) { in LookupModelStringResource()
386 const StringPiece resource_name = ReadString(kIndexStackTop); in LookupModelStringResource()
412 switch (lua_type(state_, kIndexStackTop)) { in HandleAndroidStringResources()
414 resource_id = Read<int>(/*index=*/kIndexStackTop); in HandleAndroidStringResources()
417 const StringPiece resource_name_str = ReadString(kIndexStackTop); in HandleAndroidStringResources()
[all …]