Home
last modified time | relevance | path

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

12345678910>>...217

/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/
Dtokenizer.py37 def __init__(self, stream, encoding=None, parseMeta=True, useChardet=True, argument
40 self.stream = HTMLInputStream(stream, encoding, parseMeta, useChardet)
41 self.parser = parser
44 self.lowercaseElementName = lowercaseElementName
45 self.lowercaseAttrName = lowercaseAttrName
48 self.escapeFlag = False
49 self.lastFourChars = []
50 self.state = self.dataState
51 self.escape = False
54 self.currentToken = None
[all …]
Dhtml5parser.py55 def __init__(self, tree=None, tokenizer=tokenizer.HTMLTokenizer, argument
70 self.strict = strict
74 self.tree = tree(namespaceHTMLElements)
75 self.tokenizer_class = tokenizer
76 self.errors = []
78 self.phases = dict([(name, cls(self, self.tree)) for name, cls in
81 def _parse(self, stream, innerHTML=False, container="div", argument
84 self.innerHTMLMode = innerHTML
85 self.container = container
86 self.tokenizer = self.tokenizer_class(stream, encoding=encoding,
[all …]
/external/chromium-trace/catapult/third_party/graphy/graphy/backends/google_chart_api/
Dbase_encoder_test.py29 def _GetType(self, chart): argument
32 def _GetDependentAxis(self, chart): argument
39 def __init__(self, points=None): argument
40 super(TestChart, self).__init__()
42 self.AddData(points)
44 def AddData(self, points, color=None, label=None): argument
47 self.data.append(series)
54 def ExpectAxes(self, labels, positions): argument
56 self.assertEqual(self.Param('chxl'), labels)
57 self.assertEqual(self.Param('chxp'), positions)
[all …]
Dbar_chart_test.py31 def GetChart(self, *args, **kwargs): argument
34 def AddToChart(self, chart, points, color=None, label=None): argument
37 def testChartType(self): argument
39 self.chart.vertical = vertical
40 self.chart.stacked = stacked
41 self.assertEqual(self.Param('cht'), expected_type)
47 def testSingleBarCase(self): argument
49 self.AddToChart(self.chart, [1])
50 self.assertEqual(self.Param('chd'), 's:A')
52 def testHorizontalScaling(self): argument
[all …]
/external/autotest/site_utils/suite_scheduler/
Dtask_unittest.py45 def setUp(self): argument
46 super(TaskTestBase, self).setUp()
47 self.sched = self.mox.CreateMock(deduping_scheduler.DedupingScheduler)
59 def setUp(self): argument
60 super(TaskCreateTest, self).setUp()
61 self.config = forgiving_config_parser.ForgivingConfigParser()
62 self.config.add_section(self._TASK_NAME)
63 self.config.set(self._TASK_NAME, 'suite', self._SUITE)
64 self.config.set(self._TASK_NAME, 'branch_specs', self._BRANCH_SPEC)
65 self.config.set(self._TASK_NAME, 'run_on', self._EVENT_KEY)
[all …]
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_test.py45 def assertModeEqual(self, expected, actual): argument
46 return self.assertEqual(stat.S_IMODE(expected), stat.S_IMODE(actual))
50 def setUp(self): argument
51 self.orig_time = time.time
53 self.fake_file = fake_filesystem.FakeFile('foobar', contents='dummy_file')
54 self.fake_dir = fake_filesystem.FakeDirectory('somedir')
56 def tearDown(self): argument
57 time.time = self.orig_time
59 def testNewFileAndDirectory(self): argument
60 self.assertTrue(stat.S_IFREG & self.fake_file.st_mode)
[all …]
/external/autotest/client/site_tests/network_ShillInitScripts/
Dnetwork_ShillInitScripts.py37 def start_shill(self): argument
42 def stop_shill(self): argument
47 if not self.find_pid('shill'):
54 def login(self, user=None): argument
63 (user or self.fake_user))
66 def login_guest(self): argument
72 self.login('""')
75 def logout(self): argument
84 def start_test(self): argument
88 self.recover_duts_stopped = (ret == 0);
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dtracing_controller_backend_unittest.py19 def __init__(self): argument
20 super(PlatformBackend, self).__init__()
21 self._mock_files = {}
23 def GetOSName(self): argument
28 def __init__(self, platform, start=True, clock_sync=True): argument
29 super(FakeTracingAgentBase, self).__init__(platform)
30 self._start = start
31 self._clock_sync = clock_sync
32 self._sync_seen = False
34 def StartAgentTracing(self, config, timeout): argument
[all …]
/external/selinux/sepolgen/src/sepolgen/
Drefpolicy.py53 def __init__(self, parent=None): argument
54 self.parent = None
55 self.comment = None
74 def __init__(self, parent=None): argument
75 PolicyBase.__init__(self, parent)
76 self.children = []
78 def __iter__(self): argument
79 return iter(self.children)
86 def nodes(self): argument
87 return filter(lambda x: isinstance(x, Node), walktree(self))
[all …]
/external/selinux/policycoreutils/sepolicy/sepolicy/
Dgui.py107 def __init__(self, app=None, test=False): argument
108 self.finish_init = False
109 self.opage = START_PAGE
110 self.dbus = SELinuxDBus()
112 customized = self.dbus.customized()
115 self.quit()
120 self.error(_("%s is not a valid domain" % app))
121 self.quit()
123 self.init_cur()
124 self.application = app
[all …]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dbase_config_unittest.py20 def setUp(self): argument
21 self.addTypeEqualityFunc(uploader.CloudStorageUploader,
23 self.setUpPyfakefs()
24 self.dependencies = {
43 self.expected_file_lines = [
59 self.file_path = os.path.abspath(os.path.join(
62 self.new_dep_path = 'path/to/new/dep'
63 self.fs.CreateFile(self.new_dep_path)
64 self.new_dep_hash = 'A23B56B7F23E798601F'
65 self.new_dependencies = {
[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 …]
/external/selinux/policycoreutils/gui/
Dpolgengui.py116 def __init__(self): argument
117 self.xml = xml
118 self.notebook = xml.get_widget("notebook")
119 self.label_dict = {}
120 self.tooltip_dict = {}
122 self.label_dict[label] = label.get_text()
125 self.label_dict[label] = label.get_text()
128 self.label_dict[label] = label.get_text()
131 self.label_dict[label] = label.get_text()
134 self.label_dict[label] = label.get_text()
[all …]
/external/autotest/client/virt/
Dvirt_step_editor.py113 def __init__(self): argument
115 self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
116 self.window.set_title("Step Maker Window")
117 self.window.connect("delete-event", self.delete_event)
118 self.window.connect("destroy", self.destroy)
119 self.window.set_default_size(600, 800)
122 self.menu_vbox = gtk.VBox()
123 self.window.add(self.menu_vbox)
124 self.menu_vbox.show()
129 self.menu_vbox.pack_end(frame)
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils_test.py32 def __init__(self, path, package_name, perms=None): argument
33 self.path = path
34 self.package_name = package_name
35 self.perms = perms
37 def GetPackageName(self): argument
38 return self.package_name
40 def GetPermissions(self): argument
41 return self.perms
46 def testInitWithStr(self): argument
49 self.assertEqual(serial_as_str, d.adb.GetDeviceSerial())
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudformation/
Dstack.py7 def __init__(self, connection=None): argument
8 self.connection = connection
9 self.creation_time = None
10 self.description = None
11 self.disable_rollback = None
12 self.notification_arns = []
13 self.outputs = []
14 self.parameters = []
15 self.capabilities = []
16 self.tags = []
[all …]
/external/autotest/client/common_lib/
Dbase_job_unittest.py17 def __init__(self, path, is_writable=False): argument
22 self.path = tempfile.mktemp()
24 self.path = path
32 def __init__(self): argument
33 self._state = {}
34 self._backing_file_lock = None
36 def read_from_file(self, file_path): argument
39 def write_to_file(self, file_path): argument
42 def set_backing_file(self, file_path): argument
45 def _read_from_backing_file(self): argument
[all …]
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/tests/
Dtest_mox.py37 def testAtLeastOneMethod(self): argument
38 self.assertRaises(ValueError, mox.ExpectedMethodCallsError, [])
40 def testOneError(self): argument
44 self.assertEqual(
49 def testManyErrors(self): argument
59 self.assertEqual(
71 def testValidOr(self): argument
73 self.assertTrue(mox.Or(mox.IsA(dict), mox.IsA(str)) == {})
74 self.assertTrue(mox.Or(mox.IsA(dict), mox.IsA(str)) == 'test')
75 self.assertTrue(mox.Or(mox.IsA(str), mox.IsA(str)) == 'test')
[all …]
/external/chromium-trace/catapult/third_party/mox3/mox3/tests/
Dtest_mox.py37 def testAtLeastOneMethod(self): argument
38 self.assertRaises(ValueError, mox.ExpectedMethodCallsError, [])
40 def testOneError(self): argument
44 self.assertEqual(
49 def testManyErrors(self): argument
59 self.assertEqual(
71 def testValidOr(self): argument
73 self.assertTrue(mox.Or(mox.IsA(dict), mox.IsA(str)) == {})
74 self.assertTrue(mox.Or(mox.IsA(dict), mox.IsA(str)) == 'test')
75 self.assertTrue(mox.Or(mox.IsA(str), mox.IsA(str)) == 'test')
[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.abi_library_root = None
56 self.env = {}
57 self.use_target = False
[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/autotest/client/site_tests/firmware_TouchMTB/
Dtest_flow.py37 def __init__(self, device_geometry, device, keyboard, win, parser, output, argument
39 self.device_geometry = device_geometry
40 self.device = device
41 self.device_node = self.device.device_node
42 self.keyboard = keyboard
43 self.firmware_version = firmware_version
44 self.output = output
45 self.board = board
46 self.test_version = test_version
47 self.output.print_report('%s' % test_version)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/ec2/
Dinstance.py61 def __init__(self, code=0, name=None): argument
62 self.code = code
63 self.name = name
65 def __repr__(self): argument
66 return '%s(%d)' % (self.name, self.code)
68 def startElement(self, name, attrs, connection): argument
71 def endElement(self, name, value, connection): argument
73 self.code = int(value)
75 self.name = value
77 setattr(self, name, value)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/ec2/
Dtest_connection.py21 def setUp(self): argument
22 super(TestEC2ConnectionBase, self).setUp()
23 self.ec2 = self.service_connection
28 def default_body(self): argument
83 def test_get_reserved_instance_offerings(self): argument
84 self.set_http_response(status_code=200)
85 response = self.ec2.get_all_reserved_instances_offerings()
86 self.assertEqual(len(response), 2)
88 self.assertEqual(instance.id, '2964d1bf71d8')
89 self.assertEqual(instance.instance_type, 'c1.medium')
[all …]

12345678910>>...217