/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Object/POM/ |
D | CommonObject.py | 24 def __init__(self): argument 25 self.HelpText = TextObject() 27 def SetHelpText(self, HelpText): argument 28 self.HelpText = HelpText 30 def GetHelpText(self): argument 31 return self.HelpText 38 def __init__(self): argument 39 self.HelpTextList = [] 41 def SetHelpTextList(self, HelpTextList): argument 42 self.HelpTextList = HelpTextList [all …]
|
D | ModuleObject.py | 33 def __init__(self): argument 34 self.SupportedBootModes = '' 35 CommonPropertiesObject.__init__(self) 36 HelpTextListObject.__init__(self) 38 def SetSupportedBootModes(self, SupportedBootModes): argument 39 self.SupportedBootModes = SupportedBootModes 41 def GetSupportedBootModes(self): argument 42 return self.SupportedBootModes 48 def __init__(self): argument 49 self.EventType = '' [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/CommonDataClass/ |
D | FdfClass.py | 23 def __init__(self): argument 24 self.FdUiName = '' 25 self.CreateFileName = None 26 self.BaseAddress = None 27 self.BaseAddressPcd = None 28 self.Size = None 29 self.SizePcd = None 30 self.ErasePolarity = None 32 self.BlockSizeList = [] 34 self.DefineVarDict = {} [all …]
|
D | ModuleClass.py | 55 def __init__(self): argument 56 IdentificationClass.__init__(self) 57 CommonHeaderClass.__init__(self) 58 DefineClass.__init__(self) 59 self.ModuleType = '' 60 self.SupModuleList = [] 61 self.SupArchList = [] 62 self.BinaryModule = False 63 self.OutputFileBasename = '' 64 self.ClonedFrom = [] [all …]
|
D | PlatformClass.py | 28 def __init__(self): argument 29 IncludeStatementClass.__init__(self) 30 self.SkuInfoList = {} 56 def __init__(self): argument 57 IdentificationClass.__init__(self) 58 CommonHeaderClass.__init__(self) 59 DefineClass.__init__(self) 60 self.DscSpecification = '' 61 self.SupArchList = [] 62 self.BuildTargets = [] [all …]
|
D | CommonClass.py | 45 def __init__(self, Usage = None, FeatureFlag = '', SupArchList = None, HelpText = ''): argument 46 self.Usage = Usage 47 if self.Usage == None: 48 self.Usage = [] 49 self.FeatureFlag = FeatureFlag 50 self.SupArchList = SupArchList 51 if self.SupArchList == None: 52 self.SupArchList = [] 53 self.HelpText = HelpText 54 self.HelpTextList = [] [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_int_literal.py | 12 def test_hex_baseline(self): argument 14 self.assertEqual(0x0, 0X0) 15 self.assertEqual(0x1, 0X1) 16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef) 18 self.assertEqual(0x0, 0) 19 self.assertEqual(0x10, 16) 20 self.assertEqual(0x7fffffff, 2147483647) 21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807) 23 self.assertEqual(-(0x0), 0) 24 self.assertEqual(-(0x10), -16) [all …]
|
D | test_parser.py | 14 def roundtrip(self, f, s): argument 20 self.fail("could not roundtrip %r: %s" % (s, why)) 22 self.assertEqual(t, st2.totuple(), 25 def check_expr(self, s): argument 26 self.roundtrip(parser.expr, s) 28 def test_flags_passed(self): argument 35 self.assertIsInstance(scope["x"], unicode) 37 def check_suite(self, s): argument 38 self.roundtrip(parser.suite, s) 40 def test_yield_statement(self): argument [all …]
|
D | string_tests.py | 10 def __init__(self, seq='wxyz'): self.seq = seq argument 11 def __len__(self): return len(self.seq) argument 12 def __getitem__(self, i): return self.seq[i] argument 15 def __init__(self): self.seq = [7, 'hello', 123L] argument 18 def __init__(self): self.seq = ['a', 'b', 'c'] argument 19 def __len__(self): return 8 argument 33 def fixtype(self, obj): argument 35 return self.__class__.type2test(obj) 37 return [self.fixtype(x) for x in obj] 39 return tuple([self.fixtype(x) for x in obj]) [all …]
|
D | test_sets.py | 15 def test_repr(self): argument 16 if self.repr is not None: 17 self.assertEqual(repr(self.set), self.repr) 19 def test_length(self): argument 20 self.assertEqual(len(self.set), self.length) 22 def test_self_equality(self): argument 23 self.assertEqual(self.set, self.set) 25 def test_equivalent_equality(self): argument 26 self.assertEqual(self.set, self.dup) 28 def test_copy(self): argument [all …]
|
D | test_index.py | 9 def __index__(self): argument 10 return self.ind 13 def __index__(self): argument 14 return self.ind 17 def __index__(self): argument 18 return self 21 def __index__(self): argument 22 return self 25 def setUp(self): argument 26 self.o = oldstyle() [all …]
|
D | test_weakset.py | 20 def __init__(self, value): argument 21 self.value = value 22 def __eq__(self, other): argument 23 if type(other) != type(self): 25 return other.value == self.value 27 def __ne__(self, other): argument 28 return not self.__eq__(other) 30 def __hash__(self): argument 31 return hash((SomeClass, self.value)) 35 def setUp(self): argument [all …]
|
D | test_httpservers.py | 30 def log_message(self, *args): argument 35 def __init__(self): argument 36 self.get_called = False 37 self.protocol_version = "HTTP/1.1" 39 def do_GET(self): argument 40 self.get_called = True 41 self.send_response(200) 42 self.send_header('Content-Type', 'text/html') 43 self.end_headers() 44 self.wfile.write(b'<html><body>Data</body></html>\r\n') [all …]
|
D | buffer_tests.py | 12 def marshal(self, x): argument 16 def test_islower(self): argument 17 self.assertFalse(self.marshal(b'').islower()) 18 self.assertTrue(self.marshal(b'a').islower()) 19 self.assertFalse(self.marshal(b'A').islower()) 20 self.assertFalse(self.marshal(b'\n').islower()) 21 self.assertTrue(self.marshal(b'abc').islower()) 22 self.assertFalse(self.marshal(b'aBc').islower()) 23 self.assertTrue(self.marshal(b'abc\n').islower()) 24 self.assertRaises(TypeError, self.marshal(b'abc').islower, 42) [all …]
|
D | test_funcattrs.py | 6 def setUp(self): argument 8 def a(self): argument 12 self.f = F 13 self.fi = F() 14 self.b = b 16 def cannot_set_attr(self, obj, name, value, exceptions): argument 23 self.fail("shouldn't be able to set %s to %r" % (name, value)) 29 self.fail("shouldn't be able to del %s" % name) 34 def test_module(self): argument 35 self.assertEqual(self.b.__module__, __name__) [all …]
|
D | seq_tests.py | 17 def __init__(self, seqn): argument 18 self.seqn = seqn 19 def __getitem__(self, i): argument 20 return self.seqn[i] 24 def __init__(self, seqn): argument 25 self.seqn = seqn 26 self.i = 0 27 def __iter__(self): argument 28 return self 29 def next(self): argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/ |
D | test_util.py | 25 def assertStr(self, node, string): argument 28 self.assertEqual(str(node), string) 32 def is_tuple(self, string): argument 35 def test_valid(self): argument 36 self.assertTrue(self.is_tuple("(a, b)")) 37 self.assertTrue(self.is_tuple("(a, (b, c))")) 38 self.assertTrue(self.is_tuple("((a, (b, c)),)")) 39 self.assertTrue(self.is_tuple("(a,)")) 40 self.assertTrue(self.is_tuple("()")) 42 def test_invalid(self): argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/ |
D | ast.py | 25 def getChildren(self): argument 27 def __iter__(self): argument 28 for n in self.getChildren(): 30 def asList(self): # for backwards compatibility argument 31 return self.getChildren() 32 def getChildNodes(self): argument 41 def __init__(self, node): argument 42 self.node = node 44 def getChildren(self): argument 45 return self.node, [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | wave.py | 125 def initfp(self, file): argument 126 self._convert = None 127 self._soundpos = 0 128 self._file = Chunk(file, bigendian = 0) 129 if self._file.getname() != 'RIFF': 131 if self._file.read(4) != 'WAVE': 133 self._fmt_chunk_read = 0 134 self._data_chunk = None 136 self._data_seek_needed = 1 138 chunk = Chunk(self._file, bigendian = 0) [all …]
|
D | shlex.py | 23 def __init__(self, instream=None, infile=None, posix=False): argument 27 self.instream = instream 28 self.infile = infile 30 self.instream = sys.stdin 31 self.infile = None 32 self.posix = posix 34 self.eof = None 36 self.eof = '' 37 self.commenters = '#' 38 self.wordchars = ('abcdfeghijklmnopqrstuvwxyz' [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
D | test_case.py | 20 def runTest(self): pass argument 21 def test1(self): pass argument 24 def test2(self): pass argument 29 def __init__(self, events): argument 30 super(Test.LoggingTestCase, self).__init__('test') 31 self.events = events 33 def setUp(self): argument 34 self.events.append('setUp') 36 def test(self): argument 37 self.events.append('test') [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
D | FdfParserLite.py | 72 def __init__(self, Str, File=None, Line=None): argument 75 self.FileName = FileLineTuple[0] 76 self.LineNumber = FileLineTuple[1] 77 self.message = Str + str(self.LineNumber) 78 self.ToolName = 'FDF Parser' 89 def __init__(self, FileName, Line): argument 90 self.FileName = FileName 91 self.DefinedAtLine = Line 92 self.MacroName = None 93 self.MacroValue = None [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/ |
D | FdfParser.py | 126 def __init__(self, Str, File = None, Line = None): argument 129 self.FileName = FileLineTuple[0] 130 self.LineNumber = FileLineTuple[1] 131 self.OriginalLineNumber = Line 132 self.Message = Str 133 self.ToolName = 'FdfParser' 135 def __str__(self): argument 136 return self.Message 147 def __init__(self, FileName, Line): argument 148 self.FileName = FileName [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/ |
D | bgenObjectDefinition.py | 12 def __init__(self, name, prefix, itselftype): argument 22 GeneratorGroup.__init__(self, prefix or name) 23 self.name = name 24 self.itselftype = itselftype 25 self.objecttype = name + 'Object' 26 self.typename = name + '_Type' 27 self.static = "static " # set to "" to make <type>_New and <type>_Convert public 28 self.modulename = None 29 if hasattr(self, "assertions"): 30 self.assertions() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | texi2html.py | 103 def __init__(self, dir, name, topname, title, next, prev, up): argument 104 self.dirname = dir 105 self.name = name 107 self.topname = topname 109 self.topname = name 110 self.title = title 111 self.next = next 112 self.prev = prev 113 self.up = up 114 self.lines = [] [all …]
|