Searched defs:formatVersion (Results 1 - 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dformat_utils.cpp28 /* static */ FormatUtils::FORMAT_VERSION FormatUtils::getFormatVersion(const int formatVersion) { argument
29 switch (formatVersion) {
H A Ddict_file_writing_utils.cpp45 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
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
H A Dver4_dict_buffers.cpp41 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
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
H A Ddictionary_structure_with_buffer_policy_factory.cpp57 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...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
H A Dver4_dict_buffers.cpp35 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DWordListMetadata.java59 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 DMetadataDbHelper.java485 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/header/
H A Dheader_policy.h35 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 DBinaryDictionaryTests.java64 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 DExpandableBinaryDictionary.java117 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 DBinaryDictionary.java140 * @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 Dcom_android_inputmethod_latin_BinaryDictionary.cpp72 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

Completed in 3456 milliseconds