Searched refs:score (Results 1 - 25 of 63) sorted by relevance

123

/frameworks/base/core/java/android/gesture/
H A DPrediction.java22 public double score; field in class:Prediction
26 score = predictionScore;
H A DInstanceLearner.java31 double score1 = object1.score;
32 double score2 = object2.score;
66 Double score = label2score.get(sample.label);
67 if (score == null || weight > score) {
74 double score = label2score.get(name);
75 // sum += score;
76 predictions.add(new Prediction(name, score));
81 // prediction.score /= sum;
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DSurfaceCompositionTest.java49 // Android devices. Andromeda devices require higher performance score.
80 CompositorScore score = getActivity().measureCompositionScore(pixelFormat);
81 Log.i(TAG, "testSurfaceCompositionPerformance(" + formatName + ") = " + score);
83 "performance score. " + score.mSurfaces + " < " +
85 score.mSurfaces >= minScores[i]);
88 status.putDouble(KEY_SURFACE_COMPOSITION_PERFORMANCE, score.mSurfaces);
90 status.putDouble(KEY_SURFACE_COMPOSITION_BANDWITH, score.mBandwidth /
103 AllocationScore score = getActivity().measureAllocationScore(pixelFormat);
104 Log.i(TAG, "testSurfaceAllocationPerformance(" + formatName + ") = " + score);
[all...]
H A DSurfaceCompositionMeasuringActivity.java118 * Measure performance score.
129 CompositorScore score = new CompositorScore();
130 score.mSurfaces = measureCompositionScore(new Measurement(0, 60.0),
133 score.mBandwidth = score.mSurfaces * mTargetFPS * mWidth * mHeight * 4.0;
135 return score;
152 AllocationScore score = new AllocationScore();
171 score.mMedian += speed / MEASURE_ALLOCATION_CYCLES;
173 score.mMin = speed;
174 score
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiScoreReport.java32 // TODO: This score was hardcorded to 56. Need to understand why after finishing code refactor
65 * Method returning the String representation of the score report.
67 * @return String score report
74 * Method returning the bad link speed count at the time of the current score report.
83 * Calculate wifi network score based on updated link layer stats and return a new
86 * If the score has changed from the previous value, update the WifiNetworkAgent.
90 * @param networkAgent NetworkAgent to be notified of new score
91 * @param lastReport String most recent score report
109 int score = STARTING_SCORE;
140 * otherwise we end up lowering the score base
[all...]
H A DWifiNetworkScoreCache.java38 // A Network scorer returns a score in the range [-128, +127]
39 // We treat the lowest possible score as though there were no score, effectively allowing the
75 * Returns whether there is any score info for the given ScanResult.
77 * This includes null-score info, so it should only be used when determining whether to request
85 * Returns whether there is a non-null score curve for the given ScanResult.
87 * A null score curve has special meaning - we should never connect to an ephemeral network if
88 * the score curve is null.
97 int score = INVALID_NETWORK_SCORE;
101 score
[all...]
H A DWifiQualifiedNetworkSelector.java174 localLoge("No network score service: Couldn't register as a WiFi score Manager, type="
343 int score = 0;
344 //calculate the RSSI score
347 score += (rssi + mRssiScoreOffset) * mRssiScoreSlope;
348 sbuf.append(" RSSI score: " + score);
351 score += mWifiConfigManager.mBandAward5Ghz.get();
362 score += bonus > 0 ? bonus : 0;
370 score
996 evalUntrustedCandidate(@ullable Integer score, ScanResult scanResult) argument
1006 evalSavedCandidate(@ullable Integer score, WifiConfiguration config, ScanResult scanResult) argument
[all...]
/frameworks/av/media/libstagefright/
H A DProcessInfo.cpp39 int32_t score = INVALID_ADJ; local
40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score);
45 ALOGV("pid %d state %d score %d", pid, state, score);
46 if (score <= NATIVE_ADJ) {
47 ALOGE("pid %d invalid OOM adjustments value %d", pid, score);
52 *priority = score;
/frameworks/base/core/java/android/net/
H A DNetworkFactory.java38 * can be filtered 3 ways: by NetworkCapabilities, by score and more complexly by
40 * or score forces re-evaluation of all current requests.
65 * msg.arg1 = score - the score of the any network currently satisfying this
67 * exceed this score it should not try to connect, holding the request
70 * or higher) score for this request, transmitted to each
72 * with the same NetworkRequest but an updated score.
74 * allowing for a better score in the future.
85 * Internally used to set our best-guess score.
86 * msg.arg1 = new score
157 public int score; field in class:NetworkFactory.NetworkRequestInfo
160 NetworkRequestInfo(NetworkRequest request, int score) argument
173 handleAddRequest(NetworkRequest request, int score) argument
197 handleSetScore(int score) argument
226 acceptRequest(NetworkRequest request, int score) argument
262 needNetworkFor(NetworkRequest networkRequest, int score) argument
271 addNetworkRequest(NetworkRequest networkRequest, int score) argument
280 setScoreFilter(int score) argument
[all...]
H A DNetworkAgent.java91 /* centralize place where base network score, and network score scaling, will be
98 * network score.
99 * obj = network score Integer
209 NetworkCapabilities nc, LinkProperties lp, int score) {
210 this(looper, context, logTag, ni, nc, lp, score, null);
214 NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) {
226 new LinkProperties(lp), new NetworkCapabilities(nc), score, misc);
383 * Called by the bearer code when it has a new score for this network.
385 public void sendNetworkScore(int score) { argument
208 NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, NetworkCapabilities nc, LinkProperties lp, int score) argument
213 NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) argument
[all...]
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java42 * Calculates a matching score for the single desired locale.
48 * @return A score based on the locale matching for the default subtype enabling.
76 * Calculates a matching score for the desired locale list.
78 * <p>The supported locale gets a matching score of 3 if all language, script and country of the
80 * score of 2 if the language and script of the supported locale matches with the desired
81 * locale. The supported locale gets a matching score of 1 if only language of the supported
82 * locale matches with the desired locale. The supported locale gets a matching score of 0 if
87 * @param out The output buffer to be stored the individual score for the desired language list.
119 @NonNull public final byte[] mScore; // matching score of the i-th system languages.
121 ScoreEntry(@NonNull byte[] score, in argument
126 set(@onNull byte[] score, int index) argument
136 updateIfBetter(@onNull byte[] score, int index) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DFace.java72 * @param score Confidence level between {@value #SCORE_MIN}-{@value #SCORE_MAX}.
88 public Face(Rect bounds, int score, int id, argument
91 if (score < SCORE_MIN || score > SCORE_MAX) {
103 mScore = score;
123 * @param score Confidence level between {@value #SCORE_MIN}-{@value #SCORE_MAX}.
132 public Face(Rect bounds, int score) { argument
133 this(bounds, score, ID_UNSUPPORTED,
249 return String.format("{ bounds: %s, score: %s, id: %d, " +
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DImageGoodnessFilter.java16 // Takes sharpness score, rates the image good if above 10, bad otherwise
88 .addOutputPort("score", Signature.PORT_OPTIONAL, floatT)
138 float score = 0.0f;
139 score = computePictureScore(vectorAccel, sharpness, underExposure, overExposure,
141 if (scoreMean == 0) scoreMean = score;
142 else scoreMean = scoreMean * (1 - DECAY) + score * DECAY;
148 colorfulness, contrastRating, score);
156 if (score >= GREAT_SCORE) {
158 } else if (score >= GOOD_SCORE) {
160 } else if (score >
212 classifierComputeScore(float vectorAccel, float sharpness, float underExposure, float colorfulness, float contrast, float score) argument
248 subComputeScore(float sharpness, float underExposure, float overExposure, float contrastRating, float colorfulness, float brightness, float score) argument
[all...]
/frameworks/base/core/java/android/service/chooser/
H A DChooserTarget.java71 * The score given to this item. It can be normalized.
82 * <p>The creator of a target may supply a ranking score. This score is assumed to be relative
99 * @param score ranking score for this target between 0.0f and 1.0f, inclusive
103 public ChooserTarget(CharSequence title, Icon icon, float score, argument
107 if (score > 1.f || score < 0.f) {
108 throw new IllegalArgumentException("Score " + score + " out of range; "
111 mScore = score;
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DPasspointMatchInfo.java95 int score;
97 score = 100;
100 score = 0;
103 score = -1000; // Don't expect to see anything not home or roaming.
107 score += getNetworkDetail().getHSRelease() != NetworkDetail.HSRelease.Unknown ? 50 : 0;
111 score += getNetworkDetail().isInternet() ? 20 : -20;
114 score += (Math.max(200-getNetworkDetail().getStationCount(), 0) *
120 score += sAntScores.get(getNetworkDetail().getAnt());
130 score -= 1000;
135 score
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dstats_scorer.h31 JNI_FES_FUNCTION(score)(
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DOSUInfo.java166 private ScoreEntry(T data, int score) { argument
168 mScore = score;
195 int score = languageScore(iconInfo.getLanguage(), locale);
197 // Best size score is 1024 for a exact match, i.e. 2048 if both sides match
199 score += (256 - delta) * 4; // Prefer down-scaling
201 score += 256 + delta; // Before up-scaling
205 score += (256 - delta) * 4;
207 score += 256 + delta;
209 matches.add(new ScoreEntry<>(iconInfo, score));
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp236 etc1_uint32 score; // Lower is more accurate member in struct:__anon1517
241 if (a->score > b->score) {
312 etc1_uint32 score = (etc1_uint32) (6 * square(decodedG - pixelG)); local
313 if (score >= bestScore) {
317 score += (etc1_uint32) (3 * square(decodedR - pixelR));
318 if (score >= bestScore) {
322 score += (etc1_uint32) square(decodedB - pixelB);
323 if (score < bestScore) {
324 bestScore = score;
338 int score = pCompressed->score; local
[all...]
/frameworks/minikin/libs/minikin/
H A DFontLanguage.cpp142 int score = 0; local
149 score = 1;
154 if (score == 1) {
155 return score;
159 // Gives score of 2 only if the language matches all of the font languages except for the
/frameworks/base/core/java/com/android/internal/app/
H A DResolverComparator.java135 target.score = recencyScore + usageTimeScore + launchCountScore;
193 final float diff = rhsTarget.score - lhsTarget.score;
212 return target.score;
219 public float score; field in class:ResolverComparator.ScoredTarget
231 + " score: " + score
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkAgentInfo.java51 * interested in using it. Default sort order is descending by score.
89 // for the default network connection, the one with the higher score should be chosen.
145 // If true, becoming unvalidated will lower the network's score. This is only meaningful if the
198 // a request is moved to a network with a better score, regardless of whether the network is or
222 // This represents the last score received from the NetworkAgent.
255 LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler,
263 currentScore = score;
406 // TODO: We may want to refactor this into a NetworkScore class that takes a base score from
408 // score. The NetworkScore class would provide a nice place to centralize score constant
254 NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler, NetworkMisc misc, NetworkRequest defaultRequest, ConnectivityService connService) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DRootInfo.java364 int score = derivedType - other.derivedType;
365 if (score != 0) {
366 return score;
369 score = compareToIgnoreCaseNullable(title, other.title);
370 if (score != 0) {
371 return score;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStochasticLinearRankerWithPrior.java29 /* If the is parameter is true, the final score would be a
105 float score = 0;
108 score = score + mPriorWeights.get(keys[i]) * values[i];
110 return score;
/frameworks/av/media/libstagefright/wifi-display/
H A DVideoFormats.cpp184 size_t width, height, fps, score; local
191 score = width * height * fps * (!interlaced + 1);
196 && score >= width * height * fps * (!interlaced + 1)) {
512 uint32_t score = width * height * framesPerSecond; local
514 score *= 2;
517 if (first || score > bestScore) {
518 bestScore = score;
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiInfo.java157 public int score; field in class:WifiInfo
270 score = 0;
298 score = source.score;
564 append(", score: ").append(Integer.toString(score));
595 dest.writeInt(score);
626 info.score = in.readInt();

Completed in 974 milliseconds

123