/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
ver4_dict_constants.cpp | 31 const char *const Ver4DictConstants::TRIE_FILE_EXTENSION = ".trie"; 32 const char *const Ver4DictConstants::HEADER_FILE_EXTENSION = ".header"; 33 const char *const Ver4DictConstants::FREQ_FILE_EXTENSION = ".freq"; 35 const char *const Ver4DictConstants::TERMINAL_ADDRESS_TABLE_FILE_EXTENSION = ".tat"; 36 const char *const Ver4DictConstants::BIGRAM_FILE_EXTENSION = ".bigram_freq"; 37 const char *const Ver4DictConstants::BIGRAM_LOOKUP_TABLE_FILE_EXTENSION = ".bigram_lookup"; 38 const char *const Ver4DictConstants::BIGRAM_CONTENT_TABLE_FILE_EXTENSION = ".bigram_index_freq"; 39 const char *const Ver4DictConstants::SHORTCUT_FILE_EXTENSION = ".shortcut_shortcut"; 40 const char *const Ver4DictConstants::SHORTCUT_LOOKUP_TABLE_FILE_EXTENSION = ".shortcut_lookup"; 41 const char *const Ver4DictConstants::SHORTCUT_CONTENT_TABLE_FILE_EXTENSION [all...] |
ver4_dict_constants.h | 35 class Ver4DictConstants { 79 DISALLOW_IMPLICIT_CONSTRUCTORS(Ver4DictConstants);
|
ver4_dict_buffers.cpp | 84 Ver4DictConstants::HEADER_FILE_EXTENSION, headerBuffer)) { 86 Ver4DictConstants::HEADER_FILE_EXTENSION); 91 Ver4DictConstants::TRIE_FILE_EXTENSION, &mExpandableTrieBuffer)) { 93 Ver4DictConstants::TRIE_FILE_EXTENSION); 133 Ver4DictConstants::TRIE_FILE_EXTENSION, isUpdatable)), 149 mExpandableHeaderBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE),
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
ver4_dict_constants.cpp | 21 const char *const Ver4DictConstants::BODY_FILE_EXTENSION = ".body"; 22 const char *const Ver4DictConstants::HEADER_FILE_EXTENSION = ".header"; 25 const int Ver4DictConstants::MAX_DICTIONARY_SIZE = 8 * 1024 * 1024; 28 const int Ver4DictConstants::MAX_DICT_EXTENDED_REGION_SIZE = 1 * 1024 * 1024; 33 const size_t Ver4DictConstants::NUM_OF_CONTENT_BUFFERS_IN_BODY_FILE = 37 const int Ver4DictConstants::TRIE_BUFFER_INDEX = 0; 38 const int Ver4DictConstants::TERMINAL_ADDRESS_LOOKUP_TABLE_BUFFER_INDEX = 40 const int Ver4DictConstants::LANGUAGE_MODEL_BUFFER_INDEX = 42 const int Ver4DictConstants::BIGRAM_BUFFERS_INDEX = 44 const int Ver4DictConstants::SHORTCUT_BUFFERS_INDEX [all...] |
ver4_dict_constants.h | 28 class Ver4DictConstants { 70 DISALLOW_IMPLICIT_CONSTRUCTORS(Ver4DictConstants);
|
ver4_dict_buffers.cpp | 44 Ver4DictConstants::BODY_FILE_EXTENSION, isUpdatable); 64 if (buffers.size() != Ver4DictConstants::NUM_OF_CONTENT_BUFFERS_IN_BODY_FILE) { 103 Ver4DictConstants::HEADER_FILE_EXTENSION, headerBuffer)) { 105 Ver4DictConstants::HEADER_FILE_EXTENSION); 111 Ver4DictConstants::BODY_FILE_EXTENSION); 113 FileUtils::getFilePathWithSuffix(dictPath, Ver4DictConstants::BODY_FILE_EXTENSION, 187 ReadWriteByteArrayView(contentBuffers[Ver4DictConstants::TRIE_BUFFER_INDEX], 188 contentBufferSizes[Ver4DictConstants::TRIE_BUFFER_INDEX]), 191 contentBuffers[Ver4DictConstants::TERMINAL_ADDRESS_LOOKUP_TABLE_BUFFER_INDEX], 193 Ver4DictConstants::TERMINAL_ADDRESS_LOOKUP_TABLE_BUFFER_INDEX]) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/content/ |
bigram_dict_content.h | 42 Ver4DictConstants::BIGRAM_LOOKUP_TABLE_FILE_EXTENSION, 43 Ver4DictConstants::BIGRAM_CONTENT_TABLE_FILE_EXTENSION, 44 Ver4DictConstants::BIGRAM_FILE_EXTENSION, isUpdatable, 45 Ver4DictConstants::BIGRAM_ADDRESS_TABLE_BLOCK_SIZE, 46 Ver4DictConstants::BIGRAM_ADDRESS_TABLE_DATA_SIZE), 50 : SparseTableDictContent(Ver4DictConstants::BIGRAM_ADDRESS_TABLE_BLOCK_SIZE, 51 Ver4DictConstants::BIGRAM_ADDRESS_TABLE_DATA_SIZE), 91 return flush(dictPath, Ver4DictConstants::BIGRAM_LOOKUP_TABLE_FILE_EXTENSION, 92 Ver4DictConstants::BIGRAM_CONTENT_TABLE_FILE_EXTENSION, 93 Ver4DictConstants::BIGRAM_FILE_EXTENSION) [all...] |
terminal_position_lookup_table.cpp | 38 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(terminalId)); 39 return (terminalPos == Ver4DictConstants::NOT_A_TERMINAL_ADDRESS) ? 50 if (!getWritableBuffer()->writeUint(Ver4DictConstants::NOT_A_TERMINAL_ADDRESS, 51 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) { 57 terminalPtNodePos : Ver4DictConstants::NOT_A_TERMINAL_ADDRESS; 59 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(terminalId)); 76 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_FILE_EXTENSION); 80 return flush(dictPath, Ver4DictConstants::TERMINAL_ADDRESS_TABLE_FILE_EXTENSION); 89 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(i)); 90 if (terminalPos == Ver4DictConstants::NOT_A_TERMINAL_ADDRESS) [all...] |
probability_dict_content.cpp | 43 Ver4DictConstants::FLAGS_IN_PROBABILITY_FILE_SIZE, &entryPos); 45 Ver4DictConstants::PROBABILITY_SIZE, &entryPos); 48 Ver4DictConstants::TIME_STAMP_FIELD_SIZE, &entryPos); 50 Ver4DictConstants::WORD_LEVEL_FIELD_SIZE, &entryPos); 52 Ver4DictConstants::WORD_COUNT_FIELD_SIZE, &entryPos); 94 Ver4DictConstants::FREQ_FILE_EXTENSION); 96 return flush(dictPath, Ver4DictConstants::FREQ_FILE_EXTENSION); 119 return Ver4DictConstants::FLAGS_IN_PROBABILITY_FILE_SIZE 120 + Ver4DictConstants::PROBABILITY_SIZE 121 + Ver4DictConstants::TIME_STAMP_FIELD_SIZ [all...] |
shortcut_dict_content.h | 40 Ver4DictConstants::SHORTCUT_LOOKUP_TABLE_FILE_EXTENSION, 41 Ver4DictConstants::SHORTCUT_CONTENT_TABLE_FILE_EXTENSION, 42 Ver4DictConstants::SHORTCUT_FILE_EXTENSION, isUpdatable, 43 Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE, 44 Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_DATA_SIZE) {} 47 : SparseTableDictContent(Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE, 48 Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_DATA_SIZE) {}
|
terminal_position_lookup_table.h | 43 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_FILE_EXTENSION, isUpdatable), 45 / Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE) {} 65 return terminalId * Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE;
|
bigram_dict_content.cpp | 42 Ver4DictConstants::NOT_A_TERMINAL_ID); 45 Ver4DictConstants::BIGRAM_FLAGS_FIELD_SIZE, bigramEntryPos); 46 const bool hasNext = (bigramFlags & Ver4DictConstants::BIGRAM_HAS_NEXT_MASK) != 0; 53 Ver4DictConstants::TIME_STAMP_FIELD_SIZE, bigramEntryPos); 55 Ver4DictConstants::WORD_LEVEL_FIELD_SIZE, bigramEntryPos); 57 Ver4DictConstants::WORD_COUNT_FIELD_SIZE, bigramEntryPos); 60 Ver4DictConstants::PROBABILITY_SIZE, bigramEntryPos); 63 Ver4DictConstants::BIGRAM_TARGET_TERMINAL_ID_FIELD_SIZE, bigramEntryPos); 65 (encodedTargetTerminalId == Ver4DictConstants::INVALID_BIGRAM_TARGET_TERMINAL_ID) ? 66 Ver4DictConstants::NOT_A_TERMINAL_ID : encodedTargetTerminalId [all...] |
shortcut_dict_content.cpp | 50 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos); 52 *outProbability = shortcutFlags & Ver4DictConstants::SHORTCUT_PROBABILITY_MASK; 55 *outhasNext = shortcutFlags & Ver4DictConstants::SHORTCUT_HAS_NEXT_MASK; 72 return flush(dictPath, Ver4DictConstants::SHORTCUT_LOOKUP_TABLE_FILE_EXTENSION, 73 Ver4DictConstants::SHORTCUT_CONTENT_TABLE_FILE_EXTENSION, 74 Ver4DictConstants::SHORTCUT_FILE_EXTENSION); 137 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos); 138 const bool hasNext = shortcutFlags & Ver4DictConstants::SHORTCUT_HAS_NEXT_MASK; 141 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos); 150 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos)) [all...] |
sparse_table_dict_content.h | 71 mExpandableLookupTableBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE), 72 mExpandableAddressTableBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE), 73 mExpandableContentBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE),
|
probability_dict_content.h | 43 : SingleDictContent(dictPath, Ver4DictConstants::FREQ_FILE_EXTENSION, isUpdatable),
|
bigram_entry.h | 53 return updateTargetTerminalIdAndGetEntry(Ver4DictConstants::NOT_A_TERMINAL_ID); 74 return mTargetTerminalId != Ver4DictConstants::NOT_A_TERMINAL_ID;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/ |
probability_entry.h | 76 encodedEntry = (encodedEntry << (Ver4DictConstants::TIME_STAMP_FIELD_SIZE * CHAR_BIT)) 78 encodedEntry = (encodedEntry << (Ver4DictConstants::WORD_LEVEL_FIELD_SIZE * CHAR_BIT)) 80 encodedEntry = (encodedEntry << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) 83 encodedEntry = (encodedEntry << (Ver4DictConstants::PROBABILITY_SIZE * CHAR_BIT)) 92 Ver4DictConstants::FLAGS_IN_PROBABILITY_FILE_SIZE, 93 Ver4DictConstants::TIME_STAMP_FIELD_SIZE 94 + Ver4DictConstants::WORD_LEVEL_FIELD_SIZE 95 + Ver4DictConstants::WORD_COUNT_FIELD_SIZE); 97 Ver4DictConstants::TIME_STAMP_FIELD_SIZE, 98 Ver4DictConstants::WORD_LEVEL_FIELD_SIZ [all...] |
bigram_dict_content.h | 35 Ver4DictConstants::BIGRAM_ADDRESS_TABLE_BLOCK_SIZE, 36 Ver4DictConstants::BIGRAM_ADDRESS_TABLE_DATA_SIZE), 40 : SparseTableDictContent(Ver4DictConstants::BIGRAM_ADDRESS_TABLE_BLOCK_SIZE, 41 Ver4DictConstants::BIGRAM_ADDRESS_TABLE_DATA_SIZE), 99 return Ver4DictConstants::BIGRAM_FLAGS_FIELD_SIZE 100 + Ver4DictConstants::TIME_STAMP_FIELD_SIZE 101 + Ver4DictConstants::WORD_LEVEL_FIELD_SIZE 102 + Ver4DictConstants::WORD_COUNT_FIELD_SIZE 103 + Ver4DictConstants::BIGRAM_TARGET_TERMINAL_ID_FIELD_SIZE; 105 return Ver4DictConstants::BIGRAM_FLAGS_FIELD_SIZ [all...] |
terminal_position_lookup_table.cpp | 29 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(terminalId)); 30 return (terminalPos == Ver4DictConstants::NOT_A_TERMINAL_ADDRESS) ? 41 if (!getWritableBuffer()->writeUint(Ver4DictConstants::NOT_A_TERMINAL_ADDRESS, 42 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(mSize))) { 48 terminalPtNodePos : Ver4DictConstants::NOT_A_TERMINAL_ADDRESS; 50 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(terminalId)); 79 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE, getEntryPos(i)); 80 if (terminalPos == Ver4DictConstants::NOT_A_TERMINAL_ADDRESS) { 86 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE,
|
bigram_dict_content.cpp | 23 const int BigramDictContent::INVALID_LINKED_ENTRY_POS = Ver4DictConstants::NOT_A_TERMINAL_ID; 35 Ver4DictConstants::NOT_A_TERMINAL_ID); 38 Ver4DictConstants::BIGRAM_FLAGS_FIELD_SIZE, bigramEntryPos); 39 const bool isLink = (bigramFlags & Ver4DictConstants::BIGRAM_IS_LINK_MASK) != 0; 46 Ver4DictConstants::TIME_STAMP_FIELD_SIZE, bigramEntryPos); 48 Ver4DictConstants::WORD_LEVEL_FIELD_SIZE, bigramEntryPos); 50 Ver4DictConstants::WORD_COUNT_FIELD_SIZE, bigramEntryPos); 53 Ver4DictConstants::PROBABILITY_SIZE, bigramEntryPos); 56 Ver4DictConstants::BIGRAM_TARGET_TERMINAL_ID_FIELD_SIZE, bigramEntryPos); 58 (encodedTargetTerminalId == Ver4DictConstants::INVALID_BIGRAM_TARGET_TERMINAL_ID) [all...] |
terminal_position_lookup_table.h | 37 / Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE) {} 57 return terminalId * Ver4DictConstants::TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE;
|
shortcut_dict_content.h | 34 Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE, 35 Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_DATA_SIZE) {} 38 : SparseTableDictContent(Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE, 39 Ver4DictConstants::SHORTCUT_ADDRESS_TABLE_DATA_SIZE) {}
|
shortcut_dict_content.cpp | 41 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos); 43 *outProbability = shortcutFlags & Ver4DictConstants::SHORTCUT_PROBABILITY_MASK; 46 *outhasNext = shortcutFlags & Ver4DictConstants::SHORTCUT_HAS_NEXT_MASK; 122 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos); 123 const bool hasNext = shortcutFlags & Ver4DictConstants::SHORTCUT_HAS_NEXT_MASK; 126 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos); 135 Ver4DictConstants::SHORTCUT_FLAGS_FIELD_SIZE, shortcutEntryPos)) { 178 return (probability & Ver4DictConstants::SHORTCUT_PROBABILITY_MASK) 179 | (hasNext ? Ver4DictConstants::SHORTCUT_HAS_NEXT_MASK : 0);
|
single_dict_content.h | 38 : mExpandableContentBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE) {}
|
sparse_table_dict_content.h | 52 : mExpandableLookupTableBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE), 53 mExpandableAddressTableBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE), 54 mExpandableContentBuffer(Ver4DictConstants::MAX_DICTIONARY_SIZE),
|