Searched defs:score (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/stats/
H A DCamera2FaceProxy.java30 public Camera2FaceProxy(Rect faceRect, int score) { argument
32 mScore = score;
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dautocorrection_threshold_utils.cpp46 // score = (int)((original score) * SUGGEST_INTERFACE_OUTPUT_SCALE)
47 // Undo the scaling here to recover the original score.
48 // normalizedScore = ((float)score) / SUGGEST_INTERFACE_OUTPUT_SCALE
51 // original score
54 // * (individual word's score which defined in the unigram dictionary,
55 // and this score is defined in range [0, 255].)
61 // capitalization, then treat it as if the score was 255.
64 // So, maximum original score is powf(2, min(before.length(), after.length())) * 255 * 2 * 1.2
68 // So, we can normalize original score b
70 calcNormalizedScore(const int *before, const int beforeLength, const int *after, const int afterLength, const int score) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
H A Dsuggested_word.h43 const int score, const int type, const int indexToPartialCommit,
45 : mCodePoints(codePoints, codePoints + codePointCount), mScore(score),
42 SuggestedWord(const int *const codePoints, const int codePointCount, const int score, const int type, const int indexToPartialCommit, const int autoCommitFirstWordConfidence) argument
H A Dsuggestion_results.cpp62 const int score, const int type, const int indexToPartialCommit,
72 if (score > mWorstSuggestion.getScore() || (score == mWorstSuggestion.getScore()
79 mSuggestedWords.push(SuggestedWord(codePoints, codePointCount, score, type,
61 addSuggestion(const int *const codePoints, const int codePointCount, const int score, const int type, const int indexToPartialCommit, const int autocimmitFirstWordConfindence) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
H A Dtyping_scoring.h50 float score = ScoringParams::TYPING_BASE_OUTPUT_SCORE - compoundDistance / maxDistance; local
52 score += ScoringParams::AUTOCORRECT_OUTPUT_THRESHOLD;
71 // distracter), ONLY boost its score if it is a perfect match.
77 score += ScoringParams::PERFECT_MATCH_PROMOTION;
81 score += ScoringParams::EXACT_MATCH_PROMOTION;
83 score -= ScoringParams::CASE_ERROR_PENALTY_FOR_EXACT_MATCH;
86 score -= ScoringParams::ACCENT_ERROR_PENALTY_FOR_EXACT_MATCH;
89 score -= ScoringParams::DIGRAPH_PENALTY_FOR_EXACT_MATCH;
93 return static_cast<int>(score * SUGGEST_INTERFACE_OUTPUT_SCALE);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
H A DRawContactMatchingCandidates.java51 public void add(MatchScore score) { argument
52 mBestMatches.add(score);
54 mRawContactIds.add(score.getRawContactId());
57 mRawContactToAccount.put(score.getRawContactId(), score.getAccountId());
60 mRawContactToContact.put(score.getRawContactId(), score.getContactId());
H A DMatchScore.java19 * Captures the max score and match count for a specific raw contact or contact.
24 // Best possible match score
78 public void updatePrimaryScore(int score) { argument
79 if (score > mPrimaryScore) {
80 mPrimaryScore = score;
85 public void updateSecondaryScore(int score) { argument
86 if (score > mSecondaryScore) {
87 mSecondaryScore = score;
109 int score = (mPrimaryScore > mSecondaryScore ? mPrimaryScore : mSecondaryScore);
111 // Ensure that of two contacts with the same match score th
[all...]
H A DContactMatcher.java34 // Suggest to aggregate contacts if their match score is equal or greater than this threshold
37 // Automatically aggregate contacts if their match score is equal or greater than this threshold
40 // Automatically aggregate contacts if the match score is equal or greater than this threshold
75 * "full name", the score may be 99. If we are looking for a "nickname" but
76 * find "first name", the score may be 50 (see specific scores defined
80 * similar the two strings are, the score will be somewhere between 40 and 70, with the exact
81 * match producing the score of 70. The score may also be 0 if the similarity (distance)
129 * Populates the cells of the score matrix and score spa
256 updatePrimaryScore(long contactId, int score) argument
260 updateSecondaryScore(long contactId, int score) argument
[all...]
H A DRawContactMatcher.java33 // Suggest to aggregate contacts if their match score is equal or greater than this threshold
38 // Automatically aggregate contacts if their match score is equal or greater than this threshold
41 // Automatically aggregate contacts if the match score is equal or greater than this threshold
79 * "full name", the score may be 99. If we are looking for a "nickname" but
80 * find "first name", the score may be 50 (see specific scores defined
84 * similar the two strings are, the score will be somewhere between 40 and 70, with the exact
85 * match producing the score of 70. The score may also be 0 if the similarity (distance)
133 * Populates the cells of the score matrix and score spa
258 updatePrimaryScore(long rawContactId, long contactId, long accountId, int score) argument
262 updateSecondaryScore(long rawContactId, long contactId, long accountId, int score) argument
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_framestitching.cpp28 inline void db_RotationFromMOuterProductSum(double R[9],double *score,double M[9]) argument
72 if(score)
74 /*Compute score=transpose(q)*N*q */
76 *score=db_ScalarProduct4(q,y);
H A Ddb_feature_matching.cpp2930 double score; local
2945 score=db_SignedSquareNormCorr11x11Aligned_Post_f(pir_l->patch,pir_r->patch,
2949 if((!(pir_l->pir)) || (score>pir_l->s))
2952 pir_l->s=score;
2955 if((!(pir_r->pir)) || (score>pir_r->s))
2958 pir_r->s=score;
2968 double score; local
2988 score=db_SignedSquareNormCorr21x21Aligned_Post_s(pir_l->patch,pir_r->patch,
2997 score=db_SignedSquareNormCorr11x11Aligned_Post_s(pir_l->patch,pir_r->patch,
3003 score
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DBinaryDictionaryUtils.java46 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); argument
110 final int score) {
112 StringUtils.toCodePointArray(after), score);
109 calcNormalizedScore(final String before, final String after, final int score) argument
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp60 jintArray before, jintArray after, jint score) {
68 afterCodePoints, afterLength, score);
59 latinime_BinaryDictionaryUtils_calcNormalizedScore(JNIEnv *env, jclass clazz, jintArray before, jintArray after, jint score) argument
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
H A DRecommenderTest.java122 // recommendChannels must be sorted by score in decreasing order.
142 // recommendChannels must be sorted by score in decreasing order.
251 // Add a log to recalculate the recommendation score.
258 // by setting score to each channel.
319 double score = Math.pow(0.5, channelIdList.size());
321 // Channel with smaller id has smaller score than channel with higher id.
322 mEvaluator.setChannelScore(channelId, score);
323 score *= 2.0;
335 Double score = mChannelScore.get(channelId);
336 return score
339 setChannelScore(long channelId, double score) argument
[all...]
H A DRoutineWatchEvaluatorTest.java59 private static ScoredItem score(String t1, String t2) { method in class:RoutineWatchEvaluatorTest
117 score(base, ""),
118 score(base, "bar"),
119 score(base, "foo bar"),
120 score(base, "foo bar baz"));
233 double score = expectedSeconds;
235 score *= RoutineWatchEvaluator.MULTIPLIER_FOR_UNMATCHED_DAY_OF_WEEK;
238 assertEqualScores("OverlappedIntervalScore", score,
240 assertEqualScores("OverlappedIntervalScore", score,
/packages/apps/TV/src/com/android/tv/data/
H A DProgram.java789 * Adds a critic score
790 * @param criticScore the critic score
794 if (criticScore.score != null) {
910 * Holds one type of critic score and its source.
918 * The score.
920 public final String score; field in class:Program.CriticScore
931 String score = in.readString();
933 return new CriticScore(source, score, logoUri);
945 * @param score the score
947 CriticScore(String source, String score, String logoUrl) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggestedWords.java287 * @param score A measure of how likely this suggestion is.
295 final int score, final int kindAndFlags,
301 mScore = score;
294 SuggestedWordInfo(final String word, final String prevWordsContext, final int score, final int kindAndFlags, final Dictionary sourceDict, final int indexOfTouchPointOfSecondWord, final int autoCommitFirstWordConfidence) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state_utils.cpp353 // Calculating a point score that indicates usefulness of the point.
373 float score = 0.0f; local
378 score += ProximityInfoParams::NOT_LOCALMIN_DISTANCE_SCORE;
381 score += ProximityInfoParams::LOCALMIN_DISTANCE_AND_NEAR_TO_KEY_SCORE;
394 score += ProximityInfoParams::CORNER_SCORE;
396 return score;
418 const float score = getPointScore(mostCommonKeyWidth, x, y, time, isLastPoint, nearest, local
421 if (score < 0) {
/packages/apps/TV/libs/
H A Dexoplayer_v2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer2/ ...

Completed in 369 milliseconds