Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 69) sorted by relevance

123

/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DStatTest.java31 double[] values = new double[100]; in testGet95PercentileValue() local
33 values[i] = i; in testGet95PercentileValue()
35 assertEquals(95, (int) Stat.get95PercentileValue(values)); in testGet95PercentileValue()
37 values = new double[1000]; in testGet95PercentileValue()
39 values[i] = i; in testGet95PercentileValue()
41 assertEquals(950, (int) Stat.get95PercentileValue(values)); in testGet95PercentileValue()
43 values = new double[100]; in testGet95PercentileValue()
45 values[i] = i * i; in testGet95PercentileValue()
47 assertEquals(95 * 95, (int) Stat.get95PercentileValue(values)); in testGet95PercentileValue()
54 double[] values = new double[]{0, 1, 2, 3, 4}; in testGetAverage() local
[all …]
DReportLogTest.java145 double[] values = new double[1001]; in testLimits_values() local
146 for (int i = 0; i < values.length; i++) values[i] = i; in testLimits_values()
148 metric = new Metric(SOURCE, MESSAGE, values, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_values()
149 assertTrue("Expected values to be trimmed", Arrays.equals(Arrays.copyOf(values, 1000), in testLimits_values()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DInfoStore.java130 protected static int[] checkArray(int[] values) { in checkArray() argument
131 if (values.length > MAX_ARRAY_LENGTH) { in checkArray()
132 return Arrays.copyOf(values, MAX_ARRAY_LENGTH); in checkArray()
134 return values; in checkArray()
138 protected static long[] checkArray(long[] values) { in checkArray() argument
139 if (values.length > MAX_ARRAY_LENGTH) { in checkArray()
140 return Arrays.copyOf(values, MAX_ARRAY_LENGTH); in checkArray()
142 return values; in checkArray()
146 protected static float[] checkArray(float[] values) { in checkArray() argument
147 if (values.length > MAX_ARRAY_LENGTH) { in checkArray()
[all …]
DReportLog.java79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() argument
94 int valuesLength = values.length; in Metric()
97 mValues = Arrays.copyOf(values, MAX_NUM_VALUES); in Metric()
99 mValues = values; in Metric()
156 double[] values = new double[length]; in parse() local
158 values[i] = Double.parseDouble(valuesList.get(i)); in parse()
161 return new Metric(source, message, values, type, unit); in parse()
177 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
242 public void addValues(String message, int[] values, ResultType type, ResultUnit unit) { in addValues() argument
[all …]
DStat.java175 public static double get95PercentileValue(double[] values) { in get95PercentileValue() argument
176 Arrays.sort(values); in get95PercentileValue()
178 int index = (int) Math.round(values.length * 0.95 + .5) - 1; in get95PercentileValue()
179 return values[index]; in get95PercentileValue()
DInvocationResult.java62 ArrayList<IModuleResult> modules = new ArrayList<>(mModuleResults.values()); in getModules()
73 for (IModuleResult m : mModuleResults.values()) { in countResults()
85 for (IModuleResult module : mModuleResults.values()) { in getNotExecuted()
213 for (IModuleResult module : mModuleResults.values()) { in getModuleCompleteCount()
DCaseResult.java75 for (ITestResult result : mResults.values()) { in getResults()
88 ArrayList<ITestResult> results = new ArrayList<>(mResults.values()); in getResults()
99 for (ITestResult result : mResults.values()) { in countResults()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DMetricsReportLog.java112 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
114 super.addValues(source, message, values, type, unit); in addValues()
116 store.addArrayResult(message, values); in addValues()
126 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
127 super.addValues(message, values, type, unit); in addValues()
129 store.addArrayResult(message, values); in addValues()
199 public void addValues(String message, int[] values, ResultType type, ResultUnit unit) { in addValues() argument
201 store.addArrayResult(message, values); in addValues()
211 public void addValues(String message, long[] values, ResultType type, ResultUnit unit) { in addValues() argument
213 store.addArrayResult(message, values); in addValues()
[all …]
DDynamicConfigHandler.java81 List<String> values = new ArrayList<>(); in parseJsonToConfigMap() local
83 values.add(jsonValues.getString(j)); in parseJsonToConfigMap()
85 configMap.put(key, values); in parseJsonToConfigMap()
/test/vti/dashboard/src/main/java/com/android/vts/entity/
DProfilingPointRunEntity.java85 private List<Long> values; field in ProfilingPointRunEntity
118 List<Long> values, in ProfilingPointRunEntity() argument
127 this.values = new ArrayList<>(values); in ProfilingPointRunEntity()
154 List<Long> values, in ProfilingPointRunEntity() argument
163 this.values = new ArrayList<>(values); in ProfilingPointRunEntity()
209 this.values.addAll(partitionedValueList.get(index)); in saveMultiRow()
214 this.values = partitionedValueList.get(index); in saveMultiRow()
241 profilingRun.setUnindexedProperty(VALUES, this.values); in toEntity()
274 List<Long> values = (List<Long>) e.getProperty(VALUES); in fromEntity() local
286 parentKey, name, type, regressionMode, labels, values, xLabel, yLabel, options); in fromEntity()
[all …]
/test/vts/utils/python/coverage/
Dsancov_parser_test.py57 values = (1, 2, 3)
58 stream.write(struct.pack('III', *values))
63 self.assertEqual(values, s)
70 values = (4, 5, 6)
71 stream.write(struct.pack('LLL', *values))
76 self.assertEqual(values, s)
/test/vti/dashboard/src/test/java/com/android/vts/util/
DProfilingPointSummaryTest.java42 private static long[] values = new long[] {1, 2, 3}; field in ProfilingPointSummaryTest
54 String[] labels, long[] values, VtsProfilingRegressionMode regressionMode) { in createProfilingReport() argument
60 stat.updateStats(values[i]); in createProfilingReport()
62 globalStats.updateStats(values[i]); in createProfilingReport()
80 ProfilingPointSummaryEntity pt = createProfilingReport(labels, values, mode); in setUp()
124 ProfilingPointSummaryEntity pt = createProfilingReport(labels, values, mode); in testIterator()
138 ProfilingPointSummaryEntity pt = createProfilingReport(labels, values, mode); in testUpdateLabelGrouped()
DStatSummaryTest.java80 double[] values = new double[n]; in testStd() local
84 values[i] = rand.nextInt(1000); in testStd()
85 sum += values[i]; in testStd()
86 test.updateStats(values[i]); in testStd()
91 sumSq += (values[i] - mean) * (values[i] - mean); in testStd()
/test/vti/dashboard/src/main/java/com/android/vts/util/
DHistogram.java35 private List<Double> values; field in Histogram
46 this.values = new ArrayList<>(); in Histogram()
97 return values.size(); in size()
132 values.add(value); in addData()
150 double[] valueList = Doubles.toArray(values); in toJson()
157 json.add(VALUE_KEY, new Gson().toJsonTree(values).getAsJsonArray()); in toJson()
DTestRunDetails.java62 public final int[] resultCounts = new int[TestCaseResult.values().length];
65 columns = new ResultColumn[TestCaseResult.values().length]; in TestRunDetails()
66 for (TestCaseResult r : TestCaseResult.values()) { in TestRunDetails()
DFilterUtil.java209 String[] values = (String[]) parameterMap.get(key); in getFirstParameter() local
210 if (values.length == 0) return null; in getFirstParameter()
211 return values[0]; in getFirstParameter()
531 String[] values = parameterMap.get(key); in setAttributes() local
532 if (values.length == 0) continue; in setAttributes()
533 String stringValue = values[0]; in setAttributes()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DOutputMeanStdDev.java39 public float[] denormalize(float[] values) { in denormalize() argument
40 if (values.length != mNumOutputs) { in denormalize()
41 throw new IllegalArgumentException("Invalid number of values: " + values.length); in denormalize()
45 results[i] = mMeanStdDevs[i].denormalize(values[i]); in denormalize()
/test/vti/dashboard/src/main/webapp/js/
Dsearch_header.js32 var values = config.options.corpus;
54 if (values && values.length > 0) {
55 var valueSet = new Set(values);
57 source: values,
66 if (values && values.length > 0 && value) {
/test/vts/utils/python/profiling/
Dprofiling_utils.py50 self.values = {}
277 if profiling_data.values.get(api_name):
278 profiling_data.values[api_name].append(long(latency))
280 profiling_data.values[api_name] = [long(latency)]
441 for api, latences in data.values.items():
442 if merged_profiling_data.values.get(api):
443 merged_profiling_data.values[api].extend(latences)
445 merged_profiling_data.values[api] = latences
446 for api, latencies in merged_profiling_data.values.items():
458 self.web.AddApiCoverageReport(self.api_coverage_data.values())
/test/vti/dashboard/src/main/java/com/android/vts/job/
DVtsSpreadSheetSyncServlet.java145 .values() in doGet()
150 List<List<Object>> values = valueRange.getValues(); in doGet() local
151 if (values == null || values.isEmpty()) { in doGet()
154 for (List row : values) { in doGet()
/test/mlts/benchmark/src/com/android/nn/benchmark/evaluators/
DMelCepLogF0.java65 protected void AddValidationResult(List<String> keys, List<Float> values) { in AddValidationResult() argument
67 values.add(mMaxMelCepDistortion); in AddValidationResult()
69 values.add(mMaxLogF0Error); in AddValidationResult()
DPhoneErrorRate.java28 protected void AddValidationResult(List<String> keys, List<Float> values) { in AddValidationResult() argument
30 values.add(mMaxPER); in AddValidationResult()
/test/vti/dashboard/src/main/webapp/WEB-INF/jsp/
Dshow_graph.jsp86 * - values: an array of numbers
100 lineGraph.values[i].unshift(label);
107 data.addRows(lineGraph.values);
129 * - values: an array of numbers
138 if (!hist.values || hist.values.length == 0) return;
141 var values = hist.values;
142 var histogramData = values.reduce(function(result, d, i) {
/test/vts/utils/python/web/
Dweb_utils.py277 values, argument
315 profiling_msg.value.extend(values)
324 values, argument
344 name, labels, values, ReportMsg.VTS_PROFILING_TYPE_LABELED_VECTOR,
350 values, argument
369 name, None, values, ReportMsg.VTS_PROFILING_TYPE_UNLABELED_VECTOR,
/test/vti/dashboard/src/test/java/com/android/vts/job/
DVtsProfilingStatsJobServletTest.java105 List<Long> values = Arrays.asList(valueArray); in createProfilingRun() local
113 values, in createProfilingRun()
229 List<Long> values = Arrays.asList(valueArray); in testNewSummary() local
238 values, in testNewSummary()
302 List<Long> values = Arrays.asList(valueArray); in testUpdateSummary() local
313 values, in testUpdateSummary()
359 for (long value : values) expected.updateStats(value); in testUpdateSummary()

123