Home
last modified time | relevance | path

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

12345

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java101 int score; in calculateAndReportScore() local
119 score = s2; in calculateAndReportScore()
121 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore()
122 && score <= ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore()
125 score = ConnectedScore.WIFI_TRANSITION_SCORE + 1; in calculateAndReportScore()
128 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore()
129 && score <= ConnectedScore.WIFI_TRANSITION_SCORE) { in calculateAndReportScore()
138 score = ConnectedScore.WIFI_TRANSITION_SCORE + 1; in calculateAndReportScore()
142 if (wifiInfo.score >= ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore()
143 && score < ConnectedScore.WIFI_TRANSITION_SCORE) { in calculateAndReportScore()
[all …]
DSavedNetworkEvaluator.java115 int score = 0; in calculateBssidScore() local
123 score += (rssi + mRssiScoreOffset) * mRssiScoreSlope; in calculateBssidScore()
124 sbuf.append(" RSSI score: ").append(score).append(","); in calculateBssidScore()
128 score += mBand5GHzAward; in calculateBssidScore()
141 score += bonus; in calculateBssidScore()
149 score += mSameNetworkAward; in calculateBssidScore()
156 score += mSameBssidAward; in calculateBssidScore()
163 score += mSameBssidAward; in calculateBssidScore()
169 score += mSecurityAward; in calculateBssidScore()
173 sbuf.append(" ## Total score: ").append(score).append("\n"); in calculateBssidScore()
[all …]
DBubbleFunScorer.java63 double score = shapeFunction(rssi) - shapeFunction(rssiEntryThreshold); in scoreCandidate() local
66 if (score < 0.0) score *= 10.0; in scoreCandidate()
69 score += candidate.getLastSelectionWeight() * CURRENT_NETWORK_BOOST; in scoreCandidate()
73 score += CURRENT_NETWORK_BOOST; in scoreCandidate()
77 score += SECURITY_AWARD; in scoreCandidate()
88 score *= LOW_BAND_FACTOR; in scoreCandidate()
92 return new ScoredCandidate(score, TYPICAL_SCAN_RSSI_STD * gain, candidate); in scoreCandidate()
DCompatibilityScorer.java75 int score = (rssi + RSSI_SCORE_OFFSET) * RSSI_SCORE_SLOPE_IS_4; in scoreCandidate() local
78 score += BAND_5GHZ_AWARD_IS_40; in scoreCandidate()
80 score += (int) (candidate.getLastSelectionWeight() * LAST_SELECTION_AWARD_IS_480); in scoreCandidate()
84 score += CURRENT_NETWORK_BOOST_IS_16 + SAME_BSSID_AWARD_IS_24; in scoreCandidate()
88 score += SECURITY_AWARD_IS_80; in scoreCandidate()
93 score -= 1000 * candidate.getEvaluatorId(); in scoreCandidate()
98 return new ScoredCandidate(score + tieBreaker, 10, candidate); in scoreCandidate()
DScoredNetworkEvaluator.java214 int score = mScoreCache.getNetworkScore(scanResult, isCurrentNetwork); in getNetworkScore() local
217 + score + " isCurrentNetwork network: " + isCurrentNetwork); in getNetworkScore()
219 return score; in getNetworkScore()
227 Integer score = getNetworkScore(scanResult, false /* isCurrentNetwork */); in trackUntrustedCandidate() local
228 if (score != null && score > mHighScore) { in trackUntrustedCandidate()
229 mHighScore = score; in trackUntrustedCandidate()
244 Integer score = getNetworkScore(scanResult, isCurrentNetwork); in trackUntrustedCandidate() local
245 if (score != null && score > mHighScore) { in trackUntrustedCandidate()
246 mHighScore = score; in trackUntrustedCandidate()
262 Integer score = getNetworkScore(scanResult, isCurrentNetwork); in trackExternallyScoredCandidate() local
[all …]
DScoreCardBasedScorer.java83 int score = (rssi - cutoff) * RSSI_SCORE_SLOPE_IS_4; in scoreCandidate() local
86 score += BAND_5GHZ_AWARD_IS_40; in scoreCandidate()
88 score += (int) (candidate.getLastSelectionWeight() * LAST_SELECTION_AWARD_IS_480); in scoreCandidate()
91 score += CURRENT_NETWORK_BOOST_IS_16 + SAME_BSSID_AWARD_IS_24; in scoreCandidate()
95 score += SECURITY_AWARD_IS_80; in scoreCandidate()
100 score -= 1000 * candidate.getEvaluatorId(); in scoreCandidate()
102 return new ScoredCandidate(score, 10, candidate); in scoreCandidate()
/frameworks/libs/net/common/device/android/net/
DNetworkFactory.java125 public void onNetworkRequested(@NonNull NetworkRequest request, int score, in register()
127 handleAddRequest(request, score, servingProviderId); in register()
179 public int score; field in NetworkFactory.NetworkRequestInfo
183 NetworkRequestInfo(NetworkRequest request, int score, int providerId) { in NetworkRequestInfo() argument
185 this.score = score; in NetworkRequestInfo()
192 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString()
206 protected void handleAddRequest(NetworkRequest request, int score, int servingProviderId) { in handleAddRequest() argument
210 log("got request " + request + " with score " + score in handleAddRequest()
213 n = new NetworkRequestInfo(request, score, servingProviderId); in handleAddRequest()
217 log("new score " + score + " for existing request " + request in handleAddRequest()
[all …]
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionTest.java77 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 …]
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/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/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImpl.java219 int score = scoreTelephonySuggestion(suggestion); in suggestTelephonyTimeZone() local
221 new QualifiedTelephonyTimeZoneSuggestion(suggestion, score); in suggestTelephonyTimeZone()
233 int score; in scoreTelephonySuggestion() local
235 score = TELEPHONY_SCORE_NONE; in scoreTelephonySuggestion()
239 score = TELEPHONY_SCORE_HIGHEST; in scoreTelephonySuggestion()
241 score = TELEPHONY_SCORE_HIGH; in scoreTelephonySuggestion()
244 score = TELEPHONY_SCORE_MEDIUM; in scoreTelephonySuggestion()
247 score = TELEPHONY_SCORE_LOW; in scoreTelephonySuggestion()
251 return score; in scoreTelephonySuggestion()
280 bestTelephonySuggestion.score >= TELEPHONY_SCORE_USAGE_THRESHOLD; in doAutoTimeZoneDetection()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DLocaleUtils.java76 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java219 int score = mWifiInfo.score; in allowLowRssiIfDataIsMoving() local
220 assertTrue(score > ConnectedScore.WIFI_TRANSITION_SCORE); in allowLowRssiIfDataIsMoving()
242 int score = mWifiInfo.score; in giveUpOnBadRssiWhenDataIsNotMoving() local
243 assertTrue(score < ConnectedScore.WIFI_TRANSITION_SCORE); in giveUpOnBadRssiWhenDataIsNotMoving()
244 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); in giveUpOnBadRssiWhenDataIsNotMoving()
258 oops += ":" + mWifiInfo.score;
260 int score = mWifiInfo.score; local
261 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score);
262 assertTrue(oops, score < ConnectedScore.WIFI_TRANSITION_SCORE);
285 oops += ":" + mWifiInfo.score; in stayOnIfRssiDoesNotGetBelowEntryThreshold()
[all …]
DVelocityBasedConnectedScoreTest.java103 int score = mVelocityBasedConnectedScore.generateScore(); in noCrashWhenNoData() local
104 assertTrue(score > ConnectedScore.WIFI_TRANSITION_SCORE); in noCrashWhenNoData()
124 int score = mVelocityBasedConnectedScore.generateScore(); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving() local
125 assertTrue(score > ConnectedScore.WIFI_TRANSITION_SCORE); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
129 score = mVelocityBasedConnectedScore.generateScore(); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
130 assertTrue(score < ConnectedScore.WIFI_TRANSITION_SCORE); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
150 int score = mVelocityBasedConnectedScore.generateScore();
151 assertTrue(score < ConnectedScore.WIFI_TRANSITION_SCORE);
/frameworks/av/media/utils/
DProcessInfo.cpp40 int32_t score = INVALID_ADJ; in getPriority() local
41 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); in getPriority()
46 ALOGV("pid %d state %d score %d", pid, state, score); in getPriority()
47 if (score <= NATIVE_ADJ) { in getPriority()
48 ALOGE("pid %d invalid OOM adjustments value %d", pid, score); in getPriority()
53 *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()
/frameworks/base/core/java/android/hardware/camera2/params/
DFace.java87 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/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()
161 score += ndScore; in calculateScore()
169 score -= WAN_PORT_DOWN_OR_CAPPED_PENALTY; in calculateScore()
181 score += (v4Score + v6Score); in calculateScore()
185 score += RSSI_SCORE.lookupScore(scanDetail.getScanResult().level, isActiveNetwork); in calculateScore()
186 return score; in calculateScore()
/frameworks/base/core/java/android/net/
DNetworkAgent.java327 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent() argument
328 this(looper, context, logTag, ni, nc, lp, score, null, NetworkProvider.ID_NONE); in NetworkAgent()
334 NetworkCapabilities nc, LinkProperties lp, int score, NetworkAgentConfig config) { in NetworkAgent() argument
335 this(looper, context, logTag, ni, nc, lp, score, config, NetworkProvider.ID_NONE); in NetworkAgent()
341 NetworkCapabilities nc, LinkProperties lp, int score, int providerId) { in NetworkAgent() argument
342 this(looper, context, logTag, ni, nc, lp, score, null, providerId); in NetworkAgent()
348 NetworkCapabilities nc, LinkProperties lp, int score, NetworkAgentConfig config, in NetworkAgent() argument
350 this(looper, context, logTag, nc, lp, score, config, providerId, ni, true /* legacy */); in NetworkAgent()
377 @NonNull NetworkCapabilities nc, @NonNull LinkProperties lp, int score, in NetworkAgent() argument
379 this(looper, context, logTag, nc, lp, score, config, in NetworkAgent()
[all …]
/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.java148 int score = INVALID_NETWORK_SCORE; in getNetworkScore() local
152 score = network.rssiCurve.lookupScore(result.level); in getNetworkScore()
155 + " score " + Integer.toString(score) in getNetworkScore()
159 return score; in getNetworkScore()
173 int score = INVALID_NETWORK_SCORE; in getNetworkScore() local
177 score = network.rssiCurve.lookupScore(result.level, isActiveNetwork); in getNetworkScore()
180 + " score " + Integer.toString(score) in getNetworkScore()
185 return score; in getNetworkScore()
268 for (ScoredNetwork score : mCache.snapshot().values()) { in dumpWithLatestScanResults()
269 writer.println(" " + score); in dumpWithLatestScanResults()
/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/tests/JankBench/scripts/
Dcollect.py138 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)
/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()

12345