/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | format_utils.cpp | 28 /* static */ FormatUtils::FORMAT_VERSION FormatUtils::getFormatVersion(const int formatVersion) { argument 29 switch (formatVersion) {
|
H A D | format_utils.h | 50 static FORMAT_VERSION getFormatVersion(const int formatVersion);
|
H A D | dict_file_writing_utils.cpp | 45 const FormatUtils::FORMAT_VERSION formatVersion = FormatUtils::getFormatVersion(dictVersion); local 46 switch (formatVersion) { 51 filePath, localeAsCodePointVector, attributeMap, formatVersion); 56 filePath, localeAsCodePointVector, attributeMap, formatVersion); 68 const FormatUtils::FORMAT_VERSION formatVersion) { 69 HeaderPolicy headerPolicy(formatVersion, localeAsCodePointVector, attributeMap); 65 createEmptyV4DictFile(const char *const dirPath, const std::vector<int> localeAsCodePointVector, const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap, const FormatUtils::FORMAT_VERSION formatVersion) argument
|
H A D | dict_file_writing_utils.h | 52 const FormatUtils::FORMAT_VERSION formatVersion); 58 const FormatUtils::FORMAT_VERSION formatVersion);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
H A D | dictionary_structure_with_buffer_policy_factory.cpp | 57 const int formatVersion, const std::vector<int> &locale, 59 FormatUtils::FORMAT_VERSION dictFormatVersion = FormatUtils::getFormatVersion(formatVersion); 76 formatVersion); 85 const FormatUtils::FORMAT_VERSION formatVersion, 88 HeaderPolicy headerPolicy(formatVersion, locale, attributeMap); 113 const FormatUtils::FORMAT_VERSION formatVersion = FormatUtils::detectFormatVersion( local 115 switch (formatVersion) { 126 headerFilePath, formatVersion, std::move(mmappedBuffer)); 132 headerFilePath, formatVersion, std::move(mmappedBuffer)); 145 const char *const headerFilePath, const FormatUtils::FORMAT_VERSION formatVersion, 56 newPolicyForOnMemoryDict( const int formatVersion, const std::vector<int> &locale, const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) argument 84 newPolicyForOnMemoryV4Dict( const FormatUtils::FORMAT_VERSION formatVersion, const std::vector<int> &locale, const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) argument 144 newPolicyForV4Dict( const char *const headerFilePath, const FormatUtils::FORMAT_VERSION formatVersion, MmappedBuffer::MmappedBufferPtr &&mmappedBuffer) argument [all...] |
H A D | dictionary_structure_with_buffer_policy_factory.h | 37 newPolicyForOnMemoryDict(const int formatVersion, const std::vector<int> &locale, 45 newPolicyForOnMemoryV4Dict(const FormatUtils::FORMAT_VERSION formatVersion, 54 const char *const headerFilePath, const FormatUtils::FORMAT_VERSION formatVersion,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | WordListMetadata.java | 59 final int version, final int formatVersion, 72 mFormatVersion = formatVersion; 94 final Integer formatVersion = values.getAsInteger(MetadataDbHelper.FORMATVERSION_COLUMN); 106 || null == formatVersion 112 checksum, retryCount, localFilename, remoteFilename, version, formatVersion, 55 WordListMetadata(final String id, final int type, final String description, final long lastUpdate, final long fileSize, final String rawChecksum, final String checksum, final int retryCount, final String localFilename, final String remoteFilename, final int version, final int formatVersion, final int flags, final String locale) argument
|
H A D | MetadataDbHelper.java | 485 final long filesize, final int version, final int formatVersion) { 501 result.put(FORMATVERSION_COLUMN, formatVersion); 481 makeContentValues(final int pendingId, final int type, final int status, final String wordlistId, final String locale, final String description, final String filename, final String url, final long date, final String rawChecksum, final String checksum, final int retryCount, final long filesize, final int version, final int formatVersion) argument
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
H A D | ver4_dict_buffers.cpp | 41 const FormatUtils::FORMAT_VERSION formatVersion) { 50 formatVersion)); 130 const FormatUtils::FORMAT_VERSION formatVersion) 134 mHeaderPolicy(mHeaderBuffer->getReadOnlyByteArrayView().data(), formatVersion), 39 openVer4DictBuffers( const char *const dictPath, MmappedBuffer::MmappedBufferPtr headerBuffer, const FormatUtils::FORMAT_VERSION formatVersion) argument 128 Ver4DictBuffers(const char *const dictPath, MmappedBuffer::MmappedBufferPtr headerBuffer, const bool isUpdatable, const FormatUtils::FORMAT_VERSION formatVersion) argument
|
H A D | ver4_dict_buffers.h | 49 const FormatUtils::FORMAT_VERSION formatVersion); 134 const FormatUtils::FORMAT_VERSION formatVersion);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
H A D | ver4_dict_buffers.cpp | 35 const FormatUtils::FORMAT_VERSION formatVersion) { 66 formatVersion, buffers)); 172 const FormatUtils::FORMAT_VERSION formatVersion, 175 mHeaderPolicy(mHeaderBuffer->getReadOnlyByteArrayView().data(), formatVersion), 33 openVer4DictBuffers( const char *const dictPath, MmappedBuffer::MmappedBufferPtr &&headerBuffer, const FormatUtils::FORMAT_VERSION formatVersion) argument 170 Ver4DictBuffers(MmappedBuffer::MmappedBufferPtr &&headerBuffer, MmappedBuffer::MmappedBufferPtr &&bodyBuffer, const FormatUtils::FORMAT_VERSION formatVersion, const std::vector<ReadWriteByteArrayView> &contentBuffers) argument
|
H A D | ver4_dict_buffers.h | 40 const FormatUtils::FORMAT_VERSION formatVersion); 114 const FormatUtils::FORMAT_VERSION formatVersion,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
H A D | header_policy.h | 35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) argument 36 : mDictFormatVersion(formatVersion),
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | BinaryDictionaryTests.java | 64 private File createEmptyDictionaryAndGetFile(final int formatVersion) { argument 65 return createEmptyDictionaryWithAttributesAndGetFile(formatVersion, 69 private File createEmptyDictionaryWithAttributesAndGetFile(final int formatVersion, argument 72 final File dictFile = createEmptyVer4DictionaryAndGetFile(formatVersion, 82 private File createEmptyVer4DictionaryAndGetFile(final int formatVersion, argument 88 if (BinaryDictionaryUtils.createEmptyDictFile(file.getAbsolutePath(), formatVersion, 93 + " cannot be created. Format version: " + formatVersion); 102 private BinaryDictionary getEmptyBinaryDictionary(final int formatVersion) { argument 103 final File dictFile = createEmptyDictionaryAndGetFile(formatVersion);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | ExpandableBinaryDictionary.java | 117 static boolean matchesExpectedBinaryDictFormatVersionForThisType(final int formatVersion) { argument 118 return formatVersion == FormatSpec.VERSION4; 121 private static boolean needsToMigrateDictionary(final int formatVersion) { argument 124 return formatVersion == FormatSpec.VERSION402;
|
H A D | BinaryDictionary.java | 140 * @param formatVersion the format version of the dictionary 144 final Locale locale, final String dictType, final long formatVersion, 161 mNativeDict = createOnMemoryNative(formatVersion, locale.toString(), keyArray, valueArray); 171 private static native long createOnMemoryNative(long formatVersion, argument 143 BinaryDictionary(final String filename, final boolean useFullEditDistance, final Locale locale, final String dictType, final long formatVersion, final Map<String, String> attributeMap) argument
|
/packages/inputmethods/LatinIME/native/jni/ |
H A D | com_android_inputmethod_latin_BinaryDictionary.cpp | 72 jlong formatVersion, jstring locale, jobjectArray attributeKeyStringArray, 90 formatVersion, localeCodePoints, &attributeMap); 71 latinime_BinaryDictionary_createOnMemory(JNIEnv *env, jclass clazz, jlong formatVersion, jstring locale, jobjectArray attributeKeyStringArray, jobjectArray attributeValueStringArray) argument
|