/external/autotest/client/site_tests/power_Draw/ |
power_Draw.py | 45 keyvals = self._tlog.calc() 46 keyvals['wh_energy_full'] = status.battery[0].energy_full 47 keyvals['wh_start_energy'] = start_energy 48 keyvals['wh_end_energy'] = end_energy 49 keyvals['wh_consumed_energy'] = consumed_energy 50 keyvals['w_average_energy_rate'] = energy_rate 51 keyvals['w_end_energy_rate'] = status.battery[0].energy_rate 53 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/hardware_GPIOSwitches/ |
hardware_GPIOSwitches.py | 31 keyvals = {} 32 keyvals['level_recovery'] = self.gpio_read('recovery_button') 33 keyvals['level_developer'] = self.gpio_read('developer_switch') 34 keyvals['level_firmware_writeprotect'] = self.gpio_read('write_protect') 36 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/power_BacklightControl/ |
power_BacklightControl.py | 54 keyvals = {} 70 keyvals['starting_num_outputs_on'] = starting_num_outputs_on 73 keyvals['max_brightness'] = self._backlight.get_max_level() 74 if keyvals['max_brightness'] <= self._min_num_steps: 78 keyvals['initial_brightness'] = self._backlight.get_level() 81 keyvals['initial_power_w'] = self._get_current_energy_rate() 88 max_threshold=keyvals['max_brightness']) 89 if current_brightness != keyvals['max_brightness']: 95 keyvals['max_brightness_power_w'] = self._get_current_energy_rate() 104 min_threshold=(keyvals['max_brightness'] / 2 - 1) [all...] |
/external/autotest/client/site_tests/power_Idle/ |
power_Idle.py | 67 keyvals = self._stats.publish() 71 keyvals['level_backlight_max'] = self._backlight.get_max_level() 72 keyvals['level_backlight_current'] = self._backlight.get_level() 76 keyvals['b_on_ac'] = 1 78 keyvals['b_on_ac'] = 0 79 keyvals['ah_charge_full'] = self.status.battery[0].charge_full 80 keyvals['ah_charge_full_design'] = \ 82 keyvals['ah_charge_now'] = self.status.battery[0].charge_now 83 keyvals['a_current_now'] = self.status.battery[0].current_now 84 keyvals['wh_energy'] = self.status.battery[0].energ [all...] |
/external/autotest/client/site_tests/power_BatteryCharge/ |
power_BatteryCharge.py | 112 keyvals = {} 113 keyvals['ah_charge_full'] = self.charge_full 114 keyvals['ah_charge_full_design'] = self.charge_full_design 115 keyvals['ah_charge_capacity'] = self.charge_capacity 116 keyvals['ah_initial_charge'] = self.initial_charge 117 keyvals['ah_final_charge'] = self.status.battery[0].charge_now 118 keyvals['s_time_taken'] = self.max_run_time - self.remaining_time 119 keyvals['percent_initial_charge'] = self.initial_charge * 100 / \ 120 keyvals['ah_charge_capacity'] 121 keyvals['percent_final_charge'] = keyvals['ah_final_charge'] * 100 / [all...] |
/external/autotest/client/site_tests/platform_Quipper/ |
platform_Quipper.py | 54 keyvals = {} 72 keyvals['command'] = '(' + quipper_command_string + ')' 73 keyvals['result_length'] = '(skipped)' 74 self.write_perf_keyval(keyvals) 84 # Write keyvals. 85 keyvals['command'] = quipper_command_string; 86 keyvals['result_length'] = len(result) 87 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/graphics_LibDRM/ |
graphics_LibDRM.py | 25 keyvals = {} 62 keyvals[test] = 'NOT FOUND' 69 keyvals[test] = 'FAILED' 71 keyvals[test] = 'PASSED' 74 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/power_Status/ |
power_Status.py | 28 keyvals = plog.calc() 29 keyvals.update(tlog.calc()) 30 keyvals.update(statomatic.publish()) 31 for k in sorted(keyvals.keys()): 32 logging.info("%s: %s" , k, keyvals[k])
|
/external/autotest/client/site_tests/power_VideoDetector/ |
power_VideoDetector.py | 42 keyvals = {} 72 keyvals['initial_brightness'] = initial_brightness 73 keyvals['final_brightness'] = final_brightness 74 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/video_PlaybackPerf/ |
video_PlaybackPerf.py | 105 keyvals = self.test_dropped_frames(local_path) 109 keyvals_dropped_frames = {k: v[0] for k, v in keyvals.iteritems()} 111 k: v[1] for k, v in keyvals.iteritems()} 120 keyvals = self.test_cpu_usage(local_path) 121 self.log_result(keyvals, CPU_USAGE_DESCRIPTION + video_description, 124 keyvals = self.test_power(local_path) 125 self.log_result(keyvals, POWER_DESCRIPTION + video_description, 'W') 242 keyvals = {} 257 keyvals[PLAYBACK_WITH_HW_ACCELERATION] = result 260 keyvals[PLAYBACK_WITHOUT_HW_ACCELERATION] = resul [all...] |
/external/autotest/client/site_tests/graphics_VTSwitch/ |
graphics_VTSwitch.py | 74 keyvals = {} 84 keyvals['num_iterations'] = num_iterations 92 keyvals['percent_initial_VT1_VT2_difference'] = diff 146 keyvals['percent_VT1_screenshot_max_difference'] = \ 148 keyvals['percent_VT2_screenshot_max_difference'] = \ 150 keyvals['num_identical_vt1_screenshots'] = num_identical_vt1_screenshots 151 keyvals['num_identical_vt2_screenshots'] = num_identical_vt2_screenshots 153 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/platform_Perf/ |
platform_Perf.py | 37 keyvals = {} 149 # Write keyvals. 150 keyvals = {} 151 keyvals['start'] = start 152 keyvals['length'] = length 153 keyvals['pgoff'] = pgoff 154 keyvals['kernel_name'] = kernel_name 155 keyvals['kernel_build_id'] = kernel_build_id 156 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/video_WebRtcPerf/ |
video_WebRtcPerf.py | 164 keyvals = self.test_decode_time(local_path) 169 key:value[0] for (key, value) in keyvals.items()} 173 key:value[1] for (key, value) in keyvals.items()} 178 keyvals = self.test_cpu_usage(local_path) 179 self.log_result(keyvals, CPU_USAGE_DESCRIPTION, 'percent') 182 keyvals = self.test_power(local_path) 183 self.log_result(keyvals, POWER_DESCRIPTION , 'W') 197 keyvals = {} 218 keyvals[WEBRTC_WITH_HW_ACCELERATION] = result 221 keyvals[WEBRTC_WITHOUT_HW_ACCELERATION] = resul [all...] |
/external/autotest/client/site_tests/power_LoadTest/ |
power_LoadTest.py | 361 keyvals = self._plog.calc() 362 keyvals.update(self._tlog.calc()) 363 keyvals.update(self._statomatic.publish()) 373 keyvals['a_current_now'] = self._power_status.battery[0].current_now 374 keyvals['ah_charge_full'] = self._power_status.battery[0].charge_full 375 keyvals['ah_charge_full_design'] = \ 377 keyvals['ah_charge_start'] = self._ah_charge_start 378 keyvals['ah_charge_now'] = self._power_status.battery[0].charge_now 379 keyvals['ah_charge_used'] = keyvals['ah_charge_start'] - [all...] |
/external/autotest/client/site_tests/graphics_GLBench/ |
graphics_GLBench.py | 197 keyvals = {} 239 keyvals[testname] = -3.0 244 keyvals[testname] = 0.0 248 keyvals[testname] = -2.0 254 keyvals[testname] = -1.0 259 keyvals[testname] = testrating 262 keyvals[testname] = testrating 265 keyvals[testname] = testrating 268 keyvals[testname] = -2.0 274 self.write_perf_keyval(keyvals) [all...] |
/external/autotest/site_utils/sponge_lib/ |
acts_job_info.py | 125 if 'param-testtracker_owner' in self.keyvals: 126 return self.keyvals['param-testtracker_owner'].strip("'").strip('"') 127 elif 'param-test_tracker_owner' in self.keyvals: 128 return self.keyvals['param-testtracker_owner'].strip("'").strip('"') 147 if 'param-testtracker_project_id' in self.keyvals: 148 return self.keyvals.get('param-testtracker_project_id') 150 return self.keyvals.get('param-test_tracker_project_id') 169 if 'param-testtracker_extra_env' in self.keyvals: 170 extra = self.keyvals.get('param-testtracker_extra_env', []) 172 extra = self.keyvals.get('param-test_tracker_extra_env', [] [all...] |
/external/autotest/client/site_tests/power_CPUIdle/ |
power_CPUIdle.py | 46 keyvals = {} 47 keyvals['ms_active_time_delta'] = active_time_delta_ms 48 keyvals['ms_idle_time_delta'] = idle_time_delta_ms 49 keyvals['percent_active_time'] = percent_active_time 50 keyvals['percent_idle_time'] = percent_idle_time 51 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/power_SuspendStress/ |
power_SuspendStress.py | 93 keyvals = {'suspend_iterations': len(self._suspender.successes)} 96 keyvals[key + '_mean'] = numpy.mean(values) 97 keyvals[key + '_stddev'] = numpy.std(values) 98 keyvals[key + '_min'] = numpy.amin(values) 99 keyvals[key + '_max'] = numpy.amax(values) 100 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/platform_AesThroughput/ |
platform_AesThroughput.py | 55 def update_stats(self, keyvals): 56 self.results.update(keyvals)
|
/external/autotest/contrib/ |
manage_powerunit_info.py | 55 def add_powerunit_info_to_host(afe, device, keyvals): 56 """Add keyvals to the host's attributes in AFE. 60 @param keyvals: A dictionary where keys are the values in POWERUNIT_KEYS. 68 logging.info('Adding host attribues to %s: %s', device, keyvals) 69 for key, val in keyvals.iteritems(): 88 keyvals = dict(zip( 91 add_powerunit_info_to_host(afe, device, keyvals)
|
/external/autotest/client/site_tests/graphics_WebGLPerformance/ |
graphics_WebGLPerformance.py | 66 keyvals = {} 67 keyvals['time_ms_geom_mean'] = time_ms_geom_mean 68 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/power_Backlight/ |
power_Backlight.py | 53 keyvals = {} 66 keyvals['w_bl_%d_rate' % i] = rate 68 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/power_Consumption/ |
power_Consumption.py | 280 # Note: for perf keyvals, key names are defined as VARCHAR(30) in the 504 keyvals = self._plog.calc() 505 keyvals.update(self._tmp_keyvals) 506 keyvals.update(self._statomatic.publish()) 511 if keyvals['b_on_ac'] != on_ac: 520 if idle_name in keyvals: 521 hours_life = whrs / keyvals[idle_name] 522 keyvals['hours_battery_ChromeVer'] = hours_life 534 if set(weights).issubset(set(keyvals)): 535 p = sum(w * keyvals[k] for (k, w) in weights.items() [all...] |
/external/autotest/client/site_tests/graphics_GLMark2/ |
graphics_GLMark2.py | 110 keyvals = {} 120 keyvals[test] = frame_time 140 keyvals['glmark2_score'] = score 141 self.write_perf_keyval(keyvals)
|
/external/autotest/client/site_tests/platform_DebugDaemonGetPerfData/ |
platform_DebugDaemonGetPerfData.py | 66 @param load_type: A label to use for storing into perf keyvals. 119 keyvals = {} 120 keyvals[key] = total_size / len(sizes) 121 keyvals[key + '_zipped'] = total_size_zipped / len(sizes) 122 self.write_perf_keyval(keyvals)
|