Lines Matching refs:f
104 def tryReadFileContent(self, f, shell): argument
110 content = target_file_utils.ReadFileContent(f, self.shell)
144 f = '/sys/devices/system/cpu/present'
145 self.IsReadOnly(f)
146 present_cpus = target_file_utils.ReadFileContent(f, self.shell)
162 f = '/sys/devices/system/cpu/cpu%s/cpufreq/scaling_cur_freq' % cpu
163 self.IsReadOnly(f, False)
164 content = self.tryReadFileContent(f, self.shell)
168 f = '/sys/devices/system/cpu/cpu%s/cpufreq/scaling_min_freq' % cpu
169 self.IsReadWrite(f, False)
170 content = self.tryReadFileContent(f, self.shell)
174 f = '/sys/devices/system/cpu/cpu%s/cpufreq/scaling_max_freq' % cpu
175 self.IsReadWrite(f, False)
176 content = self.tryReadFileContent(f, self.shell)
180 f = '/sys/devices/system/cpu/cpu%s/cpufreq/scaling_available_frequencies' % cpu
181 self.IsReadOnly(f, False)
182 content = self.tryReadFileContent(f, self.shell)
189 f = '/sys/devices/system/cpu/cpu%s/cpufreq/stats/time_in_state' % cpu
190 self.IsReadOnly(f, False)
191 content = self.tryReadFileContent(f, self.shell)
199 asserts.fail("Malformatted time_in_state file at %s" % f)