/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | RawContactMatcher.java | 226 int score; in matchName() local 234 score = (int)(minScore + (maxScore - minScore) * (1.0f - distance)); in matchName() 236 score = 0; in matchName() 239 updatePrimaryScore(rawContactId, contactId, accountId, score); in matchName() 258 private void updatePrimaryScore(long rawContactId, long contactId, long accountId, int score) { in updatePrimaryScore() argument 259 getMatchingScore(rawContactId, contactId, accountId).updatePrimaryScore(score); in updatePrimaryScore() 263 int score) { in updateSecondaryScore() argument 264 getMatchingScore(rawContactId, contactId, accountId).updateSecondaryScore(score); in updateSecondaryScore() 290 MatchScore score = mScoreList.get(i); in prepareSecondaryMatchCandidates() local 291 if (score.isKeepOut() || score.getPrimaryScore() > SCORE_THRESHOLD_PRIMARY){ in prepareSecondaryMatchCandidates() [all …]
|
D | ContactMatcher.java | 228 int score; in matchName() local 236 score = (int)(minScore + (maxScore - minScore) * (1.0f - distance)); in matchName() 238 score = 0; in matchName() 241 updatePrimaryScore(contactId, score); in matchName() 256 private void updatePrimaryScore(long contactId, int score) { in updatePrimaryScore() argument 257 getMatchingScore(contactId).updatePrimaryScore(score); in updatePrimaryScore() 260 private void updateSecondaryScore(long contactId, int score) { in updateSecondaryScore() argument 261 getMatchingScore(contactId).updateSecondaryScore(score); in updateSecondaryScore() 288 MatchScore score = mScoreList.get(i); in prepareSecondaryMatchCandidates() local 289 if (score.isKeepOut()) { in prepareSecondaryMatchCandidates() [all …]
|
D | MatchScore.java | 78 public void updatePrimaryScore(int score) { in updatePrimaryScore() argument 79 if (score > mPrimaryScore) { in updatePrimaryScore() 80 mPrimaryScore = score; in updatePrimaryScore() 85 public void updateSecondaryScore(int score) { in updateSecondaryScore() argument 86 if (score > mSecondaryScore) { in updateSecondaryScore() 87 mSecondaryScore = score; in updateSecondaryScore() 109 int score = (mPrimaryScore > mSecondaryScore ? mPrimaryScore : mSecondaryScore); in getScore() local 113 return score * SCORE_SCALE + mMatchCount; in getScore()
|
D | RawContactMatchingCandidates.java | 51 public void add(MatchScore score) { in add() argument 52 mBestMatches.add(score); in add() 54 mRawContactIds.add(score.getRawContactId()); in add() 57 mRawContactToAccount.put(score.getRawContactId(), score.getAccountId()); in add() 60 mRawContactToContact.put(score.getRawContactId(), score.getContactId()); in add()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluator.java | 72 double score = in evaluateChannel() local 75 if (score >= REQUIRED_MIN_SCORE && score > maxScore) { in evaluateChannel() 76 maxScore = score; in evaluateChannel() 88 double score = in evaluateChannel() local 90 if (score >= REQUIRED_MIN_SCORE && score > maxScore) { in evaluateChannel() 91 maxScore = score; in evaluateChannel() 177 double score = in calculateOverlappedIntervalScore() local 182 if (score > 0) { in calculateOverlappedIntervalScore() 186 score = in calculateOverlappedIntervalScore() 196 score *= MULTIPLIER_FOR_UNMATCHED_DAY_OF_WEEK; in calculateOverlappedIntervalScore() [all …]
|
D | Recommender.java | 126 double score = evaluator.getScaledEvaluatorScore(cr.getChannel().getId()); in recommendChannels() local 127 if (score > maxScore) { in recommendChannels() 128 maxScore = score; in recommendChannels() 299 double score = mEvaluator.evaluateChannel(channelId); in getScaledEvaluatorScore() local 300 if (score < 0.0) { in getScaledEvaluatorScore() 301 if (score != Evaluator.NOT_RECOMMENDED) { in getScaledEvaluatorScore() 304 "Unexpected score (" + score + ") from the recommender" + mEvaluator); in getScaledEvaluatorScore() 308 } else if (score > 1.0) { in getScaledEvaluatorScore() 309 Log.w(TAG, "Unexpected score (" + score + ") from the recommender" + mEvaluator); in getScaledEvaluatorScore() 310 score = 1.0; in getScaledEvaluatorScore() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
D | typing_scoring.h | 50 float score = ScoringParams::TYPING_BASE_OUTPUT_SCORE - compoundDistance / maxDistance; in calculateFinalScore() local 52 score += ScoringParams::AUTOCORRECT_OUTPUT_THRESHOLD; in calculateFinalScore() 77 score += ScoringParams::PERFECT_MATCH_PROMOTION; in calculateFinalScore() 81 score += ScoringParams::EXACT_MATCH_PROMOTION; in calculateFinalScore() 83 score -= ScoringParams::CASE_ERROR_PENALTY_FOR_EXACT_MATCH; in calculateFinalScore() 86 score -= ScoringParams::ACCENT_ERROR_PENALTY_FOR_EXACT_MATCH; in calculateFinalScore() 89 score -= ScoringParams::DIGRAPH_PENALTY_FOR_EXACT_MATCH; in calculateFinalScore() 93 return static_cast<int>(score * SUGGEST_INTERFACE_OUTPUT_SCALE); in calculateFinalScore()
|
/packages/apps/TV/src/com/android/tv/data/api/ |
D | Program.java | 97 public final String score; field in Program.CriticScore 106 String score = in.readString(); 108 return new CriticScore(source, score, logoUri); 123 public CriticScore(String source, String score, String logoUrl) { in CriticScore() argument 125 this.score = score; in CriticScore() 137 out.writeString(score); in writeToParcel()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluatorTest.java | 63 private static ScoredItem score(String t1, String t2) { in score() method in RoutineWatchEvaluatorTest 131 score(base, ""), in testCalculateTitleMatchScore_longerMatchIsBetter() 132 score(base, "bar"), in testCalculateTitleMatchScore_longerMatchIsBetter() 133 score(base, "foo bar"), in testCalculateTitleMatchScore_longerMatchIsBetter() 134 score(base, "foo bar baz") in testCalculateTitleMatchScore_longerMatchIsBetter() 284 double score = expectedSeconds; in assertOverlappedIntervalScore() local 286 score *= RoutineWatchEvaluator.MULTIPLIER_FOR_UNMATCHED_DAY_OF_WEEK; in assertOverlappedIntervalScore() 291 score, in assertOverlappedIntervalScore() 295 score, in assertOverlappedIntervalScore()
|
D | RecommenderTest.java | 332 double score = Math.pow(0.5, channelIdList.size()); in setChannelScores_scoreIncreasesAsChannelIdIncreases() local 335 mEvaluator.setChannelScore(channelId, score); in setChannelScores_scoreIncreasesAsChannelIdIncreases() 336 score *= 2.0; in setChannelScores_scoreIncreasesAsChannelIdIncreases() 348 Double score = mChannelScore.get(channelId); in evaluateChannel() local 349 return score == null ? NOT_RECOMMENDED : score; in evaluateChannel() 352 public void setChannelScore(long channelId, double score) { in setChannelScore() argument 353 mChannelScore.put(channelId, score); in setChannelScore()
|
D | EvaluatorTestCase.java | 99 double score = mEvaluator.evaluateChannel(channelId); in assertChannelScoresValid() local 101 "Channel " + channelId + " score of " + score + "is not valid", in assertChannelScoresValid() 102 score == Evaluator.NOT_RECOMMENDED || (0.0 <= score && score <= 1.0)); in assertChannelScoresValid()
|
D | RecentChannelEvaluatorTest.java | 108 double score = mEvaluator.evaluateChannel(channelId); in testMultiChannelsWithSimpleWatchLogs() local 109 assertThat(previousScore).isAtMost(score); in testMultiChannelsWithSimpleWatchLogs() 110 previousScore = score; in testMultiChannelsWithSimpleWatchLogs()
|
D | FavoriteChannelEvaluatorTest.java | 108 double score = mEvaluator.evaluateChannel(channelId); in testMultiChannelsWithSimpleWatchLogs() local 109 assertThat(previousScore).isAtMost(score); in testMultiChannelsWithSimpleWatchLogs() 110 previousScore = score; in testMultiChannelsWithSimpleWatchLogs()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | autocorrection_threshold_utils.cpp | 71 const int beforeLength, const int *after, const int afterLength, const int score) { in calcNormalizedScore() argument 87 if (score <= 0 || distance >= afterLength) { in calcNormalizedScore() 97 return (static_cast<float>(score) / SUGGEST_INTERFACE_OUTPUT_SCALE) * weight; in calcNormalizedScore() 100 const float maxScore = score >= S_INT_MAX ? static_cast<float>(S_INT_MAX) in calcNormalizedScore() 106 return (static_cast<float>(score) / maxScore) * weight; in calcNormalizedScore()
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 89 float score = hsv[1] * hsv[2]; in findDominantColorByHue() local 90 hueScoreHistogram[hue] += score; in findDominantColorByHue() 114 float score = s * v; in findDominantColorByHue() local 116 float newTotal = oldTotal == null ? score : oldTotal + score; in findDominantColorByHue()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
D | suggestion_results.cpp | 62 const int score, const int type, const int indexToPartialCommit, in addSuggestion() argument 72 if (score > mWorstSuggestion.getScore() || (score == mWorstSuggestion.getScore() in addSuggestion() 79 mSuggestedWords.push(SuggestedWord(codePoints, codePointCount, score, type, in addSuggestion()
|
D | suggestion_results.h | 41 void addPrediction(const int *const codePoints, const int codePointCount, const int score); 43 const int score, const int type, const int indexToPartialCommit,
|
D | suggested_word.h | 43 const int score, const int type, const int indexToPartialCommit, in SuggestedWord() argument 45 : mCodePoints(codePoints, codePoints + codePointCount), mScore(score), in SuggestedWord()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 430 int score = derivedType - other.derivedType; in compareTo() local 431 if (score != 0) { in compareTo() 432 return score; in compareTo() 435 score = compareToIgnoreCaseNullable(title, other.title); in compareTo() 436 if (score != 0) { in compareTo() 437 return score; in compareTo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | BinaryDictionaryUtils.java | 46 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); in calcNormalizedScoreNative() argument 110 final int score) { in calcNormalizedScore() argument 112 StringUtils.toCodePointArray(after), score); in calcNormalizedScore()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_framestitching.cpp | 28 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()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocationClustering.java | 300 float score = totalDistance * (float) Math.sqrt(realK); in kMeans() local 302 if (score < bestScore) { in kMeans() 303 bestScore = score; in kMeans() 308 if (score == 0) { in kMeans()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | defines.h | 114 #define DUMP_SUGGESTION(words, frequencies, index, score) \ argument 115 do { dumpWordInfo(words, frequencies, index, score); } while (0) 169 #define DUMP_SUGGESTION(words, frequencies, index, score) argument
|
/packages/apps/Camera2/src/com/android/camera/stats/ |
D | Camera2FaceProxy.java | 30 public Camera2FaceProxy(Rect faceRect, int score) { in Camera2FaceProxy() argument 32 mScore = score; in Camera2FaceProxy()
|
/packages/modules/DnsResolver/ |
D | DnsStats.cpp | 149 double StatsRecords::score() const { in score() function in android::net::StatsRecords 220 sortedData.insert({statsRecords.score(), ip}); in getSortedServers() 253 str += StringPrintf(" score{%.1f}", statsRecords.score()); in dump()
|