/aosp14/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | SurfaceCompositionTest.java | 77 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance() local 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() 110 status.putDouble(KEY_SURFACE_ALLOCATION_PERFORMANCE_MIN, score.mMin); in testSurfaceAllocationPerformance() [all …]
|
H A D | SurfaceCompositionMeasuringActivity.java | 128 CompositorScore score = new CompositorScore(); in measureCompositionScore() local 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 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() 180 return score; in measureAllocationScore() 207 score + "."); in doTest() [all …]
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | ImageGoodnessFilter.java | 138 float score = 0.0f; in onProcess() local 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() 229 float score = 0.0f; in computePictureScore() local 233 score -= BIG_SCORE_INC; in computePictureScore() 237 score += BIG_SCORE_INC; in computePictureScore() 244 return score; in computePictureScore() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | LocaleUtils.java | 78 ScoreEntry(@NonNull byte[] score, int index) { in ScoreEntry() argument 79 mScore = new byte[score.length]; in ScoreEntry() 80 set(score, index); in ScoreEntry() 83 private void set(@NonNull byte[] score, int index) { in set() argument 85 mScore[i] = score[i]; in set() 95 set(score, index); in updateIfBetter() 161 final byte[] score = new byte[numPreferredLocales]; in filterByLanguage() 175 score[j] = 0; in filterByLanguage() 182 score[j] = calculateMatchingSubScore( in filterByLanguage() 185 if (canSkip && score[j] != 0) { in filterByLanguage() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/params/ |
H A 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() 384 checkScore(score); in setScore() [all …]
|
/aosp14/frameworks/base/core/java/android/gesture/ |
H A 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()
|
H A D | Prediction.java | 22 public double score; field in Prediction 26 score = predictionScore; in Prediction()
|
/aosp14/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
H A D | TimeZoneDetectorStrategyImpl.java | 578 int score; 580 score = TELEPHONY_SCORE_NONE; 586 score = TELEPHONY_SCORE_HIGH; 592 score = TELEPHONY_SCORE_LOW; 596 return score; 847 } else if (candidateSuggestion.score > bestSuggestion.score) { in findBestTelephonySuggestion() 849 } else if (candidateSuggestion.score == bestSuggestion.score) { in findBestTelephonySuggestion() 1000 public final int score; field in QualifiedTelephonyTimeZoneSuggestion 1006 this.score = score; in QualifiedTelephonyTimeZoneSuggestion() 1018 return score == that.score in equals() [all …]
|
/aosp14/frameworks/base/wifi/java/src/android/net/wifi/ |
H A 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()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/service/chooser/ |
H A 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()
|
/aosp14/frameworks/base/tests/JankBench/scripts/ |
H A 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)
|
H A 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))
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/view/textclassifier/ |
H A 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()
|
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
H A 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/ml/clustering/ |
H A 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()
|
/aosp14/frameworks/base/tests/vcn/java/com/android/server/vcn/ |
H A D | VcnNetworkProviderTest.java | 89 score -> in verifyRegisterAndGetOfferCallback() 90 score.getLegacyInt() == Vcn.getNetworkScore().getLegacyInt() in verifyRegisterAndGetOfferCallback() 91 && score.isTransportPrimary()), in verifyRegisterAndGetOfferCallback()
|
/aosp14/frameworks/base/telephony/java/android/telephony/emergency/ |
H A D | EmergencyNumber.java | 546 int score = 0; in getDisplayPriorityScore() local 548 score += 1 << 4; in getDisplayPriorityScore() 551 score += 1 << 3; in getDisplayPriorityScore() 554 score += 1 << 2; in getDisplayPriorityScore() 557 score += 1 << 1; in getDisplayPriorityScore() 560 score += 1 << 0; in getDisplayPriorityScore() 562 return score; in getDisplayPriorityScore()
|
/aosp14/frameworks/base/core/java/android/net/ |
H A D | ScoredNetwork.java | 281 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE; in calculateRankingScore() local 284 return Math.addExact(score, offset); in calculateRankingScore() 286 return (score < 0) ? Integer.MIN_VALUE : Integer.MAX_VALUE; in calculateRankingScore()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | CacheOomRanker.java | 319 scoredProcessRecords[numProcessesReRanked].score = 0.0f; in reRankLruCachedAppsLSP() 427 scores[i].score += i * weight; in addToScore() 445 return Float.compare(o1.score, o2.score); in compare() 484 public float score; field in CacheOomRanker.RankedProcessRecord
|
/aosp14/frameworks/base/core/java/android/app/search/ |
H A D | SearchTarget.java | 168 float score, boolean hidden, in SearchTarget() argument 180 mScore = score; in SearchTarget() 468 public Builder setScore(@FloatRange(from = 0.0f, to = 1.0f) float score) { in setScore() 469 mScore = score; in setScore()
|
/aosp14/frameworks/base/core/java/android/service/autofill/ |
H A D | FieldClassification.java | 114 public Match(String categoryId, float score) { in Match() argument 116 mScore = score; in Match()
|
/aosp14/frameworks/base/wifi/tests/src/android/net/wifi/ |
H A D | WifiNetworkScoreCacheTest.java | 166 final byte score = 50; in getNetworkScoreShouldReturnScore() 171 when(mockRssiCurve.lookupScore(rssi)).thenReturn(score); in getNetworkScoreShouldReturnScore() 173 assertThat(mScoreCache.getNetworkScore(result)).isEqualTo(score); in getNetworkScoreShouldReturnScore()
|