Home
last modified time | relevance | path

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

12345678910>>...94

/external/lldb/test/unittest2/test/
Dtest_case.py22 def runTest(self): pass argument
23 def test1(self): pass argument
26 def test2(self): pass argument
31 def __init__(self, events): argument
32 super(Test.LoggingTestCase, self).__init__('test')
33 self.events = events
35 def setUp(self): argument
36 self.events.append('setUp')
38 def test(self): argument
39 self.events.append('test')
[all …]
Dtest_assertions.py7 def test_AlmostEqual(self): argument
8 self.assertAlmostEqual(1.00000001, 1.0)
9 self.assertNotAlmostEqual(1.0000001, 1.0)
10 self.assertRaises(self.failureException,
11 self.assertAlmostEqual, 1.0000001, 1.0)
12 self.assertRaises(self.failureException,
13 self.assertNotAlmostEqual, 1.00000001, 1.0)
15 self.assertAlmostEqual(1.1, 1.0, places=0)
16 self.assertRaises(self.failureException,
17 self.assertAlmostEqual, 1.1, 1.0, places=1)
[all …]
/external/selinux/sepolgen/src/sepolgen/
Drefpolicy.py54 def __init__(self, parent=None): argument
55 self.parent = None
56 self.comment = None
75 def __init__(self, parent=None): argument
76 PolicyBase.__init__(self, parent)
77 self.children = []
79 def __iter__(self): argument
80 return iter(self.children)
87 def nodes(self): argument
88 return itertools.ifilter(lambda x: isinstance(x, Node), walktree(self))
[all …]
/external/selinux/policycoreutils/sepolicy/sepolicy/
Dgui.py103 def __init__( self , app = None, test = False): argument
104 self.finish_init = False
105 self.opage = START_PAGE
106 self.dbus = SELinuxDBus()
108 customized = self.dbus.customized()
111 self.quit()
116 self.error(_("%s is not a valid domain" % app))
117 self.quit()
119 self.init_cur()
120 self.application = app
[all …]
Dgenerate.py184 def __init__(self, name, type): argument
185 self.rpms = []
186 self.ports = []
187 self.all_roles = get_all_roles()
188 self.types = []
196 self.ports = get_all_ports()
202 self.symbols = {}
203 self.symbols["openlog"] = "set_use_kerberos(True)"
204 self.symbols["openlog"] = "set_use_kerb_rcache(True)"
205 self.symbols["openlog"] = "set_use_syslog(True)"
[all …]
Dmanpage.py166 def __init__(self, manpage_roles, manpage_domains, path, os_version): argument
167 self.manpage_roles = get_alphabet_manpages(manpage_roles)
168 self.manpage_domains = get_alphabet_manpages(manpage_domains)
169 self.os_version = os_version
170 self.old_path = path + "/"
171 self.new_path = self.old_path + self.os_version+"/"
173 if self.os_version in fedora_releases or rhel_releases:
174 self.__gen_html_manpages()
179 def __gen_html_manpages(self): argument
180 self._write_html_manpage()
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dtree.py67 def __init__(self, elementDescription): argument
68 RuntimeError.__init__(self, elementDescription)
70 self.elementDescription = elementDescription
73 def getMessage(self): argument
74 return self.elementDescription
80 def __init__(self, elementDescription=None): argument
81 RewriteCardinalityException.__init__(self, elementDescription)
114 def getChild(self, i): argument
118 def getChildCount(self): argument
122 def getParent(self): argument
[all …]
Ddebug.py36 def __init__(self, stream, state=None, dbg=None, *args, **kwargs): argument
41 super(DebugParser, self).__init__(stream, state, *args, **kwargs)
44 self._dbg = None
46 self.setDebugListener(dbg)
49 def setDebugListener(self, dbg): argument
54 if hasattr(self.input, 'dbg'):
55 self.input.dbg = dbg
57 self._dbg = dbg
59 def getDebugListener(self): argument
60 return self._dbg
[all …]
Dtokens.py44 def getText(self): argument
51 def setText(self, text): argument
59 def getType(self): argument
66 def setType(self, ttype): argument
74 def getLine(self): argument
83 def setLine(self, line): argument
91 def getCharPositionInLine(self): argument
100 def setCharPositionInLine(self, pos): argument
108 def getChannel(self): argument
115 def setChannel(self, channel): argument
[all …]
/external/selinux/policycoreutils/gui/
Dpolgengui.py112 def __init__(self): argument
113 self.xml = xml
114 self.notebook = xml.get_widget ("notebook")
115 self.label_dict = {}
116 self.tooltip_dict = {}
118 self.label_dict[label] = label.get_text()
121 self.label_dict[label] = label.get_text()
124 self.label_dict[label] = label.get_text()
127 self.label_dict[label] = label.get_text()
130 self.label_dict[label] = label.get_text()
[all …]
/external/lldb/test/functionalities/watchpoint/watchpoint_commands/
DTestWatchpointCommands.py15 def setUp(self): argument
17 TestBase.setUp(self)
19 self.source = 'main.c'
21 self.line = line_number(self.source, '// Set break point at this line.')
22self.line2 = line_number(self.source, '// Set 2nd break point for disable_then_enable test case.')
24 self.decl = line_number(self.source, '// Watchpoint variable declaration.')
26 self.exe_name = self.testMethodName
27 self.d = {'C_SOURCES': self.source, 'EXE': self.exe_name}
31 def test_rw_watchpoint_with_dsym(self): argument
33 self.buildDsym(dictionary=self.d)
[all …]
/external/lldb/test/pexpect-2.4/
Dscreen.py48 def __init__ (self, r=24,c=80): argument
52 self.rows = r
53 self.cols = c
54 self.cur_r = 1
55 self.cur_c = 1
56 self.cur_saved_r = 1
57 self.cur_saved_c = 1
58 self.scroll_row_start = 1
59 self.scroll_row_end = self.rows
60 self.w = [ [SPACE] * self.cols for c in range(self.rows)]
[all …]
/external/lldb/test/functionalities/data-formatter/data-formatter-objc/
DTestDataFormatterObjC.py19 def test_plain_objc_with_dsym_and_run_command(self): argument
21 self.buildDsym()
22 self.plain_data_formatter_commands()
26 def test_plain_objc_with_dwarf_and_run_command(self): argument
28 self.buildDwarf()
29 self.plain_data_formatter_commands()
31 def appkit_tester_impl(self,builder,commands): argument
33 self.appkit_common_data_formatters_command()
38 def test_nsnumber_with_dsym_and_run_command(self): argument
40 self.appkit_tester_impl(self.buildDsym,self.nsnumber_data_formatter_commands)
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt042ast.py16 def parserClass(self, base): argument
18 def recover(self, input, re): argument
25 def parse(self, text, method, rArgs=[], **kwargs): argument
26 self.compileGrammar() #options='-trace')
29 self.lexer = self.getLexer(cStream)
30 tStream = antlr3.CommonTokenStream(self.lexer)
31 self.parser = self.getParser(tStream)
34 setattr(self.parser, attr, val)
36 return getattr(self.parser, method)(*rArgs)
39 def testR1(self): argument
[all …]
/external/parameter-framework/test/functional-tests/PfwTestCase/Domains/
DtDomain_Rules.py53 def setUp(self): argument
54 self.pfw.sendCmd("setTuningMode", "on")
55 self.domain_name = "domain_test"
56 self.conf_1 = "conf_1"
57 self.conf_2 = "conf_2"
58 self.rule_1 = "Any{Crit_0 Includes State_0x2, Crit_1 IsNot State_1}"
59 self.rule_2 = "All{Crit_0 Includes State_0x1, Crit_1 Is State_1}"
60 self.rule_error_1 = "All{Crit_Error Includes State_0x1, Crit_1 Is State_1}"
61 self.rule_error_2 = "Any{Crit_0 Includes State_0x2, Crit_0 IsNot State_1}"
62 self.rule_error_3 = "Ay{Crit_0 Includes State_0x2, Crit_1 IsNot State_1}"
[all …]
/external/libcxx/test/libcxx/test/
Dconfig.py48 def __init__(self, lit_config, config): argument
49 self.lit_config = lit_config
50 self.config = config
51 self.cxx = None
52 self.libcxx_src_root = None
53 self.libcxx_obj_root = None
54 self.cxx_library_root = None
55 self.env = {}
56 self.use_target = False
57 self.use_system_cxx_lib = False
[all …]
/external/protobuf/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 …]
/external/lldb/test/functionalities/thread/concurrent_events/
DTestConcurrentEvents.py35 def test_many_breakpoints_dwarf(self): argument
37 self.buildDwarf(dictionary=self.getBuildFlags())
38 self.do_thread_actions(num_breakpoint_threads=100)
43 def test_many_watchpoints_dwarf(self): argument
45 self.buildDwarf(dictionary=self.getBuildFlags())
46 self.do_thread_actions(num_watchpoint_threads=100)
50 def test_many_signals_dwarf(self): argument
52 self.buildDwarf(dictionary=self.getBuildFlags())
53 self.do_thread_actions(num_signal_threads=100)
57 def test_many_crash_dwarf(self): argument
[all …]
/external/mesa3d/src/gallium/tools/trace/
Dparse.py43 def __init__(self, type, name_or_data, attrs = None, line = None, column = None): argument
45 self.type = type
46 self.name_or_data = name_or_data
47 self.attrs = attrs
48 self.line = line
49 self.column = column
51 def __str__(self): argument
52 if self.type == ELEMENT_START:
53 return '<' + self.name_or_data + ' ...>'
54 if self.type == ELEMENT_END:
[all …]
/external/deqp/modules/gles2/scripts/
Dgenutil.py11 def __init__(self, name, description, children): argument
12 self.name = name
13 self.description = description
14 self.children = children
17 def __init__(self): argument
112 def __init__(self): argument
115 def uniformVec4(self, count, mn, mx): argument
122 def uniformBVec4(self, count): argument
194 def __init__(self, x): argument
195 self.x = x
[all …]
/external/lldb/examples/summaries/cocoa/
Dobjc_runtime.py114 def __init__(self,rot_pointer,params): argument
117 self.sys_params = params
118 self.valobj = rot_pointer
121 self.instanceSize = None # lazy fetching
122 offset = 24 if self.sys_params.is_64_bit else 16
124self.namePointer = Utilities.read_child_of(self.valobj,offset,self.sys_params.types_cache.addr_ptr…
125 self.valid = 1 # self.check_valid()
128 self.valid = 0
129 if self.valid:
130 self.name = Utilities.read_ascii(self.valobj.GetTarget().GetProcess(),self.namePointer)
[all …]
/external/deqp/modules/gles31/scripts/
Dgenutil.py11 def __init__(self, name, description, children): argument
12 self.name = name
13 self.description = description
14 self.children = children
17 def __init__(self): argument
122 def __init__(self): argument
125 def uniformVec4(self, count, mn, mx): argument
132 def uniformBVec4(self, count): argument
207 def __init__(self, x): argument
208 self.x = x
[all …]
/external/deqp/modules/gles3/scripts/
Dgenutil.py11 def __init__(self, name, description, children): argument
12 self.name = name
13 self.description = description
14 self.children = children
17 def __init__(self): argument
122 def __init__(self): argument
125 def uniformVec4(self, count, mn, mx): argument
132 def uniformBVec4(self, count): argument
207 def __init__(self, x): argument
208 self.x = x
[all …]
/external/lldb/test/settings/
DTestSettings.py22 def test_apropos_should_also_search_settings_description(self): argument
25 self.expect("apropos 'environment variable'",
30 def test_append_target_env_vars(self): argument
33 self.runCmd('settings append target.env-vars MY_ENV_VAR=YES')
35 self.addTearDownHook(
36 lambda: self.runCmd("settings clear target.env-vars"))
39 self.expect('settings show target.env-vars',
42 def test_insert_before_and_after_target_run_args(self): argument
45 self.runCmd('settings set target.run-args a b c')
47 self.addTearDownHook(
[all …]
/external/chromium-trace/trace-viewer/perf_insights/third_party/cloudstorage/
Dstorage_api.py94 def __getstate__(self): argument
100 return (super(_StorageApi, self).__getstate__(), {'api_url': self.api_url})
102 def __setstate__(self, state): argument
109 super(_StorageApi, self).__setstate__(superstate)
110 self.api_url = localstate['api_url']
114 def do_request_async(self, url, method='GET', headers=None, payload=None, argument
126 resp_tuple = yield super(_StorageApi, self).do_request_async(
136 def post_object_async(self, path, **kwds): argument
138 return self.do_request_async(self.api_url + path, 'POST', **kwds)
140 def put_object_async(self, path, **kwds): argument
[all …]

12345678910>>...94