Home
last modified time | relevance | path

Searched refs:mean (Results 1 – 25 of 186) sorted by relevance

12345678

/frameworks/base/core/java/com/android/internal/ml/clustering/
DKMeans.java101 Mean mean = means.get(i); in score() local
104 if (mean == compareTo) { in score()
107 double distance = Math.sqrt(sqDistance(mean.mCentroid, compareTo.mCentroid)); in score()
145 final Mean mean = means.get(i); in step() local
146 mean.mClosestItems.clear(); in step()
157 final Mean mean = means.get(i); in step() local
158 if (mean.mClosestItems.size() == 0) { in step()
165 final float[] oldCentroid = mean.mCentroid; in step()
166 mean.mCentroid = new float[oldCentroid.length]; in step()
167 for (int j = 0; j < mean.mClosestItems.size(); j++) { in step()
[all …]
/frameworks/av/drm/libmediadrm/tests/
DEventMetric_test.cpp61 EXPECT_EQ(4, values[7].mean); in TEST()
67 EXPECT_NEAR(5.5, values[8].mean, 0.2); in TEST()
90 EXPECT_EQ(1, values["a"].mean); in TEST()
95 EXPECT_NEAR(2.5, values["b"].mean, 0.2); in TEST()
131 EXPECT_GT(values[0].mean, values[0].min); in TEST()
132 EXPECT_LE(values[0].mean, values[0].max); in TEST()
137 EXPECT_GT(values[1].mean, values[1].min); in TEST()
138 EXPECT_LE(values[1].mean, values[1].max); in TEST()
/frameworks/av/media/module/codecs/amrwb/dec/src/
Disf_extrapolation.cpp122 int16 coeff, mean, tmp, tmp2, tmp3; in isf_extrapolation() local
141 mean = amr_wb_round(L_tmp); in isf_extrapolation()
158 mean = shl_int16(mean, exp); in isf_extrapolation()
161 tmp2 = sub_int16(IsfDiff[i], mean); in isf_extrapolation()
162 tmp3 = sub_int16(IsfDiff[i - 2], mean); in isf_extrapolation()
171 tmp2 = sub_int16(IsfDiff[i], mean); in isf_extrapolation()
172 tmp3 = sub_int16(IsfDiff[i - 3], mean); in isf_extrapolation()
181 tmp2 = sub_int16(IsfDiff[i], mean); in isf_extrapolation()
182 tmp3 = sub_int16(IsfDiff[i - 4], mean); in isf_extrapolation()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkResults.java36 stats.putDouble("Mean (ms)", mean()); in getStatsToReport()
42 stats.putDouble("Mean (ms)", mean()); in getStatsToLog()
74 private double mean() { in mean() method in BenchmarkResults
102 final double mean = mean(); in standardDeviation() local
105 double diff = mResults.get(i) - mean; in standardDeviation()
/frameworks/av/media/libmedia/include/media/
DEventMetric.h34 double mean; member
90 double deviation = value - stats->mean; in Record()
91 stats->mean = stats->mean + (deviation / stats->count); in Record()
93 stats->sum_squared_deviation + (deviation * (value - stats->mean)); in Record()
104 stats->mean = value; in Record()
/frameworks/base/startop/apps/test/src/
DInteractiveMicrobenchmarkActivity.java71 TextView mean = new TextView(context); in addBenchmark() local
75 mean.setText(""); in addBenchmark()
79 mean.setText("Running..."); in addBenchmark()
83 mean.setText(String.format("%.3f", resultMean / 1e6)); in addBenchmark()
89 mBenchmarkList.addView(mean); in addBenchmark()
DNonInteractiveMicrobenchmarkActivity.java65 (mean, stdev) -> { in runBenchmarks()
66 out.printf("%s,%.0f,%.0f\n", benchmarkNames.get(i), mean, stdev); in runBenchmarks()
/frameworks/av/media/utils/tests/
Dmediautils_scopedstatistics_tests.cpp48 auto mean = stats.getMean(); in TEST() local
52 ASSERT_GT(mean, 50.); // took more than 50ms. in TEST()
53 ASSERT_LT(mean, 300.); // took less than 300ms. in TEST()
/frameworks/base/core/java/com/android/internal/jank/
DEventLogTags.logtags5 # Marks a request to start tracing a CUJ. Doesn't mean the request was executed.
7 # Marks a request to end tracing a CUJ. Doesn't mean the request was executed.
9 # Marks a request to cancel tracing a CUJ. Doesn't mean the request was executed.
/frameworks/base/tests/JankBench/scripts/
Dcollect.py135 mean = round_to_2(numpy.mean(res.durations))
138 score = stddev * mean * pj
143 means.append(mean)
147 …print "\t%s: Score = %f x %f x %f = %f (%d samples)" % (iteration, stddev, mean, pj, score, len(re…
155 geo_run = numpy.mean(scores)
188 …print "\t%s:\t%0.2f%% (%0.2f avg sample count)" % (test, variation, numpy.mean(per_test_sample_cou…
Ditr_collect.py94 mean = numpy.mean(res.durations)
97 score = stddev * mean *pj
102 … print "\tScore = %f x %f x %f = %f (%d samples)" % (stddev, mean, pj, score, len(res.durations))
129 …count)" % (test, 100 * scipy.stats.variation(per_test_score[test]), numpy.mean(per_test_sample_cou…
/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/
DKMeansTest.java144 for (KMeans.Mean mean : means) { in predictTest()
145 if (Arrays.equals(mean.getCentroid(), expectedCentroid1)) { in predictTest()
147 } else if (Arrays.equals(mean.getCentroid(), expectedCentroid2)) { in predictTest()
150 throw new AssertionError("Unexpected mean: " + mean); in predictTest()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DVariationalKMeansQuantizer.java114 for (KMeans.Mean mean : optimalMeans) { in quantize()
115 if (mean.getItems().size() == 0) { in quantize()
118 float[] centroid = mean.getCentroid(); in quantize()
124 mQuantizedColors.add(new Palette.Swatch(color, mean.getItems().size())); in quantize()
/frameworks/av/media/module/codecs/amrwb/enc/src/
Ddtx.c570 Word16 tmp, mean, CN_dith, gain_diff; in dithering_control() local
588 mean = 0; in dithering_control()
591 mean = add(mean, st->log_en_hist[i]); in dithering_control()
593 mean = (mean >> 3); in dithering_control()
597 tmp = abs_s(sub(st->log_en_hist[i], mean)); in dithering_control()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBenchmarkState.java222 private long mean() { in mean() method in BenchmarkState
254 sb.append("mean=").append(mean()).append("ns, "); in summaryLine()
270 status.putLong(key + "_mean (ns)", mean()); in sendFullStatusReport()
/frameworks/av/services/mediaextractor/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/av/media/module/foundation/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/av/media/module/mpeg2ts/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/base/media/jni/soundpool/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/av/media/libmedia/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/base/keystore/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/native/cmds/cmd/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/av/media/module/extractors/midi/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity
/frameworks/av/media/libstagefright/codecs/flac/enc/
DNOTICE22 "License" shall mean the terms and conditions for use, reproduction,
25 "Licensor" shall mean the copyright owner or entity authorized by
28 "Legal Entity" shall mean the union of the acting entity and all
36 "You" (or "Your") shall mean an individual or Legal Entity
39 "Source" form shall mean the preferred form for making modifications,
43 "Object" form shall mean any form resulting from mechanical
48 "Work" shall mean the work of authorship, whether in Source or
53 "Derivative Works" shall mean any work, whether in Source or Object
61 "Contribution" shall mean any work of authorship, including
75 "Contributor" shall mean Licensor and any individual or Legal Entity

12345678