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

123

/packages/apps/Music/src/com/android/music/
H A DMusicAlphabetIndexer.java34 protected int compare(String word, String letter) { argument
35 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());
H A DCandidatesViewManager.java47 * Attribute of a word (no attribute)
52 * Attribute of a word (a candidate in the history list)
57 * Attribute of a word (the best candidate)
62 * Attribute of a word (auto generated/not in the dictionary)
73 /** The word pressed */
161 * @param word Display word,
163 protected void displayDialog(View view, final WnnWord word) { argument
169 text.setText(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...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DUserDictionaryCompatUtils.java28 public static void addWord(final Context context, final String word, argument
31 addWordWithShortcut(context, word, freq, shortcut, locale);
38 UserDictionary.Words.addWord(context, word, freq, localeType);
44 private static void addWordWithShortcut(final Context context, final String word, argument
46 UserDictionary.Words.addWord(context, word, freq, shortcut, locale);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DWeightedString.java32 public WeightedString(final String word, final int probability) { argument
33 this(word, new ProbabilityInfo(probability));
36 public WeightedString(final String word, final ProbabilityInfo probabilityInfo) { argument
37 mWord = word;
H A DWordProperty.java33 * Utility class for a word with a probability.
51 public WordProperty(final String word, final ProbabilityInfo probabilityInfo, argument
54 mWord = word;
79 // Construct word property using information from native code.
80 // This represents invalid word when the probability is BinaryDictionary.NOT_A_PROBABILITY.
136 private static int computeHashCode(WordProperty word) { argument
138 word.mWord,
139 word.mProbabilityInfo,
140 word.mNgrams,
141 word
[all...]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
H A DInfo.java67 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
114 // This word is not in dict1
119 // We found the word. Compare frequencies, shortcuts, bigrams
127 System.out.println("Not a word: " + word0Property.mWord + " "
148 // This word is not in dict0
159 private static boolean hasAttributesDifferencesAndPrintThemIfAny(final String word, argument
165 System.out.println(type + " removed: " + word + " " + attribute0.mWord + " "
177 // Search for a word with the same string but a different frequency
181 System.out.println(type + " freq changed: " + word + " "
191 System.out.println(type + " removed: " + word
[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/tests/src/com/android/inputmethod/latin/
H A DSuggestedWordsTests.java34 * @param word the word to be used to create {@link SuggestedWordInfo}.
37 private static SuggestedWordInfo createTypedWordInfo(final String word) { argument
40 return new SuggestedWordInfo(word, "" /* prevWordsContext */, 100 /* score */,
51 * @param word the word to be used to create {@link SuggestedWordInfo}.
54 private static SuggestedWordInfo createCorrectionWordInfo(final String word) { argument
55 return new SuggestedWordInfo(word, "" /* prevWordsContext */, 1 /* score */,
64 for (final String word : words) {
65 infos.add(createCorrectionWordInfo(word));
[all...]
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...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionaryCollection.java86 public boolean isInDictionary(final String word) { argument
88 if (mDictionaries.get(i).isInDictionary(word)) return true;
93 public int getFrequency(final String word) { argument
96 final int tempFreq = mDictionaries.get(i).getFrequency(word);
103 public int getMaxFrequencyOfExactMatches(final String word) { argument
106 final int tempFreq = mDictionaries.get(i).getMaxFrequencyOfExactMatches(word);
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.
H A DReadOnlyBinaryDictionary.java71 public boolean isInDictionary(final String word) { argument
74 return mBinaryDictionary.isInDictionary(word);
95 public int getFrequency(final String word) { argument
98 return mBinaryDictionary.getFrequency(word);
107 public int getMaxFrequencyOfExactMatches(final String word) { argument
110 return mBinaryDictionary.getMaxFrequencyOfExactMatches(word);
H A DDictionary.java106 * Checks if the given word has to be treated as a valid word. Please note that some
108 * @param word the word to search for. The search should be case-insensitive.
109 * @return true if the word is valid, false otherwise
111 public boolean isValidWord(final String word) { argument
112 return isInDictionary(word);
116 * Checks if the given word is in the dictionary regardless of it being valid or not.
118 abstract public boolean isInDictionary(final String word); argument
121 * Get the frequency of the word
124 getFrequency(final String word) argument
132 getMaxFrequencyOfExactMatches(final String word) argument
144 same(final char[] word, final int length, final String typedWord) argument
212 isInDictionary(String word) argument
[all...]
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...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
H A DUserHistoryDictionary.java91 * Add a word to the user history dictionary.
95 * @param word the word the user inputted
96 * @param isValid whether the word is valid or not
97 * @param timestamp the timestamp when the word has been inputted
100 @Nonnull final NgramContext ngramContext, final String word, final boolean isValid,
102 if (word.length() > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH) {
105 userHistoryDictionary.updateEntriesForWord(ngramContext, word,
132 public boolean isValidWord(final String word) { argument
99 addToDictionary(final ExpandableBinaryDictionary userHistoryDictionary, @Nonnull final NgramContext ngramContext, final String word, final boolean isValid, final int timestamp) argument
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DAbstractDictDecoder.java35 public int getTerminalPosition(final String word) argument
40 return BinaryDictIOUtils.getTerminalPosition(this, word);
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/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
H A DFusionDictionaryTest.java46 * Generates a random word.
74 for (final String word : words) {
76 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word);
81 private static String dumpWord(final String word) { argument
83 for (int i = 0; i < word.length(); i = word.offsetByCodePoints(i, 1)) {
84 sb.append(word.codePointAt(i));
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DUserDictionaryAddWordContents.java42 public static final String EXTRA_WORD = "word";
65 final String word = args.getString(EXTRA_WORD);
66 if (null != word) {
67 mWordEditText.setText(word);
139 // If the word is somehow empty, don't insert it.
144 // If there is no shortcut, and the word already exists in the database, then we
145 // should not insert, because either A. the word exists with no shortcut, in which
146 // case the exact same thing we want to insert is already there, or B. the word
147 // exists with at least one shortcut, in which case it has priority on our word.
152 // Disallow duplicates. If the same word wit
175 hasWord(final String word, final Context context) argument
[all...]
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/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);

Completed in 520 milliseconds

123