Home
last modified time | relevance | path

Searched refs:read_one_line (Results 1 – 25 of 34) 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/site_tests/platform_PartitionCheck/
Dplatform_PartitionCheck.py32 return int(utils.read_one_line(removable_file)) == 1
49 return int(utils.read_one_line(sysfs_path))
64 part_blocks = int(utils.read_one_line(part_file))
/external/autotest/client/cros/
Dkernel_trace.py79 result = int(utils.read_one_line(fname).strip())
102 result = int(utils.read_one_line(fname).strip())
172 result = utils.read_one_line(fname).strip()
197 results = utils.read_one_line("/proc/uptime")
Ddns_server.py67 if (utils.read_one_line(resolv) == resolv_contents and
86 assert utils.read_one_line(resolv) == resolv_contents
121 utils.read_one_line(resolv)),
Dpower_utils.py352 self._max = int(utils.read_one_line(os.path.join(self._path,
363 current = int(utils.read_one_line(os.path.join(self._path,
655 out = utils.read_one_line(control_file)
743 vid = utils.read_one_line(vid_path)
744 pid = utils.read_one_line(pid_path)
Dpower_status.py149 tname = utils.read_one_line(tname_path)
406 power_type = utils.read_one_line(type_path)
738 name = utils.read_one_line(os.path.join(state, 'name'))
739 latency = utils.read_one_line(os.path.join(state, 'latency'))
748 usecs = int(utils.read_one_line(os.path.join(state, 'time')))
786 values = utils.read_one_line(modalias).split(':')
827 package = utils.read_one_line(template % cpu)
905 cur_mhz = str(int(int(utils.read_one_line(fname).strip()) / 1e6))
1491 return int(utils.read_one_line(self._path)) / 1000.
/external/autotest/client/site_tests/power_ProbeDriver/
Dpower_ProbeDriver.py29 psu_type = utils.read_one_line(type_path)
89 online = utils.read_one_line(online_path)
119 return utils.read_one_line(property_path)
/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/bin/
Dcpuset.py215 name = utils.read_one_line('/proc/%i/cpuset' % os.getpid())
223 return rangelist_to_set(utils.read_one_line(file_name))
281 limit = int(utils.read_one_line(file))
312 return rangelist_to_set(utils.read_one_line(file_name))
451 nodes = utils.read_one_line(mems_path(parent))
541 for arg in utils.read_one_line('/proc/cmdline').split():
/external/autotest/client/site_tests/graphics_Idle/
Dgraphics_Idle.py204 enable = utils.read_one_line(enable_path)
211 lowest_freq = int(utils.read_one_line(freqs_path))
224 clock = int(utils.read_one_line(clock_path))
/external/autotest/client/site_tests/platform_CompressedSwapPerf/
Dplatform_CompressedSwapPerf.py77 disksize = utils.read_one_line(disksize_path)
191 swap_phys_size = utils.read_one_line('/sys/block/zram0/compr_data_size')
411 enable_size = utils.read_one_line(self.swap_enable_file)
428 disksize = utils.read_one_line(self.swap_disksize_file)
/external/autotest/client/site_tests/power_x86Settings/
Dpower_x86Settings.py170 out = utils.read_one_line(link_policy_file)
202 out = utils.read_one_line(path)
300 out = utils.read_one_line(param_path)
/external/autotest/client/site_tests/hardware_StorageFio/
Dhardware_StorageFio.py55 vendor = utils.read_one_line(vendor_file).strip()
56 model = utils.read_one_line(model_file).strip()
/external/autotest/client/site_tests/platform_CompressedSwap/
Dplatform_CompressedSwap.py58 enable_size = utils.read_one_line(self.swap_enable_file)
75 disksize = utils.read_one_line(self.swap_disksize_file)
/external/autotest/client/site_tests/hardware_MultiReader/
Dhardware_MultiReader.py16 removable = utils.read_one_line(path)
/external/autotest/client/cros/multimedia/
Dsystem_facade_native.py51 original_mode = utils.read_one_line(governor_path)
/external/autotest/client/site_tests/hardware_RealtekCardReader/
Dhardware_RealtekCardReader.py24 removable = utils.read_one_line(os.path.join(dev, "removable"))
/external/autotest/server/
Dcrashcollect.py211 first_line_at_start = utils.read_one_line(messages_at_start)
212 first_line_now = utils.read_one_line(messages_raw)
/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/site_tests/platform_BootPerf/
Dplatform_BootPerf.py223 khz = int(utils.read_one_line(self._CPU_FREQ_FILE))
263 data = utils.read_one_line(self._FIRMWARE_TIME_FILE)
/external/autotest/client/common_lib/
Dbase_utils_unittest.py68 self.assertEqual("abc", base_utils.read_one_line("filename"))
74 self.assertEqual("abc ", base_utils.read_one_line("filename"))
80 self.assertEqual("line 1", base_utils.read_one_line("filename"))
86 self.assertEqual("", base_utils.read_one_line("filename"))
93 base_utils.read_one_line("filename"))
100 base_utils.read_one_line("filename"))
/external/autotest/client/tests/libhugetlbfs/
Dlibhugetlbfs.py20 nr_hugepages = utils.read_one_line('/proc/sys/vm/nr_hugepages')
/external/autotest/client/site_tests/platform_OSLimits/
Dplatform_OSLimits.py51 value = (utils.read_one_line(path))
/external/autotest/client/site_tests/platform_MemCheck/
Dplatform_MemCheck.py41 swapref = int(utils.read_one_line(self.swap_disksize_file)) / 1024

12