Home
last modified time | relevance | path

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

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java34 import com.android.inputmethod.latin.utils.CollectionUtils;
66 private static final ArrayList<String> sWords = CollectionUtils.newArrayList();
68 CollectionUtils.newSparseArray();
69 private static final SparseArray<List<Integer>> sStarBigrams = CollectionUtils.newSparseArray();
71 CollectionUtils.newSparseArray();
72 private static final HashMap<String, List<String>> sShortcuts = CollectionUtils.newHashMap();
139 final Set<String> wordSet = CollectionUtils.newHashSet(); in generateWords()
153 final ArrayList<WeightedString> shortcuts = CollectionUtils.newArrayList(); in addUnigrams()
362 final List<String> results = CollectionUtils.newArrayList(); in testReadAndWriteWithByteBuffer()
377 final List<String> results = CollectionUtils.newArrayList(); in testReadAndWriteWithByteArray()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggestedWords.java22 import com.android.inputmethod.latin.utils.CollectionUtils;
35 CollectionUtils.newArrayList(0);
123 final ArrayList<SuggestedWordInfo> result = CollectionUtils.newArrayList(); in getFromApplicationSpecifiedCompletions()
142 final ArrayList<SuggestedWordInfo> suggestionsList = CollectionUtils.newArrayList(); in getTypedWordAndPreviousSuggestions()
143 final HashSet<String> alreadySeen = CollectionUtils.newHashSet(); in getTypedWordAndPreviousSuggestions()
280 final ArrayList<SuggestedWordInfo> newSuggestions = CollectionUtils.newArrayList();
300 final ArrayList<SuggestedWordInfo> newSuggestions = CollectionUtils.newArrayList();
DDictionaryCollection.java23 import com.android.inputmethod.latin.utils.CollectionUtils;
39 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(); in DictionaryCollection()
45 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(); in DictionaryCollection()
47 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(dictionaries); in DictionaryCollection()
54 mDictionaries = CollectionUtils.newCopyOnWriteArrayList(dictionaries); in DictionaryCollection()
68 if (null == suggestions) suggestions = CollectionUtils.newArrayList(); in getSuggestions()
DSuggest.java33 import com.android.inputmethod.latin.utils.CollectionUtils;
72 CollectionUtils.newConcurrentHashMap();
309 CollectionUtils.newArrayList(suggestionsSet); in getSuggestedWordsForTypingInput()
379 CollectionUtils.newArrayList(suggestionsSet); in getSuggestedWordsForBatchInput()
424 CollectionUtils.newArrayList(suggestionsSize); in getSuggestionsInfoListWithDebugInfo()
486 final HashSet<Dictionary> dictionaries = CollectionUtils.newHashSet(); in close()
DExpandableDictionary.java25 import com.android.inputmethod.latin.utils.CollectionUtils;
215 childNode.mShortcutTargets = CollectionUtils.newArrayList(); in addWordRec()
245 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); in getSuggestions()
253 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); in getWordsInner()
537 firstWord.mNGrams = CollectionUtils.newLinkedList(); in setBigramAndGetFrequency()
DDictionaryWriter.java29 import com.android.inputmethod.latin.utils.CollectionUtils;
53 final HashMap<String, String> attributes = CollectionUtils.newHashMap(); in clear()
70 final ArrayList<WeightedString> shortcutTargets = CollectionUtils.newArrayList(); in addUnigramWord()
DExpandableBinaryDictionary.java29 import com.android.inputmethod.latin.utils.CollectionUtils;
79 sFilenameDictionaryUpdateControllerMap = CollectionUtils.newConcurrentHashMap();
82 sFilenameExecutorMap = CollectionUtils.newConcurrentHashMap();
399 final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList(); in getSuggestionsWithSessionId()
DBinaryDictionaryGetter.java28 import com.android.inputmethod.latin.utils.CollectionUtils;
164 final HashMap<String, FileAndMatchLevel> cacheFiles = CollectionUtils.newHashMap(); in getCachedWordLists()
279 final ArrayList<AssetFileAddress> fileList = CollectionUtils.newArrayList(); in getDictionaryFiles()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java40 import com.android.inputmethod.latin.utils.CollectionUtils;
69 private Map<String, DictionaryPool> mDictionaryPools = CollectionUtils.newSynchronizedTreeMap();
71 CollectionUtils.newSynchronizedTreeMap();
81 CollectionUtils.newHashSet();
98 mLanguageToScript = CollectionUtils.newTreeMap();
259 mSuggestions = CollectionUtils.newArrayList(maxLength + 1); in SuggestionsGatherer()
380 mDictionaryPools = CollectionUtils.newSynchronizedTreeMap(); in closeAllDictionaries()
382 mUserDictionaries = CollectionUtils.newSynchronizedTreeMap(); in closeAllDictionaries()
DAndroidSpellCheckerSession.java26 import com.android.inputmethod.latin.utils.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/tests/src/com/android/inputmethod/latin/utils/
DResourceUtilsTests.java60 final HashMap<String,String> anyKeyValue = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsSimple()
63 final HashMap<String,String> emptyKeyValue = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsSimple()
84 final HashMap<String,String> keyValues = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsSimple()
124 final HashMap<String,String> keyValues = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsCombined()
162 final HashMap<String,String> keyValues = CollectionUtils.newHashMap(); in testFindConstantForKeyValuePairsRegexp()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtils.java51 CollectionUtils.newHashMap();
54 CollectionUtils.newHashMap();
57 CollectionUtils.newHashMap();
60 CollectionUtils.newHashMap();
72 CollectionUtils.newHashMap();
DLocaleUtils.java33 private static final HashMap<String, Long> EMPTY_LT_HASH_MAP = CollectionUtils.newHashMap();
165 private static final HashMap<String, Locale> sLocaleCache = CollectionUtils.newHashMap();
201 final HashMap<String, Long> retval = CollectionUtils.newHashMap(); in localeAndTimeStrToHashMap()
DUserHistoryDictIOUtils.java139 final TreeMap<Integer, String> unigrams = CollectionUtils.newTreeMap(); in readDictionaryBinary()
140 final TreeMap<Integer, Integer> frequencies = CollectionUtils.newTreeMap(); in readDictionaryBinary()
141 final TreeMap<Integer, ArrayList<PendingAttribute>> bigrams = CollectionUtils.newTreeMap(); in readDictionaryBinary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryBigramList.java22 import com.android.inputmethod.latin.utils.CollectionUtils;
36 private static final HashMap<String, Byte> EMPTY_BIGRAM_MAP = CollectionUtils.newHashMap();
37 private final HashMap<String, HashMap<String, Byte>> mBigramMap = CollectionUtils.newHashMap();
64 map = CollectionUtils.newHashMap(); in addBigram()
DPersonalizationHelper.java19 import com.android.inputmethod.latin.utils.CollectionUtils;
33 sLangUserHistoryDictCache = CollectionUtils.newConcurrentHashMap();
36 sLangPersonalizationDictCache = CollectionUtils.newConcurrentHashMap();
41 CollectionUtils.newConcurrentHashMap();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardParams.java24 import com.android.inputmethod.latin.utils.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();
DDynamicGridKeyboard.java27 import com.android.inputmethod.latin.utils.CollectionUtils;
50 private final ArrayDeque<GridKey> mGridKeys = CollectionUtils.newArrayDeque();
51 private final ArrayDeque<Key> mPendingKeys = CollectionUtils.newArrayDeque();
134 final ArrayList<Object> keys = CollectionUtils.newArrayList(); in saveRecentKeys()
DKeyboardCodesSet.java20 import com.android.inputmethod.latin.utils.CollectionUtils;
25 private static final HashMap<String, int[]> sLanguageToCodesMap = CollectionUtils.newHashMap();
26 private static final HashMap<String, Integer> sNameToIdMap = CollectionUtils.newHashMap();
DKeyStylesSet.java24 import com.android.inputmethod.latin.utils.CollectionUtils;
36 private final HashMap<String, KeyStyle> mStyles = CollectionUtils.newHashMap();
77 private final SparseArray<Object> mStyleAttributes = CollectionUtils.newSparseArray();
/packages/inputmethods/LatinIME/tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/
DKeyboardTextsSet.tmpl23 import com.android.inputmethod.latin.utils.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/latin/suggestions/
DSuggestionStripView.java44 import com.android.inputmethod.latin.utils.CollectionUtils;
68 private final ArrayList<TextView> mWordViews = CollectionUtils.newArrayList();
69 private final ArrayList<TextView> mDebugInfoViews = CollectionUtils.newArrayList();
70 private final ArrayList<View> mDividerViews = CollectionUtils.newArrayList();
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseArray.java19 import com.android.inputmethod.latin.utils.CollectionUtils;
33 mKeys = CollectionUtils.newArrayList(initialCapacity); in SparseArray()
34 mValues = CollectionUtils.newArrayList(initialCapacity); in SparseArray()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryListInterfaceState.java21 import com.android.inputmethod.latin.utils.CollectionUtils;
42 private HashMap<String, State> mWordlistToState = CollectionUtils.newHashMap();
43 private ArrayList<View> mViewCache = CollectionUtils.newArrayList();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DSparseTable.java20 import com.android.inputmethod.latin.utils.CollectionUtils;
61 mContentTables = CollectionUtils.newArrayList(); in SparseTable()
107 final ArrayList<Integer> ret = CollectionUtils.newArrayList(); in getAll()

123