/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 57 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 …]
|
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/native/jni/src/dictionary/utils/ |
D | dict_file_writing_utils.cpp | 45 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()
|
D | format_utils.cpp | 28 /* static */ FormatUtils::FORMAT_VERSION FormatUtils::getFormatVersion(const int formatVersion) { in getFormatVersion() argument 29 switch (formatVersion) { in getFormatVersion()
|
D | dict_file_writing_utils.h | 52 const FormatUtils::FORMAT_VERSION formatVersion); 58 const FormatUtils::FORMAT_VERSION formatVersion);
|
D | format_utils.h | 50 static FORMAT_VERSION getFormatVersion(const int formatVersion);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | WordListMetadata.java | 59 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()
|
D | MetadataDbHelper.java | 485 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/ |
D | ver4_dict_buffers.cpp | 41 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()
|
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/ |
D | ver4_dict_buffers.cpp | 35 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()
|
D | ver4_dict_buffers.h | 40 const FormatUtils::FORMAT_VERSION formatVersion); 114 const FormatUtils::FORMAT_VERSION formatVersion,
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 75 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/ |
D | ExpandableBinaryDictionary.java | 117 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()
|
D | BinaryDictionary.java | 144 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/ |
D | header_policy.h | 35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) in HeaderPolicy() argument 36 : mDictFormatVersion(formatVersion), in HeaderPolicy()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 72 jlong formatVersion, jstring locale, jobjectArray attributeKeyStringArray, in latinime_BinaryDictionary_createOnMemory() argument 90 formatVersion, localeCodePoints, &attributeMap); in latinime_BinaryDictionary_createOnMemory()
|