Home
last modified time | relevance | path

Searched refs:formatVersion (Results 1 – 17 of 17) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp57 const int formatVersion, const std::vector<int> &locale, in newPolicyForOnMemoryDict() argument
59 FormatUtils::FORMAT_VERSION dictFormatVersion = FormatUtils::getFormatVersion(formatVersion); in newPolicyForOnMemoryDict()
76 formatVersion); in newPolicyForOnMemoryDict()
85 const FormatUtils::FORMAT_VERSION formatVersion, in newPolicyForOnMemoryV4Dict() argument
88 HeaderPolicy headerPolicy(formatVersion, locale, attributeMap); in newPolicyForOnMemoryV4Dict()
113 const FormatUtils::FORMAT_VERSION formatVersion = FormatUtils::detectFormatVersion( in newPolicyForDirectoryDict() local
115 switch (formatVersion) { in newPolicyForDirectoryDict()
126 headerFilePath, formatVersion, std::move(mmappedBuffer)); in newPolicyForDirectoryDict()
132 headerFilePath, formatVersion, std::move(mmappedBuffer)); in newPolicyForDirectoryDict()
145 const char *const headerFilePath, const FormatUtils::FORMAT_VERSION formatVersion, in newPolicyForV4Dict() argument
[all …]
Ddictionary_structure_with_buffer_policy_factory.h37 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/native/jni/src/dictionary/utils/
Ddict_file_writing_utils.cpp45 const FormatUtils::FORMAT_VERSION formatVersion = FormatUtils::getFormatVersion(dictVersion); in createEmptyDictFile() local
46 switch (formatVersion) { in createEmptyDictFile()
51 filePath, localeAsCodePointVector, attributeMap, formatVersion); in createEmptyDictFile()
56 filePath, localeAsCodePointVector, attributeMap, formatVersion); in createEmptyDictFile()
68 const FormatUtils::FORMAT_VERSION formatVersion) { in createEmptyV4DictFile() argument
69 HeaderPolicy headerPolicy(formatVersion, localeAsCodePointVector, attributeMap); in createEmptyV4DictFile()
Dformat_utils.cpp28 /* static */ FormatUtils::FORMAT_VERSION FormatUtils::getFormatVersion(const int formatVersion) { in getFormatVersion() argument
29 switch (formatVersion) { in getFormatVersion()
Ddict_file_writing_utils.h52 const FormatUtils::FORMAT_VERSION formatVersion);
58 const FormatUtils::FORMAT_VERSION formatVersion);
Dformat_utils.h50 static FORMAT_VERSION getFormatVersion(const int formatVersion);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DWordListMetadata.java59 final int version, final int formatVersion, in WordListMetadata() argument
72 mFormatVersion = formatVersion; in WordListMetadata()
94 final Integer formatVersion = values.getAsInteger(MetadataDbHelper.FORMATVERSION_COLUMN); in createFromContentValues() local
106 || null == formatVersion in createFromContentValues()
112 checksum, retryCount, localFilename, remoteFilename, version, formatVersion, in createFromContentValues()
DMetadataDbHelper.java485 final long filesize, final int version, final int formatVersion) { in makeContentValues() argument
501 result.put(FORMATVERSION_COLUMN, formatVersion); in makeContentValues()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.cpp41 const FormatUtils::FORMAT_VERSION formatVersion) { in openVer4DictBuffers() argument
50 formatVersion)); in openVer4DictBuffers()
130 const FormatUtils::FORMAT_VERSION formatVersion) in Ver4DictBuffers() argument
134 mHeaderPolicy(mHeaderBuffer->getReadOnlyByteArrayView().data(), formatVersion), in Ver4DictBuffers()
Dver4_dict_buffers.h49 const FormatUtils::FORMAT_VERSION formatVersion);
134 const FormatUtils::FORMAT_VERSION formatVersion);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_dict_buffers.cpp35 const FormatUtils::FORMAT_VERSION formatVersion) { in openVer4DictBuffers() argument
66 formatVersion, buffers)); in openVer4DictBuffers()
172 const FormatUtils::FORMAT_VERSION formatVersion, in Ver4DictBuffers() argument
175 mHeaderPolicy(mHeaderBuffer->getReadOnlyByteArrayView().data(), formatVersion), in Ver4DictBuffers()
Dver4_dict_buffers.h40 const FormatUtils::FORMAT_VERSION formatVersion);
114 const FormatUtils::FORMAT_VERSION formatVersion,
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java75 private File createEmptyDictionaryAndGetFile(final int formatVersion) { in createEmptyDictionaryAndGetFile() argument
76 return createEmptyDictionaryWithAttributesAndGetFile(formatVersion, in createEmptyDictionaryAndGetFile()
80 private File createEmptyDictionaryWithAttributesAndGetFile(final int formatVersion, in createEmptyDictionaryWithAttributesAndGetFile() argument
83 final File dictFile = createEmptyVer4DictionaryAndGetFile(formatVersion, in createEmptyDictionaryWithAttributesAndGetFile()
93 private File createEmptyVer4DictionaryAndGetFile(final int formatVersion, in createEmptyVer4DictionaryAndGetFile() argument
99 if (BinaryDictionaryUtils.createEmptyDictFile(file.getAbsolutePath(), formatVersion, in createEmptyVer4DictionaryAndGetFile()
104 + " cannot be created. Format version: " + formatVersion); in createEmptyVer4DictionaryAndGetFile()
113 private BinaryDictionary getEmptyBinaryDictionary(final int formatVersion) { in getEmptyBinaryDictionary() argument
114 final File dictFile = createEmptyDictionaryAndGetFile(formatVersion); in getEmptyBinaryDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java117 static boolean matchesExpectedBinaryDictFormatVersionForThisType(final int formatVersion) { in matchesExpectedBinaryDictFormatVersionForThisType() argument
118 return formatVersion == FormatSpec.VERSION4; in matchesExpectedBinaryDictFormatVersionForThisType()
121 private static boolean needsToMigrateDictionary(final int formatVersion) { in needsToMigrateDictionary() argument
124 return formatVersion == FormatSpec.VERSION402; in needsToMigrateDictionary()
DBinaryDictionary.java144 final Locale locale, final String dictType, final long formatVersion, in BinaryDictionary() argument
161 mNativeDict = createOnMemoryNative(formatVersion, locale.toString(), keyArray, valueArray); in BinaryDictionary()
171 private static native long createOnMemoryNative(long formatVersion, in createOnMemoryNative() argument
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_policy.h35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) in HeaderPolicy() argument
36 : mDictFormatVersion(formatVersion), in HeaderPolicy()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp72 jlong formatVersion, jstring locale, jobjectArray attributeKeyStringArray, in latinime_BinaryDictionary_createOnMemory() argument
90 formatVersion, localeCodePoints, &attributeMap); in latinime_BinaryDictionary_createOnMemory()