Home
last modified time | relevance | path

Searched refs:entryCount (Results 1 – 6 of 6) 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()
232 int TrieMap::allocateTable(const int entryCount) { in allocateTable() argument
233 if (entryCount > 0 && entryCount <= MAX_NUM_OF_ENTRIES_IN_ONE_LEVEL) { in allocateTable()
234 const int tableIndex = readEmptyTableLink(entryCount); in allocateTable()
236 if (!writeEmptyTableLink(readField0(tableIndex), entryCount)) { in allocateTable()
245 if (!mBuffer.extend(entryCount * ENTRY_SIZE)) { in allocateTable()
401 const int entryCount = popCount(bitmap); in addNewEntryByExpandingTable() local
402 const int newTableIndex = allocateTable(entryCount + 1); in addNewEntryByExpandingTable()
[all …]
Dtrie_map.h302 bool freeTable(const int tableIndex, const int entryCount);
303 int allocateTable(const int entryCount);
360 AK_FORCE_INLINE int readEmptyTableLink(const int entryCount) const { in readEmptyTableLink() argument
361 return mBuffer.readUint(FIELD1_SIZE, (entryCount - 1) * FIELD1_SIZE); in readEmptyTableLink()
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()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DImportRequest.java97 public final int entryCount; field in ImportRequest
101 int vcardVersion, int entryCount) { in ImportRequest() argument
109 this.entryCount = entryCount; in ImportRequest()
DImportProcessor.java150 final int entryCount = request.entryCount; in runInternal() local
151 mTotalCount += entryCount; in runInternal()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_policy.cpp165 const int entryCount = HeaderReadWriteUtils::readIntAttributeValue(&mAttributeMap, in readNgramCounts() local
167 entryCounters.setNgramCount(ngramType, entryCount); in readNgramCounts()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp210 int entryCount = 0; in truncateEntries() local
212 maxEntryCounts.getNgramCount(ngramType), prevWordCount, &entryCount)) { in truncateEntries()
215 outEntryCounters->setNgramCount(ngramType, entryCount); in truncateEntries()