Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 168) sorted by relevance

1234567

/test/vts/utils/python/hal/
Dhal_service_name_utils_unittest.py29 self.assertEquals(0, len(comb1))
32 self.assertEquals(0, len(comb2))
66 self.assertEquals(0, len(comb1))
69 self.assertEquals(0, len(comb2))
78 self.assertEqual(0, len(comb5))
82 self.assertEqual(0, len(comb6))
86 self.assertEqual(0, len(comb7))
90 self.assertEqual(0, len(comb8))
94 self.assertEqual(0, len(comb9))
/test/vts/testcases/codelab/hidl_memory_test/
DVtsCodelabHidlMemoryTest.py119 self._mem_obj.updateBytes(write_data, len(write_data))
124 read_data = self._mem_obj.readBytes(len(write_data))
138 self._mem_obj.updateRange(i * 5, len(write_data_str))
139 self._mem_obj.updateBytes(write_data_str, len(write_data_str),
144 self._mem_obj.readRange(i * 5, len(write_data_str))
145 read_data_str = self._mem_obj.readBytes(len(write_data_str), i * 5)
162 self._mem_obj.updateRange(0, len(write_data1))
163 self._mem_obj.updateRange(self.MEM_SIZE / 2, len(write_data2))
165 self._mem_obj.updateBytes(write_data2, len(write_data2),
172 len(write_data2), self.MEM_SIZE / 2)
[all …]
/test/vts/utils/python/archive/
Darchive_parser.py76 if self._cursor + n > len(self._content):
90 sig = self.ReadBytes(len(self.GLOBAL_SIG))
95 while self._cursor < len(self._content):
112 if self.ReadBytes(len(self.END_TAG)) != self.END_TAG:
121 acc += len(string) + len(self.STRING_TABLE_TERMINATOR)
124 name = name[:-len(self.FILE_ID_TERMINATOR)]
126 offset = int(name[len(self.FILE_ID_TERMINATOR):])
/test/vts-testcase/security/poc/target/kernel_bluetooth/30149612/
Dpoc.cpp13 socklen_t len, i; in main() local
31 len = sizeof(sa); in main()
32 if (getsockname(fd, &sa, &len)) { in main()
37 printf("[+] getsockname return len = %d\n", len); in main()
40 for (i = 0; i < len; i++) { in main()
45 for (i = 1; i < len; i++) { in main()
/test/vts/utils/python/coverage/
Dfunction_summary.py69 prev_length = len(unresolved_arcs) + 1
71 while len(unresolved_arcs) > 0:
72 index = index % len(unresolved_arcs)
73 if index == 0 and len(unresolved_arcs) == prev_length:
76 prev_length = len(unresolved_arcs)
85 if len(block.entry_arcs):
Dsancov_utils.py120 if len(pids) == 0:
130 if len(process_names) == 0:
177 if len(entry_parts) == 0:
179 elif len(entry_parts) < 3 and entry_parts[-1].endswith(':'):
186 elif len(entry_parts) == 3 and file is not None:
194 if line > len(file_vectors[file]):
196 [-2] * (line - len(file_vectors[file])))
219 if line_no > len(file_vectors[file]):
221 (line_no - len(file_vectors[file])))
254 if len(parts) > 1 and file.startswith(parts[-1]):
/test/vts/drivers/hal/libdatatype/
Dvts_datatype.cpp50 int len = RandomUint32() % MAX_CHAR_POINTER_LENGTH; in RandomCharPointer() local
51 char* buf = (char*)malloc(len); in RandomCharPointer()
52 buf[len - 1] = '\0'; in RandomCharPointer()
57 int len = RandomUint32() % MAX_CHAR_POINTER_LENGTH; in RandomVoidPointer() local
58 void* buf = malloc(len); in RandomVoidPointer()
/test/vts-testcase/kernel/api/proc/
DProcUidCpuPowerTests.py31 return [struct.unpack_from('I', contents, i)[0] for i in range(0, len(contents), size)]
37 if (len(result) - 1) % (result[0] + 1) != 0:
55 return [struct.unpack_from('I', contents, i)[0] for i in range(0, len(contents), size)]
61 if (len(result) - 1) % (result[0] + 1) != 0:
79 return [struct.unpack_from('I', contents, i)[0] for i in range(0, len(contents), size)]
86 result_len = len(result)
DProcUidConcurrentTimeTests.py54 no_repeated_uids = len(set(x[0] for x in times)) == len(times)
55 row_lengths_match = all(len(time[1]) == int(cpus) for time in times)
96 no_repeated_uids = len(set(x[0] for x in times)) == len(times)
97 row_lengths_match = all(len(time[1]) == int(cpus) for time in times)
DProcFsFileTests.py44 if len(contents) == 0 or contents[-1] != '\n':
55 if len(line[3]) < 1 or line[3][0] not in {'rw', 'ro'}:
77 if len(contents) == 0 or contents[-1] != '\n':
83 num_columns = len(parsed)
104 if len(contents) == 0 or contents[-1] != '\n':
DProcZoneInfoTest.py55 if len(p) == 2:
57 elif len(p) == 6:
65 p[0] = [] if len(p) == 2 else [p[1], p[4]]
78 if len(p) == 4:
/test/vti/test_serving/gae/webapp/src/endpoint/
Dbuild_info_test.py40 self.assertEqual(len(builds), 0)
54 self.assertEqual(len(builds), 1)
65 self.assertEqual(len(builds), 0)
79 self.assertEqual(len(builds), 1)
93 self.assertEqual(len(builds), 1)
104 self.assertEqual(len(builds), 0)
119 self.assertEqual(len(builds), 1)
134 self.assertEqual(len(builds), 1)
Dendpoint_base_test.py123 self.assertEqual(len(result), 1)
144 self.assertEqual(len(result), 100)
165 self.assertEqual(len(result), 60)
180 self.assertEqual(len(result), 40)
211 self.assertEqual(len(result), 50)
233 self.assertEqual(len(result), 100)
234 for i in xrange(len(result) - 1):
250 self.assertEqual(len(result), 100)
251 for i in xrange(len(result) - 1):
/test/vts/runners/host/
Dconfig_parser.py77 if len(tbs) != len(tb_filters):
79 (len(tb_filters), len(tbs)))
162 if len(tokens) > 2:
164 if len(tokens) == 1:
169 elif len(tokens) == 2:
203 if len(tf) and (tf[-1].endswith(':') or tf[-1].endswith(',')):
Drecords.py356 for idx in range(len(l)):
479 return '%s/%s' % (len(self.executed) + len(self.skipped) + 1,
480 len(self.requested))
492 d["Requested"] = len(self.requested)
493 d["Executed"] = len(self.executed)
494 d["Passed"] = len(self.passed)
495 d["Failed"] = len(self.failed)
496 d["Skipped"] = len(self.skipped)
497 d["Error"] = len(self.error)
/test/vts/utils/python/cpu/
Dcpu_frequency_scaling.py72 asserts.assertEqual(len(results[const.STDOUT]), 1)
75 asserts.assertLess(len(stdout_split), 3)
77 high = stdout_split[1] if len(stdout_split) == 2 else low
108 asserts.assertEqual(1, len(results[const.EXIT_CODE]))
131 len(modes))
140 len(results[const.STDOUT]))
156 len(results[const.STDOUT]))
208 asserts.assertEqual(2, len(results[const.STDOUT]))
/test/vts/script/
Dtest_time_breakdown.py28 if len(tokens) < 4:
39 if (len(tokens[2]) > 2 and tokens[2] == "D/ModuleDef:" and
61 if len(tokens) < 7:
65 if len(tokens[0]) > 2 and tokens[0][0] == "[" and tokens[0][-1] == "]":
76 if len(tokens) == 9 and tokens[8] in ["PASS", "FAIL", "SKIP", "ERROR"]:
78 elif len(tokens) == 8:
216 if len(sys.argv) != 2:
/test/vts-testcase/vndk/golden/
Dextract_lsdump.py104 lhs, rhs = _ConsumeCallOffset(name[len('_ZT'):])
108 lhs, rhs = _ConsumeCallOffset(name[len('_ZTc'):])
144 record_names = {record_type.unique_id[len('_ZTS'):]
151 elif (name[:len('_ZTS')] in {'_ZTV', '_ZTT', '_ZTI', '_ZTS'} and
152 name[len('_ZTS'):] in record_names):
180 vtable_symbol = '_ZTV' + type_symbol[len('_ZTS'):]
/test/vts/utils/python/common/
Dfilter_utils.py99 pos = len(item)
102 pos = len(item) - len(const.SUFFIX_32BIT)
130 regex_item = item[len(REGEX_PREFIX):-len(REGEX_SUFFIX)]
139 exact.append(REGEX_PREFIX + item[len(REGEX_PREFIX_ESCAPE):])
164 negative.append(item[len(NEGATIVE_PATTERN_PREFIX):])
183 if m and m.start() == 0 and m.end() == len(item):
/test/vts/testcases/codelab/hidl_handle_test/
DVtsCodelabHidlHandleTest.py204 len(write_data), self._writer.writeFile(write_data,
205 len(write_data)))
206 read_data = self._reader.readFile(len(write_data))
215 len(write_data),
216 self._writer.writeFile(write_data, len(write_data)))
217 curr_read_data = self._reader.readFile(len(write_data))
/test/vts/utils/python/mirror/
Dpy2pb.py87 message.string_value.length = len(py_value)
106 if len(py_value) == 0:
113 message.vector_size = len(py_value)
202 if len(provided_attrs) > 0:
221 if len(py_value) > 1:
224 "has size %d", len(py_value))
271 if len(provided_attrs) > 0:
/test/vts/testcases/template/hal_hidl_replay_test/
Dhal_hidl_replay_test.py53 if (len(self.trace_paths) and
54 len(self.testcases) > len(self.trace_paths)):
55 self.resetTimeout(self.timeout * len(self.testcases) /
56 float(len(self.trace_paths)))
136 len(command_results), 3, 'Abnormal command response.')
210 service = line[len('hal_service: '):]
/test/vti/test_serving/gae/webapp/src/utils/
Dmodel_util_test.py68 self.assertEqual(1, len(jobs))
108 self.assertEqual(2 + num, len(jobs))
113 self.assertEqual(1, len(ready_jobs))
145 self.assertEqual(3, len(jobs))
156 self.assertEqual(3, len(jobs))
166 self.assertEqual(4, len(jobs))
/test/framework/harnesses/host_controller/tradefed/
Dremote_client.py76 if len(resp_lines) != len(operations):
78 "Unexpected number of responses: %d" % len(resp_lines))
80 for i in range(len(resp_lines))]
/test/vts-testcase/security/system_property/
DVtsTrebleSysPropTest.py108 if len(tokens) > 0 and not tokens[0].startswith("#"):
111 elif len(tokens) >= 4 and tokens[2] == "exact":
142 len(property_dict), partition)
149 len(violation_list), 0,
207 "in system property contexts", len(sys_property_dict))

1234567