Home
last modified time | relevance | path

Searched refs:stat_path (Results 1 – 2 of 2) sorted by relevance

/external/autotest/client/bin/net/
Dnet_utils_unittest.py211 stat_path = '/sys/class/net/%s/statistics/' % mock_netif._name
214 os.listdir.expect_call(stat_path).and_return(())
219 os.listdir.expect_call(stat_path).and_return(('some_stat',))
221 net_utils.open.expect_call(stat_path + 'some_stat', 'r').and_return(None)
226 os.listdir.expect_call(stat_path).and_return(('some_stat',))
228 net_utils.open.expect_call(stat_path + 'some_stat', 'r').and_return(f)
235 os.listdir.expect_call(stat_path).and_return(('stat1','stat2'))
237 net_utils.open.expect_call(stat_path + 'stat1', 'r').and_return(f)
240 net_utils.open.expect_call(stat_path + 'stat2', 'r').and_return(f)
251 stat_path = '/sys/class/net/%s/statistics/' % mock_netif._name
[all …]
/external/libchrome/base/process/
Dprocess_metrics_linux.cc151 FilePath stat_path = in GetProcessCPU() local
153 if (ReadFileToString(stat_path, &stat)) { in GetProcessCPU()