Home
last modified time | relevance | path

Searched refs:read_one_line (Results 1 – 25 of 26) sorted by relevance

12

/external/autotest/client/site_tests/kernel_SchedBandwith/
Dkernel_SchedBandwith.py85 timeslice_ms = int(utils.read_one_line(fname).strip()) / 1000.
130 rd_quota = utils.read_one_line(os.path.join(self._CG_CRB_DIR,
138 self._total_shares = int(utils.read_one_line(
153 rd_shares = utils.read_one_line(os.path.join(self._CG_CRB_DIR,
166 period_us = int(utils.read_one_line(os.path.join(self._CG_CRB_DIR,
228 self._quota = utils.read_one_line(os.path.join(self._CG_CRB_DIR,
230 self._shares = utils.read_one_line(os.path.join(self._CG_CRB_DIR,
/external/autotest/client/cros/
Dkernel_trace.py77 result = int(utils.read_one_line(self._TRACE_ON_PATH).strip())
99 result = int(utils.read_one_line(self._TRACE_ON_PATH).strip())
169 result = utils.read_one_line(fname).strip()
194 results = utils.read_one_line("/proc/uptime")
Dservice_stopper.py116 pl1 = int(utils.read_one_line(pl1_max_path))
/external/autotest/client/cros/storage_tests/
Dfio_test.py61 if utils.read_one_line(removable_file).strip() == '1' :
69 self.__description = utils.read_one_line(model_file).strip()
76 vendor = utils.read_one_line(vendor_file).strip()
77 model = utils.read_one_line(model_file).strip()
/external/autotest/client/site_tests/detachablebase_TriggerHammerd/
Ddetachablebase_TriggerHammerd.py71 sysfspath = utils.read_one_line(self.WRITE_SYSFS_PATH)
77 power = utils.read_one_line(sysfspath + '/' +
/external/autotest/client/tests/linus_stress/
Dlinus_stress.py40 dirty_ratio = utils.read_one_line('/proc/sys/vm/dirty_ratio')
41 dirty_background_ratio = utils.read_one_line('/proc/sys/vm/dirty_background_ratio')
/external/autotest/client/site_tests/graphics_Idle/
Dgraphics_Idle.py279 governor = utils.read_one_line(governor_path)
288 enable = utils.read_one_line(enable_path)
297 min_freq = int(utils.read_one_line(freqs_path).split()[0])
309 clock = int(utils.read_one_line(clock_path))
/external/autotest/client/cros/power/
Dpower_status.py183 tname = utils.read_one_line(tname_path)
456 power_type = utils.read_one_line(type_path)
460 utils.read_one_line(scope_path) == 'Device'):
972 name = utils.read_one_line(os.path.join(state, 'name'))
973 latency = utils.read_one_line(os.path.join(state, 'latency'))
982 usecs = int(utils.read_one_line(os.path.join(state, 'time')))
1064 package = utils.read_one_line(template % cpu)
1106 af = utils.read_one_line(fname).strip()
1181 cur_mhz = str(int(int(utils.read_one_line(fname).strip()) / 1e6))
1441 if utils.read_one_line(cpufreq_driver) == 'intel_pstate':
[all …]
Dpower_suspend.py148 if not int(utils.read_one_line('/sys/power/pm_print_times')):
173 available_suspend_states = utils.read_one_line('/sys/power/state')
339 freq = 1000 * int(utils.read_one_line(
Dpower_utils.py827 out = utils.read_one_line(control_file)
915 vid = utils.read_one_line(vid_path)
916 pid = utils.read_one_line(pid_path)
/external/autotest/client/site_tests/hardware_MultiReader/
Dhardware_MultiReader.py16 removable = utils.read_one_line(path)
/external/autotest/client/site_tests/hardware_RealtekCardReader/
Dhardware_RealtekCardReader.py24 removable = utils.read_one_line(os.path.join(dev, "removable"))
/external/autotest/client/site_tests/hardware_LightSensor/
Dhardware_LightSensor.py61 val = utils.read_one_line(path)
/external/autotest/client/site_tests/hardware_DiskSize/
Dhardware_DiskSize.py36 return utils.read_one_line(path) == 'MMC'
/external/autotest/client/tests/libhugetlbfs/
Dlibhugetlbfs.py20 nr_hugepages = utils.read_one_line('/proc/sys/vm/nr_hugepages')
/external/autotest/server/
Dcrashcollect.py368 first_line_at_start = utils.read_one_line(messages_at_start)
369 first_line_now = utils.read_one_line(messages_raw)
/external/autotest/client/site_tests/platform_MemCheck/
Dplatform_MemCheck.py45 swapref = int(utils.read_one_line(self.swap_disksize_file)) / 1024
/external/autotest/client/cros/multimedia/
Dsystem_facade_native.py62 original_mode = utils.read_one_line(governor_path)
Dusb_facade_native.py307 read_product_name = utils.read_one_line(path)
/external/autotest/client/common_lib/
Dutils_unittest.py83 self.assertEqual("abc", utils.read_one_line("filename"))
89 self.assertEqual("abc ", utils.read_one_line("filename"))
95 self.assertEqual("line 1", utils.read_one_line("filename"))
101 self.assertEqual("", utils.read_one_line("filename"))
108 utils.read_one_line("filename"))
115 utils.read_one_line("filename"))
/external/autotest/client/common_lib/cros/
Darc.py347 return utils.read_one_line(get_container_pid_path())
355 return utils.read_one_line(_ADBD_PID_PATH)
/external/autotest/client/site_tests/platform_BootPerf/
Dplatform_BootPerf.py235 data = utils.read_one_line(self._FIRMWARE_TIME_FILE)
/external/autotest/client/bin/
Dutils.py521 return utils.read_one_line(path)
531 out = utils.read_one_line('/proc/sys/kernel/%s' % key)
1949 device_id = utils.read_one_line(pci_path).lower()
Dbase_sysinfo.py77 return utils.read_one_line(path)
/external/pcre/dist2/src/
Dpcre2grep.c1419 read_one_line(char *buffer, int length, FILE *f) in read_one_line() function
2488 read_one_line(buffer, length, (FILE *)handle) : in fill_buffer()
3145 int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in); in pcre2grep()
3739 while ((patlen = read_one_line(buffer, sizeof(buffer), f)) > 0) in read_pattern_file()

12