Home
last modified time | relevance | path

Searched refs:isUpdatable (Results 1 – 18 of 18) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.cpp48 const bool isUpdatable = headerBuffer->isUpdatable(); in openVer4DictBuffers() local
49 return Ver4DictBuffersPtr(new Ver4DictBuffers(dictPath, std::move(headerBuffer), isUpdatable, in openVer4DictBuffers()
129 MmappedBuffer::MmappedBufferPtr headerBuffer, const bool isUpdatable, in Ver4DictBuffers() argument
133 Ver4DictConstants::TRIE_FILE_EXTENSION, isUpdatable)), in Ver4DictBuffers()
141 mTerminalPositionLookupTable(dictPath, isUpdatable), in Ver4DictBuffers()
142 mProbabilityDictContent(dictPath, mHeaderPolicy.hasHistoricalInfoOfWords(), isUpdatable), in Ver4DictBuffers()
143 mBigramDictContent(dictPath, mHeaderPolicy.hasHistoricalInfoOfWords(), isUpdatable), in Ver4DictBuffers()
144 mShortcutDictContent(dictPath, isUpdatable), in Ver4DictBuffers()
145 mIsUpdatable(isUpdatable) {} in Ver4DictBuffers()
Dver4_patricia_trie_policy.cpp268 if (!mBuffers->isUpdatable()) { in addUnigramEntry()
334 if (!mBuffers->isUpdatable()) { in removeUnigramEntry()
348 if (!mBuffers->isUpdatable()) { in addNgramEntry()
410 if (!mBuffers->isUpdatable()) { in removeNgramEntry()
452 if (!mBuffers->isUpdatable()) { in updateEntriesForWordWithNgramContext()
476 if (!mBuffers->isUpdatable()) { in flush()
489 if (!mBuffers->isUpdatable()) { in flushWithGC()
502 if (!mBuffers->isUpdatable()) { in needsToRunGC()
Dver4_dict_buffers.h118 AK_FORCE_INLINE bool isUpdatable() const { in isUpdatable() function
133 const MmappedBuffer::MmappedBufferPtr headerBuffer, const bool isUpdatable,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmmapped_buffer.h33 const int bufferOffset, const int bufferSize, const bool isUpdatable);
36 static MmappedBufferPtr openBuffer(const char *const path, const bool isUpdatable);
39 const bool isUpdatable);
51 AK_FORCE_INLINE bool isUpdatable() const { in isUpdatable() function
58 const bool isUpdatable) in MmappedBuffer() argument
60 mAlignedSize(alignedSize), mMmapFd(mmapFd), mIsUpdatable(isUpdatable) {} in MmappedBuffer()
63 AK_FORCE_INLINE MmappedBuffer(const bool isUpdatable) in MmappedBuffer() argument
65 mMmapFd(0), mIsUpdatable(isUpdatable) {} in MmappedBuffer()
Dmmapped_buffer.cpp32 const bool isUpdatable) { in openBuffer() argument
42 const int protMode = isUpdatable ? PROT_READ | PROT_WRITE : PROT_READ; in openBuffer()
57 mmapFd, isUpdatable)); in openBuffer()
61 const char *const path, const bool isUpdatable) { in openBuffer() argument
66 return MmappedBufferPtr(new MmappedBuffer(isUpdatable)); in openBuffer()
68 return openBuffer(path, 0 /* bufferOffset */, fileSize, isUpdatable); in openBuffer()
73 const char *const dirPath, const char *const fileName, const bool isUpdatable) { in openBuffer() argument
81 return openBuffer(filePath, isUpdatable); in openBuffer()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp41 const bool isUpdatable) { in newPolicyForExistingDictFile() argument
44 return newPolicyForDirectoryDict(path, isUpdatable); in newPolicyForExistingDictFile()
46 if (isUpdatable) { in newPolicyForExistingDictFile()
102 const char *const path, const bool isUpdatable) { in newPolicyForDirectoryDict() argument
109 MmappedBuffer::openBuffer(headerFilePath, isUpdatable); in newPolicyForDirectoryDict()
Ddictionary_structure_with_buffer_policy_factory.h34 const int size, const bool isUpdatable);
50 newPolicyForDirectoryDict(const char *const path, const bool isUpdatable);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp181 if (!mBuffers->isUpdatable()) { in addUnigramEntry()
248 if (!mBuffers->isUpdatable()) { in removeUnigramEntry()
273 if (!mBuffers->isUpdatable()) { in addNgramEntry()
336 if (!mBuffers->isUpdatable()) { in removeNgramEntry()
375 if (!mBuffers->isUpdatable()) { in updateEntriesForWordWithNgramContext()
431 if (!mBuffers->isUpdatable()) { in flush()
444 if (!mBuffers->isUpdatable()) { in flushWithGC()
457 if (!mBuffers->isUpdatable()) { in needsToRunGC()
Dver4_dict_buffers.cpp42 const bool isUpdatable = headerBuffer->isUpdatable(); in openVer4DictBuffers() local
44 Ver4DictConstants::BODY_FILE_EXTENSION, isUpdatable); in openVer4DictBuffers()
185 mIsUpdatable(mDictBuffer->isUpdatable()) {} in Ver4DictBuffers()
Dver4_dict_buffers.h98 AK_FORCE_INLINE bool isUpdatable() const { in isUpdatable() function
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dsparse_table_dict_content.h45 const char *const contentFileName, const bool isUpdatable, in SparseTableDictContent() argument
48 MmappedBuffer::openBuffer(dictPath, lookupTableFileName, isUpdatable)), in SparseTableDictContent()
50 MmappedBuffer::openBuffer(dictPath, addressTableFileName, isUpdatable)), in SparseTableDictContent()
52 MmappedBuffer::openBuffer(dictPath, contentFileName, isUpdatable)), in SparseTableDictContent()
Dterminal_position_lookup_table.h41 TerminalPositionLookupTable(const char *const dictPath, const bool isUpdatable) in TerminalPositionLookupTable() argument
43 Ver4DictConstants::TERMINAL_ADDRESS_TABLE_FILE_EXTENSION, isUpdatable), in TerminalPositionLookupTable()
Dprobability_dict_content.h42 const bool isUpdatable) in ProbabilityDictContent() argument
43 : SingleDictContent(dictPath, Ver4DictConstants::FREQ_FILE_EXTENSION, isUpdatable), in ProbabilityDictContent()
Dsingle_dict_content.h42 const bool isUpdatable) in SingleDictContent() argument
43 : mMmappedBuffer(MmappedBuffer::openBuffer(dictPath, contentFileName, isUpdatable)), in SingleDictContent()
Dshortcut_dict_content.h38 ShortcutDictContent(const char *const dictPath, const bool isUpdatable) in ShortcutDictContent() argument
42 Ver4DictConstants::SHORTCUT_FILE_EXTENSION, isUpdatable, in ShortcutDictContent()
Dbigram_dict_content.h40 const bool isUpdatable) in BigramDictContent() argument
44 Ver4DictConstants::BIGRAM_FILE_EXTENSION, isUpdatable, in BigramDictContent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java125 final boolean isUpdatable) { in BinaryDictionary() argument
129 mIsUpdatable = isUpdatable; in BinaryDictionary()
132 loadDictionary(filename, offset, length, isUpdatable); in BinaryDictionary()
170 boolean isUpdatable); in openNative() argument
222 final long length, final boolean isUpdatable) { in loadDictionary() argument
224 mNativeDict = openNative(path, startOffset, length, isUpdatable); in loadDictionary()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp46 jlong dictOffset, jlong dictSize, jboolean isUpdatable) { in latinime_BinaryDictionary_open() argument
60 isUpdatable == JNI_TRUE)); in latinime_BinaryDictionary_open()