Home
last modified time | relevance | path

Searched refs:CollectionUtils (Results 1 – 25 of 59) sorted by relevance

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOTests.java25 import com.android.inputmethod.latin.CollectionUtils;
62 private static final List<String> sWords = CollectionUtils.newArrayList();
64 CollectionUtils.newSparseArray();
65 private static final SparseArray<List<Integer>> sStarBigrams = CollectionUtils.newSparseArray();
67 CollectionUtils.newSparseArray();
151 final Set<String> wordSet = CollectionUtils.newHashSet(); in generateWords()
165 final ArrayList<WeightedString> shortcuts = CollectionUtils.newArrayList(); in addUnigrams()
310 final List<String> results = CollectionUtils.newArrayList(); in testReadAndWriteWithByteBuffer()
322 final List<String> results = CollectionUtils.newArrayList(); in testReadAndWriteWithByteArray()
385 final Map<Integer, String> resultWords = CollectionUtils.newTreeMap();
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java28 import com.android.inputmethod.latin.CollectionUtils;
62 private Map<String, DictionaryPool> mDictionaryPools = CollectionUtils.newSynchronizedTreeMap();
64 CollectionUtils.newSynchronizedTreeMap();
74 CollectionUtils.newHashSet();
91 mLanguageToScript = CollectionUtils.newTreeMap();
242 mSuggestions = CollectionUtils.newArrayList(maxLength + 1); in SuggestionsGatherer()
363 mDictionaryPools = CollectionUtils.newSynchronizedTreeMap(); in closeAllDictionaries()
365 mUserDictionaries = CollectionUtils.newSynchronizedTreeMap(); in closeAllDictionaries()
DAndroidSpellCheckerSession.java26 import com.android.inputmethod.latin.CollectionUtils;
46 final ArrayList<Integer> additionalOffsets = CollectionUtils.newArrayList(); in fixWronglyInvalidatedWordWithSingleQuote()
47 final ArrayList<Integer> additionalLengths = CollectionUtils.newArrayList(); in fixWronglyInvalidatedWordWithSingleQuote()
49 CollectionUtils.newArrayList(); in fixWronglyInvalidatedWordWithSingleQuote()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryCollection.java38 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(); in DictionaryCollection()
44 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(); in DictionaryCollection()
46 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(dictionaries); in DictionaryCollection()
53 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(dictionaries); in DictionaryCollection()
67 if (null == suggestions) suggestions = CollectionUtils.newArrayList(); in getSuggestions()
DSuggestedWords.java28 CollectionUtils.newArrayList(0);
88 final ArrayList<SuggestedWordInfo> result = CollectionUtils.newArrayList(); in getFromApplicationSpecifiedCompletions()
105 final ArrayList<SuggestedWordInfo> suggestionsList = CollectionUtils.newArrayList(); in getTypedWordAndPreviousSuggestions()
106 final HashSet<String> alreadySeen = CollectionUtils.newHashSet(); in getTypedWordAndPreviousSuggestions()
208 final ArrayList<SuggestedWordInfo> newSuggestions = CollectionUtils.newArrayList();
DSubtypeLocale.java49 CollectionUtils.newHashMap();
52 CollectionUtils.newHashMap();
55 CollectionUtils.newHashMap();
58 CollectionUtils.newHashMap();
70 CollectionUtils.newHashMap();
DSuggest.java62 CollectionUtils.newConcurrentHashMap();
258 CollectionUtils.newArrayList(suggestionsSet); in getSuggestedWordsForTypingInput()
327 CollectionUtils.newArrayList(suggestionsSet); in getSuggestedWordsForBatchInput()
372 CollectionUtils.newArrayList(suggestionsSize); in getSuggestionsInfoListWithDebugInfo()
427 final HashSet<Dictionary> dictionaries = CollectionUtils.newHashSet(); in close()
DUserHistoryDictionaryBigramList.java35 private static final HashMap<String, Byte> EMPTY_BIGRAM_MAP = CollectionUtils.newHashMap();
36 private final HashMap<String, HashMap<String, Byte>> mBigramMap = CollectionUtils.newHashMap();
62 map = CollectionUtils.newHashMap(); in addBigram()
DLocaleUtils.java35 private static final HashMap<String, Long> EMPTY_LT_HASH_MAP = CollectionUtils.newHashMap();
200 private static final HashMap<String, Locale> sLocaleCache = CollectionUtils.newHashMap();
236 final HashMap<String, Long> retval = CollectionUtils.newHashMap(); in localeAndTimeStrToHashMap()
DExpandableDictionary.java238 childNode.mShortcutTargets = CollectionUtils.newArrayList(); in addWordRec()
268 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); in getSuggestions()
286 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); in getWordsInner()
566 firstWord.mNGrams = CollectionUtils.newLinkedList(); in setBigramAndGetFrequency()
DResourceUtils.java42 CollectionUtils.newHashMap();
54 sBuildKeyValues = CollectionUtils.newHashMap();
55 final ArrayList<String> keyValuePairs = CollectionUtils.newArrayList();
DUserHistoryDictIOUtils.java180 final Map<Integer, String> unigrams = CollectionUtils.newTreeMap(); in readDictionaryBinary()
181 final Map<Integer, Integer> frequencies = CollectionUtils.newTreeMap(); in readDictionaryBinary()
182 final Map<Integer, ArrayList<PendingAttribute>> bigrams = CollectionUtils.newTreeMap(); in readDictionaryBinary()
DBinaryDictionaryGetter.java164 final HashMap<String, FileAndMatchLevel> cacheFiles = CollectionUtils.newHashMap(); in getCachedWordLists()
247 final HashMap<String, String> options = CollectionUtils.newHashMap(); in hackCanUseDictionaryFile()
309 final ArrayList<AssetFileAddress> fileList = CollectionUtils.newArrayList(); in getDictionaryFiles()
DExpandableBinaryDictionary.java67 CollectionUtils.newHashMap();
168 final HashMap<String, String> attributes = CollectionUtils.newHashMap(); in clearFusionDictionary()
185 final ArrayList<WeightedString> shortcutTargets = CollectionUtils.newArrayList(); in addWord()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DResourceUtilsTests.java44 final HashMap<String,String> anyKeyValue = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsSimple()
47 final HashMap<String,String> emptyKeyValue = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsSimple()
68 final HashMap<String,String> keyValues = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsSimple()
116 final HashMap<String,String> keyValues = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsCombined()
152 final HashMap<String,String> keyValues = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsRegexp()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardParams.java23 import com.android.inputmethod.latin.CollectionUtils;
61 public final TreeSet<Key> mKeys = CollectionUtils.newTreeSet(); // ordered set
62 public final ArrayList<Key> mShiftKeys = CollectionUtils.newArrayList();
63 public final ArrayList<Key> mAltCodeKeysWhileTyping = CollectionUtils.newArrayList();
DKeyboardCodesSet.java19 import com.android.inputmethod.latin.CollectionUtils;
25 private static final HashMap<String, int[]> sLanguageToCodesMap = CollectionUtils.newHashMap();
26 private static final HashMap<String, Integer> sNameToIdMap = CollectionUtils.newHashMap();
DKeyStylesSet.java23 import com.android.inputmethod.latin.CollectionUtils;
36 private final HashMap<String, KeyStyle> mStyles = CollectionUtils.newHashMap();
77 private final SparseArray<Object> mStyleAttributes = CollectionUtils.newSparseArray();
DKeyboardTextsSet.java23 import com.android.inputmethod.latin.CollectionUtils;
49 private static final HashMap<String, String[]> sLocaleToTextsMap = CollectionUtils.newHashMap();
50 private static final HashMap<String, Integer> sNameToIdsMap = CollectionUtils.newHashMap();
54 private HashMap<String, String> mResourceNameToTextsMap = CollectionUtils.newHashMap();
DKeysCache.java20 import com.android.inputmethod.latin.CollectionUtils;
25 private final HashMap<Key, Key> mMap = CollectionUtils.newHashMap();
/packages/inputmethods/LatinIME/tools/maketext/res/com/android/inputmethod/keyboard/internal/
DKeyboardTextsSet.tmpl23 import com.android.inputmethod.latin.CollectionUtils;
49 private static final HashMap<String, String[]> sLocaleToTextsMap = CollectionUtils.newHashMap();
50 private static final HashMap<String, Integer> sNameToIdsMap = CollectionUtils.newHashMap();
54 private HashMap<String, String> mResourceNameToTextsMap = CollectionUtils.newHashMap();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DTypefaceUtils.java24 import com.android.inputmethod.latin.CollectionUtils;
32 private static final SparseArray<Float> sTextHeightCache = CollectionUtils.newSparseArray();
52 private static final SparseArray<Float> sTextWidthCache = CollectionUtils.newSparseArray();
DKeyboardLayoutSet.java44 import com.android.inputmethod.latin.CollectionUtils;
83 CollectionUtils.newHashMap();
117 CollectionUtils.newSparseArray();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripView.java58 import com.android.inputmethod.latin.CollectionUtils;
91 private final ArrayList<TextView> mWords = CollectionUtils.newArrayList();
92 private final ArrayList<TextView> mInfos = CollectionUtils.newArrayList();
93 private final ArrayList<View> mDividers = CollectionUtils.newArrayList();
139 private final ArrayList<CharSequence> mTexts = CollectionUtils.newArrayList();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryListInterfaceState.java19 import com.android.inputmethod.latin.CollectionUtils;
39 private HashMap<String, State> mWordlistToState = CollectionUtils.newHashMap();

123