Home
last modified time | relevance | path

Searched refs:tableIndex (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.cpp222 bool TrieMap::freeTable(const int tableIndex, const int entryCount) { in freeTable() argument
223 if (!writeField0(readEmptyTableLink(entryCount), tableIndex)) { in freeTable()
226 return writeEmptyTableLink(tableIndex, entryCount); in freeTable()
234 const int tableIndex = readEmptyTableLink(entryCount); in allocateTable() local
235 if (tableIndex > 0) { in allocateTable()
236 if (!writeEmptyTableLink(readField0(tableIndex), entryCount)) { in allocateTable()
240 return tableIndex; in allocateTable()
399 const int tableIndex, const uint32_t bitmap, const int bitmapEntryIndex, const int label) { in addNewEntryByExpandingTable() argument
409 if (!copyEntry(tableIndex + i, newTableIndex + i + (i >= newEntryIndexInTable ? 1 : 0))) { in addNewEntryByExpandingTable()
422 return freeTable(tableIndex, entryCount); in addNewEntryByExpandingTable()
Dtrie_map.h57 TableIterationState(const int tableSize, const int tableIndex) in TableIterationState()
58 : mTableSize(tableSize), mTableIndex(tableIndex), mCurrentIndex(0) {} in TableIterationState()
302 bool freeTable(const int tableIndex, const int entryCount);
314 const int tableIndex, const uint32_t bitmap, const int bitmapEntryIndex,
364 AK_FORCE_INLINE bool writeEmptyTableLink(const int tableIndex, const int entryCount) { in writeEmptyTableLink() argument
365 return mBuffer.writeUint(tableIndex, FIELD1_SIZE, (entryCount - 1) * FIELD1_SIZE); in writeEmptyTableLink()