Home
last modified time | relevance | path

Searched refs:writingPos (Results 1 – 22 of 22) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dprobability_dict_content.cpp70 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 …]
Dbigram_dict_content.cpp130 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()
Dbigram_dict_content.h71 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()
Dshortcut_dict_content.cpp118 int writingPos = toPos; in copyShortcutListFromDictContent() local
126 hasNext, &writingPos)) { in copyShortcutListFromDictContent()
127 AKLOGE("Cannot write shortcut entry to copy. pos: %d", writingPos); in copyShortcutListFromDictContent()
Dshortcut_dict_content.h78 int writingPos = shortcutEntryPos; in writeShortcutEntry() local
80 hasNext, &writingPos); in writeShortcutEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp147 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 …]
Ddynamic_pt_gc_event_listeners.cpp83 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()
Ddynamic_pt_writing_utils.cpp40 int writingPos = rootPos; in writeEmptyDictionary() local
41 if (!writePtNodeArraySizeAndAdvancePosition(buffer, 0 /* arraySize */, &writingPos)) { in writeEmptyDictionary()
45 &writingPos); in writeEmptyDictionary()
Ddynamic_pt_writing_utils.h45 int writingPos = nodeFlagsFieldPos; in writeFlags() local
46 return writeFlagsAndAdvancePosition(buffer, nodeFlags, &writingPos); in writeFlags()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_read_write_utils.cpp106 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()
Dheader_policy.cpp97 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()
Dheader_read_write_utils.h53 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/
Dver4_patricia_trie_node_writer.cpp49 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/
Dver4_shortcut_list_policy.h65 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/
Dver4_shortcut_list_policy.h75 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/
Dver4_patricia_trie_node_writer.cpp59 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/
Dsparse_table.cpp76 int writingPos = getPosInContentTable(0 /* id */, index); in set() local
79 &writingPos)) { in set()
81 "mDataSize: %d", writingPos, mContentTableBuffer->getTailPosition(), mDataSize); in set()
Ddict_file_writing_utils.cpp93 int writingPos = 0; in writeBufferToFileTail() local
95 SIZE_OF_BUFFER_SIZE_FIELD, &writingPos); in writeBufferToFileTail()
Dbuffer_with_extendable_buffer.cpp59 int writingPos = pos; in writeUint() local
60 return writeUintAndAdvancePosition(data, size, &writingPos); in writeUint()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dshortcut_dict_content.cpp103 int writingPos = toPos; in copyShortcutListFromDictContent() local
111 hasNext, &writingPos)) { in copyShortcutListFromDictContent()
112 AKLOGE("Cannot write shortcut entry to copy. pos: %d", writingPos); in copyShortcutListFromDictContent()
Dshortcut_dict_content.h71 int writingPos = shortcutEntryPos; in writeShortcutEntry() local
73 hasNext, &writingPos); in writeShortcutEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp84 const int writingPos = mBigramDictContent->getBigramListHeadPos(terminalId); in addNewEntry() local
85 if (!mBigramDictContent->writeBigramEntry(&bigramEntryToWrite, writingPos)) { in addNewEntry()