Searched defs:word (Results 1 - 25 of 74) sorted by relevance

123

/packages/apps/Music/src/com/android/music/
H A DMusicAlphabetIndexer.java35 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 DCandidateFilter.java36 * 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 DCandidateTextView.java96 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 DUserDictionaryCompatUtils.java32 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 DSynchronouslyLoadedUserBinaryDictionary.java47 public synchronized boolean isValidWord(final String word) { argument
49 return isValidWordInner(word);
H A DSynchronouslyLoadedContactsBinaryDictionary.java44 public synchronized boolean isValidWord(final String word) { argument
46 return isValidWordInner(word);
H A DAbstractDictionaryWriter.java46 * @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 DDictionaryCollection.java79 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 DReadOnlyBinaryDictionary.java76 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 DDictionaryWriter.java59 * 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 DUserBinaryDictionary.java205 * 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 DDictUpdater.java32 * 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 DVer4DictUpdater.java40 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 DVer3DictUpdater.java57 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 DWord.java25 * 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 DAbstractDictDecoder.java69 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 DDictDecoder.java71 * 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 DInfo.java66 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 DDiff.java67 // 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 DUserHistoryDictionaryBigramList.java46 * 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 DAutoCorrectionUtils.java39 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 DUserHistoryDictIOUtils.java53 * 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 DFusionDictionaryTest.java46 * 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 Dbigram_dictionary.cpp42 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 Dpatricia_trie_policy.h80 bool addUnigramWord(const int *const word, const int length, const int probability) { argument

Completed in 320 milliseconds

123