Searched refs:words (Results 1 - 18 of 18) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DSuggestedWordsTests.java40 final SuggestedWords words = new SuggestedWords(
47 assertEquals(NUMBER_OF_ADDED_SUGGESTIONS + 1, words.size());
48 assertEquals("typed", words.getWord(0));
49 assertEquals(SuggestedWordInfo.KIND_TYPED, words.getInfo(0).mKind);
50 assertEquals("0", words.getWord(1));
51 assertEquals(SuggestedWordInfo.KIND_CORRECTION, words.getInfo(1).mKind);
52 assertEquals("4", words.getWord(5));
53 assertEquals(SuggestedWordInfo.KIND_CORRECTION, words.getInfo(5).mKind);
55 final SuggestedWords wordsWithoutTyped = words.getSuggestedWordsExcludingTypedWord();
56 assertEquals(words
[all...]
H A DUserHistoryDictionaryTests.java71 private void addToDict(final UserHistoryDictionary dict, final List<String> words) { argument
73 for (String word : words) {
86 List<String> words = generateWords(numberOfWords, random);
95 addToDict(dict, words);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DJsonUtils.java87 /* package */ static void writeJson(final SuggestedWords words, final JsonWriter jsonWriter) argument
90 jsonWriter.name("typedWordValid").value(words.mTypedWordValid);
92 .value(words.mWillAutoCorrect);
94 .value(words.mIsPunctuationSuggestions);
95 jsonWriter.name("isObsoleteSuggestions").value(words.mIsObsoleteSuggestions);
96 jsonWriter.name("isPrediction").value(words.mIsPrediction);
97 jsonWriter.name("words");
99 final int size = words.size();
101 final SuggestedWordInfo wordInfo = words.getInfo(j);
H A DMainLogBuffer.java33 * There are three forms of privacy protection: 1) only words in the main dictionary are allowed to
34 * be logged in enough detail to determine their contents, 2) only a subset of words are logged
38 * words, they are added here. But if the user backs up over their current word to edit a word
40 * the LogUnit, and it is pushed back in here when the user is done. Because words may be pulled
46 * up), the LogBuffer is considered "complete" when the user has entered enough words to form an
47 * n-gram, followed by enough additional non-detailed words (that are in the 90%, as per above).
49 * However, the additional non-detailed words are retained, in case the user backspaces to edit
50 * them. The MainLogBuffer then continues to add words, publishing individual non-detailed words
51 * as new words arriv
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictIOTests.java162 final List<String> words, final Map<String, List<String>> shortcutMap) {
164 final String word = words.get(i);
177 final List<String> words,
182 dict.setBigram(words.get(w1), words.get(w2), BIGRAM_FREQ);
210 private void checkDictionary(final FusionDictionary dict, final List<String> words, argument
215 for (final String word : words) {
224 final CharGroup cg = FusionDictionary.findWordInTree(dict.mRoot, words.get(w1));
225 assertNotNull(words.get(w1) + "," + words
161 addUnigrams(final int number, final FusionDictionary dict, final List<String> words, final Map<String, List<String>> shortcutMap) argument
176 addBigrams(final FusionDictionary dict, final List<String> words, final SparseArray<List<Integer>> bigrams) argument
251 timeReadingAndCheckDict(final File file, final List<String> words, final SparseArray<List<Integer>> bigrams, final Map<String, List<String>> shortcutMap, final int bufferType) argument
274 runReadAndWrite(final List<String> words, final SparseArray<List<Integer>> bigrams, final Map<String, List<String>> shortcuts, final int bufferType, final FormatSpec.FormatOptions formatOptions, final String message) argument
381 timeAndCheckReadUnigramsAndBigramsBinary(final File file, final List<String> words, final SparseArray<List<Integer>> bigrams, final int bufferType) argument
416 runReadUnigramsAndBigramsBinary(final List<String> words, final SparseArray<List<Integer>> bigrams, final int bufferType, final FormatSpec.FormatOptions formatOptions, final String message) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DOpenWnnClauseConverterJAJP.java36 /** search cache for unique independent words (jiritsugo) */
38 /** search cache for all independent words (jiritsugo) */
40 /** search cache for ancillary words (fuzokugo) */
392 * Get all exact matched ancillary words(Fuzokugo) list.
395 * @return List of ancillary words
425 /* search ancillary words */
432 /* concatenate sequence of ancillary words */
454 * Get all exact matched independent words(Jiritsugo) list.
457 * @param all {@code true} if list all words; {@code false} if list words whic
[all...]
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
H A DFusionDictionaryTest.java70 private void checkDictionary(final FusionDictionary dict, final ArrayList<String> words, argument
73 for (final String word : words) {
/packages/apps/Mms/tests/src/com/android/mms/
H A DRecyclerTest.java44 * NOTE: you first have to put the unix words file on the device:
45 * example: adb push ~/words /data/data/com.android.mms/files
52 * NOTE: you first have to put the unix words file on the device:
53 * example: adb push ~/words /data/data/com.android.mms/files
80 // Read in dictionary of words
81 mWords = new ArrayList<String>(98568); // count of words in words file
84 Log.v(TAG, "Loading dictionary of words");
85 FileInputStream words = context.openFileInput("words");
[all...]
/packages/inputmethods/LatinIME/native/jni/src/
H A Ddefines.h47 #define DUMP_RESULT(words, frequencies) do { dumpResult(words, frequencies); } while (0)
131 #define DUMP_RESULT(words, frequencies)
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DOpenWnnDictionaryImpl.java96 /** The max words of user dictionary */
98 /** The max words of learning dictionary */
491 /* If the cursor is not exist or the type of query is changed, compile the query string and query words */
511 /* If the cursor is exist, bind new arguments and re-query words (DO NOT recompile the query string) */
521 /* If querying is succeed, count the number of words */
712 /* Count all words in the user dictionary */
721 /* Retrieve all words in the user dictionary */
722 WnnWord[] words = new WnnWord[ numOfWords ];
726 words[ i ] = new WnnWord();
727 words[
[all...]
/packages/apps/Mms/tests/src/com/android/mms/ui/
H A DLongThreadTest.java45 * NOTE: you first have to put the unix words file on the device:
46 * example: adb push ~/words /data/data/com.android.mms/files
84 // Read in dictionary of words
85 mWords = new ArrayList<String>(98568); // count of words in words file
88 Log.v(TAG, "Loading dictionary of words");
89 FileInputStream words = mActivity.openFileInput("words");
91 while ((c = words.read()) != -1) {
102 words
[all...]
/packages/inputmethods/PinyinIME/jni/include/
H A Duserdict.h369 uint32 locate_where_to_insert_in_predicts(const uint16 * words,
372 int32 locate_first_in_predicts(const uint16 * words, int lemma_len);
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DCommandRecognizerEngine.java252 // scan list, adding complete phrases, as well as individual words
267 // split it into individual words, and insert them
268 String[] words = label.split(" ");
269 if (words.length > 1) {
270 for (String word : words) {
272 // words must be three characters long, or two if capitalized
339 // the we store our own mapping table between words and component
1055 // trim last two words, ie 'at home', etc
1058 String[] words = literal.trim().split(" ");
1060 for (int i = 0; i < words
[all...]
H A DVoiceDialerActivity.java959 String[] words = tmpSentence.trim().split(" ");
960 builder.append(words[words.length-1]);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictIOUtils.java70 final Map<Integer, String> words, final Map<Integer, Integer> frequencies,
114 words.put(info.mOriginalAddress, new String(pushedChars, 0, index));
149 * @param words the map to store the address as a key and the word as a value.
156 final Map<Integer, String> words, final Map<Integer, Integer> frequencies,
161 readUnigramsAndBigramsBinaryInner(buffer, header.mHeaderSize, words, frequencies, bigrams,
68 readUnigramsAndBigramsBinaryInner( final FusionDictionaryBufferInterface buffer, final int headerSize, final Map<Integer, String> words, final Map<Integer, Integer> frequencies, final Map<Integer, ArrayList<PendingAttribute>> bigrams, final FormatOptions formatOptions) argument
155 readUnigramsAndBigramsBinary(final FusionDictionaryBufferInterface buffer, final Map<Integer, String> words, final Map<Integer, Integer> frequencies, final Map<Integer, ArrayList<PendingAttribute>> bigrams) argument
/packages/inputmethods/PinyinIME/jni/share/
H A Duserdict.cpp658 uint16 * words = get_lemma_word(offset);
666 if (memcmp(words, last_hzs, hzs_len << 1) == 0) {
674 npre_items[new_added].psb = get_lemma_score(words, splids, nchar);
675 memcpy(npre_items[new_added].pre_hzs, words + hzs_len, cpy_len);
760 const uint16 * words, int lemma_len) {
778 if (ws[k] < words[k]) {
781 } else if (ws[k] > words[k]) {
807 int32 UserDict::locate_first_in_predicts(const uint16 * words, int lemma_len) {
825 if (ws[k] < words[k]) {
828 } else if (ws[k] > words[
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DSuggestionStripView.java148 final int defStyle, final ArrayList<TextView> words, final ArrayList<View> dividers,
150 mWords = words;
154 final TextView word = words.get(0);
147 SuggestionStripViewParams(final Context context, final AttributeSet attrs, final int defStyle, final ArrayList<TextView> words, final ArrayList<View> dividers, final ArrayList<TextView> infos) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DLatinIME.java1580 // tap one-letter words and you want them auto-corrected (typically, "i" in English
2000 // only do it if it's actually necessary, in other words if the recapitalize status
2100 // TODO: Verify that words are logged properly when IME is closed.
2136 private void setSuggestedWords(final SuggestedWords words, final boolean isAutoCorrection) { argument
2137 mSuggestedWords = words;
2139 mSuggestionStripView.setSuggestions(words);
2420 // If correction is not enabled, we don't add words to the user history dictionary.
2422 // expect to receive non-words.
2439 // We demote unrecognized words (frequency < 0, below) by specifying them as "invalid".
2440 // We don't add words wit
[all...]

Completed in 203 milliseconds