/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/ |
D | tokenizer.py | 37 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 …]
|
D | html5parser.py | 55 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/ |
D | base_encoder_test.py | 29 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 …]
|
D | bar_chart_test.py | 31 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/ |
D | task_unittest.py | 45 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/ |
D | fake_filesystem_test.py | 45 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/lldb/test/unittest2/test/ |
D | test_case.py | 22 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 …]
|
/external/autotest/client/site_tests/network_ShillInitScripts/ |
D | network_ShillInitScripts.py | 37 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/selinux/sepolgen/src/sepolgen/ |
D | refpolicy.py | 53 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/ |
D | gui.py | 107 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/telemetry/telemetry/internal/platform/ |
D | tracing_controller_backend_unittest.py | 19 def __init__(self): argument 20 super(PlatformBackend, self).__init__() 21 self._mock_files = {} 23 def GetOSName(self): argument 32 def device(self): argument 38 self, platform, start=True, clock_sync=True, split_collection=True): argument 39 super(FakeTracingAgentBase, self).__init__(platform) 40 self._start = start 41 self._clock_sync = clock_sync 42 self._sync_seen = False [all …]
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | base_config_unittest.py | 20 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/chromium-trace/catapult/devil/devil/android/ |
D | device_utils_test.py | 34 def __init__(self, value): argument 35 self._value = value 37 def __eq__(self, other): argument 38 return self._value in other 40 def __repr__(self): argument 41 return '<AnyStringWith: %s>' % self._value 46 def __init__(self, path, package_name, perms=None): argument 47 self.path = path 48 self.package_name = package_name 49 self.perms = perms [all …]
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
D | tree.py | 67 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 …]
|
/external/selinux/policycoreutils/gui/ |
D | polgengui.py | 116 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/lldb/test/functionalities/watchpoint/watchpoint_commands/ |
D | TestWatchpointCommands.py | 15 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.') 22 … self.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/ |
D | screen.py | 48 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/autotest/client/virt/ |
D | virt_step_editor.py | 113 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/lldb/test/functionalities/data-formatter/data-formatter-objc/ |
D | TestDataFormatterObjC.py | 19 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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudformation/ |
D | stack.py | 7 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/antlr/antlr-3.4/runtime/Python/tests/ |
D | t042ast.py | 16 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/libcxx/test/libcxx/test/ |
D | config.py | 48 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/autotest/client/common_lib/ |
D | base_job_unittest.py | 17 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/ |
D | test_mox.py | 37 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/ |
D | test_mox.py | 37 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 …]
|