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

123456789

/external/chromium_org/base/process/
H A Dmemory_stubs.cc15 bool AdjustOOMScore(ProcessId process, int score) { argument
H A Dmemory.h51 // The maximum allowed value for the OOM score.
61 BASE_EXPORT bool AdjustOOMScore(ProcessId process, int score);
/external/chromium_org/components/history/core/common/
H A Dthumbnail_score_unittest.cc49 // This one has a lot of redirects but a better score. It should still be
57 ThumbnailScore score; local
58 // By default, the score is low, thus we should generate a new thumbnail.
59 EXPECT_TRUE(score.ShouldConsiderUpdating());
62 score.boring_score = 0.0;
63 EXPECT_TRUE(score.ShouldConsiderUpdating());
66 score.good_clipping = true;
67 EXPECT_TRUE(score.ShouldConsiderUpdating());
70 score.at_top = true;
71 EXPECT_TRUE(score
[all...]
H A Dthumbnail_score.cc18 // Calculates a numeric score from traits about where a snapshot was
22 static int GetThumbnailType(const ThumbnailScore& score) { argument
24 if (!score.at_top)
26 if (!score.good_clipping)
28 if (!score.load_completed)
42 ThumbnailScore::ThumbnailScore(double score, bool clipping, bool top) argument
43 : boring_score(score),
51 ThumbnailScore::ThumbnailScore(double score, argument
55 : boring_score(score),
97 // is better." Then we can decrease the score b
[all...]
H A Dthumbnail_score.h20 ThumbnailScore(double score, bool clipping, bool top);
23 ThumbnailScore(double score, bool clipping, bool top, const base::Time& time);
32 // How "boring" a thumbnail is. The boring score is the 0,1 ranged
37 // The score should only be used for comparing two thumbnails taken from
39 // absolute score is not suitable for judging whether the thumbnail is
41 // succinct, so the boring score can be as high as 0.9, depending on the
85 // We consider a thumbnail interesting enough if the boring score is
102 // this score. For instance, we don't have to update a new thumbnail
/external/chromium_org/sandbox/linux/suid/
H A Dprocess_util.h19 // try to set the older oom_adj value instead, scaling the score to
22 bool AdjustOOMScore(pid_t process, int score);
H A Dprocess_util_linux.c26 // flavors of OOM score.
32 bool AdjustOOMScore(pid_t process, int score) { argument
33 if (score < 0 || score > kMaxOomScore)
64 // [0, kMaxOldOomScore], so we scale the score. This may result in some
66 score = score * kMaxOldOomScore / kMaxOomScore;
71 char buf[11]; // 0 <= |score| <= kMaxOomScore; using log_10(2**32) + 1 size
72 snprintf(buf, sizeof(buf), "%d", score);
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/
H A DFilePathScoreFunction.js70 score: function(data, matchIndexes)
80 var score = this._score;
86 var skipCharScore = j === 0 ? 0 : score[i * m + j - 1];
87 var prevCharScore = i === 0 || j === 0 ? 0 : score[(i - 1) * m + j - 1];
92 score[i * m + j] = (prevCharScore + pickCharScore);
95 score[i * m + j] = skipCharScore;
101 return score[n * m - 1];
153 var score = 10;
155 score += 4;
157 score
[all...]
/external/apache-xml/src/main/java/org/apache/xpath/patterns/
H A DFunctionPattern.java55 * Static calc of match score.
107 XNumber score = SCORE_NONE;
115 score = (n == context) ? SCORE_OTHER : SCORE_NONE;
117 if (score == SCORE_OTHER)
129 return score;
151 XNumber score = SCORE_NONE;
159 score = (n == context) ? SCORE_OTHER : SCORE_NONE;
161 if (score == SCORE_OTHER)
172 return score;
194 XNumber score
[all...]
H A DContextMatchStepPattern.java90 XObject score = NodeTest.SCORE_NONE;
119 score = execute(xctxt);
121 if (score != NodeTest.SCORE_NONE)
123 //score = executePredicates( xctxt, prevStep, SCORE_OTHER,
126 return score;
128 score = NodeTest.SCORE_NONE;
147 score = execute(xctxt);
149 if (score != NodeTest.SCORE_NONE)
151 //score = executePredicates( xctxt, prevStep, SCORE_OTHER,
154 if (score !
[all...]
H A DUnionPattern.java125 XObject score = m_patterns[i].execute(xctxt);
127 if (score != NodeTest.SCORE_NONE)
130 bestScore = score;
131 else if (score.num() > bestScore.num())
132 bestScore = score;
/external/chromium_org/chrome/browser/thumbnails/
H A Dthumbnailing_context.cc18 score.at_top =
20 score.load_completed = !web_contents->IsLoading() && !load_interrupted;
H A Dthumbnail_service_unittest.cc34 ThumbnailScore* score) OVERRIDE {
40 *score = iter->second;
45 // Adds a known URL with the associated thumbnail score.
46 void AddKnownURL(const GURL& url, const ThumbnailScore& score) { argument
47 known_url_map_[url.spec()] = score;
69 void AddKnownURL(const GURL& url, const ThumbnailScore& score) { argument
70 mock_top_sites_->AddKnownURL(url, score);
114 // Replace the thumbnail score with a really good one.
/external/chromium_org/components/favicon_base/
H A Dselect_favicon_frames.h19 // Score which is smaller than the minimum score returned by
30 // If score is non-NULL, it receives a score between 0 (bad) and 1 (good)
33 // The score is arbitrary, but it's best for exact size matches,
44 float* score);
49 // |desired_sizes|, the index of the largest size is returned. If |score| is
50 // non-NULL, |score| is set to a value between 0 (bad) and 1 (good) that
52 // produce the ImageSkia. The score is arbitrary, but it's best for exact
61 float* score);
H A Dselect_favicon_frames.cc54 float* score) {
61 *score = 1;
80 float score = 0; local
83 score = std::min(1.0f, desired_size / average_edge) * 0.01f;
86 score = desired_size / average_edge * 0.01f + 0.15f;
88 score = std::min(1.0f, average_edge / desired_size) * 0.01f + 0.1f;
92 score > candidate_score) {
94 candidate_score = score;
97 *score = candidate_score;
138 float score; local
51 GetCandidateIndexWithBestScore( const std::vector<gfx::Size>& candidate_sizes, int desired_size, float* score) argument
213 CreateFaviconImageSkia( const std::vector<SkBitmap>& bitmaps, const std::vector<gfx::Size>& original_sizes, int desired_size_in_dip, float* score) argument
[all...]
/external/chromium_org/v8/benchmarks/
H A Drun.js52 function PrintScore(score) {
55 print('Score (version ' + BenchmarkSuite.version + '): ' + score);
/external/chromium_org/content/public/browser/
H A Dzygote_host_linux.h33 // Adjust the OOM score of the given renderer's PID. The allowed
34 // range for the score is [0, 1000], where higher values are more
37 int score) = 0;
/external/chromium_org/third_party/WebKit/PerformanceTests/Dromaeo/resources/
H A Ddromaeorunner.js41 var score = message.status.score;
42 if (score)
43 DRT.log(score.name + ': [' + score.times.join(', ') + ']');
/external/skia/src/fonts/
H A DSkFontMgr_indirect.cpp56 int score; member in struct:SkStyleSet_Indirect::Score
93 currentScore.score += 10 - pattern.width() + current.width();
95 currentScore.score += 10 - current.width();
99 currentScore.score += 10 + pattern.width() - current.width();
101 currentScore.score += current.width();
104 currentScore.score *= 1002;
110 currentScore.score += 1001;
115 // The 'closer' to the target weight, the higher the score.
118 currentScore.score += 1000;
124 currentScore.score
[all...]
/external/chromium_org/third_party/WebKit/Source/core/page/
H A DTouchDisambiguation.cpp75 float score = 1; local
78 score *= std::max((padding - abs(distance.width())) * reciprocalPadding, 0.f);
79 score *= std::max((padding - abs(distance.height())) * reciprocalPadding, 0.f);
81 return score;
86 float score; member in struct:blink::TouchTargetData
132 targetData.score = scoreTouchTarget(touchPoint, touchPointPadding, targetData.windowBoundingBox);
133 bestScore = std::max(bestScore, targetData.score);
140 // Currently the scoring function uses the overlap area with the fat point as the score.
142 if (it->value.score < bestScore * 0.5)
/external/chromium_org/tools/perf/benchmarks/
H A Dcanvasmark.py37 # Split the results into score and test name.
42 score = int(score_and_name[0])
45 results.current_page, name, 'score', score, important=False))
46 # Aggregate total score for all tests.
47 total += score
49 results.current_page, 'Score', 'score', total))
/external/chromium_org/third_party/skia/src/fonts/
H A DSkFontMgr_indirect.cpp56 int score; member in struct:SkStyleSet_Indirect::Score
93 currentScore.score += 10 - pattern.width() + current.width();
95 currentScore.score += 10 - current.width();
99 currentScore.score += 10 + pattern.width() - current.width();
101 currentScore.score += current.width();
104 currentScore.score *= 1002;
110 currentScore.score += 1001;
115 // The 'closer' to the target weight, the higher the score.
118 currentScore.score += 1000;
124 currentScore.score
[all...]
/external/chromium_org/chrome/browser/history/
H A Dtop_sites_impl.h58 const ThumbnailScore& score) OVERRIDE;
62 const ThumbnailScore& score) OVERRIDE;
71 ThumbnailScore* score) OVERRIDE;
73 ThumbnailScore* score) OVERRIDE;
126 const ThumbnailScore& score);
132 const ThumbnailScore& score);
146 const ThumbnailScore& score);
/external/valgrind/main/coregrind/
H A Dm_sbprofile.c77 VG_(printf)("Total score = %'lld\n\n", score_total);
85 if (tops[r].score == 0)
90 score_here = tops[r].score;
117 if (tops[r].score == 0)
122 score_here = tops[r].score;
146 if (tops[r].score == 0)
151 score_here = tops[r].score;
/external/chromium_org/third_party/brotli/src/brotli/enc/
H A Dhash.h167 // Write the score of the best match into best_score_out.
246 // a few unnecessary binary logarithms in backward reference score,
248 const double score = BackwardReferenceScoreUsingLastDistance( local
254 if (best_score < score) {
255 best_score = score;
283 const double score = start_cost2 - 2.3 * Log2Floor(backward); local
285 if (best_score < score) {
286 best_score = score;
318 // score, since we are not interested in such short matches.
319 const double score local
349 const double score = BackwardReferenceScore(average_cost_, local
[all...]

Completed in 1255 milliseconds

123456789