Home
last modified time | relevance | path

Searched refs:score (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/core/java/android/net/
DNetworkFactory.java157 public int score; field in NetworkFactory.NetworkRequestInfo
160 public NetworkRequestInfo(NetworkRequest request, int score) { in NetworkRequestInfo() argument
162 this.score = score; in NetworkRequestInfo()
168 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString()
173 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest() argument
176 if (DBG) log("got request " + request + " with score " + score); in handleAddRequest()
177 n = new NetworkRequestInfo(request, score); in handleAddRequest()
180 if (VDBG) log("new score " + score + " for exisiting request " + request); in handleAddRequest()
181 n.score = score; in handleAddRequest()
197 private void handleSetScore(int score) { in handleSetScore() argument
[all …]
DNetworkAgent.java209 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent() argument
210 this(looper, context, logTag, ni, nc, lp, score, null); in NetworkAgent()
214 NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) { in NetworkAgent() argument
226 new LinkProperties(lp), new NetworkCapabilities(nc), score, misc); in NetworkAgent()
385 public void sendNetworkScore(int score) { in sendNetworkScore() argument
386 if (score < 0) { in sendNetworkScore()
389 queueOrSendMessage(EVENT_NETWORK_SCORE_CHANGED, new Integer(score)); in sendNetworkScore()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionTest.java80 CompositorScore score = getActivity().measureCompositionScore(pixelFormat); in testSurfaceCompositionPerformance() local
81 Log.i(TAG, "testSurfaceCompositionPerformance(" + formatName + ") = " + score); in testSurfaceCompositionPerformance()
83 "performance score. " + score.mSurfaces + " < " + in testSurfaceCompositionPerformance()
85 score.mSurfaces >= minScores[i]); in testSurfaceCompositionPerformance()
88 status.putDouble(KEY_SURFACE_COMPOSITION_PERFORMANCE, score.mSurfaces); in testSurfaceCompositionPerformance()
90 status.putDouble(KEY_SURFACE_COMPOSITION_BANDWITH, score.mBandwidth / in testSurfaceCompositionPerformance()
103 AllocationScore score = getActivity().measureAllocationScore(pixelFormat); in testSurfaceAllocationPerformance() local
104 Log.i(TAG, "testSurfaceAllocationPerformance(" + formatName + ") = " + score); in testSurfaceAllocationPerformance()
106 "performance score. " + score.mMedian + " < " + in testSurfaceAllocationPerformance()
109 score.mMedian >= MIN_ACCEPTED_ALLOCATION_SCORE[i]); in testSurfaceAllocationPerformance()
[all …]
DSurfaceCompositionMeasuringActivity.java129 CompositorScore score = new CompositorScore(); in measureCompositionScore() local
130 score.mSurfaces = measureCompositionScore(new Measurement(0, 60.0), in measureCompositionScore()
133 score.mBandwidth = score.mSurfaces * mTargetFPS * mWidth * mHeight * 4.0; in measureCompositionScore()
135 return score; in measureCompositionScore()
152 AllocationScore score = new AllocationScore(); in measureAllocationScore() local
171 score.mMedian += speed / MEASURE_ALLOCATION_CYCLES; in measureAllocationScore()
173 score.mMin = speed; in measureAllocationScore()
174 score.mMax = speed; in measureAllocationScore()
176 score.mMin = Math.min(score.mMin, speed); in measureAllocationScore()
177 score.mMax = Math.max(score.mMax, speed); in measureAllocationScore()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java114 int score; in calculateAndReportScore() local
125 score = s0; in calculateAndReportScore()
127 score = s1; in calculateAndReportScore()
131 if (score > NetworkAgent.WIFI_BASE_SCORE) { in calculateAndReportScore()
132 score = NetworkAgent.WIFI_BASE_SCORE; in calculateAndReportScore()
134 if (score < 0) { in calculateAndReportScore()
135 score = 0; in calculateAndReportScore()
141 if (score != wifiInfo.score) { in calculateAndReportScore()
143 Log.d(TAG, " report new wifi score " + score); in calculateAndReportScore()
145 wifiInfo.score = score; in calculateAndReportScore()
[all …]
DSavedNetworkEvaluator.java161 int score = 0; in calculateBssidScore() local
170 score += (rssi + mRssiScoreOffset) * mRssiScoreSlope; in calculateBssidScore()
171 sbuf.append(" RSSI score: ").append(score).append(","); in calculateBssidScore()
175 score += mBand5GHzAward; in calculateBssidScore()
187 score += bonus > 0 ? bonus : 0; in calculateBssidScore()
198 score += mSameNetworkAward; in calculateBssidScore()
205 score += mSameBssidAward; in calculateBssidScore()
212 score += mSameBssidAward; in calculateBssidScore()
218 score += mSecurityAward; in calculateBssidScore()
222 sbuf.append(" ## Total score: ").append(score).append("\n"); in calculateBssidScore()
[all …]
DLegacyConnectedScore.java164 int score = STARTING_SCORE; in calculateScore() local
187 score = score - LINK_STUCK_PENALTY * (wifiInfo.linkStuckCount - 1); in calculateScore()
191 score -= BAD_LINKSPEED_PENALTY; in calculateScore()
193 score += GOOD_LINKSPEED_BONUS; // So as bad rssi alone doesn't kill us in calculateScore()
196 score -= wifiInfo.badRssiCount * BAD_RSSI_COUNT_PENALTY + wifiInfo.lowRssiCount; in calculateScore()
198 if (rssi >= rssiThreshSaturated) score += 5; in calculateScore()
200 if (score > NetworkAgent.WIFI_BASE_SCORE) score = NetworkAgent.WIFI_BASE_SCORE; in calculateScore()
201 if (score < 0) score = 0; in calculateScore()
203 return score; in calculateScore()
DScoredNetworkEvaluator.java195 int score = mScoreCache.getNetworkScore(scanResult, isCurrentNetwork); in getNetworkScore() local
198 + score + " isCurrentNetwork network: " + isCurrentNetwork); in getNetworkScore()
200 return score; in getNetworkScore()
207 Integer score = getNetworkScore(scanResult, false /* isCurrentNetwork */); in trackUntrustedCandidate() local
208 if (score != null && score > mHighScore) { in trackUntrustedCandidate()
209 mHighScore = score; in trackUntrustedCandidate()
223 Integer score = getNetworkScore(scanResult, isCurrentNetwork); in trackUntrustedCandidate() local
224 if (score != null && score > mHighScore) { in trackUntrustedCandidate()
225 mHighScore = score; in trackUntrustedCandidate()
240 Integer score = getNetworkScore(scanResult, isCurrentNetwork); in trackExternallyScoredCandidate() local
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DImageGoodnessFilter.java138 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/core/java/com/android/internal/inputmethod/
DLocaleUtils.java80 ScoreEntry(@NonNull byte[] score, int index) { in ScoreEntry() argument
81 mScore = new byte[score.length]; in ScoreEntry()
82 set(score, index); in ScoreEntry()
85 private void set(@NonNull byte[] score, int index) { in set() argument
87 mScore[i] = score[i]; in set()
95 public void updateIfBetter(@NonNull byte[] score, int index) { in updateIfBetter() argument
96 if (compare(mScore, score) == -1) { // mScore < score in updateIfBetter()
97 set(score, index); in updateIfBetter()
164 final byte[] score = new byte[numPreferredLocales]; in filterByLanguage()
178 score[j] = 0; in filterByLanguage()
[all …]
/frameworks/av/media/utils/
DProcessInfo.cpp39 int32_t score = INVALID_ADJ; in getPriority() local
40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); in getPriority()
45 ALOGV("pid %d state %d score %d", pid, state, score); in getPriority()
46 if (score <= NATIVE_ADJ) { in getPriority()
47 ALOGE("pid %d invalid OOM adjustments value %d", pid, score); in getPriority()
52 *priority = score; in getPriority()
/frameworks/base/core/java/android/gesture/
DInstanceLearner.java31 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()
DPrediction.java22 public double score; field in Prediction
26 score = predictionScore; in Prediction()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java197 int score = mWifiInfo.score; in allowLowRssiIfDataIsMoving() local
198 assertTrue(score > CELLULAR_THRESHOLD_SCORE); in allowLowRssiIfDataIsMoving()
220 int score = mWifiInfo.score; in giveUpOnBadRssiWhenDataIsNotMoving() local
221 assertTrue(score < CELLULAR_THRESHOLD_SCORE); in giveUpOnBadRssiWhenDataIsNotMoving()
222 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); in giveUpOnBadRssiWhenDataIsNotMoving()
245 int score = mWifiInfo.score;
246 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score);
247 assertTrue(score < CELLULAR_THRESHOLD_SCORE);
258 int score = mWifiInfo.score;
259 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score);
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DFace.java88 public Face(Rect bounds, int score, int id, in Face() argument
91 if (score < SCORE_MIN || score > SCORE_MAX) { in Face()
103 mScore = score; in Face()
132 public Face(Rect bounds, int score) { in Face() argument
133 this(bounds, score, ID_UNSUPPORTED, in Face()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkScore.java150 int score = 0; in calculateScore() local
152 score += HOME_PROVIDER_AWARD; in calculateScore()
156 score += (networkDetail.isInternet() ? 1 : -1) * INTERNET_ACCESS_AWARD; in calculateScore()
159 score += NETWORK_TYPE_SCORES.get(networkDetail.getAnt()); in calculateScore()
166 score -= WAN_PORT_DOWN_OR_CAPPED_PENALTY; in calculateScore()
178 score += (v4Score + v6Score); in calculateScore()
182 score += RSSI_SCORE.lookupScore(scanDetail.getScanResult().level, isActiveNetwork); in calculateScore()
183 return score; in calculateScore()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp236 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/android/net/wifi/
DWifiNetworkScoreCache.java146 int score = INVALID_NETWORK_SCORE; in getNetworkScore() local
150 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
153 + " score " + Integer.toString(score) in getNetworkScore()
157 return score; in getNetworkScore()
171 int score = INVALID_NETWORK_SCORE; in getNetworkScore() local
175 score = network.rssiCurve.lookupScore(result.level, isActiveNetwork); in getNetworkScore()
178 + " score " + Integer.toString(score) in getNetworkScore()
183 return score; in getNetworkScore()
255 for (ScoredNetwork score : mCache.snapshot().values()) { in dump()
256 writer.println(" " + score); in dump()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTimestampedScoredNetwork.java30 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/
DChooserTarget.java103 public ChooserTarget(CharSequence title, Icon icon, float score, in ChooserTarget() argument
107 if (score > 1.f || score < 0.f) { in ChooserTarget()
108 throw new IllegalArgumentException("Score " + score + " out of range; " in ChooserTarget()
111 mScore = score; in ChooserTarget()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DVariationalKMeansQuantizer.java136 double score = KMeans.score(means); in getOptimalKMeans() local
137 if (optimal == null || score > optimalScore) { in getOptimalKMeans()
139 Log.d(TAG, "\tnew optimal score: " + score); in getOptimalKMeans()
141 optimalScore = score; in getOptimalKMeans()
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
DOSUInfo.java180 private ScoreEntry(T data, int score) { in ScoreEntry() argument
182 mScore = score; in ScoreEntry()
214 int score = languageScore(iconInfo.getLanguage(), locale); in getIconInfo() local
218 score += (256 - delta) * 4; // Prefer down-scaling in getIconInfo()
220 score += 256 + delta; // Before up-scaling in getIconInfo()
224 score += (256 - delta) * 4; in getIconInfo()
226 score += 256 + delta; in getIconInfo()
228 matches.add(new ScoreEntry<>(iconInfo, score)); in getIconInfo()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java257 LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler, in NetworkAgentInfo() argument
265 currentScore = score; in NetworkAgentInfo()
430 int score = currentScore; in getCurrentScore() local
432 score -= UNVALIDATED_SCORE_PENALTY; in getCurrentScore()
434 if (score < 0) score = 0; in getCurrentScore()
435 return score; in getCurrentScore()
/frameworks/minikin/libs/minikin/
DFontCollection.cpp232 uint32_t score = 0; in calcLanguageMatchingScore() local
234 score = score * 5u + langList[i].calcScoreFor(fontLanguages); in calcLanguageMatchingScore()
236 return score; in calcLanguageMatchingScore()
271 const uint32_t score = calcFamilyScore(ch, vs, variant, langListId, family); in getFamilyForChar() local
272 if (score == kFirstFontScore) { in getFamilyForChar()
277 if (score > bestScore) { in getFamilyForChar()
278 bestScore = score; in getFamilyForChar()
/frameworks/ml/nn/common/operations/
DLSHProjection.cpp86 double score = 0.0; in running_sign_bit() local
104 score += running_value; in running_sign_bit()
106 score += reinterpret_cast<float*>(weight->buffer)[i] * running_value; in running_sign_bit()
110 return (score > 0) ? 1 : 0; in running_sign_bit()

1234