Home
last modified time | relevance | path

Searched refs:isUpdatable (Results 1 – 23 of 23) 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/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/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/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/modules/NeuralNetworks/runtime/
DManager.cpp66 static std::shared_ptr<DriverDevice> create(SharedDevice device, bool isUpdatable = false);
69 explicit DriverDevice(SharedDevice device, bool isUpdatable);
75 bool isUpdatable() const override { return kIsUpdatable; } in isUpdatable() function in android::nn::DriverDevice
225 DriverDevice::DriverDevice(SharedDevice device, bool isUpdatable) in DriverDevice() argument
226 : kInterface(std::move(device)), kIsUpdatable(isUpdatable) { in DriverDevice()
236 std::shared_ptr<DriverDevice> DriverDevice::create(SharedDevice device, bool isUpdatable) { in create() argument
242 return std::make_shared<DriverDevice>(std::move(device), isUpdatable); in create()
840 bool isUpdatable() const override { return false; } in isUpdatable() function in android::nn::CpuDevice
DExecutionBuilder.cpp1105 static bool isUpdatable(const std::vector<uint32_t>& to, const std::vector<uint32_t>& from) { in isUpdatable() function
1131 NN_RET_CHECK(isUpdatable(mOutputs[i].dimensions(), outputShapes[i].dimensions)); in updateOutputShapes()
1216 NN_RET_CHECK(isUpdatable(to->at(toIndex).dimensions, from[i].dimensions)); in updateOutputShapes()
1249 NN_RET_CHECK(isUpdatable(*loc->dimensions, from[i].dimensions)); in updateOutputShapes()
1306 NN_RET_CHECK(isUpdatable(to->at(i).dimensions, from[i].dimensions)); in updateOutputShapes()
1390 CHECK(isUpdatable(inputOrOutputInfo->dimensions(), dimensions)); in setInputOrOutputFromMemory()
DManager.h134 virtual bool isUpdatable() const = 0;
DExecutionPlan.cpp2522 const bool isUpdatable = device->isUpdatable(); in findBestDeviceForEachOperation() local
2524 (isUpdatable && !bestIsUpdatable)); in findBestDeviceForEachOperation()
2529 bestIsUpdatable = isUpdatable; in findBestDeviceForEachOperation()
DNeuralNetworks.cpp1199 [](const auto& driver) { return !driver->isUpdatable(); }); in ANeuralNetworksCompilation_create()
/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()