/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | SurfaceCompositionTest.java | 77 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance() local 78 Log.i(TAG, "testSurfaceCompositionPerformance(" + formatName + ") = " + score); in testSurfaceCompositionPerformance() 80 "performance score. " + score.mSurfaces + " < " + in testSurfaceCompositionPerformance() 82 score.mSurfaces >= minScores[i]); in testSurfaceCompositionPerformance() 85 status.putDouble(KEY_SURFACE_COMPOSITION_PERFORMANCE, score.mSurfaces); in testSurfaceCompositionPerformance() 87 status.putDouble(KEY_SURFACE_COMPOSITION_BANDWITH, score.mBandwidth / in testSurfaceCompositionPerformance() 100 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance() local 101 Log.i(TAG, "testSurfaceAllocationPerformance(" + formatName + ") = " + score); in testSurfaceAllocationPerformance() 103 "performance score. " + score.mMedian + " < " + in testSurfaceAllocationPerformance() 106 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/libs/net/common/device/android/net/ |
D | NetworkFactoryLegacyImpl.java | 130 public void onNetworkRequested(@NonNull NetworkRequest request, int score, in register() 132 handleAddRequest(request, score, servingProviderId); in register() 184 public int score; field in NetworkFactoryLegacyImpl.NetworkRequestInfo 188 NetworkRequestInfo(NetworkRequest request, int score, int providerId) { in NetworkRequestInfo() argument 190 this.score = score; in NetworkRequestInfo() 197 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString() 211 protected void handleAddRequest(NetworkRequest request, int score, int servingProviderId) { in handleAddRequest() argument 215 mParent.log("got request " + request + " with score " + score in handleAddRequest() 218 n = new NetworkRequestInfo(request, score, servingProviderId); in handleAddRequest() 222 mParent.log("new score " + score + " for existing request " + request in handleAddRequest() [all …]
|
D | NetworkFactoryImpl.java | 159 public void onNetworkRequested(@NonNull NetworkRequest request, int score, in register() 182 private void handleOfferNetwork(@NonNull final NetworkScore score) { in handleOfferNetwork() argument 183 mProvider.registerNetworkOffer(score, mCapabilityFilter, mExecutor, mRequestCallback); in handleOfferNetwork() 262 private void handleSetScore(@NonNull final NetworkScore score) { in handleSetScore() argument 263 if (mScore.equals(score)) return; in handleSetScore() 264 mScore = score; in handleSetScore() 284 public void setScoreFilter(final int score) { in setScoreFilter() argument 285 setScoreFilter(new NetworkScore.Builder().setLegacyInt(score).build()); in setScoreFilter() 298 @Override public void setScoreFilter(@NonNull final NetworkScore score) { in setScoreFilter() argument 299 sendMessage(obtainMessage(CMD_SET_SCORE, score)); in setScoreFilter()
|
D | NetworkFactory.java | 168 public void setScoreFilter(final int score) { in setScoreFilter() argument 169 mImpl.setScoreFilter(score); in setScoreFilter() 182 public void setScoreFilter(@NonNull final NetworkScore score) { in setScoreFilter() argument 183 mImpl.setScoreFilter(score); in setScoreFilter()
|
/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/base/services/core/java/com/android/server/inputmethod/ |
D | LocaleUtils.java | 76 ScoreEntry(@NonNull byte[] score, int index) { in ScoreEntry() argument 77 mScore = new byte[score.length]; in ScoreEntry() 78 set(score, index); in ScoreEntry() 81 private void set(@NonNull byte[] score, int index) { in set() argument 83 mScore[i] = score[i]; in set() 91 public void updateIfBetter(@NonNull byte[] score, int index) { in updateIfBetter() argument 92 if (compare(mScore, score) == -1) { // mScore < score in updateIfBetter() 93 set(score, index); in updateIfBetter() 159 final byte[] score = new byte[numPreferredLocales]; in filterByLanguage() 173 score[j] = 0; in filterByLanguage() [all …]
|
/frameworks/av/media/utils/ |
D | ProcessInfo.cpp | 41 int32_t score = INVALID_ADJ; in getPriority() local 42 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); in getPriority() 47 ALOGV("pid %d state %d score %d", pid, state, score); in getPriority() 48 if (score <= NATIVE_ADJ) { in getPriority() 54 ALOGI("pid %d invalid OOM score %d, override to %d", pid, score, it->second.oomScore); in getPriority() 55 score = it->second.oomScore; in getPriority() 57 ALOGE("pid %d invalid OOM score %d", pid, score); in getPriority() 63 *priority = score; in getPriority()
|
/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/base/services/core/java/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImpl.java | 359 int score = scoreTelephonySuggestion(suggestion); in suggestTelephonyTimeZone() local 361 new QualifiedTelephonyTimeZoneSuggestion(suggestion, score); in suggestTelephonyTimeZone() 398 int score; in scoreTelephonySuggestion() local 400 score = TELEPHONY_SCORE_NONE; in scoreTelephonySuggestion() 404 score = TELEPHONY_SCORE_HIGHEST; in scoreTelephonySuggestion() 406 score = TELEPHONY_SCORE_HIGH; in scoreTelephonySuggestion() 409 score = TELEPHONY_SCORE_MEDIUM; in scoreTelephonySuggestion() 412 score = TELEPHONY_SCORE_LOW; in scoreTelephonySuggestion() 416 return score; in scoreTelephonySuggestion() 499 bestTelephonySuggestion.score >= TELEPHONY_SCORE_USAGE_THRESHOLD; in doTelephonyTimeZoneDetection() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | Face.java | 87 public Face(Rect bounds, int score, int id, in Face() argument 90 if (score < SCORE_MIN || score > SCORE_MAX) { in Face() 102 mScore = score; in Face() 131 public Face(Rect bounds, int score) { in Face() argument 132 this(bounds, score, ID_UNSUPPORTED, in Face()
|
/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/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/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/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/libs/systemui/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()
|
/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/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.cpp | 217 float score; member 426 scores[i].score += weight * layerScore; in getBestRefreshRateLocked() 441 [](RefreshRateScore score) { return score.score == 0; })) { in getBestRefreshRateLocked() argument 541 for (auto& score : scores) { in getFrameRateOverrides() local 542 score.score = 0; in getFrameRateOverrides() 553 for (RefreshRateScore& score : scores) { in getFrameRateOverrides() 554 const auto layerScore = calculateLayerScoreLocked(*layer, *score.refreshRate, in getFrameRateOverrides() 556 score.score += layer->weight * layerScore; in getFrameRateOverrides() 563 std::remove_if(scores.begin(), scores.end(), [&](const RefreshRateScore& score) { in getFrameRateOverrides() argument 564 return getFrameRateDivider(displayFrameRate, score.refreshRate->getFps()) == 0; in getFrameRateOverrides() [all …]
|
/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/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/telephony/java/android/telephony/emergency/ |
D | EmergencyNumber.java | 533 int score = 0; in getDisplayPriorityScore() local 535 score += 1 << 4; in getDisplayPriorityScore() 538 score += 1 << 3; in getDisplayPriorityScore() 541 score += 1 << 2; in getDisplayPriorityScore() 544 score += 1 << 1; in getDisplayPriorityScore() 547 score += 1 << 0; in getDisplayPriorityScore() 549 return score; in getDisplayPriorityScore()
|
/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()
|