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

12

/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 DWnnEngine.java57 * @param minLen The minimum length of a word to predict (0 : no limit)
58 * @param maxLen The maximum length of a word to predict (-1 : no limit)
89 * @param word A word to search
92 public int searchWords(WnnWord word); argument
111 * @return {@code null} if no word is registered; the array of {@link WnnWord} if some words is registered.
116 * Learn a word.
118 * This method is used to register the word selected from
120 * of the word.
122 * @param word Th
125 learn(WnnWord word) argument
133 addWord(WnnWord word) argument
141 deleteWord(WnnWord word) argument
[all...]
H A DOpenWnnEvent.java176 * Get a word from the user dictionary.
178 * Get a word from top of the list made by {@code LIST_WORDS_IN_USER_DICTIONARY}.
183 * Add word to the user dictionary.
188 * Delete a word from the dictionary.
242 public WnnWord word = null; field in class:OpenWnnEvent
334 * @param word The selected candidate
336 public OpenWnnEvent(int code, WnnWord word) { argument
338 this.word = word;
346 * @param word Th
348 OpenWnnEvent(int code, int dict, WnnWord word) argument
[all...]
H A DSymbolList.java210 public int searchWords(WnnWord word) {return 0;} argument
218 WnnWord word = new WnnWord(str, str);
219 return word;
223 public boolean learn(WnnWord word) {return false;} argument
226 public int addWord(WnnWord word) {return 0;} argument
229 public boolean deleteWord(WnnWord word) {return false;} argument
H A DUserDictionaryToolsEdit.java37 * The abstract class for user dictionary's word editor.
49 /** The operation mode (Add the word) */
51 /** The operation mode (Edit the word) */
54 /** Maximum length of a word's string */
57 /** The error code (Already registered the same word) */
70 /** The word information which contains the previous information */
72 /** The instance of word list activity */
75 /** The constant for notifying dialog (Already exists the specified word) */
138 /* add a word */
142 /* edit a word */
369 deleteDictionary(WnnWord word) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSynchronouslyLoadedContactsDictionary.java39 public synchronized boolean isValidWord(CharSequence word) { argument
41 return getWordFrequency(word) > -1;
H A DSynchronouslyLoadedUserDictionary.java42 public synchronized boolean isValidWord(CharSequence word) { argument
44 return getWordFrequency(word) > -1;
H A DWhitelistDictionary.java67 Log.d(TAG, "The score of the word is invalid.");
85 // lists that word a should autocorrect to word b, and word c would autocorrect to
93 public boolean shouldForciblyAutoCorrectFrom(CharSequence word) { argument
94 if (TextUtils.isEmpty(word)) return false;
95 final String correction = getWhitelistedWord(word.toString());
97 return !correction.equals(word);
H A DDictionaryCollection.java66 public boolean isValidWord(CharSequence word) { argument
68 if (mDictionaries.get(i).isValidWord(word)) return true;
H A DUserDictionary.java152 * Adds a word to the dictionary and makes it persistent.
153 * @param word the word to add. If the word is capitalized, then the dictionary will
154 * recognize it as a capitalized word when searched.
155 * @param frequency the frequency of occurrence of the word. A frequency of 255 is considered
160 public synchronized void addWord(final String word, final int frequency) { argument
164 if (word.length() >= getMaxWordLength()) return;
166 super.addWord(word, frequency);
170 values.put(Words.WORD, word);
223 isValidWord(CharSequence word) argument
[all...]
H A DAutoCorrection.java69 Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) {
70 if (TextUtils.isEmpty(word)) {
73 final CharSequence lowerCasedWord = word.toString().toLowerCase();
77 if (dictionary.isValidWord(word)
86 Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) {
89 // If "word" is in the whitelist dictionary, it should not be auto corrected.
91 && whitelistDictionary.shouldForciblyAutoCorrectFrom(word)) {
94 return !isValidWord(dictionaries, word, ignoreCase);
68 isValidWord( Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) argument
85 allowsToBeAutoCorrected( Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) argument
H A DDictionary.java27 * Whether or not to replicate the typed word in the suggested list, even if it's valid.
32 * The weight to give to a word if it's length is the same as the number of typed characters.
46 * Adds a word to a list of suggestions. The word is expected to be ordered based on
48 * @param word the character array containing the word
49 * @param wordOffset starting offset of the word in the character array
53 * @param dicTypeId of the dictionary where word was from
55 * @return true if the word was added, false if no more words are required
57 boolean addWord(char[] word, in argument
89 isValidWord(CharSequence word) argument
99 same(final char[] word, final int length, final CharSequence typedWord) argument
[all...]
H A DLatinImeLogger.java73 public static void onAddSuggestedWord(String word, int typeId, DataType dataType) { argument
H A DEditingUtils.java33 * Number of characters we want to look back in order to identify the previous word
79 * @return the word that surrounds the cursor, including up to one trailing
90 * Removes the word surrounding the cursor. Parameters are identical to
99 // Move cursor to beginning of word, to avoid crash when cursor is outside
114 * Characters after selection start, including one trailing word
119 /** The actual characters that make up a word */
122 public Range(int charsBefore, int charsAfter, String word) { argument
128 this.mWord = word;
142 // Find first word separator before the cursor
146 // Find last word separato
233 SelectedWord(int start, int end, CharSequence word) argument
[all...]
H A DSuggestedWords.java112 public Builder addWord(CharSequence word) { argument
113 return addWord(word, null, false);
116 public Builder addWord(CharSequence word, CharSequence debugString, argument
119 return addWord(word, info);
122 private Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) { argument
123 if (!TextUtils.isEmpty(word)) {
124 mWords.add(word);
H A DUserUnigramDictionary.java41 // Weight added to a user picking a new word from the suggestion strip
43 // Weight added to a user typing a new word that doesn't get corrected (or is reverted)
45 // If the user touches a typed word 2 times or more, it will become valid.
63 private static final String COLUMN_WORD = "word";
103 public synchronized boolean isValidWord(CharSequence word) { argument
105 final int frequency = getWordFrequency(word);
130 String word = cursor.getString(wordIndex);
134 if (word.length() < getMaxWordLength()) {
135 super.addWord(word, frequency);
148 String word
254 getContentValues(String word, int frequency, String locale) argument
[all...]
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/
H A DWord.java24 * Utility class for a word with a frequency.
33 public Word(String word, int frequency, ArrayList<WeightedString> bigrams) { argument
34 mWord = word;
42 * A Word x is greater than a word y if x has a higher frequency. If they have the same
/packages/inputmethods/LatinIME/native/src/
H A Ddictionary.cpp36 LOGI("Max word length (%d) is greater than %d",
56 bool Dictionary::isValidWord(unsigned short *word, int length) { argument
57 return mUnigramDictionary->isValidWord(word, length);
H A Dbigram_dictionary.cpp43 bool BigramDictionary::addWordBigram(unsigned short *word, int length, int frequency) { argument
44 word[length] = 0;
48 for (int i = 0; i <= length; i++) s[i] = word[i];
49 LOGI("Bigram: Found word = %s, freq = %d :", s, frequency);
75 *dest++ = *word++;
79 LOGI("Bigram: Added word at %d", insertAt);
87 * prevWord: the word before, the one for which we need to look up bigrams.
93 * maxWordLength: the maximum size of a word.
96 * This method returns the number of bigrams this word has, for backward compatibility.
98 * bigrams this word ha
146 checkFirstCharacter(unsigned short *word) argument
[all...]
H A Ddictionary.h40 int getBigrams(unsigned short *word, int length, int *codes, int codesSize, argument
43 return mBigramDictionary->getBigrams(word, length, codes, codesSize, outWords, frequencies,
47 bool isValidWord(unsigned short *word, int length);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputConnectionCompatUtils.java73 public static void underlineWord(InputConnection ic, SelectedWord word) { argument
76 // the word.
78 ic, null, METHOD_setComposingRegion, word.mStart, word.mEnd);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DSuggestHelper.java68 private void addKeyInfo(WordComposer word, char c) { argument
75 word.add(c, codes, x, y);
79 word.add(c, new int[] { c }, WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
83 WordComposer word = new WordComposer();
86 addKeyInfo(word, c);
88 return word;
103 WordComposer word = createWordComposer(typed);
104 SuggestedWords suggestions = mSuggest.getSuggestions(word, null,
106 // Note that suggestions.getWord(0) is the word user typed.
111 WordComposer word
[all...]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndfdic.c316 NJ_INT16 njd_f_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word) argument
331 NJ_SET_YLEN_TO_STEM(word, 1);
334 word->stem.loc = loctset->loct;
335 yomilen = njd_f_get_stroke(word, stroke, sizeof(stroke));
339 word->stem.info1 = yomilen;
340 word->stem.info1 |= (NJ_UINT16)(DATA_FHINSI(data) << HINSI_OFFSET);
341 word->stem.info2 = (NJ_UINT16)(DATA_BHINSI(data) << HINSI_OFFSET);
347 word->stem.info2 |= kouholen;
348 word->stem.hindo = CALCULATE_HINDO(DATA_HINDO(data), loctset->dic_freq.base,
352 word
357 njd_f_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size) argument
402 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, NJ_UINT16 size) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DOpenWnnEngineEN.java35 /** Score(frequency value) of word in the learning dictionary */
37 /** Score(frequency value) of word in the user dictionary */
46 /** HashMap for checking duplicate word */
108 WnnWord word;
111 while ((word = mDictionary.getNextWord()) != null) {
113 char c = word.candidate.charAt(0);
120 word.candidate = Character.toString(Character.toUpperCase(c)) + word.candidate.substring(1);
124 word.candidate = word
162 addCandidate(WnnWord word) argument
295 searchWords(WnnWord word) argument
313 learn(WnnWord word) argument
318 addWord(WnnWord word) argument
327 deleteWord(WnnWord word) argument
[all...]

Completed in 229 milliseconds

12