/frameworks/base/tools/orientationplot/ |
D | orientationplot.py | 40 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/ |
D | test_write_local_element.py | 35 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 …]
|
D | test_write_global_element.py | 36 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 …]
|
D | test_read_local.py | 37 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 …]
|
D | test_read_global.py | 36 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 …]
|
D | test_write_global.py | 36 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 …]
|
D | test_write_local.py | 35 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 …]
|
D | test_allocation_dump_2.py | 35 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 …]
|
D | test_allocation_dump_1.py | 39 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 …]
|
D | test_allocation_dump_2_cpp.py | 29 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 …]
|
D | test_allocation_dump_2_jni.py | 29 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 …]
|
D | test_language_subcmds.py | 37 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 …]
|
D | test_reduction.py | 67 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 …]
|
D | test_breakpoint_coordinate.py | 40 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 …]
|
D | test_language_subcmds_no_debug.py | 40 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 …]
|
D | test_call_api_funs.py | 40 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 …]
|
D | test_allocation_list.py | 39 def test_allocation_list_single(self): argument 41 self.try_command('language renderscript kernel breakpoint all enable', 44 self.try_command('process continue', 50 self.try_command('language renderscript allocation list -i 3', 61 def test_allocation_list_all(self): argument 62 self.try_command('language renderscript allocation list', 202 def test_continue_1(self): argument 203 self.try_command('breakpoint del 1', 207 self.try_command('process continue', 213 def test_allocation_list_all2_java(self): argument [all …]
|
/frameworks/base/tools/velocityplot/ |
D | velocityplot.py | 44 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/compile/libbcc/gdb_plugin/ |
D | android-commands.py | 70 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/native/opengl/tools/glgen2/registry/ |
D | reg.py | 100 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/ |
D | structgen.py | 99 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/ |
D | util_bundle.py | 65 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 …]
|
D | util_android.py | 40 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 …]
|
D | test_base.py | 44 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/base/core/tests/overlaytests/ |
D | testrunner.py | 53 def _print(self): argument 54 s = '\r' + self.text + '[' + '.' * self.i + ' ' * (4 - self.i) + ']' 57 self.i = (self.i + 1) % 5 59 def __init__(self, cond_var, text): argument 60 threading.Thread.__init__(self) 61 self.text = text 62 self.setDaemon(True) 63 self.cond_var = cond_var 64 self.running = False 65 self.i = 0 [all …]
|