Searched refs:self (Results 126 - 150 of 4083) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/cython/src/Cython/Plex/
H A DActions.py11 def perform(self, token_stream, text):
14 def same_as(self, other):
15 return self is other
24 def __init__(self, value):
25 self.value = value
27 def perform(self, token_stream, text):
28 return self.value
30 def same_as(self, other):
31 return isinstance(other, Return) and self.value == other.value
33 def __repr__(self)
[all...]
H A DScanners.py68 def __init__(self, lexicon, stream, name = '', initial_pos = None):
81 self.trace = 0
83 self.buffer = u''
84 self.buf_start_pos = 0
85 self.next_pos = 0
86 self.cur_pos = 0
87 self.cur_line = 1
88 self.start_pos = 0
89 self.start_line = 0
90 self
[all...]
/external/chromium_org/tools/flakiness/
H A Dis_flaky_test.py16 def setUp(self):
17 self.original_subprocess_check_call = subprocess.check_call
18 subprocess.check_call = self.mock_check_call
19 self.check_call_calls = []
20 self.check_call_results = []
21 is_flaky.load_options = self.mock_load_options
23 def tearDown(self):
24 subprocess.check_call = self.original_subprocess_check_call
26 def mock_check_call(self, command, stdout, stderr):
27 self
[all...]
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/
H A Dadmx_writer_unittest.py24 def _CreateDocumentElement(self):
29 def setUp(self):
42 self.writer = admx_writer.GetWriter(config)
43 self.writer.Init()
45 def _GetPoliciesElement(self, doc):
47 self.assertTrue(node_list.length == 1)
50 def _GetCategoriesElement(self, doc):
52 self.assertTrue(node_list.length == 1)
55 def testEmpty(self):
56 self
[all...]
/external/lldb/test/functionalities/data-formatter/rdar-12529957/
H A DTestRdar12529957.py18 def test_rdar12529957_with_dsym_and_run_command(self):
20 self.buildDsym()
21 self.rdar12529957_tester()
25 def test_rdar12529957_with_dwarf_and_run_command(self):
27 self.buildDwarf()
28 self.rdar12529957_tester()
30 def setUp(self):
32 TestBase.setUp(self)
34 self.line = line_number('main.m', '// Set break point at this line.')
36 def rdar12529957_tester(self)
[all...]
/external/chromium_org/sync/tools/testserver/
H A Dxmppserver_test.py15 def testParseXml(self):
18 self.assertEqual(xml.toxml(), xml_text)
20 def testCloneXml(self):
24 self.assertEqual(xml, xml)
25 self.assertEqual(xml_clone, xml_clone)
26 self.assertNotEqual(xml, xml_clone)
28 def testCloneXmlUnlink(self):
33 self.assertEqual(xml.parentNode, None)
34 self.assertNotEqual(xml_clone.parentNode, None)
35 self
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dmock_function.py15 self.assertTrue(*my_function.CheckAndReset(2))
21 self.assertTrue(*my_constructor.CheckAndReset(1))
26 def __init__(self, fn):
27 self._fn = fn
28 self._call_count = 0
30 def __call__(self, *args, **optargs):
31 self._call_count += 1
32 return self._fn(*args, **optargs)
34 def CheckAndReset(self, expected_call_count):
35 actual_call_count = self
[all...]
H A Ddocument_parser.py16 def __init__(self, title, title_attributes, sections, warnings):
17 self.title = title
18 self.title_attributes = title_attributes
19 self.sections = sections
20 self.warnings = warnings
30 def __init__(self):
31 self.structure = []
42 def __init__(self, tag, attributes):
43 self.attributes = attributes
44 self
[all...]
/external/chromium_org/tools/findit/
H A Dresult.py8 def __init__(self, suspected_cl, revision_url, component_name, author,
10 self.suspected_cl = suspected_cl
11 self.revision_url = revision_url
12 self.component_name = component_name
13 self.author = author
14 self.reason = reason
15 self.review_url = review_url
16 self.reviewers = reviewers
17 self.line_content = line_content
18 self
[all...]
/external/chromium_org/tools/grit/grit/node/
H A Dio.py20 def __init__(self):
21 super(FileNode, self).__init__()
22 self.re = None
23 self.should_load_ = True
25 def IsTranslation(self):
28 def GetLang(self):
29 return self.attrs['lang']
31 def DisableLoading(self):
32 self.should_load_ = False
34 def MandatoryAttributes(self)
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/platform/
H A Dtracing_controller.py6 def __init__(self, tracing_controller_backend):
8 self._tracing_controller_backend = tracing_controller_backend
10 def Start(self, trace_options, category_filter, timeout=10):
27 self._tracing_controller_backend.Start(
30 def Stop(self):
32 return self._tracing_controller_backend.Stop()
35 def is_tracing_running(self):
36 return self._tracing_controller_backend.is_tracing_running
38 def IsChromeTracingSupported(self, browser):
40 return self
[all...]
/external/lldb/test/functionalities/data-formatter/data-formatter-disabling/
H A DTestDataFormatterDisabling.py17 def test_with_dsym_and_run_command(self):
19 self.buildDsym()
20 self.data_formatter_commands()
23 def test_with_dwarf_and_run_command(self):
25 self.buildDwarf()
26 self.data_formatter_commands()
28 def setUp(self):
30 TestBase.setUp(self)
32 self.line = line_number('main.cpp', '// Set break point at this line.')
34 def data_formatter_commands(self)
[all...]
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/
H A DTestDataFormatterLibcxxMultiSet.py17 def test_with_dsym_and_run_command(self):
19 self.buildDsym()
20 self.data_formatter_commands()
24 def test_with_dwarf_and_run_command(self):
26 self.buildDwarf()
27 self.data_formatter_commands()
29 def setUp(self):
31 TestBase.setUp(self)
33 def data_formatter_commands(self):
35 self
[all...]
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/
H A DTestDataFormatterLibcxxSet.py17 def test_with_dsym_and_run_command(self):
19 self.buildDsym()
20 self.data_formatter_commands()
24 def test_with_dwarf_and_run_command(self):
26 self.buildDwarf()
27 self.data_formatter_commands()
29 def setUp(self):
31 TestBase.setUp(self)
33 def data_formatter_commands(self):
35 self
[all...]
/external/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/
H A DTestWatchpointConditionCmd.py15 def setUp(self):
17 TestBase.setUp(self)
19 self.source = 'main.cpp'
21 self.line = line_number(self.source, '// Set break point at this line.')
23 self.decl = line_number(self.source, '// Watchpoint variable declaration.')
25 self.exe_name = self.testMethodName
26 self
[all...]
/external/srec/shared/src/
H A DInt8ArrayList.c26 ESR_ReturnCode Int8ArrayListAdd(Int8ArrayList* self, asr_int8_t element) argument
28 if (self == NULL)
33 return self->add(self, element);
36 ESR_ReturnCode Int8ArrayListRemove(Int8ArrayList* self, asr_int8_t element) argument
38 if (self == NULL)
43 return self->remove(self, element);
46 ESR_ReturnCode Int8ArrayListRemoveAll(Int8ArrayList* self) argument
48 if (self
56 Int8ArrayListContains(Int8ArrayList* self, asr_int8_t element, ESR_BOOL* exists) argument
66 Int8ArrayListGetSize(Int8ArrayList* self, size_t* size) argument
76 Int8ArrayListGet(Int8ArrayList* self, size_t index, asr_int8_t* element) argument
86 Int8ArrayListSet(Int8ArrayList* self, size_t index, asr_int8_t element) argument
96 Int8ArrayListToStaticArray(Int8ArrayList* self, asr_int8_t** newArray) argument
106 Int8ArrayListClone(Int8ArrayList* self, Int8ArrayList* clone) argument
116 Int8ArrayListDestroy(Int8ArrayList* self) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/tools/trace/
H A Dparse.py43 def __init__(self, type, name_or_data, attrs = None, line = None, column = None):
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):
52 if self.type == ELEMENT_START:
53 return '<' + self.name_or_data + ' ...>'
54 if self
[all...]
/external/mesa3d/src/gallium/tools/trace/
H A Dparse.py43 def __init__(self, type, name_or_data, attrs = None, line = None, column = None):
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):
52 if self.type == ELEMENT_START:
53 return '<' + self.name_or_data + ' ...>'
54 if self
[all...]
/external/chromium_org/build/android/pylib/base/
H A Dbase_test_runner.py27 def __init__(self, device_serial, tool, push_deps=True,
36 self.device_serial = device_serial
37 self.device = device_utils.DeviceUtils(device_serial)
38 self.tool = CreateTool(tool, self.device)
39 self._http_server = None
40 self._forwarder_device_port = 8000
41 self.forwarder_base_url = ('http://localhost:%d' %
42 self._forwarder_device_port)
43 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/
H A Dmetered_stream_unittest.py41 def setUp(self):
42 self.stream = StringIO.StringIO()
43 self.buflist = self.stream.buflist
44 self.stream.isatty = lambda: self.isatty
47 self.logger = logging.getLogger(__name__)
48 self.logger.setLevel(logging.DEBUG)
49 self.logger.propagate = False
52 self
[all...]
/external/chromium_org/v8/tools/push-to-trunk/
H A Dpush_to_trunk.py43 def RunStep(self):
44 self.InitialEnvironmentChecks(self.default_cwd)
45 self.CommonPrepare()
47 if(self["current_branch"] == self.Config("TRUNKBRANCH")
48 or self["current_branch"] == self.Config("BRANCHNAME")):
49 print "Warning: Script started on branch %s" % self["current_branch"]
51 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/
H A Dwebkit_finder.py34 def __init__(self, filesystem):
35 self._filesystem = filesystem
36 self._dirsep = filesystem.sep
37 self._sys_path = sys.path
38 self._env_path = os.environ['PATH'].split(os.pathsep)
39 self._webkit_base = None
40 self._chromium_base = None
41 self._depot_tools = None
43 def webkit_base(self):
52 if not self
[all...]
/external/lldb/test/functionalities/data-formatter/data-formatter-script/
H A DTestDataFormatterScript.py17 def test_with_dsym_and_run_command(self):
19 self.buildDsym()
20 self.data_formatter_commands()
23 def test_with_dwarf_and_run_command(self):
25 self.buildDwarf()
26 self.data_formatter_commands()
28 def setUp(self):
30 TestBase.setUp(self)
32 self.line = line_number('main.cpp', '// Set break point at this line.')
34 def data_formatter_commands(self)
[all...]
/external/lldb/test/unittest2/test/
H A Dtest_assertions.py7 def test_AlmostEqual(self):
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
[all...]
/external/lldb/test/settings/
H A DTestSettings.py22 def test_apropos_should_also_search_settings_description(self):
25 self.expect("apropos 'environment variable'",
30 def test_append_target_env_vars(self):
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):
45 self.runCmd('settings set target.run-args a b c')
47 self
[all...]

Completed in 2916 milliseconds

1234567891011>>