/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
D | CtsJankTestBase.java | 26 import com.android.compatibility.common.util.ResultType; 37 ResultType resultType, ResultUnit resultUnit) { in printIntValueWithKey() 45 ResultType resultType, ResultUnit resultUnit) { in printDoubleValueWithKey() 56 ResultType.HIGHER_BETTER, ResultUnit.FPS); in afterTest() 59 ResultType.LOWER_BETTER, ResultUnit.MS); in afterTest() 61 ResultType.LOWER_BETTER, ResultUnit.COUNT); in afterTest() 64 ResultType.LOWER_BETTER, ResultUnit.COUNT); in afterTest() 67 ResultType.LOWER_BETTER, ResultUnit.COUNT); in afterTest() 69 ResultType.LOWER_BETTER, ResultUnit.MS); in afterTest() 71 ResultType.LOWER_BETTER, ResultUnit.MS); in afterTest() [all …]
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | MediaPerfUtils.java | 22 import com.android.compatibility.common.util.ResultType; 57 log.addValue("round", round, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 58 log.addValue("codec_name", codecName, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 60 ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 62 ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 64 ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 66 ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 68 ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 70 ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog() 87 "window_frames", MOVING_AVERAGE_NUM_FRAMES, ResultType.NEUTRAL, ResultUnit.COUNT); in addPerformanceStatsToLog() [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | ReportLog.java | 61 ResultType mType; 64 Metric(String source, String message, double value, ResultType type, ResultUnit unit) { in Metric() 79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() 117 public ResultType getType() { in getType() 145 ResultType type = ResultType.parseReportString( in parse() 177 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() 184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() 192 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() 199 public void addValue(String source, String message, double value, ResultType type, in addValue() 207 public void addValue(String message, int value, ResultType type, ResultUnit unit) { in addValue() [all …]
|
D | ResultType.java | 22 public enum ResultType { enum 42 public static ResultType parseReportString(String value) { in parseReportString() 43 return ResultType.valueOf(value.toUpperCase()); in parseReportString()
|
/cts/common/host-side/util/src/com/android/compatibility/common/util/ |
D | MetricsReportLog.java | 67 public void addValue(String source, String message, double value, ResultType type, in addValue() 81 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() 95 public void addValues(String source, String message, double[] values, ResultType type, in addValues() 109 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() 122 public void addValue(String message, int value, ResultType type, ResultUnit unit) { in addValue() 134 public void addValue(String message, long value, ResultType type, ResultUnit unit) { in addValue() 146 public void addValue(String message, float value, ResultType type, ResultUnit unit) { in addValue() 158 public void addValue(String message, boolean value, ResultType type, ResultUnit unit) { in addValue() 170 public void addValue(String message, String value, ResultType type, ResultUnit unit) { in addValue() 182 public void addValues(String message, int[] values, ResultType type, ResultUnit unit) { in addValues() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | DeviceReportLog.java | 70 public void addValue(String source, String message, double value, ResultType type, in addValue() 84 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() 97 public void addValues(String source, String message, double[] values, ResultType type, in addValues() 111 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() 124 public void addValue(String message, int value, ResultType type, ResultUnit unit) { in addValue() 136 public void addValue(String message, long value, ResultType type, ResultUnit unit) { in addValue() 148 public void addValue(String message, float value, ResultType type, ResultUnit unit) { in addValue() 160 public void addValue(String message, boolean value, ResultType type, ResultUnit unit) { in addValue() 172 public void addValue(String message, String value, ResultType type, ResultUnit unit) { in addValue() 184 public void addValues(String message, int[] values, ResultType type, ResultUnit unit) { in addValues() [all …]
|
/cts/tests/sample/src/android/sample/cts/ |
D | SampleDeviceReportLogTest.java | 22 import com.android.compatibility.common.util.ResultType; 71 reportLog.addValue(EXPECTED_PRODUCT_TAG, 1.0 * MULTIPLICATION_RESULT, ResultType.NEUTRAL, in testMultiplication() 73 reportLog.addValue(ACTUAL_PRODUCT_TAG, 1.0 * product, ResultType.NEUTRAL, ResultUnit.NONE); in testMultiplication() 74 … reportLog.setSummary(ACTUAL_PRODUCT_TAG, 1.0 * product, ResultType.NEUTRAL, ResultUnit.NONE); in testMultiplication() 120 reportLog.addValue(START_TAG, 1.0 * start, ResultType.NEUTRAL, ResultUnit.NONE); in countHelper() 121 reportLog.addValue(END_TAG, 1.0 * end, ResultType.NEUTRAL, ResultUnit.NONE); in countHelper() 122 reportLog.setSummary(END_TAG, 1.0 * end, ResultType.NEUTRAL, ResultUnit.NONE); in countHelper()
|
D | SampleDeviceResultTest.java | 24 import com.android.compatibility.common.util.ResultType; 87 reportLog.addValues("times", result, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort() 88 reportLog.addValue("min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort() 89 reportLog.addValue("max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort() 91 reportLog.setSummary("average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in testSort()
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | ReportLogTest.java | 68 mReportLog.setSummary("Sample", 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testSerialize_summaryOnly() 74 mReportLog.addValues("Details", VALUES, ResultType.NEUTRAL, ResultUnit.FPS); in testSerialize_detailOnly() 79 mReportLog.setSummary("Sample", 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testSerialize_full() 80 mReportLog.addValues("Details", VALUES, ResultType.NEUTRAL, ResultUnit.FPS); in testSerialize_full() 113 Metric metric = new Metric(SOURCE, MESSAGE, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_source() 121 metric = new Metric(source, MESSAGE, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_source() 128 Metric metric = new Metric(SOURCE, MESSAGE, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_message() 136 metric = new Metric(SOURCE, message, 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_message() 143 Metric metric = new Metric(SOURCE, MESSAGE, VALUES, ResultType.HIGHER_BETTER, in testLimits_values() 150 metric = new Metric(SOURCE, MESSAGE, values, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_values()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckTestActivity.java | 37 import com.android.compatibility.common.util.ResultType; 98 "Initialize failed", 0, ResultType.NEUTRAL, ResultUnit.NONE); in activitySetUp() 159 "Record failed", 0, ResultType.NEUTRAL, ResultUnit.NONE); in activitySetUp() 185 ResultType.NEUTRAL, ResultUnit.NONE); in activitySetUp() 190 "Analysis succeed", 1, ResultType.NEUTRAL, ResultUnit.NONE); in activitySetUp() 193 ResultType.LOWER_BETTER, ResultUnit.RADIAN); in activitySetUp() 195 ResultType.LOWER_BETTER, ResultUnit.RADIAN); in activitySetUp() 197 ResultType.LOWER_BETTER, ResultUnit.RADIAN); in activitySetUp() 200 ResultType.LOWER_BETTER, ResultUnit.RADIAN); in activitySetUp() 202 ResultType.LOWER_BETTER, ResultUnit.RADIAN); in activitySetUp() [all …]
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | SequentialRWTest.java | 24 import com.android.compatibility.common.util.ResultType; 55 report.addValue("files", numberOfFiles, ResultType.NEUTRAL, ResultUnit.COUNT); in testSingleSequentialWrite() 69 report.addValues("write_throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in testSingleSequentialWrite() 70 report.addValues("write_amount", wrAmount, ResultType.NEUTRAL, ResultUnit.BYTE); in testSingleSequentialWrite() 72 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialWrite() 99 report.addValue("file_size", fileSize, ResultType.NEUTRAL, ResultUnit.NONE); in testSingleSequentialRead() 102 ResultType.HIGHER_BETTER, ResultUnit.MBPS); in testSingleSequentialRead() 121 report.addValues("read_throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in testSingleSequentialRead() 123 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in testSingleSequentialRead()
|
D | FileUtil.java | 27 import com.android.compatibility.common.util.ResultType; 307 report.addValues("read_throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in doRandomReadTest() 309 report.addValues("read_amount", rdAmount, ResultType.NEUTRAL, ResultUnit.BYTE); in doRandomReadTest() 312 report.setSummary("read_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomReadTest() 359 report.addValues("write_throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in doRandomWriteTest() 360 report.addValues("write_amount", wrAmount, ResultType.NEUTRAL, ResultUnit.BYTE); in doRandomWriteTest() 363 report.setSummary("write_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRandomWriteTest() 388 report.addValue("round", i, ResultType.NEUTRAL, ResultUnit.NONE); in doSequentialUpdateTest() 401 report.addValues("throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in doSequentialUpdateTest() 411 report.addValue("update_throughput", stat.mAverage, ResultType.HIGHER_BETTER, in doSequentialUpdateTest()
|
/cts/tests/dram/src/android/dram/cts/ |
D | BandwidthTest.java | 26 import com.android.compatibility.common.util.ResultType; 171 report.addValue("buffer_size", bufferSize, ResultType.NEUTRAL, ResultUnit.NONE); in doRunMemcpy() 172 report.addValues("memcpy_time", result, ResultType.LOWER_BETTER, ResultUnit.MS); in doRunMemcpy() 175 report.addValues("memcpy_throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in doRunMemcpy() 187 report.addValue("memcpy_in_fps", screensPerSecAverage, ResultType.HIGHER_BETTER, in doRunMemcpy() 189 report.setSummary("memcpy_throughput_average", stat.mAverage, ResultType.HIGHER_BETTER, in doRunMemcpy() 206 report.addValue("buffer_size", bufferSize, ResultType.NEUTRAL, ResultUnit.NONE); in doRunMemset() 207 report.addValues("memset_time", result, ResultType.LOWER_BETTER, ResultUnit.MS); in doRunMemset() 210 report.addValues("memset_throughput", mbps, ResultType.HIGHER_BETTER, ResultUnit.MBPS); in doRunMemset() 222 report.addValue("memset_in_fps", screensPerSecAverage, ResultType.HIGHER_BETTER, in doRunMemset() [all …]
|
/cts/tests/simplecpu/src/android/simplecpu/cts/ |
D | SimpleCpuTest.java | 23 import com.android.compatibility.common.util.ResultType; 104 report.addValue("array_length", arrayLength, ResultType.NEUTRAL, ResultUnit.NONE); in doTestSort() 105 report.addValues("sorting_time", result, ResultType.LOWER_BETTER, ResultUnit.MS); in doTestSort() 110 … report.setSummary("sorting_time_average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in doTestSort() 128 report.addValue("matrix_dimension", n, ResultType.NEUTRAL, ResultUnit.NONE); in doMatrixMultiplication() 129 report.addValues("matrix_mutiplication_time", result, ResultType.LOWER_BETTER, in doMatrixMultiplication() 136 ResultType.LOWER_BETTER, ResultUnit.MS); in doMatrixMultiplication()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | PerformanceTest.java | 46 import com.android.compatibility.common.util.ResultType; 123 mReportLog.addValue("camera_id", id, ResultType.NEUTRAL, ResultUnit.NONE); in testCameraLaunch() 187 mReportLog.addValues("camera_open_time", cameraOpenTimes, ResultType.LOWER_BETTER, in testCameraLaunch() 190 ResultType.LOWER_BETTER, ResultUnit.MS); in testCameraLaunch() 192 ResultType.LOWER_BETTER, ResultUnit.MS); in testCameraLaunch() 194 ResultType.LOWER_BETTER, ResultUnit.MS); in testCameraLaunch() 196 ResultType.LOWER_BETTER, ResultUnit.MS); in testCameraLaunch() 198 ResultType.LOWER_BETTER, ResultUnit.MS); in testCameraLaunch() 210 Stat.getAverage(avgCameraLaunchTimes), ResultType.LOWER_BETTER, ResultUnit.MS); in testCameraLaunch() 237 mReportLog.addValue("camera_id", id, ResultType.NEUTRAL, ResultUnit.NONE); in testSingleCapture() [all …]
|
/cts/tests/jank/src/android/jank/cts/ |
D | CtsJankTestBase.java | 25 import com.android.compatibility.common.util.ResultType; 39 ResultType.HIGHER_BETTER, ResultUnit.FPS); in afterTest() 42 ResultType.LOWER_BETTER, ResultUnit.MS); in afterTest() 45 ResultType.LOWER_BETTER, ResultUnit.COUNT); in afterTest() 48 ResultType.LOWER_BETTER, ResultUnit.COUNT); in afterTest()
|
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
D | GLReferenceBenchmark.java | 21 import com.android.compatibility.common.util.ResultType; 69 report.addValues("set_up_times", setUpTimes, ResultType.LOWER_BETTER, ResultUnit.MS); in testReferenceBenchmark() 70 report.addValue("update_time_average", updateAverage, ResultType.LOWER_BETTER, in testReferenceBenchmark() 72 report.addValue("render_time_average", renderAverage, ResultType.LOWER_BETTER, in testReferenceBenchmark() 76 report.setSummary("total_time_average", totalTime, ResultType.LOWER_BETTER, in testReferenceBenchmark()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sample/ |
D | SampleTestActivity.java | 20 import com.android.compatibility.common.util.ResultType; 80 getReportLog().setSummary("Sample Summary", 1.0, ResultType.HIGHER_BETTER, in recordMetricsExample() 82 getReportLog().addValues("Sample Values", metricValues, ResultType.NEUTRAL, in recordMetricsExample() 87 reportLog.setSummary("Sample Summary", 1.0, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in recordMetricsExample() 88 reportLog.addValues("Sample Values", metricValues, ResultType.NEUTRAL, ResultUnit.FPS); in recordMetricsExample()
|
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/ |
D | DeviceReportTest.java | 55 private static final ResultType TEST_TYPE_1 = ResultType.HIGHER_BETTER; 59 private static final ResultType TEST_TYPE_2 = ResultType.LOWER_BETTER; 63 private static final ResultType TEST_TYPE_3 = ResultType.LOWER_BETTER; 67 private static final ResultType TEST_TYPE_4 = ResultType.LOWER_BETTER;
|
/cts/tests/tvprovider/src/android/tvprovider/cts/ |
D | TvProviderPerfTest.java | 38 import com.android.compatibility.common.util.ResultType; 110 report.addValues("elapsed_time_for_insert", applyBatchTimes, ResultType.LOWER_BETTER, in testChannels() 138 report.addValues("elapsed_time_for_update", applyBatchTimes, ResultType.LOWER_BETTER, in testChannels() 155 ResultType.LOWER_BETTER, ResultUnit.MS); in testChannels() 175 ResultType.LOWER_BETTER, ResultUnit.MS); in testChannels() 185 report.addValues("elapsed_time_for_delete", applyBatchTimes, ResultType.LOWER_BETTER, in testChannels() 190 + "delete", averages, ResultType.LOWER_BETTER, ResultUnit.MS); in testChannels() 248 report.addValues("elapsed_time_for_insert", applyBatchTimes, ResultType.LOWER_BETTER, in testPrograms() 283 report.addValues("elapsed_time_for_update", applyBatchTimes, ResultType.LOWER_BETTER, in testPrograms() 300 ResultType.LOWER_BETTER, ResultUnit.MS); in testPrograms() [all …]
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
D | SampleHostResultTest.java | 23 import com.android.compatibility.common.util.ResultType; 145 report.addValues("times", result, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime() 146 report.addValue("min", stat.mMin, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime() 147 report.addValue("max", stat.mMax, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime() 149 report.setSummary("average", stat.mAverage, ResultType.LOWER_BETTER, ResultUnit.MS); in testTransferTime()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrack_ListenerTest.java | 29 import com.android.compatibility.common.util.ResultType; 211 log.addValue("average_marker_diff", markerStat.getAvg(), ResultType.LOWER_BETTER, in doTest() 213 log.addValue("maximum_marker_abs_diff", markerStat.getMaxAbs(), ResultType.LOWER_BETTER, in doTest() 215 log.addValue("average_marker_abs_diff", markerStat.getAvgAbs(), ResultType.LOWER_BETTER, in doTest() 217 log.addValue("average_periodic_diff", periodicStat.getAvg(), ResultType.LOWER_BETTER, in doTest() 219 log.addValue("maximum_periodic_abs_diff", periodicStat.getMaxAbs(), ResultType.LOWER_BETTER, in doTest() 221 log.addValue("average_periodic_abs_diff", periodicStat.getAvgAbs(), ResultType.LOWER_BETTER, in doTest() 224 ResultType.LOWER_BETTER, ResultUnit.MS); in doTest()
|
D | DecoderConformanceTest.java | 35 import com.android.compatibility.common.util.ResultType; 265 mReportLog.addValue("mime", mime, ResultType.NEUTRAL, ResultUnit.NONE); in decodeTestVectors() 266 mReportLog.addValue("is_goog", isGoog, ResultType.NEUTRAL, ResultUnit.NONE); in decodeTestVectors() 267 mReportLog.addValue("pass", pass, ResultType.NEUTRAL, ResultUnit.NONE); in decodeTestVectors() 268 mReportLog.addValue("vector_name", vectorName, ResultType.NEUTRAL, ResultUnit.NONE); in decodeTestVectors() 269 mReportLog.addValue("decode_name", decoderName, ResultType.NEUTRAL, in decodeTestVectors()
|
/cts/tests/ui/src/android/ui/cts/ |
D | ScrollingTest.java | 23 import com.android.compatibility.common.util.ResultType; 75 report.addValues("scrolling_time", results, ResultType.LOWER_BETTER,ResultUnit.MS); in testFullScrolling() 78 ResultType.LOWER_BETTER,ResultUnit.MS); in testFullScrolling()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioLoopbackActivity.java | 22 import com.android.compatibility.common.util.ResultType; 303 ResultType.LOWER_BETTER, in recordTestResults() 309 ResultType.HIGHER_BETTER, in recordTestResults() 316 ResultType.NEUTRAL, in recordTestResults() 322 ResultType.NEUTRAL, in recordTestResults() 328 ResultType.NEUTRAL, in recordTestResults() 338 ResultType.NEUTRAL, in recordHeasetPortFound()
|