Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 33) sorted by relevance

12

/test/vts/testcases/host/kernel_proc_file_api_test/proc_tests/
DProcSimpleFileTests.py32 def parse_contents(self, contents): argument
47 def parse_contents(self, contents): argument
48 return self.parse_line("{:d}\n", contents)[0]
62 def parse_contents(self, contents): argument
63 return self.parse_line("{:d}\n", contents)[0]
78 def parse_contents(self, contents): argument
91 def parse_contents(self, contents): argument
107 def parse_contents(self, contents): argument
108 return self.parse_line("{:d}\n", contents)[0]
124 def parse_contents(self, contents): argument
[all …]
DProcFsFileTests.py43 def parse_contents(self, contents): argument
44 if len(contents) == 0 or contents[-1] != '\n':
47 for line in contents.split('\n')[:-1]:
76 def parse_contents(self, contents): argument
77 if len(contents) == 0 or contents[-1] != '\n':
81 for line in contents.split('\n')[:-1]:
103 def parse_contents(self, contents): argument
104 if len(contents) == 0 or contents[-1] != '\n':
106 return list(map(lambda x: x.split(), contents.split('\n')[:-1]))
DProcUidCpuPowerTests.py26 def parse_contents(self, contents): argument
28 … return [struct.unpack_from('I', contents.encode(), i)[0] for i in range(0, len(contents), size)]
51 def parse_contents(self, contents): argument
53 … return [struct.unpack_from('I', contents.encode(), i)[0] for i in range(0, len(contents), size)]
76 def parse_contents(self, contents): argument
78 … return [struct.unpack_from('I', contents.encode(), i)[0] for i in range(0, len(contents), size)]
DProcCmdlineTest.py23 def parse_contents(self, contents): argument
24 if len(contents) == 0 or contents[-1] != '\n':
26 return contents[:-1].split(' ')
DProcVersionTest.py24 def parse_contents(self, contents): argument
25 return self.parse_line("{} version {} ({}@{}) ({}) {}\n", contents)
DProcModulesTest.py29 def parse_contents(self, contents): argument
43 for line in contents.splitlines():
DProcMemInfoTest.py78 def parse_contents(self, contents): argument
79 lines = contents.split('\n')
DProcCpuFileTests.py81 def parse_contents(self, contents): argument
82 return self.parse_line("{:f} {:f} {:f} {:d}/{:d} {:d}\n", contents)
DProcMapsTest.py56 def parse_contents(self, contents): argument
58 lines = contents.split('\n')
DProcQtaguidCtrlTest.py30 def parse_contents(self, contents): argument
32 lines = contents.split('\n')
/test/vts-testcase/kernel/api/proc/
DProcSimpleFileTests.py31 def parse_contents(self, contents): argument
46 def parse_contents(self, contents): argument
47 return self.parse_line("{:d}\n", contents)[0]
61 def parse_contents(self, contents): argument
62 return self.parse_line("{:d}\n", contents)[0]
77 def parse_contents(self, contents): argument
90 def parse_contents(self, contents): argument
106 def parse_contents(self, contents): argument
107 return self.parse_line("{:d}\n", contents)[0]
123 def parse_contents(self, contents): argument
[all …]
DProcFsFileTests.py44 def parse_contents(self, contents): argument
45 if len(contents) == 0 or contents[-1] != '\n':
48 for line in contents.split('\n')[:-1]:
77 def parse_contents(self, contents): argument
78 if len(contents) == 0 or contents[-1] != '\n':
82 for line in contents.split('\n')[:-1]:
104 def parse_contents(self, contents): argument
105 if len(contents) == 0 or contents[-1] != '\n':
107 return map(lambda x: x.split(), contents.split('\n')[:-1])
DProcUidCpuPowerTests.py29 def parse_contents(self, contents): argument
31 return [struct.unpack_from('I', contents, i)[0] for i in range(0, len(contents), size)]
53 def parse_contents(self, contents): argument
55 return [struct.unpack_from('I', contents, i)[0] for i in range(0, len(contents), size)]
77 def parse_contents(self, contents): argument
79 return [struct.unpack_from('I', contents, i)[0] for i in range(0, len(contents), size)]
DProcCmdlineTest.py23 def parse_contents(self, contents): argument
24 if len(contents) == 0 or contents[-1] != '\n':
26 return contents[:-1].split(' ')
DProcVersionTest.py24 def parse_contents(self, contents): argument
25 return self.parse_line("{} version {} ({}@{}) ({}) {}\n", contents)
DProcModulesTest.py30 def parse_contents(self, contents): argument
44 for line in contents.splitlines():
DProcMemInfoTest.py78 def parse_contents(self, contents): argument
79 lines = contents.split('\n')
DProcQtaguidCtrlTest.py28 def parse_contents(self, contents): argument
30 lines = contents.split('\n')
DProcCpuFileTests.py81 def parse_contents(self, contents): argument
82 return self.parse_line("{:f} {:f} {:f} {:d}/{:d} {:d}\n", contents)
DProcMapsTest.py56 def parse_contents(self, contents): argument
58 lines = contents.split('\n')
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsMultiDeviceTestResultParserTest.java66 String[] contents = getOutput(OUTPUT_FILE_2); in testRunTimeoutInput() local
67 long totalTime = getTotalTime(contents); in testRunTimeoutInput()
85 resultParser.processNewLines(contents); in testRunTimeoutInput()
95 String[] contents = getOutput(OUTPUT_FILE_1); in testRunNormalInput() local
96 long totalTime = getTotalTime(contents); in testRunNormalInput()
113 resultParser.processNewLines(contents); in testRunNormalInput()
123 String[] contents = getOutput(OUTPUT_FILE_3); in testRunErrorInput() local
124 long totalTime = getTotalTime(contents); in testRunErrorInput()
134 resultParser.processNewLines(contents); in testRunErrorInput()
142 private long getTotalTime(String[] contents) { in getTotalTime() argument
[all …]
DVtsFuzzTestResultParserTest.java76 String[] contents = readInFile(VTS_FUZZ_OUTPUT_FILE_1); in testParsePassedFile() local
84 resultParser.processNewLines(contents); in testParsePassedFile()
92 String[] contents = readInFile(VTS_FUZZ_OUTPUT_FILE_2); in testParseFailedFile() local
103 resultParser.processNewLines(contents); in testParseFailedFile()
/test/vts-testcase/kernel/bow/
DBowTest.cpp477 std::string contents; in TEST_F() local
478 std::ifstream(MOUNT_POINT "/file") >> contents; in TEST_F()
479 EXPECT_EQ(contents, std::string("Changed")); in TEST_F()
500 std::string contents; in TEST_F() local
501 std::ifstream(MOUNT_POINT "/file") >> contents; in TEST_F()
502 EXPECT_EQ(contents, std::string("Original")); in TEST_F()
/test/vts-testcase/kernel/checkpoint/
DVtsKernelCheckpointTest.py41 contents = self.dut.adb.shell("cat " + filename + extension, no_except = True)
42 if contents[const.EXIT_CODE] != 0:
45 return contents[const.STDOUT]
/test/vts/utils/python/library/
DREADME.md11 https://refspecs.linuxfoundation.org/elf/gabi4+/contents.html

12