Home
last modified time | relevance | path

Searched defs:self (Results 1 – 25 of 119) sorted by relevance

12345

/tools/testing/kunit/
Dkunit_tool_test.py43 def test_is_subset_of(self): argument
53 def test_read_from_file(self): argument
67 def test_write_to_file(self): argument
83 def setUp(self): argument
87 def noPrintCallContains(self, substr: str): argument
91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): argument
99 def test_output_isolated_correctly(self): argument
110 def test_output_with_prefix_isolated_correctly(self): argument
139 def test_parse_successful_test_log(self): argument
146 def test_parse_successful_nested_tests_log(self): argument
[all …]
/tools/testing/selftests/hid/tests/
Dtest_multitouch.py57 def __init__(self, id, x, y): argument
73 def __init__(self, x, y): argument
102 self, argument
150 def touches_in_a_report(self): argument
153 def event(self, slots, global_data=None, contact_count=None, incr_scantime=True): argument
177 def get_report(self, req, rnum, rtype): argument
196 def set_report(self, req, rnum, rtype, data): argument
237 self, argument
260 self, argument
289 def __init__(self, max_slots): argument
[all …]
Dtest_mouse.py35 def __init__(self, rdesc, name=None, input_info=None): argument
42 def create_report(self, x, y, buttons=None, wheels=None, reportID=None): argument
88 def event(self, x, y, buttons=None, wheels=None): argument
139 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument
142 def fake_report(self, x, y, buttons): argument
202 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument
246 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument
327 self, rdesc=report_descriptor, name=device_name, input_info=device_input_info argument
331 def event(self, x, y, buttons=None, wheels=None): argument
408 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument
[all …]
Dtest_wacom_generic.py62 def fill(self, reportdata): argument
98 def fill(self, reportdata): argument
123 def fill(self, reportdata): argument
143 def contains(self, field): argument
166 def __init__(self, rdesc, name=None, info=None): argument
176 def match_evdev_rule(self, application, evdev): argument
192 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None argument
232 def create_report_heartbeat(self, reportID): argument
243 def create_report_pad(self, reportID, ring, ek0): argument
264 def event(self, x, y, pressure, buttons=None, toolid=None, proximity=None): argument
[all …]
Dtest_gamepad.py24 def send_initial_state(self): argument
32 def assert_button(self, button): argument
56 def test_buttons(self): argument
63 def test_dual_buttons(self): argument
105 def _get_libevdev_abs_events(self, which): argument
117 def _test_joystick_press(self, which, data): argument
136 def test_left_joystick_press_left(self): argument
141 def test_left_joystick_press_right(self): argument
146 def test_left_joystick_press_up(self): argument
151 def test_left_joystick_press_down(self): argument
[all …]
Dtest_tablet.py59 self, touch: BtnTouch, tool: Optional[ToolType], button: Optional[bool] argument
98 self, events: List[libevdev.InputEvent], strict: bool, test_button: BtnPressed argument
146 def valid_transitions(self) -> Tuple["PenState", ...]: argument
206 def historically_tolerated_transitions(self) -> Tuple["PenState", ...]: argument
451 def __init__(self, x, y): argument
470 def restore(self): argument
485 def backup(self): argument
488 def __assert_axis(self, evdev, axis, value): argument
499 def assert_expected_input_events(self, evdev, button): argument
519 self, argument
[all …]
/tools/verification/dot2/
Ddot2c.py25 def __init__(self, file_path): argument
29 def __buff_to_string(self, buff): argument
38 def __get_enum_states_content(self): argument
48 def get_enum_states_string(self): argument
52 def format_states_enum(self): argument
60 def __get_enum_events_content(self): argument
74 def get_enum_events_string(self): argument
78 def format_events_enum(self): argument
86 def get_minimun_type(self): argument
100 def format_automaton_definition(self): argument
[all …]
Ddot2k.py20 def __init__(self, file_path, MonitorType): argument
32 def __fill_rv_templates_dir(self): argument
53 def __open_file(self, path): argument
63 def __buff_to_string(self, buff): argument
72 def fill_tracepoint_handlers_skel(self): argument
86 def fill_tracepoint_attach_probe(self): argument
92 def fill_tracepoint_detach_helper(self): argument
98 def fill_main_c(self): argument
115 def fill_model_h_header(self): argument
126 def fill_model_h(self): argument
[all …]
/tools/crypto/ccp/
Dtest_dbc.py34 def __init__(self, data) -> None: argument
40 def setUp(self) -> None: argument
44 def tearDown(self) -> None: argument
51 def setUp(self) -> None: argument
58 def test_unauthenticated_nonce(self) -> None: argument
65 def __init__(self, data) -> None: argument
70 def setUp(self) -> None: argument
78 def test_invalid_nonce_ioctl(self) -> None: argument
87 def test_invalid_setuid_ioctl(self) -> None: argument
96 def test_invalid_setuid_rw_ioctl(self) -> None: argument
[all …]
/tools/kvm/kvm_stat/
Dkvm_stat336 def tracepoint_is_child(self, field): argument
343 def __init__(self, exit_reasons): argument
349 def debugfs_is_child(self, field): argument
355 def __init__(self): argument
369 def debugfs_is_child(self, field): argument
375 def __init__(self): argument
381 def debugfs_is_child(self, field): argument
387 def __init__(self): argument
393 def debugfs_is_child(self, field): argument
424 def __init__(self): argument
[all …]
/tools/testing/selftests/tpm2/
Dtpm2_tests.py14 def setUp(self): argument
18 def tearDown(self): argument
22 def test_seal_with_auth(self): argument
30 def determine_bank_alg(self, mask): argument
37 def test_seal_with_policy(self): argument
70 def test_unseal_with_wrong_auth(self): argument
84 def test_unseal_with_wrong_policy(self): argument
145 def test_seal_with_too_long_auth(self): argument
158 def test_too_short_cmd(self): argument
175 def test_read_partial_resp(self): argument
[all …]
/tools/perf/scripts/python/
Dexported-sql-viewer.py194 def __init__(self, task, param=None, parent=None): argument
199 def run(self): argument
213 def __init__(self, glb, params, parent=None): argument
220 def Item(self, parent): argument
226 def rowCount(self, parent): argument
233 def hasChildren(self, parent): argument
236 def headerData(self, section, orientation, role): argument
245 def parent(self, child): argument
252 def index(self, row, column, parent): argument
256 def DisplayData(self, item, index): argument
[all …]
/tools/net/ynl/lib/
Dnlspec.py31 def __init__(self, family, yaml): argument
42 def __getitem__(self, key): argument
45 def __contains__(self, key): argument
48 def get(self, key, default=None): argument
51 def resolve_up(self, up): argument
56 def resolve(self): argument
72 def __init__(self, enum_set, yaml, prev, value_start): argument
87 def has_doc(self): argument
90 def raw_value(self): argument
93 def user_value(self, as_flags=None): argument
[all …]
Dynl.py101 def __init__(self, nl_msg): argument
105 def __str__(self): argument
126 def __init__(self, raw, offset): argument
142 def as_scalar(self, attr_type, byte_order=None): argument
146 def as_auto_scalar(self, attr_type, byte_order=None): argument
153 def as_strz(self): argument
156 def as_bin(self): argument
159 def as_c_array(self, type): argument
163 def __repr__(self): argument
168 def __init__(self, msg, offset=0): argument
[all …]
/tools/perf/pmu-events/
Dmetric.py13 def ToPerfJson(self) -> str: argument
17 def ToPython(self) -> str: argument
21 def Simplify(self): argument
25 def Equals(self, other) -> bool: argument
29 def Substitute(self, name: str, expression: 'Expression') -> 'Expression': argument
32 def __str__(self) -> str: argument
35 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
38 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
41 def __xor__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
44 def __and__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
[all …]
/tools/testing/selftests/bpf/
Djson_writer.c29 static void jsonw_indent(json_writer_t *self) in jsonw_indent()
37 static void jsonw_eol(json_writer_t *self) in jsonw_eol()
47 static void jsonw_eor(json_writer_t *self) in jsonw_eor()
57 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts()
92 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() local
105 json_writer_t *self = *self_p; in jsonw_destroy() local
114 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty()
119 void jsonw_reset(json_writer_t *self) in jsonw_reset()
126 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin()
134 static void jsonw_end(json_writer_t *self, int c) in jsonw_end()
[all …]
Dtest_bpftool_synctypes.py28 def __init__(self, reader): argument
31 def search_block(self, start_marker): argument
42 def parse(self, pattern, end_marker): argument
67 def __init__(self, reader, array_name): argument
72 def search_block(self): argument
78 def parse(self): argument
98 def parse(self, pattern, end_marker): argument
123 def __init__(self): argument
126 def close(self): argument
132 def reset_read(self): argument
[all …]
/tools/bpf/bpftool/
Djson_writer.c29 static void jsonw_indent(json_writer_t *self) in jsonw_indent()
37 static void jsonw_eol(json_writer_t *self) in jsonw_eol()
47 static void jsonw_eor(json_writer_t *self) in jsonw_eor()
57 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts()
92 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() local
105 json_writer_t *self = *self_p; in jsonw_destroy() local
114 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty()
119 void jsonw_reset(json_writer_t *self) in jsonw_reset()
126 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin()
134 static void jsonw_end(json_writer_t *self, int c) in jsonw_end()
[all …]
/tools/testing/selftests/tc-testing/
DTdcResults.py12 def __init__(self, test_id="", test_name=""): argument
20 def set_result(self, result): argument
27 def get_result(self): argument
30 def set_errormsg(self, errormsg): argument
34 def append_errormsg(self, errormsg): argument
37 def get_errormsg(self): argument
40 def set_failmsg(self, failmsg): argument
44 def append_failmsg(self, failmsg): argument
47 def get_failmsg(self): argument
50 def add_steps(self, newstep): argument
[all …]
/tools/power/pm-graph/
Dsleepgraph.py319 def __init__(self): argument
337 def resetlog(self): argument
340 def vprint(self, msg): argument
344 def signalHandler(self, signum, frame): argument
351 def signalHandlerInit(self): argument
363 def rootCheck(self, fatal=True): argument
372 def rootUser(self, fatal=False): argument
381 def usable(self, file, ishtml=False): argument
394 def getExec(self, cmd): argument
409 def setPrecision(self, num): argument
[all …]
/tools/testing/selftests/tc-testing/plugin-lib/
DnsPlugin.py21 def __init__(self): argument
25 def pre_suite(self, testcount, testlist): argument
28 def prepare_test(self, test): argument
56 def pre_case(self, test, test_skip): argument
65 def post_case(self): argument
74 def post_suite(self, index): argument
86 def adjust_command(self, stage, command): argument
118 def _nl_ns_create(self): argument
162 def _ipr2_ns_create_cmds(self): argument
182 def _ipr2_ns_create(self): argument
[all …]
/tools/net/ynl/
Dynl-gen-c.py40 def get_family_id(self): argument
45 def __init__(self, family, attr_set, attr, value): argument
79 def get_limit(self, limit, default=None): argument
89 def resolve(self): argument
96 def is_multi_val(self): argument
99 def is_scalar(self): argument
102 def is_recursive(self): argument
105 def is_recursive_for_op(self, ri): argument
108 def presence_type(self): argument
111 def presence_member(self, space, type_filter): argument
[all …]
/tools/perf/tests/shell/lib/
Dperf_metric_validation.py11 …def __init__(self, metric: list[str], wl: str, value: list[float], low: float, up=float('nan'), de… argument
19 def __repr__(self) -> str: argument
38 …def __init__(self, rulefname, reportfname='', t=5, debug=False, datafname='', fullrulefname='', wo… argument
70 def __set_metrics(self, metrics=''): argument
76 def read_json(self, filename: str) -> dict: argument
86 def json_dump(self, data, output_file): argument
97 def get_results(self, idx: int = 0): argument
100 def get_bounds(self, lb, ub, error, alias={}, ridx: int = 0) -> list: argument
141 def get_value(self, name: str, ridx: int = 0) -> list: argument
161 def check_bound(self, val, lb, ub, err): argument
[all …]
/tools/perf/tests/
Dattr.py36 def __init__(self, test, msg): argument
39 def getMsg(self): argument
43 def __init__(self, test, arch): argument
46 def getMsg(self): argument
50 def __init__(self, test): argument
52 def getMsg(self): argument
96 def add(self, data): argument
101 def __init__(self, name, data, base): argument
108 def equal(self, other): argument
117 def optional(self): argument
[all …]
/tools/testing/selftests/damon/
D_damon_sysfs.py43 def __init__(self, size=None, nr_accesses=None, age=None): argument
55 def sysfs_dir(self): argument
58 def stage(self): argument
96 def __init__(self, metric, target_value=10000, current_value=0): argument
101 def sysfs_dir(self): argument
104 def stage(self): argument
126 def __init__(self, sz=0, ms=0, goals=None, reset_interval_ms=0): argument
135 def sysfs_dir(self): argument
138 def stage(self): argument
171 def __init__(self, nr_tried, sz_tried, nr_applied, sz_applied, qt_exceeds): argument
[all …]

12345