/frameworks/rs/tests/lldb/tests/testcases/ |
H A D | test_allocation_dump_2_jni.py | 29 def test_case(self): 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 [all...] |
H A D | test_allocation_dump_2.py | 35 def test_allocation_dump1(self): 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): 84 self.try_command('language renderscript allocation dump 21', 99 self.try_command('language renderscript allocation dump 22', 108 self [all...] |
H A D | test_rs_consts.py | 35 def test_rs_consts(self): 36 self.try_command('language renderscript status', 40 self.try_command('language renderscript kernel breakpoint set kernel', 43 self.try_command('process continue', 49 self.try_command('expr M_1_PI', 52 self.try_command('expr M_2_PI', 55 self.try_command('expr M_2_SQRTPI', 58 self.try_command('expr M_E', 61 self.try_command('expr M_LN10', 64 self [all...] |
H A D | test_write_local_element.py | 35 def _try_inspecting_local(self, local_name, expected_output): 45 self.try_command('expr ' + local_name, expected_output) 47 def _try_modifying_local(self, local_name, new_value, expected_output, 68 self.try_command('expr %s = %s' % (local_name, new_value), 71 self.try_command('frame variable ' + local_name, 77 def test_setup(self): 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) [all...] |
H A D | test_write_global.py | 36 def _try_modifying_global(self, global_name, new_value, data_type_in, 59 self.try_command('expr %s = %s%s' % 63 self.try_command('target variable ' + global_name, 69 def test_setup(self): 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): 83 self._try_modifying_global('char_global', '-2', 87 def test_write_primitive_types(self) [all...] |
H A D | test_write_global_element.py | 36 def _try_inspecting_global(self, global_name, expected_output): 46 self.try_command('expr ' + global_name, expected_output) 48 def _try_modifying_global(self, global_name, new_value, expected_output, 69 self.try_command('expr %s = %s' % (global_name, new_value), 72 self.try_command('target variable ' + global_name, 78 def test_setup(self): 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) [all...] |
H A D | test_breakpoint_kernel_all_multiple_rs_files.py | 37 def test_deferred_breakpoint_resolution(self): 39 self.try_command('language renderscript kernel breakpoint all enable', 42 self.try_command('process continue', 47 self.try_command('breakpoint list', 52 def test_disable_all_kernel_breakpoint_doesnt_delete_breakpoints(self): 54 self.try_command('language renderscript kernel breakpoint all disable', 58 self.try_command('breakpoint delete 1', 61 self.try_command('breakpoint delete 2', 64 self.try_command('breakpoint list', 68 def test_enable_breakpoint_on_loaded_kernels(self) [all...] |
H A D | test_write_local.py | 35 def _try_modifying_local(self, local_name, new_value, data_type_in, 59 self.try_command('expr %s = %s%s' 63 self.try_command('frame variable ' + local_name, 69 def test_setup(self): 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): 83 self._try_modifying_local('char_local', '-2', 87 def test_modify_primitive(self) [all...] |
H A D | test_allocation_dump_1.py | 39 def test_setup(self): 40 self.try_command('language renderscript kernel breakpoint all enable', 43 self.try_command('process continue', 49 def test_dump_to_file1(self): 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): 62 output_file_2 = self.get_tmp_file_path() 64 self [all...] |
H A D | test_breakpoint_kernel_1.py | 36 def test_breakpoint_set_nonexistent_kernel(self): 38 self.try_command('language renderscript status', 42 self.try_command('language renderscript kernel breakpoint set simple_kernel', 47 self.try_command('language renderscript kernel breakpoint set imaginary_kernel', 51 self.try_command('breakpoint list', 55 self.try_command('process continue', 60 self.try_command('bt', 66 self.try_command('breakpoint list', 71 def test_breakpoint_delete_nonexistent_kernel(self): 73 self [all...] |
H A D | test_breakpoint_kernel_all.py | 36 def test_kernel_breakpoint_all_unloaded_kernels(self): 38 self.try_command('language renderscript kernel breakpoint all enable', 41 self.try_command('process continue', 46 self.try_command('breakpoint list', 51 self.try_command('language renderscript kernel breakpoint all disable', 55 self.try_command('breakpoint delete 1', 58 self.try_command('breakpoint delete 2', 61 self.try_command('breakpoint list', 65 self.try_command('language renderscript kernel breakpoint all enable', 68 self [all...] |
H A D | test_breakpoint_kernel_multiple_rs_files.py | 35 def _binary_name(self): 40 }[self.app_type] 42 def test_kernel_breakpoint_multiple_rs_files(self): 44 self.try_command('language renderscript kernel breakpoint set first_kernel', 48 self.try_command('breakpoint list', 51 self.try_command('process continue', 54 "name = '%s'" % self._binary_name(), 58 self.try_command('breakpoint list', 61 self.try_command('language renderscript kernel breakpoint set second_kernel', 67 self [all...] |
H A D | test_allocation_dump_2_cpp.py | 29 def test_case(self): 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 [all...] |
H A D | test_allocation_list.py | 39 def test_allocation_list_single(self): 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): 62 self.try_command('language renderscript allocation list', 202 def test_continue_1(self): 203 self.try_command('breakpoint del 1', 207 self.try_command('process continue', 213 def test_allocation_list_all2_java(self) [all...] |
H A D | test_read_global.py | 36 def _try_inspecting_global(self, global_name, expected_output, 53 self.try_command('expr ' + global_name, 57 self.try_command('target variable ' + global_name, 63 def test_setup(self): 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): 79 self.try_command('target variable', 147 def test_read_char_global(self) [all...] |
H A D | test_read_local.py | 37 def _try_inspecting_local(self, local_name, expected_output, 54 self.try_command('expr ' + local_name, 58 self.try_command('frame variable ' + local_name, 64 def test_setup(self): 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): 80 self.try_command('frame variable', 147 def test_inspect_primitive_types(self) [all...] |
H A D | test_breakpoint_fileline_multiple_rs_files.py | 35 def _binary_name(self): 40 }[self.app_type] 43 def test_breakpoint_fileline_multiple_files(self): 44 self.try_command('language renderscript status', 48 self.try_command('breakpoint set --file first.rs --line 28', 51 self.try_command('process continue', 55 "name = '%s'" % self._binary_name(), 58 self.try_command('breakpoint set --file second.rs --line 23', 63 self.try_command('breakpoint list', 70 self [all...] |
H A D | test_multiple_rs_files.py | 34 def _binary_name(self): 39 }[self.app_type] 41 def _pkg_name(self): 46 }[self.app_type] 48 def test_multiple_rs_files(self): 49 self.try_command('language renderscript status', 54 self.try_command('breakpoint set --file first.rs --line 28', 57 self.try_command('process continue', 61 "name = '%s'" % self._binary_name(), 64 self [all...] |
H A D | test_invoke_fun.py | 35 def test_invoke_fun(self): 37 self.try_command('language renderscript status', 41 self.try_command('breakpoint set --name addToGlobal', 44 self.try_command('process continue', 49 self.try_command('language renderscript kernel breakpoint set simple_kernel', 52 self.try_command('process continue', 58 self.try_command('expr glob', 64 def test_cpp_cleanup(self): 65 self.try_command('breakpoint delete 1', ['1 breakpoints deleted']) 67 self [all...] |
H A D | test_language_subcmds.py | 37 def setup(self, android): 41 def teardown(self, android): 45 def _pkg_name(self): 50 }[self.app_type] 52 def test_language_subcommands(self): 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 [all...] |
H A D | test_dwarf_lang.py | 31 def test_renderscript_kernel_frame_dwarf_language(self): 32 self.try_command('language renderscript status', []) 33 self.try_command('b simple_kernel', []) 34 self.try_command('process continue', []) 36 self.assert_lang_renderscript()
|
H A D | test_breakpoint_fileline.py | 36 def test_breakpoint_fileline(self): 37 self.try_command('language renderscript status', 41 self.try_command('breakpoint set --file simple.rs --line 28', 44 self.try_command('process continue', 47 self.try_command('bt', 52 self.try_command('breakpoint list', 56 self.try_command('process status', 60 self.try_command('breakpoint delete 1', 65 def test_cpp_cleanup(self): 66 self [all...] |
H A D | test_backtrace.py | 35 def test_kernel_backtrace(self): 37 self.try_command('language renderscript status', 41 self.try_command('language renderscript kernel breakpoint set simple_kernel', 45 self.try_command('process continue', 50 self.try_command('bt', 59 self.try_command('breakpoint delete 1', 62 self.try_command('b set_i', 67 self.try_command('breakpoint list', 70 self.try_command('process continue', 75 self [all...] |
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 40 def __init__(self, stream): 42 self.stream = stream 43 self.buffer = '' 44 self.pos = 0 46 def readline(self): 48 index = self.buffer.find('\n', self.pos) 50 result = self.buffer[self.pos:index] 51 self [all...] |
/frameworks/rs/tests/lldb/tests/harness/ |
H A D | util_timer.py | 25 def __init__(self, interval, callback): 43 self._timer = None 44 self._callback = callback 45 self._interval = interval 47 def _is_running(self): 53 return self._timer is not None 55 def start(self): 59 self, the Timer instance 64 if self._is_running(): 67 self [all...] |