Home
last modified time | relevance | path

Searched refs:assertAlmostEqual (Results 1 – 24 of 24) sorted by relevance

/external/chromium-trace/catapult/telemetry/telemetry/timeline/
Dtrace_event_importer_unittest.py52 self.assertAlmostEqual(0, slice_event.start)
53 self.assertAlmostEqual((560 - 520) / 1000.0, slice_event.duration)
54 self.assertAlmostEqual((560 - 520) / 1000.0, slice_event.end)
55 self.assertAlmostEqual(280 / 1000.0, slice_event.thread_start)
56 self.assertAlmostEqual((310 - 280) / 1000.0, slice_event.thread_duration)
57 self.assertAlmostEqual(310 / 1000.0, slice_event.thread_end)
63 self.assertAlmostEqual((629 - 520) / 1000.0, slice_event.start)
64 self.assertAlmostEqual((631 - 629) / 1000.0, slice_event.duration)
65 self.assertAlmostEqual((631 - 520) / 1000.0, slice_event.end)
66 self.assertAlmostEqual(356 / 1000.0, slice_event.thread_start)
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/value/
Dlist_of_scalar_values_unittest.py17 self.assertAlmostEqual(
19 self.assertAlmostEqual(
21 self.assertAlmostEqual(
25 self.assertAlmostEqual(
27 self.assertAlmostEqual(
29 self.assertAlmostEqual(
34 self.assertAlmostEqual(
36 self.assertAlmostEqual(
38 self.assertAlmostEqual(
40 self.assertAlmostEqual(list_of_scalar_values.PooledStandardDeviation(
[all …]
/external/chromium-trace/catapult/dashboard/dashboard/
Dfind_step_test.py116 self.assertAlmostEqual(
118 self.assertAlmostEqual(
125 self.assertAlmostEqual(
127 self.assertAlmostEqual(
136 self.assertAlmostEqual(0.56005865, find_step.Steppiness(step, 4))
141 self.assertAlmostEqual(
147 self.assertAlmostEqual(0.0, find_step.Steppiness(step, 4))
175 self.assertAlmostEqual(0.0, math_utils.Mean(normalized))
176 self.assertAlmostEqual(1.0, math_utils.StandardDeviation(normalized))
Dmath_utils_test.py49 self.assertAlmostEqual(6.25, sum([12.25, 0.25, 0.25, 12.25]) / 4.0)
50 self.assertAlmostEqual(6.25, math_utils.Variance([-3, 0, 1, 4]))
59 self.assertAlmostEqual(2.5, math.sqrt(6.25))
60 self.assertAlmostEqual(2.5, math_utils.StandardDeviation([-3, 0, 1, 4]))
Dttest_test.py41 self.assertAlmostEqual(10.0, result.df)
42 self.assertAlmostEqual(-6.325, result.t, delta=1.0)
92 self.assertAlmostEqual(-0.27968236, ttest._TValue(stats1, stats2))
93 self.assertAlmostEqual(0.27968236, ttest._TValue(stats2, stats1))
108 self.assertAlmostEqual(
Dadd_point_test.py1223 self.assertAlmostEqual(row['value'], 13)
1224 self.assertAlmostEqual(row['error'], 6.78232998)
1286 self.assertAlmostEqual(row['value'], 4.01690877)
1287 self.assertAlmostEqual(row['error'], 0.99772482)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/
Dcros_power_monitor_unittest.py154 self.assertAlmostEqual(battery[value], expected_battery[value])
156 self.assertAlmostEqual(results['energy_consumption_mwh'],
158 self.assertAlmostEqual(results['power_samples_mw'][0],
160 self.assertAlmostEqual(results['power_samples_mw'][1],
Dandroid_dumpsys_power_monitor_unittest.py35 self.assertAlmostEqual(results['application_energy_consumption_mwh'], 95.6)
58 self.assertAlmostEqual(result['application_energy_consumption_mwh'], 250.0)
59 self.assertAlmostEqual(result['energy_consumption_mwh'], 10000.0)
Dandroid_fuelgauge_power_monitor_unittest.py29 self.assertAlmostEqual(results['fuel_gauge_energy_consumption_mwh'], 10)
Dsysfs_power_monitor_unittest.py195 self.assertAlmostEqual(results[cpu][freq],
/external/autotest/client/site_tests/firmware_TouchMTB/tests/
Dvalidators_unittest.py172 self.assertAlmostEqual(expected_max_value, actual_max_value)
189 self.assertAlmostEqual(max_err_px, 0)
190 self.assertAlmostEqual(rms_err_px, 0)
223 self.assertAlmostEqual(max_err, expected_max_err)
224 self.assertAlmostEqual(rms_err, expected_rms_err)
260 self.assertAlmostEqual(max_err, expected_max_err)
261 self.assertAlmostEqual(rms_err, expected_rms_err)
510 self.assertAlmostEqual(max_distance, 5.464430436926)
522 self.assertAlmostEqual(max_distance, 4.670861210146)
539 self.assertAlmostEqual(actual_max_distance, expected_max_distance)
[all …]
Dfirmware_summary_unittest.py83 self.assertAlmostEqual(actual_score, expected_score)
208 self.assertAlmostEqual(actual_score, expected_score)
238 self.assertAlmostEqual(actual_value, expected_value)
249 self.assertAlmostEqual(actual_value, expected_value)
Dmtb_unittest.py598 self.assertAlmostEqual(max_distance_px, expected_max_distance_px)
605 self.assertAlmostEqual(max_distance_mm, expected_max_distance_mm)
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
Dvideo_file_frame_generator_unittest.py34 self.assertAlmostEqual(fg.CurrentTimestamp, 0, 3)
40 self.assertAlmostEqual(fg.CurrentTimestamp, timestamps[i], 3)
62 self.assertAlmostEqual(fg.CurrentTimestamp, 33.367, 3)
Dcv_util_unittest.py79 self.assertAlmostEqual(np.sum(np.abs(np.subtract(lines[0], expected0))),
82 self.assertAlmostEqual(np.sum(np.abs(np.subtract(lines[1], expected1))),
87 self.assertAlmostEqual(np.sum(np.abs(np.subtract(lines[2], expected2))),
90 self.assertAlmostEqual(np.sum(np.abs(np.subtract(lines[3], expected3))),
Dscreen_finder_unittest.py46 self.assertAlmostEqual(corners[i][j], expected[i][j], delta=1.1)
54 self.assertAlmostEqual(height, 226, delta=2)
55 self.assertAlmostEqual(width, 156, delta=2)
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py241 self.assertAlmostEqual(12.3456789, message_options.Extensions[
243 self.assertAlmostEqual(1.234567890123456789, message_options.Extensions[
257 self.assertAlmostEqual(12, message_options.Extensions[
259 self.assertAlmostEqual(154, message_options.Extensions[
265 self.assertAlmostEqual(-12, message_options.Extensions[
267 self.assertAlmostEqual(-154, message_options.Extensions[
Dmessage_test.py357 self.assertAlmostEqual(message.repeated_float[0], 1.1)
358 self.assertAlmostEqual(message.repeated_float[1], 1.2)
359 self.assertAlmostEqual(message.repeated_float[2], 1.3)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dcros_platform_backend_unittest.py37 self.assertAlmostEqual(results[cpu][state],
Dandroid_platform_backend_unittest.py106 self.assertAlmostEqual(result[cpu][state], expected_cstate[cpu][state])
/external/autotest/tko/perf_upload/
Dperf_uploader_unittest.py387 self.assertAlmostEqual(
395 self.assertAlmostEqual(
/external/chromium-trace/catapult/third_party/graphy/graphy/backends/google_chart_api/
Dutil_test.py118 self.assertAlmostEqual(expected, actual)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dutil_test.py75 self.assertAlmostEqual(10, util.CalculateWaitForRetry(5, max_wait=10))
/external/autotest/client/common_lib/test_utils/
Dunittest.py606 def assertAlmostEqual(self, first, second, places=7, msg=None): member in TestCase
639 assertAlmostEquals = assertAlmostEqual
655 failUnlessAlmostEqual = _deprecate(assertAlmostEqual)