aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-31 00:42:16 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-31 00:42:16 -0800
commita1f079dd0f34400264ac3ccf78097716e1243b8d (patch)
tree526ee16b6cd5aa2aff9ef4123f690f680886a42c /tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java
parente42b9b6696a680afe3e999046d76436aef2e36c2 (diff)
parent4e6f72cb801df273ec649f56d6a5c0182063b332 (diff)
downloadlatinime-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/makedict/BinaryDictUtils.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java
index f17596865..20cf9a562 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java
@@ -39,13 +39,13 @@ public class BinaryDictUtils {
public static DictionaryOptions makeDictionaryOptions(final String id, final String version,
final FormatSpec.FormatOptions formatOptions) {
final DictionaryOptions options = new DictionaryOptions(new HashMap<String, String>());
- options.mAttributes.put(FileHeader.DICTIONARY_LOCALE_ATTRIBUTE, "en_US");
- options.mAttributes.put(FileHeader.DICTIONARY_ID_ATTRIBUTE, id);
- options.mAttributes.put(FileHeader.DICTIONARY_VERSION_ATTRIBUTE, version);
+ options.mAttributes.put(FileHeader.DICTIONARY_LOCALE_KEY, "en_US");
+ options.mAttributes.put(FileHeader.DICTIONARY_ID_KEY, id);
+ options.mAttributes.put(FileHeader.DICTIONARY_VERSION_KEY, version);
if (formatOptions.mHasTimestamp) {
- options.mAttributes.put(FileHeader.HAS_HISTORICAL_INFO_ATTRIBUTE,
+ options.mAttributes.put(FileHeader.HAS_HISTORICAL_INFO_KEY,
FileHeader.ATTRIBUTE_VALUE_TRUE);
- options.mAttributes.put(FileHeader.USES_FORGETTING_CURVE_ATTRIBUTE,
+ options.mAttributes.put(FileHeader.USES_FORGETTING_CURVE_KEY,
FileHeader.ATTRIBUTE_VALUE_TRUE);
}
return options;