/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | probability_dict_content.cpp | 70 int writingPos = getBuffer()->getTailPosition(); in setProbabilityEntry() local 71 while (writingPos <= entryPos) { in setProbabilityEntry() 73 if (!writeEntry(&placeholderEntry, writingPos)) { in setProbabilityEntry() 75 writingPos, in setProbabilityEntry() 79 writingPos += getEntrySize(); in setProbabilityEntry() 138 int writingPos = entryPos; in writeEntry() local 140 Ver4DictConstants::FLAGS_IN_PROBABILITY_FILE_SIZE, &writingPos)) { in writeEntry() 141 AKLOGE("Cannot write flags in probability dict content. pos: %d", writingPos); in writeEntry() 145 Ver4DictConstants::PROBABILITY_SIZE, &writingPos)) { in writeEntry() 146 AKLOGE("Cannot write probability in probability dict content. pos: %d", writingPos); in writeEntry() [all …]
|
D | bigram_dict_content.cpp | 130 int writingPos = toPos; in copyBigramList() local 136 *outTailEntryPos = writingPos; in copyBigramList() 138 if (!writeBigramEntryAndAdvancePosition(&bigramEntry, &writingPos)) { in copyBigramList() 139 AKLOGE("Cannot write bigram entry to copy. pos: %d", writingPos); in copyBigramList() 188 int writingPos = toPos; in runGCBigramList() local 203 lastEntryPos = hasNext ? writingPos : NOT_A_DICT_POS; in runGCBigramList() 206 if (!writeBigramEntryAndAdvancePosition(&updatedBigramEntry, &writingPos)) { in runGCBigramList() 207 AKLOGE("Cannot write bigram entry to run GC. pos: %d", writingPos); in runGCBigramList() 217 AKLOGE("Cannot write bigram entry to set hasNext flag after GC. pos: %d", writingPos); in runGCBigramList()
|
D | bigram_dict_content.h | 71 int writingPos = getContentBuffer()->getTailPosition(); in writeBigramEntryAtTail() local 72 return writeBigramEntryAndAdvancePosition(bigramEntryToWrite, &writingPos); in writeBigramEntryAtTail() 76 int writingPos = entryWritingPos; in writeBigramEntry() local 77 return writeBigramEntryAndAdvancePosition(bigramEntryToWrite, &writingPos); in writeBigramEntry()
|
D | shortcut_dict_content.cpp | 118 int writingPos = toPos; in copyShortcutListFromDictContent() local 126 hasNext, &writingPos)) { in copyShortcutListFromDictContent() 127 AKLOGE("Cannot write shortcut entry to copy. pos: %d", writingPos); in copyShortcutListFromDictContent()
|
D | shortcut_dict_content.h | 78 int writingPos = shortcutEntryPos; in writeShortcutEntry() local 80 hasNext, &writingPos); in writeShortcutEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 147 int writingPos = movedPos; in setPtNodeProbability() local 153 unigramProperty, &writingPos)) { in setPtNodeProbability() 177 int writingPos = mBuffer->getTailPosition(); in createNewPtNodeArrayWithAChildPtNode() local 179 1 /* arraySize */, &writingPos)) { in createNewPtNodeArrayWithAChildPtNode() 187 unigramProperty, &writingPos)) { in createNewPtNodeArrayWithAChildPtNode() 191 NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in createNewPtNodeArrayWithAChildPtNode() 211 int writingPos = firstPartOfReallocatedPtNodePos; in reallocatePtNodeAndAddNewPtNodes() local 221 if (!mPtNodeWriter->writePtNodeAndAdvancePosition(&ptNodeParamsToWrite, &writingPos)) { in reallocatePtNodeAndAddNewPtNodes() 230 unigramProperty, &writingPos)) { in reallocatePtNodeAndAddNewPtNodes() 234 const int actualChildrenPos = writingPos; in reallocatePtNodeAndAddNewPtNodes() [all …]
|
D | dynamic_pt_gc_event_listeners.cpp | 83 int writingPos = mBufferToWrite->getTailPosition(); in onDescend() local 85 PtNodeWriter::PtNodeArrayPositionRelocationMap::value_type(ptNodeArrayPos, writingPos)); in onDescend() 88 mPtNodeArraySizeFieldPos = writingPos; in onDescend() 90 mBufferToWrite, 0 /* arraySize */, &writingPos); in onDescend() 96 int writingPos = mBufferToWrite->getTailPosition(); in onReadingPtNodeArrayTail() local 99 mBufferToWrite, NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in onReadingPtNodeArrayTail() 120 int writingPos = mBufferToWrite->getTailPosition(); in onVisitingPtNode() local 123 ptNodeParams->getHeadPos(), writingPos)); in onVisitingPtNode() 126 return mPtNodeWriter->writePtNodeAndAdvancePosition(ptNodeParams, &writingPos); in onVisitingPtNode()
|
D | dynamic_pt_writing_utils.cpp | 40 int writingPos = rootPos; in writeEmptyDictionary() local 41 if (!writePtNodeArraySizeAndAdvancePosition(buffer, 0 /* arraySize */, &writingPos)) { in writeEmptyDictionary() 45 &writingPos); in writeEmptyDictionary()
|
D | dynamic_pt_writing_utils.h | 45 int writingPos = nodeFlagsFieldPos; in writeFlags() local 46 return writeFlagsAndAdvancePosition(buffer, nodeFlags, &writingPos); in writeFlags()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_read_write_utils.cpp | 106 int *const writingPos) { in writeDictionaryVersion() argument 108 writingPos)) { in writeDictionaryVersion() 121 HEADER_DICTIONARY_VERSION_SIZE, writingPos); in writeDictionaryVersion() 129 int *const writingPos) { in writeDictionaryFlags() argument 130 return buffer->writeUintAndAdvancePosition(flags, HEADER_FLAG_SIZE, writingPos); in writeDictionaryFlags() 134 BufferWithExtendableBuffer *const buffer, const int size, int *const writingPos) { in writeDictionaryHeaderSize() argument 135 return buffer->writeUintAndAdvancePosition(size, HEADER_SIZE_FIELD_SIZE, writingPos); in writeDictionaryHeaderSize() 140 int *const writingPos) { in writeHeaderAttributes() argument 148 true /* writesTerminator */, writingPos)) { in writeHeaderAttributes() 153 true /* writesTerminator */, writingPos)) { in writeHeaderAttributes()
|
D | header_policy.cpp | 97 int writingPos = 0; in fillInAndWriteHeaderToBuffer() local 101 &writingPos)) { in fillInAndWriteHeaderToBuffer() 105 &writingPos)) { in fillInAndWriteHeaderToBuffer() 109 int headerSizeFieldPos = writingPos; in fillInAndWriteHeaderToBuffer() 111 &writingPos)) { in fillInAndWriteHeaderToBuffer() 115 &writingPos)) { in fillInAndWriteHeaderToBuffer() 119 if (!HeaderReadWriteUtils::writeDictionaryHeaderSize(outBuffer, writingPos, in fillInAndWriteHeaderToBuffer()
|
D | header_read_write_utils.h | 53 const FormatUtils::FORMAT_VERSION version, int *const writingPos); 56 const DictionaryFlags flags, int *const writingPos); 59 const int size, int *const writingPos); 63 int *const writingPos);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_node_writer.cpp | 49 int writingPos = toBeUpdatedPtNodeParams->getHeadPos(); in markPtNodeAsDeleted() local 52 &writingPos)) { in markPtNodeAsDeleted() 80 int writingPos = toBeUpdatedPtNodeParams->getHeadPos(); in markPtNodeAsMoved() local 83 &writingPos)) { in markPtNodeAsMoved() 88 mTrieBuffer, movedPos, toBeUpdatedPtNodeParams->getHeadPos(), &writingPos)) { in markPtNodeAsMoved() 132 int writingPos = toBeUpdatedPtNodeParams->getHeadPos(); in markPtNodeAsWillBecomeNonTerminal() local 134 &writingPos); in markPtNodeAsWillBecomeNonTerminal() 251 int writingPos = toBeUpdatedPtNodeParams->getHeadPos() in updateAllPositionFields() local 255 parentPos, toBeUpdatedPtNodeParams->getHeadPos(), &writingPos)) { in updateAllPositionFields()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/shortcut/ |
D | ver4_shortcut_list_policy.h | 65 const int writingPos = mShortcutDictContent->getShortcutListHeadPos(terminalId); in addNewShortcut() local 67 false /* hasNext */, writingPos); in addNewShortcut() 78 int writingPos = mShortcutDictContent->getShortcutListHeadPos(terminalId); in addNewShortcut() local 80 codePointCount, probability, true /* hasNext */, &writingPos)) { in addNewShortcut() 82 writingPos); in addNewShortcut() 85 return mShortcutDictContent->copyShortcutList(shortcutListPos, writingPos); in addNewShortcut()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/shortcut/ |
D | ver4_shortcut_list_policy.h | 75 const int writingPos = mShortcutDictContent->getShortcutListHeadPos(terminalId); in addNewShortcut() local 77 false /* hasNext */, writingPos); in addNewShortcut() 88 int writingPos = mShortcutDictContent->getShortcutListHeadPos(terminalId); in addNewShortcut() local 90 codePointCount, probability, true /* hasNext */, &writingPos)) { in addNewShortcut() 92 writingPos); in addNewShortcut() 95 return mShortcutDictContent->copyShortcutList(shortcutListPos, writingPos); in addNewShortcut()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_node_writer.cpp | 59 int writingPos = toBeUpdatedPtNodeParams->getHeadPos(); in markPtNodeAsDeleted() local 62 &writingPos)) { in markPtNodeAsDeleted() 89 int writingPos = toBeUpdatedPtNodeParams->getHeadPos(); in markPtNodeAsMoved() local 92 &writingPos)) { in markPtNodeAsMoved() 97 mTrieBuffer, movedPos, toBeUpdatedPtNodeParams->getHeadPos(), &writingPos)) { in markPtNodeAsMoved() 141 int writingPos = toBeUpdatedPtNodeParams->getHeadPos(); in markPtNodeAsWillBecomeNonTerminal() local 143 &writingPos); in markPtNodeAsWillBecomeNonTerminal() 279 int writingPos = toBeUpdatedPtNodeParams->getHeadPos() in updateAllPositionFields() local 283 parentPos, toBeUpdatedPtNodeParams->getHeadPos(), &writingPos)) { in updateAllPositionFields()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | sparse_table.cpp | 76 int writingPos = getPosInContentTable(0 /* id */, index); in set() local 79 &writingPos)) { in set() 81 "mDataSize: %d", writingPos, mContentTableBuffer->getTailPosition(), mDataSize); in set()
|
D | dict_file_writing_utils.cpp | 93 int writingPos = 0; in writeBufferToFileTail() local 95 SIZE_OF_BUFFER_SIZE_FIELD, &writingPos); in writeBufferToFileTail()
|
D | buffer_with_extendable_buffer.cpp | 59 int writingPos = pos; in writeUint() local 60 return writeUintAndAdvancePosition(data, size, &writingPos); in writeUint()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | shortcut_dict_content.cpp | 103 int writingPos = toPos; in copyShortcutListFromDictContent() local 111 hasNext, &writingPos)) { in copyShortcutListFromDictContent() 112 AKLOGE("Cannot write shortcut entry to copy. pos: %d", writingPos); in copyShortcutListFromDictContent()
|
D | shortcut_dict_content.h | 71 int writingPos = shortcutEntryPos; in writeShortcutEntry() local 73 hasNext, &writingPos); in writeShortcutEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 84 const int writingPos = mBigramDictContent->getBigramListHeadPos(terminalId); in addNewEntry() local 85 if (!mBigramDictContent->writeBigramEntry(&bigramEntryToWrite, writingPos)) { in addNewEntry()
|