Searched refs:candidate (Results 1 - 25 of 29) sorted by relevance

12

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnWord.java28 public String candidate; field in class:WnnWord
35 /** The attribute of this word when it is assumed a candidate. */
48 * @param candidate The string of word
51 public WnnWord(String candidate, String stroke) { argument
52 this(0, candidate, stroke, new WnnPOS(), 0, 0);
58 * @param candidate The string of word
62 public WnnWord(String candidate, String stroke, int frequency) { argument
63 this(0, candidate, stroke, new WnnPOS(), frequency, 0);
69 * @param candidate The string of word
73 public WnnWord(String candidate, Strin argument
85 WnnWord(String candidate, String stroke, WnnPOS posTag, int frequency) argument
98 WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency) argument
112 WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency, int attribute) argument
[all...]
H A DWnnClause.java29 * @param candidate The string of the clause
34 public WnnClause(String candidate, String stroke, WnnPOS posTag, int frequency) { argument
35 super(candidate,
49 stem.candidate,
65 stem.candidate + fzk.candidate,
H A DWnnSentence.java41 this.candidate = "";
52 this.candidate = headClause.candidate;
58 StringBuffer candidate = new StringBuffer();
62 candidate.append(clause.candidate);
67 this.candidate = candidate.toString();
84 this.candidate = clause.candidate;
[all...]
H A DStrSegmentClause.java36 super(clause.candidate, from, to);
H A DCandidateFilter.java46 String str = word.candidate;
H A DUserDictionaryToolsList.java409 wnnWordSearch.candidate = focusString.toString();
412 wnnWordSearch.candidate = focusPairString.toString();
579 int len = getword.candidate.length();
583 if (searchword.candidate.equals(getword.candidate)) {
586 delword.candidate = searchword.candidate;
697 UserDictionaryToolsListFocus candidate = new UserDictionaryToolsListFocus(this);
698 candidate.setId(i+MAX_WORD_COUNT);
699 candidate
[all...]
H A DUserDictionaryToolsEdit.java77 /** The constant for notifying dialog (The length of specified stroke or candidate exceeds the limit) */
150 mBeforeEditWnnWord.candidate = ((TextView)sFocusingPairView).getText().toString();
197 /* Text changed listener for the candidate text */
250 String candidate = mCandidateEditText.getText().toString();
251 if (addDictionary(stroke, candidate)) {
262 String candidate = mCandidateEditText.getText().toString();
263 if (addDictionary(stroke, candidate)) {
266 addDictionary(mBeforeEditWnnWord.stroke, mBeforeEditWnnWord.candidate);
334 * @param candidate The string of the word
337 private boolean addDictionary(String stroke, String candidate) { argument
[all...]
H A DCandidateTextView.java45 /** Maximum width of candidate view */
49 /** Minimum width of candidate view */
67 * @param candidateMinimumHeight Minimum height of candidate view
68 * @param candidateMinimumWidth Minimum width of candidate view
69 * @param maxWidth Maximum width of candidate view
89 * Textview is set to the best content for the display of candidate.
90 * @param WnnWord candidate
91 * @param wordCount candidate id
100 setText(word.candidate);
115 * @param WnnWord candidate wor
[all...]
H A DOpenWnnDictionaryImpl.java46 /** The maximum length of candidate */
62 protected static final String COLUMN_NAME_CANDIDATE = "candidate";
475 queryArgs[ 1 ] = wnnWord.candidate;
606 OpenWnnDictionaryImplJni.setCandidate( this.mWnnWork, wnnWord.candidate );
650 result.candidate = mDbCursor.getString( 1 );
685 result.candidate = OpenWnnDictionaryImplJni.getCandidate( this.mWnnWork );
728 words[ i ].candidate = cursor.getString( 1 );
875 word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) {
879 DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate );
[all...]
H A DCandidatesViewManager.java52 * Attribute of a word (a candidate in the history list)
57 * Attribute of a word (the best candidate)
97 * @param type The candidate view type,
141 * Get candidate is focused now.
148 * Select candidate that has focus.
169 text.setText(word.candidate);
H A DOpenWnnDictionaryImplJni.java253 * Retrieve the candidate string from the current word information.
257 * @return The candidate string
363 * Set the candidate string to the current word information.
366 * @param candidate The candidate string
370 public static final native int setCandidate( long work, String candidate );
H A DTextCandidatesViewManager.java78 /** Delay of set candidate */
125 /** Minimum width of a candidate (density support) */
127 /** Maximum width of a candidate (density support) */
129 /** Minimum height of the category candidate view */
131 /** Left align threshold of the candidate view */
142 /** Whether hide the view if there is no candidate */
144 /** The converter to get candidates from and notice the selected candidate to. */
167 /** Character width of the candidate area */
178 /** The offset when the candidates is flowed out the candidate window */
184 /** Template object for each candidate an
[all...]
H A DOpenWnnEN.java554 if (mWordSeparators.contains(ev.word.candidate) &&
888 mInputConnection.commitText(word.candidate, (FIX_CURSOR_TEXT_END ? 1 : word.candidate.length()));
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DOpenWnnEngineEN.java54 /** The candidate filter */
102 * Get a candidate.
104 * @param index Index of candidate
105 * @return A candidate; {@code null} if no candidate for the index.
109 /* search the candidate from the dictionaries */
113 char c = word.candidate.charAt(0);
120 word.candidate = Character.toString(Character.toUpperCase(c)) + word.candidate.substring(1);
124 word.candidate
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DMultiSourceCorpus.java91 for (Source candidate : getSources()) {
92 if (candidate.getQueryThreshold() <= query.length()) {
93 sources.add(candidate);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
H A Dnj_ext.h87 NJ_CHAR *candidate, NJ_UINT16 size);
94 extern NJ_INT16 njd_b_get_candidate(NJ_WORD *word, NJ_CHAR *candidate,
103 extern NJ_INT16 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate,
117 NJ_CHAR *candidate, NJ_UINT16 size);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndfdic.c402 NJ_INT16 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, NJ_UINT16 size) argument
434 NJ_CHAR_COPY(candidate + j, area);
437 candidate[len] = NJ_CHAR_NUL;
450 nje_convert_hira_to_kata(work, candidate, len);
453 candidate[j] = work[j];
460 NJ_CHAR_COPY(candidate + j, area);
465 candidate[len] = NJ_CHAR_NUL;
H A Dndapi.c539 NJ_CHAR *candidate, NJ_UINT16 size) {
557 ret = njd_b_get_candidate(&result->word, candidate, size);
562 ret = njd_l_get_candidate(iwnn, &result->word, candidate, size);
566 ret = njd_f_get_candidate(&result->word, candidate, size);
538 njd_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *candidate, NJ_UINT16 size) argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DOpenWnnEngineJAJP.java127 /** The candidate filter */
195 * Get a candidate.
197 * @param index Index of a candidate.
198 * @return The candidate; {@code null} if there is no candidate.
264 * Add a candidate to the conversion result buffer.
267 * the same one in the buffer and the length of the candidate
274 if (word.candidate == null || mCandTable.containsKey(word.candidate)
275 || word.candidate
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCameraSettings.java111 for (String candidate : context.getResources().getStringArray(
113 if (setCameraPictureSize(candidate, supported, parameters)) {
116 editor.putString(KEY_PICTURE_SIZE, candidate);
130 String candidate, List<Size> supported, Parameters parameters) {
131 int index = candidate.indexOf('x');
133 int width = Integer.parseInt(candidate.substring(0, index));
134 int height = Integer.parseInt(candidate.substring(index + 1));
129 setCameraPictureSize( String candidate, List<Size> supported, Parameters parameters) argument
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraSettings.java102 for (String candidate : context.getResources().getStringArray(
104 if (setCameraPictureSize(candidate, supported, parameters)) {
107 editor.putString(KEY_PICTURE_SIZE, candidate);
121 String candidate, List<Size> supported, Parameters parameters) {
122 int index = candidate.indexOf('x');
124 int width = Integer.parseInt(candidate.substring(0, index));
125 int height = Integer.parseInt(candidate.substring(index + 1));
120 setCameraPictureSize( String candidate, List<Size> supported, Parameters parameters) argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DCropImage.java344 File candidate = null;
347 candidate = new File(directory, filename + "-" + i + "."
350 if (candidate.createNewFile()) break;
353 + candidate.getAbsolutePath(), e);
357 if (!candidate.exists() || !candidate.isFile()) {
361 candidate.setReadable(true, false);
362 candidate.setWritable(true, false);
365 FileOutputStream fos = new FileOutputStream(candidate);
381 + candidate
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DSearchActivity.java145 // pull the candidate string out of the full text rather than body
147 String candidate = mFullText.substring(start, end);
148 if (tp.measureText(candidate) > textFieldWidth) {
150 // do not use this "candidate"
157 candidate,
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
H A DOpenWnnDictionaryImplJni.c539 NJ_CHAR candidate[ NJ_MAX_LEN + NJ_TERM_LEN ]; local
541 if( njx_get_candidate( &( work->wnnClass ), &( work->result ), candidate, sizeof( NJ_CHAR ) * ( NJ_MAX_RESULT_LEN + NJ_TERM_LEN ) ) >= 0 &&
542 convertNjCharToString( env, &str, candidate, NJ_MAX_RESULT_LEN ) >= 0 ) {
889 (JNIEnv *env, jclass obj, jlong wnnWork, jstring candidate)
893 if( candidate == NULL ) {
900 if( ( *env )->GetStringLength( env, candidate ) > NJ_MAX_RESULT_LEN ) {
905 /* Store candidate string */
906 if( convertStringToNjChar( env, work->previousCandidate, candidate, NJ_MAX_RESULT_LEN ) >= 0 ) {
888 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setCandidate(JNIEnv *env, jclass obj, jlong wnnWork, jstring candidate) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DContactAggregator.java218 NameMatchCandidate candidate = mList.get(mCount);
219 candidate.mName = name;
220 candidate.mLookupType = nameLookupType;
1262 * structured names for all candidate contacts and recomputes match scores using approximate
1633 final NameMatchCandidate candidate = candidates.mList.get(i);
1634 if (candidate.mName.length() >= 2) {
1635 String firstLetter = candidate.mName.substring(0, 2);
1668 * Loads all candidate rows from the name lookup table and updates match scores based
1686 NameMatchCandidate candidate = candidates.mList.get(i);
1687 matcher.matchName(contactId, candidate
[all...]

Completed in 328 milliseconds

12