/packages/apps/Music/src/com/android/music/ |
H A D | MusicAlphabetIndexer.java | 35 protected int compare(String word, String letter) { argument 36 String wordKey = MediaStore.Audio.keyFor(word);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | CandidateFilter.java | 36 * Checking whether a specified word is filtered. 38 * @param word A word 39 * @return {@code true} if the word is allowed; {@code false} if the word is denied. 41 public boolean isAllowed(WnnWord word) { argument 46 String str = word.candidate;
|
H A D | CandidateTextView.java | 96 public CandidateTextView setCandidateTextView(WnnWord word, int wordCount, argument 100 setText(word.candidate); 108 setCustomCandidate(word); 115 * @param WnnWord candidate word 118 public int setCustomCandidate(WnnWord word) { argument 120 int width = (int)paint.measureText(word.candidate, 0, word.candidate.length()); 131 width = (int)paint.measureText(word.candidate, 0, word.candidate.length());
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | UserDictionaryCompatUtils.java | 32 public static void addWord(final Context context, final String word, final int freq, argument 35 CompatUtils.invoke(Words.class, null, METHOD_addWord, context, word, freq, shortcut, 50 Words.addWord(context, word, freq, localeType);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | SynchronouslyLoadedUserBinaryDictionary.java | 47 public synchronized boolean isValidWord(final String word) { argument 49 return isValidWordInner(word);
|
H A D | SynchronouslyLoadedContactsBinaryDictionary.java | 44 public synchronized boolean isValidWord(final String word) { argument 46 return isValidWordInner(word);
|
H A D | AbstractDictionaryWriter.java | 46 * @param word The word to add. 47 * @param shortcutTarget A shortcut target for this word, or null if none. 51 * @param isNotAWord true if this is not a word, i.e. shortcut only. 53 abstract public void addUnigramWord(final String word, final String shortcutTarget, argument
|
H A D | DictionaryCollection.java | 79 public boolean isValidWord(final String word) { argument 81 if (mDictionaries.get(i).isValidWord(word)) return true; 86 public int getFrequency(final String word) { argument 89 final int tempFreq = mDictionaries.get(i).getFrequency(word);
|
H A D | ReadOnlyBinaryDictionary.java | 76 public boolean isValidWord(final String word) { argument 79 return mBinaryDictionary.isValidWord(word); 100 public int getFrequency(final String word) { argument 103 return mBinaryDictionary.getFrequency(word);
|
H A D | DictionaryWriter.java | 59 * Adds a word unigram to the fusion dictionary. 64 public void addUnigramWord(final String word, final String shortcutTarget, final int frequency, argument 67 mFusionDictionary.add(word, frequency, null, isNotAWord); 72 mFusionDictionary.add(word, frequency, shortcutTargets, isNotAWord); 105 public boolean isValidWord(String word) { argument
|
H A D | UserBinaryDictionary.java | 205 * Adds a word to the user dictionary and makes it persistent. 207 * @param word the word to add. If the word is capitalized, then the dictionary will 208 * recognize it as a capitalized word when searched. 210 public synchronized void addWordToUserDictionary(final String word) { argument 218 UserDictionaryCompatUtils.addWord(mContext, word, 243 final String word = cursor.getString(indexWord); 248 if (word.length() < MAX_WORD_LENGTH) { 249 super.addWord(word, nul [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | DictUpdater.java | 32 * Deletes the word from the binary dictionary. 34 * @param word the word to be deleted. 37 public void deleteWord(final String word) throws IOException, UnsupportedFormatException; argument 40 * Inserts a word into a binary dictionary. 42 * @param word the word to be inserted. 43 * @param frequency the frequency of the new word. 50 public void insertWord(final String word, final int frequency, argument
|
H A D | Ver4DictUpdater.java | 40 public void deleteWord(final String word) throws IOException, UnsupportedFormatException { argument 43 final int wordPos = getTerminalPosition(word); 53 public void insertWord(final String word, final int frequency, argument
|
H A D | Ver3DictUpdater.java | 57 public void deleteWord(final String word) throws IOException, UnsupportedFormatException { argument 61 final int wordPos = getTerminalPosition(word); 72 public void insertWord(final String word, final int frequency, argument 78 DynamicBinaryDictIOUtils.insertWord(this, mOutStream, word, frequency, bigramStrings,
|
H A D | Word.java | 25 * Utility class for a word with a frequency. 39 public Word(final String word, final int frequency, argument 43 mWord = word; 51 private static int computeHashCode(Word word) { argument 53 word.mWord, 54 word.mFrequency, 55 word.mShortcutTargets.hashCode(), 56 word.mBigrams.hashCode(), 57 word.mIsNotAWord, 58 word [all...] |
H A D | AbstractDictDecoder.java | 69 public int getTerminalPosition(final String word) argument 74 return BinaryDictIOUtils.getTerminalPosition(this, word); 165 final String word = CharEncoding.readString(dictBuffer); 166 shortcutTargets.add(new WeightedString(word,
|
H A D | DictDecoder.java | 71 * Gets the address of the last PtNode of the exact matching word in the dictionary. 74 * @param word the word we search for. 80 public int getTerminalPosition(final String word) argument 87 * @param words the map to store the address as a key and the word as a value.
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | Info.java | 66 private static void showWordInfo(final FusionDictionary dict, final String word, argument 68 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); 70 System.out.println(word + " is not in the dictionary"); 73 System.out.println("Word: " + word); 76 System.out.println(" Is not a word");
|
H A D | Diff.java | 67 // pt_BR dict is almost certainly only interested in header-level diff, and the word 127 // This word is not in dict1 131 // We found the word. Compare frequencies, shortcuts, bigrams 138 System.out.println("Not a word: " + word0.mWord + " " + word0.mIsNotAWord 157 // This word is not in dict0 167 private static boolean hasAttributesDifferencesAndPrintThemIfAny(final String word, argument 173 System.out.println(type + " removed: " + word + " " + attribute0.mWord + " " 185 // Search for a word with the same string but a different frequency 189 System.out.println(type + " freq changed: " + word + " " 199 System.out.println(type + " removed: " + word [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | UserHistoryDictionaryBigramList.java | 46 * Called when the user typed a word. 100 public boolean containsKey(String word) { argument 101 return mBigramMap.containsKey(word);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | AutoCorrectionUtils.java | 39 public static boolean isValidWord(final Suggest suggest, final String word, argument 41 if (TextUtils.isEmpty(word)) { 45 final String lowerCasedWord = word.toLowerCase(suggest.mLocale); 50 // no main dictionary and the monkey manages to type a whole word before the thread 56 if (dictionary.isValidWord(word) 65 final String word) { 66 if (TextUtils.isEmpty(word)) { 73 final int tempFreq = dictionary.getFrequency(word); 85 // Shortlist a whitelisted word 115 // If the length of typed word i 64 getMaxFrequency(final ConcurrentHashMap<String, Dictionary> dictionaries, final String word) argument [all...] |
H A D | UserHistoryDictIOUtils.java | 53 * Callback to be notified when a word is added to the dictionary. 54 * @param word The added word. 55 * @param shortcutTarget A shortcut target for this word, or null if none. 56 * @param frequency The frequency for this word. 60 public void setUnigram(final String word, final String shortcutTarget, final int frequency, argument
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/ |
H A D | FusionDictionaryTest.java | 46 * Generates a random word. 73 for (final String word : words) { 75 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); 80 private String dumpWord(final String word) { argument 82 for (int i = 0; i < word.length(); i = word.offsetByCodePoints(i, 1)) { 83 sb.append(word.codePointAt(i));
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
H A D | bigram_dictionary.cpp | 42 void BigramDictionary::addWordBigram(int *word, int length, int probability, int *bigramProbability, argument 44 word[length] = 0; 48 for (int i = 0; i <= length; i++) s[i] = static_cast<char>(word[i]); 49 AKLOGI("Bigram: Found word = %s, freq = %d :", s, probability); 79 *dest++ = *word++; 83 AKLOGI("Bigram: Added word at %d", insertAt); 88 * prevWord: the word before, the one for which we need to look up bigrams. 93 * This method returns the number of bigrams this word has, for backward compatibility. 103 // getBigramListPositionForWord returns 0 if this word isn't in the dictionary or has no bigrams 105 // If no bigrams for this exact word, searc [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
H A D | patricia_trie_policy.h | 80 bool addUnigramWord(const int *const word, const int length, const int probability) { argument
|