/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | SurfaceCompositionTest.java | 78 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance() local 79 Log.i(TAG, "testSurfaceCompositionPerformance(" + formatName + ") = " + score); in testSurfaceCompositionPerformance() 81 "performance score. " + score.mSurfaces + " < " + in testSurfaceCompositionPerformance() 83 score.mSurfaces >= minScores[i]); in testSurfaceCompositionPerformance() 86 status.putDouble(KEY_SURFACE_COMPOSITION_PERFORMANCE, score.mSurfaces); in testSurfaceCompositionPerformance() 88 status.putDouble(KEY_SURFACE_COMPOSITION_BANDWITH, score.mBandwidth / in testSurfaceCompositionPerformance() 101 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance() local 102 Log.i(TAG, "testSurfaceAllocationPerformance(" + formatName + ") = " + score); in testSurfaceAllocationPerformance() 104 "performance score. " + score.mMedian + " < " + in testSurfaceAllocationPerformance() 107 score.mMedian >= MIN_ACCEPTED_ALLOCATION_SCORE[i]); in testSurfaceAllocationPerformance() [all …]
|
D | SurfaceCompositionMeasuringActivity.java | 128 CompositorScore score = new CompositorScore(); in measureCompositionScore() local 129 score.mSurfaces = measureCompositionScore(new Measurement(0, 60.0), in measureCompositionScore() 132 score.mBandwidth = score.mSurfaces * mTargetFPS * mWidth * mHeight * 4.0; in measureCompositionScore() 134 return score; in measureCompositionScore() 151 AllocationScore score = new AllocationScore(); in measureAllocationScore() local 170 score.mMedian += speed / MEASURE_ALLOCATION_CYCLES; in measureAllocationScore() 172 score.mMin = speed; in measureAllocationScore() 173 score.mMax = speed; in measureAllocationScore() 175 score.mMin = Math.min(score.mMin, speed); in measureAllocationScore() 176 score.mMax = Math.max(score.mMax, speed); in measureAllocationScore() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | ImageGoodnessFilter.java | 138 float score = 0.0f; in onProcess() local 139 score = computePictureScore(vectorAccel, sharpness, underExposure, overExposure, in onProcess() 141 if (scoreMean == 0) scoreMean = score; in onProcess() 142 else scoreMean = scoreMean * (1 - DECAY) + score * DECAY; in onProcess() 148 colorfulness, contrastRating, score); in onProcess() 156 if (score >= GREAT_SCORE) { in onProcess() 158 } else if (score >= GOOD_SCORE) { in onProcess() 160 } else if (score >= OK_SCORE) { in onProcess() 162 } else if (score >= BAD_SCORE) { in onProcess() 191 scoreFrame.setValue(score); in onProcess() [all …]
|
/frameworks/av/media/libaudioclient/ |
D | AudioProductStrategy.cpp | 80 int score = MATCH_ON_DEFAULT_SCORE; in attributesMatchesScore() local 82 score |= MATCH_ON_DEFAULT_SCORE; in attributesMatchesScore() 84 score |= MATCH_ON_USAGE_SCORE; in attributesMatchesScore() 89 score |= MATCH_ON_DEFAULT_SCORE; in attributesMatchesScore() 91 score |= MATCH_ON_CONTENT_TYPE_SCORE; in attributesMatchesScore() 96 score |= MATCH_ON_DEFAULT_SCORE; in attributesMatchesScore() 98 score |= MATCH_ON_TAGS_SCORE; in attributesMatchesScore() 103 score |= MATCH_ON_DEFAULT_SCORE; in attributesMatchesScore() 106 score |= MATCH_ON_FLAGS_SCORE; in attributesMatchesScore() 110 return score; in attributesMatchesScore()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | LocaleUtils.java | 93 ScoreEntry(@NonNull byte[] score, int index) { in ScoreEntry() argument 94 mScore = new byte[score.length]; in ScoreEntry() 95 set(score, index); in ScoreEntry() 98 private void set(@NonNull byte[] score, int index) { in set() argument 100 mScore[i] = score[i]; in set() 108 public void updateIfBetter(@NonNull byte[] score, int index) { in updateIfBetter() argument 109 if (compare(mScore, score) == -1) { // mScore < score in updateIfBetter() 110 set(score, index); in updateIfBetter() 176 final byte[] score = new byte[numPreferredLocales]; in filterByLanguage() 190 score[j] = 0; in filterByLanguage() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | Face.java | 90 public Face(@NonNull Rect bounds, int score, int id, in Face() argument 93 init(bounds, score, id, leftEyePosition, rightEyePosition, mouthPosition); in Face() 118 public Face(@NonNull Rect bounds, int score) { in Face() argument 119 init(bounds, score, ID_UNSUPPORTED, in Face() 126 private void init(@NonNull Rect bounds, int score, int id, in init() argument 130 checkScore(score); in init() 140 mScore = score; in init() 277 private static void checkScore(int score) { in checkScore() argument 278 if (score < SCORE_MIN || score > SCORE_MAX) { in checkScore() 382 public @NonNull Builder setScore(@IntRange(from = SCORE_MIN, to = SCORE_MAX) int score) { in setScore() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | InstanceLearner.java | 31 double score1 = object1.score; 32 double score2 = object2.score; 66 Double score = label2score.get(sample.label); in classify() local 67 if (score == null || weight > score) { in classify() 74 double score = label2score.get(name); in classify() local 76 predictions.add(new Prediction(name, score)); in classify()
|
D | Prediction.java | 22 public double score; field in Prediction 26 score = predictionScore; in Prediction()
|
/frameworks/av/media/utils/ |
D | ProcessInfo.cpp | 95 int32_t score = INVALID_ADJ; in getPriority() local 96 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); in getPriority() 97 ALOGV("%s: pid:%d state:%d score:%d err:%d", __FUNCTION__, pid, state, score, err); in getPriority() 102 if (score <= NATIVE_ADJ) { in getPriority() 108 ALOGI("pid %d invalid OOM score %d, override to %d", pid, score, it->second.oomScore); in getPriority() 109 score = it->second.oomScore; in getPriority() 111 ALOGE("pid %d invalid OOM score %d", pid, score); in getPriority() 117 *priority = score; in getPriority()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 69 int score = AudioProductStrategy::attributesMatchesScore(attrGroup.getAttributes(), attr); in matchesScore() local 70 if (score == AudioProductStrategy::MATCH_EQUALS) { in matchesScore() 71 return score; in matchesScore() 73 strategyScore = std::max(score, strategyScore); in matchesScore() 153 int score = iter.second->matchesScore(attributes); in getProductStrategyForAttributes() local 154 if (score == AudioProductStrategy::MATCH_EQUALS) { in getProductStrategyForAttributes() 157 if (score > matchScore) { in getProductStrategyForAttributes() 159 matchScore = score; in getProductStrategyForAttributes() 250 int score = volGroupAttr.matchesScore(attr); in getVolumeGroupAttributesForAttributes() local 251 if (score == AudioProductStrategy::MATCH_EQUALS) { in getVolumeGroupAttributesForAttributes() [all …]
|
/frameworks/base/wifi/java/src/android/net/wifi/ |
D | WifiNetworkScoreCache.java | 147 int score = INVALID_NETWORK_SCORE; in getNetworkScore() local 151 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore() 154 + " score " + Integer.toString(score) in getNetworkScore() 158 return score; in getNetworkScore() 172 int score = INVALID_NETWORK_SCORE; in getNetworkScore() local 176 score = network.rssiCurve.lookupScore(result.level, isActiveNetwork); in getNetworkScore() 179 + " score " + Integer.toString(score) in getNetworkScore() 184 return score; in getNetworkScore() 256 for (ScoredNetwork score : mCache.snapshot().values()) { in dump() 257 writer.println(" " + score); in dump()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | TimestampedScoredNetwork.java | 30 TimestampedScoredNetwork(ScoredNetwork score, long updatedTimestampMillis) { in TimestampedScoredNetwork() argument 31 mScore = score; in TimestampedScoredNetwork() 40 public void update(ScoredNetwork score, long updatedTimestampMillis) { in update() argument 41 mScore = score; in update()
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 236 etc1_uint32 score; // Lower is more accurate member 241 if (a->score > b->score) { in take_best() 312 etc1_uint32 score = (etc1_uint32) (6 * square(decodedG - pixelG)); in chooseModifier() local 313 if (score >= bestScore) { in chooseModifier() 317 score += (etc1_uint32) (3 * square(decodedR - pixelR)); in chooseModifier() 318 if (score >= bestScore) { in chooseModifier() 322 score += (etc1_uint32) square(decodedB - pixelB); in chooseModifier() 323 if (score < bestScore) { in chooseModifier() 324 bestScore = score; in chooseModifier() 338 int score = pCompressed->score; in etc_encode_subblock_helper() local [all …]
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImpl.java | 487 int score = scoreTelephonySuggestion(suggestion); 489 new QualifiedTelephonyTimeZoneSuggestion(suggestion, score); 578 int score; 580 score = TELEPHONY_SCORE_NONE; 584 score = TELEPHONY_SCORE_HIGHEST; 586 score = TELEPHONY_SCORE_HIGH; 589 score = TELEPHONY_SCORE_MEDIUM; 592 score = TELEPHONY_SCORE_LOW; 596 return score; 770 bestTelephonySuggestion.score >= TELEPHONY_SCORE_USAGE_THRESHOLD; in doTelephonyTimeZoneDetection() [all …]
|
/frameworks/base/core/java/android/service/chooser/ |
D | ChooserTarget.java | 108 public ChooserTarget(CharSequence title, Icon icon, float score, in ChooserTarget() argument 112 if (score > 1.f || score < 0.f) { in ChooserTarget() 113 throw new IllegalArgumentException("Score " + score + " out of range; " in ChooserTarget() 116 mScore = score; in ChooserTarget()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 100 float score = hsv[1] * hsv[2]; in findDominantColorByHue() local 101 hueScoreHistogram[hue] += score; in findDominantColorByHue() 125 float score = s * v; in findDominantColorByHue() local 127 float newTotal = oldTotal == null ? score : oldTotal + score; in findDominantColorByHue()
|
/frameworks/base/tests/JankBench/scripts/ |
D | collect.py | 138 score = stddev * mean * pj 139 score = 100 * len(res.durations) / float(res.total_count) 140 if score == 0: 141 score = 1 142 scores.append(score) 147 …: Score = %f x %f x %f = %f (%d samples)" % (iteration, stddev, mean, pj, score, len(res.durations… 224 for name, score in device_scores: 225 plt.plot([0, 1, 2, 3, 4, 5], score, label=name) 226 print "\t%s: %s" % (name, score)
|
D | itr_collect.py | 97 score = stddev * mean *pj 98 if score == 0: 99 score = 1 100 scores.append(score) 102 … print "\tScore = %f x %f x %f = %f (%d samples)" % (stddev, mean, pj, score, len(res.durations))
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | VariationalKMeansQuantizer.java | 137 double score = KMeans.score(means); in getOptimalKMeans() local 138 if (optimal == null || score > optimalScore) { in getOptimalKMeans() 140 Log.d(TAG, "\tnew optimal score: " + score); in getOptimalKMeans() 142 optimalScore = score; in getOptimalKMeans()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DefaultNetworkMetrics.java | 126 public synchronized void logDefaultNetworkEvent(long timeMs, Network defaultNetwork, int score, in logDefaultNetworkEvent() argument 132 newDefaultNetwork(timeMs, defaultNetwork, score, validated, lp, nc); in logDefaultNetworkEvent() 135 private void logCurrentDefaultNetwork(long timeMs, Network network, int score, in logCurrentDefaultNetwork() argument 147 ev.finalScore = score; in logCurrentDefaultNetwork() 160 private void newDefaultNetwork(long timeMs, Network network, int score, boolean validated, in newDefaultNetwork() argument 167 ev.initialScore = score; in newDefaultNetwork()
|
/frameworks/minikin/libs/minikin/ |
D | OptimalLineBreaker.cpp | 105 inline void pushDesperate(uint32_t offset, ParaWidth sumOfCharWidths, float score, in pushDesperate() 107 pushBreakCandidate(offset, sumOfCharWidths, sumOfCharWidths, score, spaceCount, spaceCount, in pushDesperate() 182 float score; member 184 DesperateBreak(uint32_t offset, ParaWidth sumOfChars, float score) in DesperateBreak() 185 : offset(offset), sumOfChars(sumOfChars), score(score){}; in DesperateBreak() 251 d->score, proc.effectiveSpaceCount, isRtl, letterSpacing); in appendWithMerging() 357 float score; // best score found for this break member 453 const float jScore = breaksData[j].score; in computeBreaks() 508 const float score = jScore + widthScore + additionalPenalty; in computeBreaks() local 509 if (score <= best) { in computeBreaks() [all …]
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | ConversationAction.java | 133 float score, in ConversationAction() argument 138 mScore = score; in ConversationAction() 255 public Builder setConfidenceScore(@FloatRange(from = 0, to = 1) float score) { in setConfidenceScore() 256 mScore = score; in setConfidenceScore()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | RunLocalBenchmarksActivity.java | 246 int score = res.getScore(); in computeOverallScore() local 247 if (score == 0) { in computeOverallScore() 248 score = 1; in computeOverallScore() 250 stats.addValue(score); in computeOverallScore() 259 for (double score : testLevelScores) { in computeOverallScore() 260 stats.addValue(score); in computeOverallScore() 267 protected void onPostExecute(Integer score) { in computeOverallScore() argument 270 view.setText("Score: " + score); in computeOverallScore()
|
/frameworks/base/core/java/com/android/internal/ml/clustering/ |
D | KMeans.java | 97 public static double score(@NonNull List<Mean> means) { in score() method in KMeans 98 double score = 0; in score() local 108 score += distance; in score() 111 return score; in score()
|
/frameworks/base/tests/vcn/java/com/android/server/vcn/ |
D | VcnNetworkProviderTest.java | 89 score -> in verifyRegisterAndGetOfferCallback() 90 score.getLegacyInt() == Vcn.getNetworkScore().getLegacyInt() in verifyRegisterAndGetOfferCallback() 91 && score.isTransportPrimary()), in verifyRegisterAndGetOfferCallback()
|