Home
last modified time | relevance | path

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

12345678910>>...14

/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/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_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_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_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 …]
Dtest_language_subcmds_no_debug.py40 def _pkg_name(self): argument
45 }[self.app_type]
48 def test_language_subcommands_no_debug(self): argument
50 self.try_command('language renderscript status',
54 self.try_command('language renderscript kernel breakpoint set simple_kernel'
58 self.try_command('process continue',
61 self.try_command('language renderscript kernel',
66 self.try_command('language renderscript kernel list',
72 self.try_command('language renderscript context',
75 self.try_command('language renderscript context dump',
[all …]
Dtest_call_api_funs.py40 def __new__(self, name, bases, class_dict): argument
50 def test(self): argument
55 self.try_command(expr, [], [RS_funs.TYPE_MAP[ret]])
59 self.try_command(expr, '(%s)' % ret)
86 def test_setup(self): argument
87 self.try_command('language renderscript status',
91 self.try_command('b -f simple.rs -l 145', [])
93 self.try_command('process continue',
100 def test_call_api_funs_atomic(self): argument
103 self.try_command('expr rsAtomicAdd(&int_global, 2)',
[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/ml/nn/tools/
Dsync_enums_to_hal.py40 def __init__(self): argument
41 self.sections = []
42 self.current = -1
43 self.next_section()
45 def put_back(self, no_of_lines=1): argument
46 assert not self.sections[self.current]
48 line = self.sections[self.current - 1].pop()
49 self.sections[self.current].insert(0, line)
51 def next_section(self): argument
52 self.current = self.current + 1
[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 …]
Dtest_base.py44 def __init__(self, device_port, device, timer, app_type, wimpy=False, **kwargs): argument
48 self._lldb = None # handle to the lldb module
49 self._ci = None # instance of the lldb command interpreter for this test
50 self._timer = timer # timer instance, to check whether the test froze
51 self.app_type = app_type # The type of bundle that is being executed
52 self.wimpy = wimpy
54 def setup(self, android): argument
66 def teardown(self, android): argument
77 def run(self, dbg, remote_pid, lldb): argument
95 if self.wimpy and not getattr(obj, 'wimpy', False):
[all …]
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py48 def __init__(self): argument
49 self.__objects = []
50 self.__contents = []
51 self.__dict_of_objects = {}
53 def append(self, obj, x): argument
54 self.__objects.append(obj)
55 self.__contents.append(x)
56 self.__dict_of_objects[obj.ID()] = obj
58 def dump(self, filename): argument
59 for x in self.__contents:
[all …]

12345678910>>...14