Searched refs:word (Results 51 - 75 of 84) sorted by relevance

1234

/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dneapi.c177 lword->f_hinsi = NJ_GET_FPOS_FROM_STEM(&(result->word));
178 lword->stem_b_hinsi = NJ_GET_BPOS_FROM_STEM(&(result->word));
179 lword->b_hinsi = NJ_GET_BPOS_FROM_STEM(&(result->word));
H A Dndbdic.c1322 NJ_INT16 njd_b_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word) argument
1356 word->stem.info1 = (NJ_UINT16)(stem_set.yomi_size / sizeof(NJ_CHAR));
1358 word->stem.info1 = WORD_LEN(word->stem.info1);
1359 word->stem.info1 |= (NJ_UINT16)(stem_set.fhinsi_jitu << 7);
1365 word->stem.info2 = (NJ_UINT16)(stem_set.yomi_size / sizeof(NJ_CHAR));
1368 word->stem.info2 = (NJ_UINT16)NJ_GET_YLEN_FROM_STEM(word);
1372 word->stem.info2 = (NJ_UINT16)(stem_set.candidate_size / sizeof(NJ_CHAR));
1376 word
1388 njd_b_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, NJ_UINT16 size) argument
1483 njd_b_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size) argument
[all...]
H A Dndldic.c1720 NJ_INT16 njd_l_get_word(NJ_CLASS *iwnn, NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word) { argument
1743 word->stem.loc = loctset->loct;
1745 word->stem.loc.current &= 0x0000ffff;
1746 word->stem.loc.current |= ((NJ_UINT32)que_id << 16);
1749 word->stem.hindo = loctset->cache_freq;
1751 NJ_SET_FPOS_TO_STEM(word, que->mae_hinsi);
1752 NJ_SET_YLEN_TO_STEM(word, que->yomi_len);
1754 NJ_SET_KLEN_TO_STEM(word, que->hyouki_len);
1757 NJ_SET_KLEN_TO_STEM(word, que->yomi_len);
1759 NJ_SET_BPOS_TO_STEM(word, qu
1767 njd_l_get_stroke(NJ_CLASS *iwnn, NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size) argument
1804 njd_l_get_candidate(NJ_CLASS *iwnn, NJ_WORD *word, NJ_CHAR *candidate, NJ_UINT16 size) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DOpenWnnEN.java426 ev.word = mUserDictionaryWords[ 0 ];
439 mConverterEN.addWord(ev.word);
443 mConverterEN.deleteWord(ev.word);
552 commitText(ev.word, false);
554 if (mWordSeparators.contains(ev.word.candidate) &&
558 commitText(ev.word, true);
868 WnnWord word = new WnnWord(tmp, tmp);
869 mConverter.learn(word);
877 * Commit a word
879 * @param word
882 commitText(WnnWord word, boolean withSpace) argument
[all...]
H A DTextCandidates1LineViewManager.java166 WnnWord word = getWnnWord(wordcount);
168 selectCandidate(word);
475 * @param word set word
478 private int setCandidate(WnnWord word) { argument
481 candidateTextView.setCandidateTextView(word, mWordCount, mCandidateOnClick,
483 mWnnWordArray.add(mWordCount, word);
538 * This method notices the selected word to {@link OpenWnn}.
540 * @param word The selected word
542 selectCandidate(WnnWord word) argument
[all...]
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) */
137 /* add a word */
141 /* edit a word */
368 deleteDictionary(WnnWord word) argument
[all...]
H A DUserDictionaryToolsList.java95 /** Maximum word count to display */
127 /** {@code true} if one of word is selected */
139 /** Work area for sorting the word list */
259 /* [menu] add a word */
263 /* [menu] edit a word */
267 /* [menu] delete a word */
289 /* [menu] add a word */
291 /* disable if the number of registered word exceeds MAX_WORD_COUNT */
297 /* [menu] edit a word/delete a word */
[all...]
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DUserDictionarySettings.java148 final String word = getWord(position);
150 if (word != null) {
151 showAddOrEditDialog(word, shortcut);
180 * Add or edit a word. If editingWord is null, it's an add; otherwise, it's an edit.
182 * @param editingWord the word to edit, or null if it's an add.
219 public static void deleteWord(final String word, final String shortcut, argument
224 new String[]{word});
228 new String[]{word, shortcut});
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionaryAddWordContents.java49 public static final String EXTRA_WORD = "word";
80 final String word = args.getString(EXTRA_WORD);
81 if (null != word) {
82 mWordEditText.setText(word);
163 // If the word is somehow empty, don't insert it.
168 // If there is no shortcut, and the word already exists in the database, then we
169 // should not insert, because either A. the word exists with no shortcut, in which
170 // case the exact same thing we want to insert is already there, or B. the word
171 // exists with at least one shortcut, in which case it has priority on our word.
176 // Disallow duplicates. If the same word wit
199 hasWord(final String word, final Context context) argument
[all...]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DDictionaryBackupAgent.java225 final String word = st.nextToken();
237 // It seems there are cases where the same word is duplicated over and over
239 // word if it's the same as the previous one. This is not meant to catch all
243 // Also, word and frequency are never supposed to be empty or null, but better
245 if ((Objects.equals(word, previousWord)
247 || TextUtils.isEmpty(frequency) || TextUtils.isEmpty(word)) {
250 previousWord = word;
254 cv.put(Words.WORD, word);
262 + Words.SHORTCUT + "=?", new String[] {word, shortcut});
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookup.java83 * 1. User types OOV (out-of-vocabulary) word.
199 * We store a map from a dictionary word to the set of locales & raw string(as it appears)
205 * We store a map from a shortcut to a word for each locale.
326 for (String word : dictWords.keySet()) {
327 HashMap<Locale, String> localeStringMap = dictWords.get(word);
385 * Determines if the given word is a valid word in the given locale based on the dictionary.
386 * It tries hard to find a match: for example, casing is ignored and if the word is present in a
390 * @param word the word t
394 isValidWord(@onnull final String word, @Nonnull final Locale inputLocale) argument
[all...]
H A DSuggestedWords.java60 // Note: this INCLUDES cases where the word will auto-correct to itself. A good definition
101 * Get suggested word to show as suggestions to UI.
104 * @return the count of suggested word to show as suggestions to UI.
110 return size() - /* typed word */ 1;
114 * Get {@link SuggestedWordInfo} object for the typed word.
115 * @return The {@link SuggestedWordInfo} object for the typed word.
122 * Get suggested word at <code>index</code>.
123 * @param index The index of the suggested word.
124 * @return The suggested word.
133 * suggested word tha
294 SuggestedWordInfo(final String word, final String prevWordsContext, final int score, final int kindAndFlags, final Dictionary sourceDict, final int indexOfTouchPointOfSecondWord, final int autoCommitFirstWordConfidence) argument
407 removeSuggestedWordInfoFromList( @onnull final String word, @Nonnull final ArrayList<SuggestedWordInfo> candidates, final int startIndexExclusive) argument
[all...]
H A DWordComposer.java37 * A place to store the currently composing word with information such as adjacent key codes as well
61 // gestures a word, is displeased with the results and hits backspace, then gestures again.
81 * Whether the composing word has the only first char capitalized.
136 * Number of keystrokes in the composing word.
220 + "in a word of size " + mCodePointSize);
227 * If it falls inside the currently composing word, we don't reset the composition, and
232 * @return true if the cursor is still inside the composing word, false otherwise.
240 // Moving the cursor forward for the expected amount or until the end of the word has
247 // Moving the cursor backward for the expected amount or until the start of the word
254 // If the actual and expected amounts differ, we crossed the start or the end of the word
270 setBatchInputWord(final String word) argument
[all...]
H A DNgramContext.java63 // at the beginning of an input field or composing a word after a sentence separator.
72 public WordInfo(final CharSequence word) { argument
73 mWord = word;
100 // The words immediately before the considered word. EMPTY_WORD_INFO element means we don't
101 // have any context for that previous word including the "beginning of sentence context" - we
104 // WordComposer was reset and before starting a new composing word, but we should never be
111 // Construct from the previous word information.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DSuggestionStripView.java62 public void pickSuggestionManually(SuggestedWordInfo word); argument
148 final TextView word = new TextView(context, null, R.attr.suggestionWordStyle);
149 word.setContentDescription(getResources().getString(R.string.spoken_empty_suggestion));
150 word.setOnClickListener(this);
151 word.setOnLongClickListener(this);
152 mWordViews.add(word);
H A DSuggestionStripLayoutHelper.java204 final String word = suggestedWords.getLabel(indexInSuggestedWords);
205 // TODO: don't use the index to decide whether this is the auto-correction/typed word, as
212 return word;
215 final Spannable spannedWord = new SpannableString(word);
232 * Negative integer if the word of the index shouldn't be shown on the suggestion strip.
305 // Use identity for strings, not #equals : it's the typed word if it's the same object
366 // Layout only the most relevant suggested word at the center of the suggestion strip
407 * Format appropriately the suggested word in {@link #mWordViews} specified by
408 * <code>positionInStrip</code>. When the suggested word doesn't exist, the corresponding
409 * {@link TextView} will be disabled and never respond to user interaction. The suggested word
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookupTest.java74 * Adds the given word to the personal dictionary.
76 * @param word the word to add
77 * @param locale the locale of the word to add
78 * @param frequency the frequency of the word to add
79 * @return the Uri for the given word
82 private Uri addWord(final String word, final Locale locale, int frequency, String shortcut) { argument
83 // Add the given word for the given locale.
84 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale);
85 // Obtain an Uri for the given word
130 verifyWordExists(final Set<String> set, final String word) argument
134 verifyWordDoesNotExist(final Set<String> set, final String word) argument
[all...]
H A DInputLogicTests.java49 assertEquals("type word", WORD_TO_TYPE, mEditText.getText().toString());
71 assertEquals("pick typed word over auto-correction then backspace", WORD_TO_PICK,
74 assertEquals("pick typed word over auto-correction then backspace", EXPECTED_RESULT,
82 // Choose the typed word.
85 assertEquals("pick typed word over auto-correction then backspace", WORD_TO_TYPE,
88 assertEquals("pick typed word over auto-correction then backspace", EXPECTED_RESULT,
431 // Here we fake picking a word through bigram prediction.
443 assertEquals("delete whole composing word", "", mEditText.getText().toString());
671 private void typeOrGestureWordAndPutCursorInside(final boolean gesture, final String word, argument
673 final int END_OF_WORD = startPos + word
687 typeWordAndPutCursorInside(final String word, final int startPos) argument
691 gestureWordAndPutCursorInside(final String word, final int startPos) argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DHelpers.java772 String word = mSelection.substring(startOffset, mOffset);
774 if (word.equals("IS")) {
778 if (word.equals("OR") || word.equals("AND")) {
782 if (word.equals("NULL")) {
787 if (mAllowedColumns.contains(word)) {
791 throw new IllegalArgumentException("unrecognized column or keyword: " + word);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DDictDecoder.java66 * Gets the address of the last PtNode of the exact matching word in the dictionary.
69 * @param word the word we search for.
75 public int getTerminalPosition(final String word) argument
82 * @param words the map to store the address as a key and the word as a value.
/packages/apps/Messaging/tools/messagegen/
H A Dfillsms136 local word=$(dict_word)
137 message="$message $word"
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
H A DAndroidSpellCheckerService.java142 * Returns an empty SuggestionsInfo with flags signaling the word is not in the dictionary.
152 * Returns an empty suggestionInfo with flags signaling the word is in the dictionary.
160 public boolean isValidWord(final Locale locale, final String word) { argument
165 return dictionaryFacilitatorForLocale.isValidSpellingWord(word);
H A DAndroidWordLevelSpellCheckerSession.java162 // Any word containing a COMMERCIAL_AT is probably an e-mail address
163 // Any word containing a SLASH is probably either an ad-hoc combination of two
178 // in this word are letters
184 * Helper method to test valid capitalizations of a word.
193 // If the word is in there as is, then it's in the dictionary. If not, we'll test lower
194 // case versions, but only if the word is not already all-lower case or mixed case.
198 // If we come here, we have a capitalized word (either First- or All-).
199 // Downcase the word and look it up again. If the word is only capitalized, we
206 // that we have an all-caps version of a word tha
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
H A DSuggestionSpanUtilsTest.java43 * @param word the word to be used to create {@link SuggestedWordInfo}.
46 private static SuggestedWordInfo createWordInfo(final String word, final int kindAndFlags) { argument
47 return new SuggestedWordInfo(word, "" /* prevWordsContext */, 1 /* score */, kindAndFlags,
193 // Typed word itself is not added to SuggestionSpan.
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
H A DBinaryDictOffdeviceUtilsTests.java173 final String word = sWords.get(i);
174 dict.add(word, new ProbabilityInfo(TEST_FREQ), null /* shortcuts */,

Completed in 1697 milliseconds

1234