Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java188 public void updatePrimaryScore(int score) { in updatePrimaryScore() argument
189 if (score > mPrimaryScore) { in updatePrimaryScore()
190 mPrimaryScore = score; in updatePrimaryScore()
195 public void updateSecondaryScore(int score) { in updateSecondaryScore() argument
196 if (score > mSecondaryScore) { in updateSecondaryScore()
197 mSecondaryScore = score; in updateSecondaryScore()
219 int score = (mPrimaryScore > mSecondaryScore ? mPrimaryScore : mSecondaryScore); in getScore() local
223 return score * SCORE_SCALE + mMatchCount; in getScore()
305 int score; in matchName() local
313 score = (int)(minScore + (maxScore - minScore) * (1.0f - distance)); in matchName()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dwords_priority_queue.h36 void setParams(int score, unsigned short* word, int wordLength) { in setParams() argument
37 mScore = score; in setParams()
58 void push(int score, unsigned short* word, int wordLength) { in push() argument
63 if (minScore >= score) { in push()
71 sw = getFreeSuggestedWord(score, word, wordLength); in push()
73 sw->setParams(score, word, wordLength); in push()
80 AKLOGI("Push word. %d, %d", score, wordLength); in push()
191 SuggestedWord* getFreeSuggestedWord(int score, unsigned short* word, in getFreeSuggestedWord() argument
195 mSuggestedWords[i].setParams(score, word, wordLength); in getFreeSuggestedWord()
204 const int score = sw->mScore; in getNormalizedScore() local
[all …]
Dunigram_dictionary.cpp286 const int score = sw->mScore; in getWordSuggestions() local
290 proximityInfo->getPrimaryInputWord(), i, word, wordLength, score); in getWordSuggestions()
292 AKLOGI("--- TOP SUB WORDS for %d --- %d %f [%d]", i, score, ns, in getWordSuggestions()
510 int score = 0; in getSubStringSuggestion() local
513 &tempOutputWord, &score, &nextWordLength); in getSubStringSuggestion()
515 AKLOGI("NS(%d) = %f, Score = %d", currentWordIndex, ns, score); in getSubStringSuggestion()
523 freq = score >> (nextWordLength + TWO_WORDS_PLUS_OTHER_ERROR_CORRECTION_DEMOTION_DIVIDER); in getSubStringSuggestion()
Dcorrection.h171 const unsigned short* after, const int afterLength, const int score);
Dcorrection.cpp1122 const int score) { in calcNormalizedScore() argument
1138 const float maxScore = score >= S_INT_MAX ? S_INT_MAX : MAX_INITIAL_SCORE in calcNormalizedScore()
1146 return (score / maxScore) * weight; in calcNormalizedScore()
/packages/inputmethods/PinyinIME/jni/share/
Dspellingtrie.cpp323 dumb_node_->score = average_score_; in construct()
327 splitter_node_->score = average_score_; in construct()
334 root_->score = 0; in construct()
501 if (score_this < node_current->score) in construct_spellings_subset()
502 node_current->score = score_this; in construct_spellings_subset()
506 node_current->score = static_cast<unsigned char>( in construct_spellings_subset()
510 if (node_current->score < min_son_score) in construct_spellings_subset()
511 min_son_score = node_current->score; in construct_spellings_subset()
586 if (score_this < node_current->score) in construct_spellings_subset()
587 node_current->score = score_this; in construct_spellings_subset()
[all …]
Dspellingtable.cpp271 double score = log(raw_spellings_[pos].freq) * score_amplifier_; in arrange() local
272 assert(score >= 0); in arrange()
274 average_score += score; in arrange()
278 if (score > 255) in arrange()
279 score = 255; in arrange()
282 static_cast<char>((unsigned char)score); in arrange()
Duserdict.cpp1828 int score = _get_lemma_score(wrd, spl, nchar); in _get_lpis() local
1877 uint32 intf = extract_score_freq(score); in _get_lpis()
1888 uint64 last_mod = extract_score_lmt(score); in _get_lpis()
1983 score_offset_pairs[i].score = s; in _get_lpis()
1992 if (s < score_offset_pairs[0].score) { in _get_lpis()
1993 score_offset_pairs[0].score = s; in _get_lpis()
2012 int s = sop[i].score; in _get_lpis()
2014 sop[i].score = sop[j].score; in _get_lpis()
2016 sop[j].score = s; in _get_lpis()
2028 if (sop[left].score > sop[par].score) { in _get_lpis()
[all …]
Dngram.cpp235 float score = static_cast<float>( in convert_psb_to_score() local
237 if (score > static_cast<float>(kMaxScore)) { in convert_psb_to_score()
238 score = static_cast<float>(kMaxScore); in convert_psb_to_score()
240 return score; in convert_psb_to_score()
Dmatrixsearch.cpp220 node->score = 0; in reset_search0()
653 float score) { in add_lma_to_userdict() argument
721 .mtrx_nd_pos].score - score_from; in try_add_cand0_to_userdict()
746 .mtrx_nd_pos].score - score_from; in try_add_cand0_to_userdict()
1553 float score = mtrx_nd->score + lpi_items[pos].psb; in extend_mtrx_nd() local
1554 if (pos > 0 && score - PRUMING_SCORE > mtrx_nd_res_min->score) in extend_mtrx_nd()
1562 while (mtrx_nd_res > mtrx_nd_res_min && score < (mtrx_nd_res - 1)->score) { in extend_mtrx_nd()
1571 mtrx_nd_res->score = score; in extend_mtrx_nd()
1624 printf("--- sentence score: %f\n", mtrx_nd->score); in get_candidate0()
1637 mtrx_nd->step, mtrx_nd->id, mtrx_nd->score); in get_candidate0()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DWhitelistDictionary.java63 final int score = Integer.valueOf(wordlist[i]); in initWordlist() local
68 before.toLowerCase(), new Pair<Integer, String>(score, after)); in initWordlist()
69 addWord(after, null /* shortcut */, score); in initWordlist()
DSuggest.java436 public boolean addWord(final char[] word, final int offset, final int length, int score, in addWord() argument
462 && score <= currentHighestWord.mScore) { in addWord()
469 && suggestions.get(prefMaxSuggestions - 1).mScore >= score) return true; in addWord()
472 if (curScore < score in addWord()
473 || (curScore == score && length < suggestions.get(pos).codePointCount())) { in addWord()
498 suggestions.add(pos, new SuggestedWordInfo(sb, score)); in addWord()
DBinaryDictionary.java96 char[] before, int beforeLength, char[] after, int afterLength, int score); in calcNormalizedScoreNative() argument
192 public static float calcNormalizedScore(String before, String after, int score) { in calcNormalizedScore() argument
194 after.toCharArray(), after.length(), score); in calcNormalizedScore()
DSuggestedWords.java129 public SuggestedWordInfo(final CharSequence word, final int score) { in SuggestedWordInfo() argument
132 mScore = score; in SuggestedWordInfo()
DDictionary.java52 boolean addWord(char[] word, int wordOffset, int wordLength, int score, int dicTypeId, in addWord() argument
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp28 inline void db_RotationFromMOuterProductSum(double R[9],double *score,double M[9]) in db_RotationFromMOuterProductSum() argument
72 if(score) in db_RotationFromMOuterProductSum()
76 *score=db_ScalarProduct4(q,y); in db_RotationFromMOuterProductSum()
Ddb_feature_matching.cpp2930 double score; in db_MatchPointPair_f() local
2945 score=db_SignedSquareNormCorr11x11Aligned_Post_f(pir_l->patch,pir_r->patch, in db_MatchPointPair_f()
2949 if((!(pir_l->pir)) || (score>pir_l->s)) in db_MatchPointPair_f()
2952 pir_l->s=score; in db_MatchPointPair_f()
2955 if((!(pir_r->pir)) || (score>pir_r->s)) in db_MatchPointPair_f()
2958 pir_r->s=score; in db_MatchPointPair_f()
2968 double score; in db_MatchPointPair_u() local
2988 score=db_SignedSquareNormCorr21x21Aligned_Post_s(pir_l->patch,pir_r->patch, in db_MatchPointPair_u()
2997 score=db_SignedSquareNormCorr11x11Aligned_Post_s(pir_l->patch,pir_r->patch, in db_MatchPointPair_u()
3003 score=db_SignedSquareNormCorr5x5Aligned_Post_s(pir_l->patch,pir_r->patch, in db_MatchPointPair_u()
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp28 inline void db_RotationFromMOuterProductSum(double R[9],double *score,double M[9]) in db_RotationFromMOuterProductSum() argument
72 if(score) in db_RotationFromMOuterProductSum()
76 *score=db_ScalarProduct4(q,y); in db_RotationFromMOuterProductSum()
Ddb_feature_matching.cpp2930 double score; in db_MatchPointPair_f() local
2945 score=db_SignedSquareNormCorr11x11Aligned_Post_f(pir_l->patch,pir_r->patch, in db_MatchPointPair_f()
2949 if((!(pir_l->pir)) || (score>pir_l->s)) in db_MatchPointPair_f()
2952 pir_l->s=score; in db_MatchPointPair_f()
2955 if((!(pir_r->pir)) || (score>pir_r->s)) in db_MatchPointPair_f()
2958 pir_r->s=score; in db_MatchPointPair_f()
2968 double score; in db_MatchPointPair_u() local
2988 score=db_SignedSquareNormCorr21x21Aligned_Post_s(pir_l->patch,pir_r->patch, in db_MatchPointPair_u()
2997 score=db_SignedSquareNormCorr11x11Aligned_Post_s(pir_l->patch,pir_r->patch, in db_MatchPointPair_u()
3003 score=db_SignedSquareNormCorr5x5Aligned_Post_s(pir_l->patch,pir_r->patch, in db_MatchPointPair_u()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocationClustering.java298 float score = totalDistance * FloatMath.sqrt(realK); in kMeans() local
300 if (score < bestScore) { in kMeans()
301 bestScore = score; in kMeans()
306 if (score == 0) { in kMeans()
/packages/inputmethods/PinyinIME/jni/include/
Dmatrixsearch.h59 float score; member
367 bool add_lma_to_userdict(uint16 lma_from, uint16 lma_num, float score);
Dspellingtrie.h36 unsigned char score; member
Duserdict.h390 int score; member
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp201 jcharArray before, jint beforeLength, jcharArray after, jint afterLength, jint score) { in latinime_BinaryDictionary_calcNormalizedScore() argument
205 beforeLength, (unsigned short*)afterChars, afterLength, score); in latinime_BinaryDictionary_calcNormalizedScore()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java246 synchronized public boolean addWord(char[] word, int wordOffset, int wordLength, int score, in addWord() argument
248 final int positionIndex = Arrays.binarySearch(mScores, 0, mLength, score); in addWord()
280 BinaryDictionary.calcNormalizedScore(mOriginalText, wordString, score); in addWord()
296 mScores[insertIndex] = score; in addWord()