/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/opt/gamesdk/third_party/protobuf-3.0.0/python/ |
D | mox.py | 79 def __init__(self, expected_methods): argument 93 Error.__init__(self) 94 self._expected_methods = expected_methods 96 def __str__(self): argument 98 for i, m in enumerate(self._expected_methods)]) 109 def __init__(self, unexpected_method, expected): argument 121 Error.__init__(self) 122 self._unexpected_method = unexpected_method 123 self._expected = expected 125 def __str__(self): argument [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | containers.py | 71 def get(self, key, default=None): argument 73 return self[key] 77 def __contains__(self, key): argument 79 self[key] 85 def iterkeys(self): argument 86 return iter(self) 88 def itervalues(self): argument 89 for key in self: 90 yield self[key] 92 def iteritems(self): argument [all …]
|
D | reflection_test.py | 76 def __init__(self, bytes): argument 77 self._bytes = bytes 78 self._pos = 0 80 def ReadVarint(self): argument 81 result, self._pos = decoder._DecodeVarint(self._bytes, self._pos) 89 def ReadSInt64(self): argument 90 return wire_format.ZigZagDecode(self.ReadVarint()) 94 def ReadFieldNumberAndWireType(self): argument 95 return wire_format.UnpackTag(self.ReadVarint()) 97 def ReadFloat(self): argument [all …]
|
D | unknown_fields_test.py | 61 def setUp(self): argument 62 self.descriptor = unittest_pb2.TestAllTypes.DESCRIPTOR 63 self.all_fields = unittest_pb2.TestAllTypes() 64 test_util.SetAllFields(self.all_fields) 65 self.all_fields_data = self.all_fields.SerializeToString() 66 self.empty_message = unittest_pb2.TestEmptyMessage() 67 self.empty_message.ParseFromString(self.all_fields_data) 69 def testSerialize(self): argument 70 data = self.empty_message.SerializeToString() 74 self.assertTrue(data == self.all_fields_data) [all …]
|
/frameworks/ml/nn/tools/systrace_parser/parser/test/ |
D | test_stats.py | 7 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/base/tools/apilint/ |
D | apilint_test.py | 33 def test_retry_iterator(self): argument 35 self.assertEqual(it.next(), 1) 36 self.assertEqual(it.next(), 2) 37 self.assertEqual(it.next(), 3) 39 self.assertEqual(it.next(), 3) 40 self.assertEqual(it.next(), 4) 41 with self.assertRaises(StopIteration): 44 def test_retry_iterator_one(self): argument 46 self.assertEqual(it.next(), 1) 48 self.assertEqual(it.next(), 1) [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_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_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_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 …]
|
/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/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/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/ml/nn/tools/ |
D | sync_enums_to_hal.py | 40 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 pop_back(self, no_of_lines=1): argument 53 self.sections[self.current].pop() [all …]
|
/frameworks/ml/nn/tools/test_generator/ |
D | test_generator.py | 98 def __init__(self, *args, sep="_", showZero=False, startsFrom=0, skipRenaming=False): argument 101 self.name = name 105 while uniqueName in self.__class__.existingNames: 108 self.__class__.existingNames.add(uniqueName) 109 self.name = uniqueName 111 def __str__(self): argument 112 return self.name 116 def __eq__(self, other): argument 117 return isinstance(other, NamedObject) and self.name == other.name 119 def __ne__(self, other): argument [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 …]
|
/frameworks/ml/nn/tools/systrace_parser/parser/ |
D | tree.py | 23 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 …]
|