Home
last modified time | relevance | path

Searched refs:candidate (Results 1 – 25 of 56) sorted by relevance

123

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DWnnWord.java28 public String candidate; field in WnnWord
51 public WnnWord(String candidate, String stroke) { in WnnWord() argument
52 this(0, candidate, stroke, new WnnPOS(), 0, 0); in WnnWord()
62 public WnnWord(String candidate, String stroke, int frequency) { in WnnWord() argument
63 this(0, candidate, stroke, new WnnPOS(), frequency, 0); in WnnWord()
73 public WnnWord(String candidate, String stroke, WnnPOS posTag) { in WnnWord() argument
74 this(0, candidate, stroke, posTag, 0, 0); in WnnWord()
85 public WnnWord(String candidate, String stroke, WnnPOS posTag, int frequency) { in WnnWord() argument
86 this(0, candidate, stroke, posTag, frequency, 0); in WnnWord()
98 public WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency) { in WnnWord() argument
[all …]
DWnnSentence.java41 this.candidate = ""; in WnnSentence()
52 this.candidate = headClause.candidate; in WnnSentence()
58 StringBuffer candidate = new StringBuffer(); in WnnSentence() local
62 candidate.append(clause.candidate); in WnnSentence()
67 this.candidate = candidate.toString(); in WnnSentence()
84 this.candidate = clause.candidate; in WnnSentence()
102 this.candidate = prev.candidate + clause.candidate; in WnnSentence()
123 this.candidate = head.candidate; in WnnSentence()
133 this.candidate = head.candidate + tail.candidate; in WnnSentence()
DUserDictionaryToolsList.java409 wnnWordSearch.candidate = focusString.toString();
412 wnnWordSearch.candidate = focusPairString.toString();
579 int len = getword.candidate.length(); in deleteWord()
583 if (searchword.candidate.equals(getword.candidate)) { in deleteWord()
586 delword.candidate = searchword.candidate; in deleteWord()
697 UserDictionaryToolsListFocus candidate = new UserDictionaryToolsListFocus(this); in updateWordList() local
698 candidate.setId(i+MAX_WORD_COUNT); in updateWordList()
699 candidate.setWidth(system_width/2); in updateWordList()
700 candidate.setTextSize(WORD_TEXT_SIZE); in updateWordList()
701 candidate.setTextColor(Color.LTGRAY); in updateWordList()
[all …]
DOpenWnnDictionaryImpl.java475 queryArgs[ 1 ] = wnnWord.candidate; in createQuery()
606 OpenWnnDictionaryImplJni.setCandidate( this.mWnnWork, wnnWord.candidate ); in searchWord()
650 result.candidate = mDbCursor.getString( 1 ); in getNextWord()
685 … result.candidate = OpenWnnDictionaryImplJni.getCandidate( this.mWnnWork ); in getNextWord()
728 words[ i ].candidate = cursor.getString( 1 ); in getUserDictionaryWords()
875 … word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) { in addWordToUserDictionary()
879 … DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate ); in addWordToUserDictionary()
899 content.put( COLUMN_NAME_CANDIDATE, word[index].candidate ); in addWordToUserDictionary()
950 … word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) { in removeWordFromUserDictionary()
954 DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate ); in removeWordFromUserDictionary()
[all …]
DWnnClause.java34 public WnnClause(String candidate, String stroke, WnnPOS posTag, int frequency) { in WnnClause() argument
35 super(candidate, in WnnClause()
49 stem.candidate, in WnnClause()
65 stem.candidate + fzk.candidate, in WnnClause()
DUserDictionaryToolsEdit.java150 mBeforeEditWnnWord.candidate = ((TextView)sFocusingPairView).getText().toString(); in onCreate()
250 String candidate = mCandidateEditText.getText().toString(); in doSaveAction() local
251 if (addDictionary(stroke, candidate)) { in doSaveAction()
262 String candidate = mCandidateEditText.getText().toString(); in doSaveAction() local
263 if (addDictionary(stroke, candidate)) { in doSaveAction()
266 addDictionary(mBeforeEditWnnWord.stroke, mBeforeEditWnnWord.candidate); in doSaveAction()
337 private boolean addDictionary(String stroke, String candidate) {
343 wnnWordAdd.candidate = candidate;
DCandidateTextView.java100 setText(word.candidate); in setCandidateTextView()
120 int width = (int)paint.measureText(word.candidate, 0, word.candidate.length()); in setCustomCandidate()
131 width = (int)paint.measureText(word.candidate, 0, word.candidate.length()); in setCustomCandidate()
DTextCandidatesViewManager.java814 if ((prevCandidate == null) || !prevCandidate.equals(result.candidate)) { in displayCandidates()
822 prevCandidate = result.candidate; in displayCandidates()
830 result.candidate = getCategoriesText(result.candidate); in displayCandidates()
879 int textLength = measureText(word.candidate, 0, word.candidate.length()); in setCandidate()
884 if (mIsSymbolMode && (word.candidate.length() < 3)) { in setCandidate()
993 textView.setText(word.candidate); in setCandidate()
1004 textView.setText(" " + word.candidate); in setCandidate()
1041 if (word.candidate.equals(" ")) { in setCandidate()
1044 } else if (word.candidate.equals("\u3000" /* full-width space */)) { in setCandidate()
1452 int length = word.candidate.length(); in isCategory()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DRedEyeCandidate.java25 public RedEyeCandidate(RedEyeCandidate candidate) { in RedEyeCandidate() argument
26 mRect.set(candidate.mRect); in RedEyeCandidate()
27 mBounds.set(candidate.mBounds); in RedEyeCandidate()
35 public boolean equals(RedEyeCandidate candidate) { in equals() argument
36 if (candidate.mRect.equals(mRect) in equals()
37 && candidate.mBounds.equals(mBounds)) { in equals()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java115 for (Size candidate : supported) { in getSmallestSupportedSizeContainingTarget()
116 long pixels = candidate.area(); in getSmallestSupportedSizeContainingTarget()
117 if (candidate.getWidth() >= target.getWidth() && in getSmallestSupportedSizeContainingTarget()
118 candidate.getHeight() >= target.getHeight() && in getSmallestSupportedSizeContainingTarget()
120 best = candidate; in getSmallestSupportedSizeContainingTarget()
163 for (Size candidate : supported) { in getLargestSupportedSize()
164 long area = candidate.area(); in getLargestSupportedSize()
166 largestSize = candidate; in getLargestSupportedSize()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DOpenWnnEngineEN.java113 char c = word.candidate.charAt(0); in getCandidate()
120 … word.candidate = Character.toString(Character.toUpperCase(c)) + word.candidate.substring(1); in getCandidate()
124 word.candidate = word.candidate.toUpperCase(); in getCandidate()
163 if (word.candidate == null || mCandTable.containsKey(word.candidate)) { in addCandidate()
169 mCandTable.put(word.candidate, word); in addCandidate()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationPositionTracker.java90 final Conversation candidate = conversationAtPosition(pos); in getNewer() local
91 if (!Conversation.contains(victims, candidate)) { in getNewer()
92 return candidate; in getNewer()
112 final Conversation candidate = conversationAtPosition(pos); in getOlder() local
113 if (!Conversation.contains(victims, candidate)) { in getOlder()
114 return candidate; in getOlder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DMoveAppStepFragment.java111 for (final VolumeInfo candidate : mCandidateVolumes) { in onCreateActions()
112 if (!candidate.isMountedWritable()) { in onCreateActions()
115 final File path = candidate.getPath(); in onCreateActions()
118 .title(mStorageManager.getBestVolumeDescription(candidate)) in onCreateActions()
121 .checked(TextUtils.equals(mCurrentVolume.getId(), candidate.getId())) in onCreateActions()
123 .id(mCandidateVolumes.indexOf(candidate)) in onCreateActions()
DMigrateStorageActivity.java268 for (final VolumeInfo candidate : mCandidateVolumes) { in onCreateActions()
269 if (TextUtils.equals(candidate.getId(), volumeId)) { in onCreateActions()
272 final File path = candidate.getPath(); in onCreateActions()
275 .title(storageManager.getBestVolumeDescription(candidate)) in onCreateActions()
278 .id(mCandidateVolumes.indexOf(candidate)) in onCreateActions()
DFormatActivity.java254 for (final VolumeInfo candidate : candidates) { in launchMigrateStorageAndFinish()
255 if (TextUtils.equals(candidate.getDiskId(), diskId)) { in launchMigrateStorageAndFinish()
256 moveTarget = candidate; in launchMigrateStorageAndFinish()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndfdic.c402 NJ_INT16 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, NJ_UINT16 size) in njd_f_get_candidate() argument
434 NJ_CHAR_COPY(candidate + j, area); in njd_f_get_candidate()
437 candidate[len] = NJ_CHAR_NUL; in njd_f_get_candidate()
450 nje_convert_hira_to_kata(work, candidate, len); in njd_f_get_candidate()
453 candidate[j] = work[j]; in njd_f_get_candidate()
460 NJ_CHAR_COPY(candidate + j, area); in njd_f_get_candidate()
465 candidate[len] = NJ_CHAR_NUL; in njd_f_get_candidate()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImagePoint.java72 for (FilterPoint candidate : mRedEyeRep.getCandidates()) { in onDraw()
73 drawPoint(candidate, canvas, originalToScreen, originalRotateToScreen, paint); in onDraw()
79 FilterPoint candidate, Canvas canvas, Matrix originalToScreen, in drawPoint() argument
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java102 for (String candidate : context.getResources().getStringArray( in initialCameraPictureSize()
104 if (setCameraPictureSize(candidate, supported, parameters)) { in initialCameraPictureSize()
107 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize()
121 String candidate, List<Size> supported, Parameters parameters) { in setCameraPictureSize() argument
122 int index = candidate.indexOf('x'); in setCameraPictureSize()
124 int width = Integer.parseInt(candidate.substring(0, index)); in setCameraPictureSize()
125 int height = Integer.parseInt(candidate.substring(index + 1)); in setCameraPictureSize()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
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/src/jp/co/omronsoft/openwnn/JAJP/
DOpenWnnEngineJAJP.java274 if (word.candidate == null || mCandTable.containsKey(word.candidate) in addCandidate()
275 || word.candidate.length() > MAX_OUTPUT_LENGTH) { in addCandidate()
281 mCandTable.put(word.candidate, word); in addCandidate()
564 mInputRomaji = clause.candidate; in makeCandidateListOf()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultHomePreference.java77 final ResolveInfo candidate = homeActivities.get(i); in refreshHomeOptions() local
78 final ActivityInfo info = candidate.activityInfo; in refreshHomeOptions()
85 if (mustSupportManagedProfile && !launcherHasManagedProfilesFeature(candidate, pm)) { in refreshHomeOptions()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolderWatcher.java198 final Folder candidate = mInboxMap.get(uri); in getDefaultInbox() local
199 if (candidate != null) { in getDefaultInbox()
200 return candidate; in getDefaultInbox()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DReadOnlyBinaryDictionary.java83 public boolean shouldAutoCommit(final SuggestedWordInfo candidate) { in shouldAutoCommit() argument
86 return mBinaryDictionary.shouldAutoCommit(candidate); in shouldAutoCommit()
DSuggestedWords.java234 final SuggestedWordInfo candidate = mSuggestedWordInfoList.get(0); in getAutoCommitCandidate()
235 return candidate.isEligibleForAutoCommit() ? candidate : null; in getAutoCommitCandidate()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java581 for (Bitmap candidate : mUnusedBitmaps) {
582 if (candidate != null && candidate.isMutable() &&
583 candidate.getWidth() == mPreviewWidth &&
584 candidate.getHeight() == mPreviewHeight) {
585 unusedBitmap = candidate;

123