Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/frameworks/base/tools/orientationplot/
Dorientationplot.py40 def __init__(self, stream): argument
42 self.stream = stream
43 self.buffer = ''
44 self.pos = 0
46 def readline(self): argument
48 index = self.buffer.find('\n', self.pos)
50 result = self.buffer[self.pos:index]
51 self.pos = index + 1
54 self.buffer = self.buffer[self.pos:]
55 self.pos = 0
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Dtest_stats.py7 def setUp(self): argument
8 self.app_phase = AppPhase()
9 self.tracker1 = Tracker(1, False, self.app_phase)
10 self.tracker2 = Tracker(2, True, self.app_phase)
11 self.timevars = dict()
14 self.timevars[name] = self.from_spectime(name)
16 def from_spectime(self, spectime): argument
19 def feed_spec_text(self, text): argument
28 self.tracker1.handle_mark(self.from_spectime(time), mark)
30 self.tracker2.handle_mark(self.from_spectime(time), mark)
[all …]
/frameworks/ml/nn/tools/api/
Dgenerate_api.py13 def __init__(self, filename): argument
14 self.filename = filename
15 self.line = None # most recently read line
16 self.lineno = -1 # zero-based
17 def finish(self): argument
21 def handle_line(self): argument
25 def read(self): argument
26 with open(self.filename) as f:
28 for self.lineno in range(len(lines)):
29 self.line = lines[self.lineno]
[all …]
/frameworks/rs/tests/lldb/tests/testcases/
Dtest_write_local_element.py35 def _try_inspecting_local(self, local_name, expected_output): argument
45 self.try_command('expr ' + local_name, expected_output)
47 def _try_modifying_local(self, local_name, new_value, expected_output, argument
68 self.try_command('expr %s = %s' % (local_name, new_value),
71 self.try_command('frame variable ' + local_name,
77 def test_setup(self): argument
78 self.try_command('language renderscript status',
82 self.try_command('b -f simple.rs -l 145', [])
84 self.try_command('process continue',
90 def test_modify_char2(self): argument
[all …]
Dtest_write_global_element.py36 def _try_inspecting_global(self, global_name, expected_output): argument
46 self.try_command('expr ' + global_name, expected_output)
48 def _try_modifying_global(self, global_name, new_value, expected_output, argument
69 self.try_command('expr %s = %s' % (global_name, new_value),
72 self.try_command('target variable ' + global_name,
78 def test_setup(self): argument
79 self.try_command('language renderscript status',
83 self.try_command('b -f simple.rs -l 145', [])
85 self.try_command('process continue',
91 def test_modify_global(self): argument
[all …]
Dtest_read_local.py37 def _try_inspecting_local(self, local_name, expected_output, argument
54 self.try_command('expr ' + local_name,
58 self.try_command('frame variable ' + local_name,
64 def test_setup(self): argument
65 self.try_command('language renderscript status',
69 self.try_command('breakpoint set --file simple.rs --line 145', [])
71 self.try_command('process continue',
77 def test_list_rs_kernel_frame_variables(self): argument
80 self.try_command('frame variable',
147 def test_inspect_primitive_types(self): argument
[all …]
Dtest_read_global.py36 def _try_inspecting_global(self, global_name, expected_output, argument
53 self.try_command('expr ' + global_name,
57 self.try_command('target variable ' + global_name,
63 def test_setup(self): argument
64 self.try_command('language renderscript status',
68 self.try_command('b -f simple.rs -l 145', [])
70 self.try_command('process continue',
76 def test_list_script_globals(self): argument
79 self.try_command('target variable',
147 def test_read_char_global(self): argument
[all …]
Dtest_write_global.py36 def _try_modifying_global(self, global_name, new_value, data_type_in, argument
59 self.try_command('expr %s = %s%s' %
63 self.try_command('target variable ' + global_name,
69 def test_setup(self): argument
70 self.try_command('language renderscript status',
74 self.try_command('b -f simple.rs -l 145', [])
76 self.try_command('process continue',
82 def test_char_global(self): argument
83 self._try_modifying_global('char_global', '-2',
87 def test_write_primitive_types(self): argument
[all …]
Dtest_write_local.py35 def _try_modifying_local(self, local_name, new_value, data_type_in, argument
59 self.try_command('expr %s = %s%s'
63 self.try_command('frame variable ' + local_name,
69 def test_setup(self): argument
70 self.try_command('language renderscript status',
74 self.try_command('b -f simple.rs -l 145', [])
76 self.try_command('process continue',
82 def test_modify_char(self): argument
83 self._try_modifying_local('char_local', '-2',
87 def test_modify_primitive(self): argument
[all …]
Dtest_allocation_dump_2.py35 def test_allocation_dump1(self): argument
37 self.try_command('language renderscript kernel breakpoint all enable',
40 self.try_command('process continue',
45 self.try_command('breakpoint del 1',
49 self.try_command('process continue',
55 self.try_command('language renderscript allocation dump 20',
82 def test_allocation_dump_unsigned_types(self): argument
84 self.try_command('language renderscript allocation dump 21',
99 self.try_command('language renderscript allocation dump 22',
108 self.try_command('language renderscript allocation dump 23',
[all …]
Dtest_allocation_dump_1.py39 def test_setup(self): argument
40 self.try_command('language renderscript kernel breakpoint all enable',
43 self.try_command('process continue',
49 def test_dump_to_file1(self): argument
51 output_file_1 = self.get_tmp_file_path()
53 self.try_command('language renderscript allocation dump 1 -f ' +
58 self.assert_true(os.path.isfile(output_file_1))
61 def test_dump_to_file2(self): argument
62 output_file_2 = self.get_tmp_file_path()
64 self.try_command('language renderscript allocation dump 2 -f ' +
[all …]
Dtest_allocation_dump_2_cpp.py29 def test_case(self): argument
37 self.try_command('language renderscript kernel breakpoint all enable',
40 self.try_command('process continue',
45 self.try_command('breakpoint del 1',
49 self.try_command('process continue',
55 self.try_command('language renderscript allocation dump 20',
82 self.try_command('language renderscript allocation dump 21',
97 self.try_command('language renderscript allocation dump 22',
106 self.try_command('language renderscript allocation dump 23',
115 self.try_command('language renderscript allocation dump 24',
[all …]
Dtest_allocation_dump_2_jni.py29 def test_case(self): argument
37 self.try_command('language renderscript kernel breakpoint all enable',
40 self.try_command('process continue',
45 self.try_command('breakpoint del 1',
49 self.try_command('process continue',
55 self.try_command('language renderscript allocation dump 20',
82 self.try_command('language renderscript allocation dump 21',
97 self.try_command('language renderscript allocation dump 22',
106 self.try_command('language renderscript allocation dump 23',
115 self.try_command('language renderscript allocation dump 24',
[all …]
Dtest_language_subcmds.py37 def setup(self, android): argument
41 def teardown(self, android): argument
45 def _pkg_name(self): argument
50 }[self.app_type]
52 def test_language_subcommands(self): argument
53 self.try_command('language',
56 self.try_command('language renderscript status',
67 self.try_command('breakpoint set --file simple.rs --line 28',
70 self.try_command('process continue',
73 self.try_command('language renderscript kernel',
[all …]
Dtest_reduction.py67 def _delete_breakpoints(self): argument
69 self.do_command('breakpoint delete -f')
70 except self.TestFail:
73 def setup(self, android): argument
77 def teardown(self, android): argument
83 def test_setup(self): argument
84 self.try_command('language renderscript status', [])
85 self.try_command('b find_min_user_type_accum', [])
86 self.try_command('c', [])
90 def test_renderscript_module_dump(self): argument
[all …]
Dtest_breakpoint_coordinate.py40 def setup(self, android): argument
48 def teardown(self, android): argument
58 def test_breakpoint_coordinate_2d_swizzle_kernel(self): argument
63 self.assert_coord_bp_set('swizzle_kernel', 3, 7)
67 self.assert_coord_bp_set('swizzle_kernel', 199, 190)
69 self.assert_coord_stop('allocs', 'swizzle_kernel', x=3, y=7)
72 self.try_command(
81 self.try_command('breakpoint delete 2', ['1 breakpoints deleted'])
84 self.try_command(
91 self.assert_coord_bp_set('square_kernel', 8)
[all …]
/frameworks/compile/libbcc/gdb_plugin/
Dandroid-commands.py70 def __init__(self): argument
71 self.name = None
72 self.intent = None
74 def get_name(self): argument
75 return self.name
77 def get_intent(self): argument
78 return self.intent
80 def get_data_directory(self): argument
81 return self.data_directory
83 def get_gdbserver_path(self): argument
[all …]
/frameworks/base/tools/velocityplot/
Dvelocityplot.py44 def __init__(self, stream): argument
46 self.stream = stream
47 self.buffer = ''
48 self.pos = 0
50 def readline(self): argument
52 index = self.buffer.find('\n', self.pos)
54 result = self.buffer[self.pos:index]
55 self.pos = index + 1
58 self.buffer = self.buffer[self.pos:]
59 self.pos = 0
[all …]
/frameworks/native/opengl/tools/glgen2/registry/
Dreg.py100 def __init__(self, elem): argument
101 self.required = False
102 self.declared = False
103 self.elem = elem
104 def resetState(self): argument
105 self.required = False
106 self.declared = False
112 def __init__(self, elem): argument
113 BaseInfo.__init__(self, elem)
119 def __init__(self, elem): argument
[all …]
/frameworks/base/media/mca/
Dstructgen.py99 def __init__(self, lineno, message): argument
100 self.lineno = lineno
101 self.message = message
103 def __str__(self): argument
104 return "On line %d: %s" % (self.lineno, self.message)
107 def __init__(self, name, structname, jclassname, package, javatype, ctype, jtype, defval): argument
108 self.name = name
109 self.structname = structname
110 self.jclassname = jclassname
111 self.package = package
[all …]
/frameworks/rs/tests/lldb/tests/harness/
Dutil_bundle.py65 def __init__(self, android, aosp_product_path): argument
67 self._android = android # Link to the android module
68 self._aosp_product_path = aosp_product_path
69 self._log = util_log.get_logger()
71 def is_apk(self, name): argument
86 if name in self._tests_apk:
88 if name not in self._tests_ndk and name not in self._tests_jni:
92 def uninstall_all(self): argument
98 self.uninstall_all_apk()
99 self._delete_all_ndk()
[all …]
Dutil_android.py40 def __init__(self, adb_path, lldb_server_path_device, device): argument
42 self._path_adb = adb_path
44 self._path_lldbserver = lldb_server_path_device
45 self._log = util_log.get_logger()
46 self.device = device
47 self._prop_stacks = collections.defaultdict(list)
60 def adb(self, args, async=False, device=True, timeout=None): argument
87 cmd = '{0} -s {1} {2}'.format(self._path_adb, self.device, args)
89 cmd = '{0} {1}'.format(self._path_adb, args)
91 self._log.debug('Execute ADB: %s', cmd)
[all …]
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py86 def __init__(self, *args, sep="_", showZero=False, startsFrom=0, skipRenaming=False): argument
89 self.name = name
93 while uniqueName in self.__class__.existingNames:
96 self.__class__.existingNames.add(uniqueName)
97 self.name = uniqueName
99 def __str__(self): argument
100 return self.name
104 def __eq__(self, other): argument
105 return isinstance(other, NamedObject) and self.name == other.name
107 def __ne__(self, other): argument
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/
Dtree.py23 def __init__(self): argument
24 self.root = CallTreeNode(None, None, None, None, None, None)
25 self.current = self.root
26 self.stack = []
28 def push(self, start_time_s, mark, layer, phase, app_phase, subtract): argument
29 node = self.current.add(start_time_s, mark, layer, phase, app_phase, subtract)
30 self.stack.append(self.current)
31 self.current = node
33 def push_dummy(self, start_time_s): argument
34 node = self.current.add_dummy(start_time_s)
[all …]
Dtracker.py21 def __init__(self): argument
22 self.reset()
24 def current(self): argument
25 if self.stack:
26 return self.stack[-1]
30 def push(self, phase): argument
31 self.stack.append(phase)
33 def pop(self): argument
34 self.stack.pop()
36 def reset(self): argument
[all …]

12345678910>>...15