/packages/apps/Camera2/src/com/android/camera/stats/ |
H A D | Camera2FaceProxy.java | 30 public Camera2FaceProxy(Rect faceRect, int score) { argument 32 mScore = score;
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | autocorrection_threshold_utils.cpp | 46 // 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 D | suggested_word.h | 43 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 D | suggestion_results.cpp | 62 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 D | typing_scoring.h | 50 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 D | RawContactMatchingCandidates.java | 50 public void add(MatchScore score) { argument 51 mBestMatches.add(score); 53 mRawContactIds.add(score.getRawContactId()); 56 mRawContactToAccount.put(score.getRawContactId(), score.getAccountId()); 59 mRawContactToContact.put(score.getRawContactId(), score.getContactId());
|
H A D | MatchScore.java | 19 * 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 D | ContactMatcher.java | 34 // 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 D | RawContactMatcher.java | 33 // 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 D | db_framestitching.cpp | 28 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 D | db_feature_matching.cpp | 2930 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 D | BinaryDictionaryUtils.java | 46 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 D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 60 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 D | RecommenderTest.java | 114 // recommendChannels must be sorted by score in decreasing order. 133 // recommendChannels must be sorted by score in decreasing order. 237 // Add a log to recalculate the recommendation score. 244 // by setting score to each channel. 304 double score = Math.pow(0.5, channelIdList.size()); 306 // Channel with smaller id has smaller score than channel with higher id. 307 mEvaluator.setChannelScore(channelId, score); 308 score *= 2.0; 320 Double score = mChannelScore.get(channelId); 321 return score 324 setChannelScore(long channelId, double score) argument [all...] |
H A D | RoutineWatchEvaluatorTest.java | 55 private static ScoredItem score(String t1, String t2) { method in class:RoutineWatchEvaluatorTest 107 score(base, ""), 108 score(base, "bar"), 109 score(base, "foo bar"), 110 score(base, "foo bar baz")); 220 double score = expectedSeconds; 222 score *= RoutineWatchEvaluator.MULTIPLIER_FOR_UNMATCHED_DAY_OF_WEEK; 225 assertEquals("OverlappedIntervalScore", score, 227 assertEquals("OverlappedIntervalScore", score,
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/ |
H A D | DefaultNetworkRecommendationProvider.java | 65 * <p>RSSI_CURVE: bucketWidth,score,score,score,score,... 95 * The lowest RSSI value at which a fixed score should apply. 179 // We will only score networks we know about. 186 final int score = network.rssiCurve.lookupScore(scanResult.level); 187 Blog.v(TAG, "Scored " + scanResult + ": " + score); 188 if (score > recommendedScore) { 190 recommendedScore = score; 322 parseScore(String score) argument [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | Program.java | 772 * Adds a critic score 773 * @param criticScore the critic score 777 if (criticScore.score != null) { 886 * Holds one type of critic score and its source. 894 * The score. 896 public final String score; field in class:Program.CriticScore 907 String score = in.readString(); 909 return new CriticScore(source, score, logoUri); 921 * @param score the score 923 CriticScore(String source, String score, String logoUrl) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | SuggestedWords.java | 287 * @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 D | proximity_info_state_utils.cpp | 353 // 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) {
|