diff options
author | 2014-01-31 00:42:16 -0800 | |
---|---|---|
committer | 2014-01-31 00:42:16 -0800 | |
commit | a1f079dd0f34400264ac3ccf78097716e1243b8d (patch) | |
tree | 526ee16b6cd5aa2aff9ef4123f690f680886a42c /tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java | |
parent | e42b9b6696a680afe3e999046d76436aef2e36c2 (diff) | |
parent | 4e6f72cb801df273ec649f56d6a5c0182063b332 (diff) | |
download | latinime-a1f079dd0f34400264ac3ccf78097716e1243b8d.tar.gz latinime-a1f079dd0f34400264ac3ccf78097716e1243b8d.tar.xz latinime-a1f079dd0f34400264ac3ccf78097716e1243b8d.zip |
am 4e6f72cb: Merge "[HD03] Straighten out attribute key names in Java."
* commit '4e6f72cb801df273ec649f56d6a5c0182063b332':
[HD03] Straighten out attribute key names in Java.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java index c42765633..343ab420c 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java @@ -102,13 +102,13 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase { getContext().getCacheDir()); FileUtils.deleteRecursively(file); Map<String, String> attributeMap = new HashMap<String, String>(); - attributeMap.put(FormatSpec.FileHeader.DICTIONARY_ID_ATTRIBUTE, dictId); - attributeMap.put(FormatSpec.FileHeader.DICTIONARY_LOCALE_ATTRIBUTE, dictId); - attributeMap.put(FormatSpec.FileHeader.DICTIONARY_VERSION_ATTRIBUTE, + attributeMap.put(FormatSpec.FileHeader.DICTIONARY_ID_KEY, dictId); + attributeMap.put(FormatSpec.FileHeader.DICTIONARY_LOCALE_KEY, dictId); + attributeMap.put(FormatSpec.FileHeader.DICTIONARY_VERSION_KEY, String.valueOf(TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()))); - attributeMap.put(FormatSpec.FileHeader.USES_FORGETTING_CURVE_ATTRIBUTE, + attributeMap.put(FormatSpec.FileHeader.USES_FORGETTING_CURVE_KEY, FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); - attributeMap.put(FormatSpec.FileHeader.HAS_HISTORICAL_INFO_ATTRIBUTE, + attributeMap.put(FormatSpec.FileHeader.HAS_HISTORICAL_INFO_KEY, FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(), FormatSpec.VERSION4, attributeMap)) { |