Home
last modified time | relevance | path

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

12345678910>>...18

/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/opt/gamesdk/third_party/protobuf-3.0.0/python/
Dmox.py79 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/
Dcontainers.py71 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 …]
Dreflection_test.py76 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 …]
Dunknown_fields_test.py61 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/
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/base/tools/apilint/
Dapilint_test.py33 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/
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 …]
/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 pop_back(self, no_of_lines=1): argument
53 self.sections[self.current].pop()
[all …]
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py98 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/
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/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 …]

12345678910>>...18