Home
last modified time | relevance | path

Searched refs:self (Results 751 - 775 of 3802) sorted by relevance

1...<<31323334353637383940>>...153

/third_party/vk-gl-cts/scripts/android/
H A Dbuild_apk.py47 def __init__(self, path, desired_version):
48 self.path = path
49 self.buildToolsVersion = SDKEnv.selectBuildToolsVersion(self.path, desired_version)
82 def getPlatformLibrary (self, apiVersion):
83 return os.path.join(self.path, "platforms", "android-%d" % apiVersion, "android.jar")
85 def getBuildToolsPath (self):
86 return os.path.join(self.path, "build-tools", "%d.%d.%d" % self.buildToolsVersion)
89 def __init__(self, pat
[all...]
/third_party/python/Lib/test/
H A Dtest_unary.py7 def test_negative(self):
8 self.assertTrue(-2 == 0 - 2)
9 self.assertEqual(-0, 0)
10 self.assertEqual(--2, 2)
11 self.assertTrue(-2 == 0 - 2)
12 self.assertTrue(-2.0 == 0 - 2.0)
13 self.assertTrue(-2j == 0 - 2j)
15 def test_positive(self):
16 self.assertEqual(+2, 2)
17 self
[all...]
H A Dtest_mmap.py34 def setUp(self):
38 def tearDown(self):
44 def test_basic(self):
62 self.assertEqual(m.find(b'foo'), PAGESIZE)
64 self.assertEqual(len(m), 2*PAGESIZE)
66 self.assertEqual(m[0], 0)
67 self.assertEqual(m[0:3], b'\0\0\0')
70 self.assertRaises(IndexError, m.__getitem__, len(m))
71 self.assertRaises(IndexError, m.__setitem__, len(m), b'\0')
78 self
[all...]
H A Dtest_docxmlrpc.py17 def make_request_and_skip(self):
18 self.client.request("GET", "/")
19 self.client.getresponse()
34 "can be used by POSTing to /RPC2. Try self.add, too.")
38 def test_method(self, arg):
40 self.arg = arg
58 def method_annotation(self, x: bytes):
71 def setUp(self):
75 self.serv = make_server()
76 self
[all...]
H A Dtest_uuid.py35 def test_safe_uuid_enum(self):
42 def test_UUID(self):
43 equal = self.assertEqual
55 0, 0, self.uuid.RESERVED_NCS, None),
64 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None),
73 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3),
82 0x678123412345678, 0x1234, self.uuid.RESERVED_NCS, None),
91 0x1d19dad6ba7b810, 0xb4, self.uuid.RFC_4122, 1),
100 0x1d19dad6ba7b811, 0xb4, self.uuid.RFC_4122, 1),
109 0x1d19dad6ba7b812, 0xb4, self
[all...]
H A Dtest_pkgutil.py23 def setUp(self):
24 self.dirname = tempfile.mkdtemp()
25 self.addCleanup(shutil.rmtree, self.dirname)
26 sys.path.insert(0, self.dirname)
28 def tearDown(self):
31 def test_getdata_filesys(self):
38 package_dir = os.path.join(self.dirname, pkg)
54 self.assertEqual(res1, RESOURCE_DATA)
56 self
[all...]
H A Dtest_socketserver.py79 def setUp(self):
81 self.port_seed = 0
82 self.test_files = []
84 def tearDown(self):
88 for fn in self.test_files:
93 self.test_files[:] = []
95 def pickaddr(self, proto):
103 self.test_files.append(fn)
106 def make_server(self, addr, svrcls, hdlrbase):
108 def handle_error(self, reques
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_api.py21 def test_module_import(self):
25 module = self.init.import_module('top_level')
26 self.assertEqual(module.__name__, 'top_level')
28 def test_absolute_package_import(self):
35 module = self.init.import_module(name)
36 self.assertEqual(module.__name__, name)
38 def test_shallow_relative_package_import(self):
47 self.init.import_module(pkg_name)
48 module = self.init.import_module(relative_name, pkg_name)
49 self
[all...]
/third_party/node/deps/v8/third_party/jinja2/
H A Dbccache.py46 def __init__(self, environment, key, checksum):
47 self.environment = environment
48 self.key = key
49 self.checksum = checksum
50 self.reset()
52 def reset(self):
54 self.code = None
56 def load_bytecode(self, f):
61 self.reset()
65 if self
[all...]
H A Dexceptions.py13 def __init__(self, message=None):
16 Exception.__init__(self, message)
19 def message(self):
20 if self.args:
21 message = self.args[0]
25 def __unicode__(self):
26 return self.message or u""
30 def __init__(self, message=None):
31 Exception.__init__(self, message)
34 def message(self)
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A Dbccache.py69 def __init__(self, environment, key, checksum):
70 self.environment = environment
71 self.key = key
72 self.checksum = checksum
73 self.reset()
75 def reset(self):
77 self.code = None
79 def load_bytecode(self, f):
84 self.reset()
88 if self
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dschema_generator.py47 def __init__(self,
66 GeneratorOptions.__init__(self, **kwargs)
68 self.prefixText = prefixText
71 self.genFuncPointers = genFuncPointers
74 self.protectFile = protectFile
77 self.protectFeature = protectFeature
80 self.protectProto = protectProto
83 self.protectProtoStr = protectProtoStr
86 self.apicall = apicall
89 self
[all...]
/third_party/skia/third_party/externals/jinja2/
H A Dbccache.py46 def __init__(self, environment, key, checksum):
47 self.environment = environment
48 self.key = key
49 self.checksum = checksum
50 self.reset()
52 def reset(self):
54 self.code = None
56 def load_bytecode(self, f):
61 self.reset()
65 if self
[all...]
/third_party/mesa3d/src/panfrost/bifrost/valhall/
H A Dvalhall.py48 def __init__(self, value, default):
49 self.value = value
50 self.default = default
53 def __init__(self, name, values):
54 self.name = name
55 self.values = values
56 self.bare_values = [x.value for x in values]
61 self.default = defaults[0]
76 def __init__(self, name, start, size, implied = False, force_enum = None):
77 self
[all...]
/third_party/python/Lib/
H A Dselectors.py63 def __init__(self, selector):
64 self._selector = selector
66 def __len__(self):
67 return len(self._selector._fd_to_key)
69 def __getitem__(self, fileobj):
71 fd = self._selector._fileobj_lookup(fileobj)
72 return self._selector._fd_to_key[fd]
76 def __iter__(self):
77 return iter(self._selector._fd_to_key)
96 def register(self, fileob
[all...]
/third_party/python/Lib/lib2to3/
H A Drefactor.py164 def __init__(self, fixer_names, options=None, explicit=None):
172 self.fixers = fixer_names
173 self.explicit = explicit or []
174 self.options = self._default_options.copy()
176 self.options.update(options)
177 self.grammar = pygram.python_grammar.copy()
179 if self.options['print_function']:
180 del self.grammar.keywords["print"]
181 elif self
[all...]
/third_party/python/Tools/clinic/
H A Dclinic.py52 def __repr__(self):
59 def __repr__(self):
66 def __repr__(self):
311 def __init__(self):
315 self.declarations = []
319 self.initializers = []
323 self.modifications = []
327 self.keywords = []
331 self.format_units = []
334 self
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/
H A Dp2p_group_add.py64 def __init__(self,interface_name,wpas_dbus_interface,persistent,frequency,
67 self.interface_name = interface_name
68 self.wpas_dbus_interface = wpas_dbus_interface
69 self.persistent = persistent
70 self.frequency = frequency
71 self.persistent_group_object = persistent_group_object
74 threading.Thread.__init__(self)
75 self.daemon = True
78 self.wpas_dbus_opath = "/" + \
79 self
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/
H A Dp2p_group_add.py64 def __init__(self,interface_name,wpas_dbus_interface,persistent,frequency,
67 self.interface_name = interface_name
68 self.wpas_dbus_interface = wpas_dbus_interface
69 self.persistent = persistent
70 self.frequency = frequency
71 self.persistent_group_object = persistent_group_object
74 threading.Thread.__init__(self)
75 self.daemon = True
78 self.wpas_dbus_opath = "/" + \
79 self
[all...]
/third_party/mesa3d/src/intel/genxml/
H A Dgen_bits_header.py134 def __init__(self, z):
136 self.tenx = int(float(z) * 10)
138 def __lt__(self, other):
139 return self.tenx < other.tenx
141 def __hash__(self):
142 return hash(self.tenx)
144 def __eq__(self, other):
145 return self.tenx == other.tenx
147 def prefix(self, token):
148 gen = self
[all...]
/third_party/python/Tools/c-analyzer/c_analyzer/
H A Dinfo.py27 def __init__(self, name):
91 def __init__(self, item, typedecl=None, **extra):
93 self.item = item
110 self.typedecl = typedecl
111 self._extra = extra
112 self._locked = True
114 self._validate()
116 def _validate(self):
117 item = self.item
118 extra = self
[all...]
/third_party/python/Lib/test/test_importlib/frozen/
H A Dtest_loader.py43 def exec_module(self, name, origname=None):
45 is_package = self.machinery.FrozenImporter.is_package(name)
46 spec = self.machinery.ModuleSpec(
48 self.machinery.FrozenImporter,
61 self.machinery.FrozenImporter.exec_module(module)
65 self.assertTrue(module.initialized)
66 self.assertTrue(hasattr(module, '__spec__'))
67 self.assertEqual(module.__spec__.origin, 'frozen')
70 def test_module(self):
72 module, output = self
[all...]
/third_party/node/tools/gyp/pylib/gyp/
H A DMSVSSettings_test.py16 def setUp(self):
17 self.stderr = StringIO()
19 def _ExpectedWarnings(self, expected):
21 self.stderr.seek(0)
22 actual = self.stderr.read().split("\n")
24 self.assertEqual(sorted(expected), sorted(actual))
26 def testValidateMSVSSettings_tool_names(self):
39 self.stderr,
41 self._ExpectedWarnings(
45 def testValidateMSVSSettings_settings(self)
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A DMSVSSettings_test.py16 def setUp(self):
17 self.stderr = StringIO()
19 def _ExpectedWarnings(self, expected):
21 self.stderr.seek(0)
22 actual = self.stderr.read().split("\n")
24 self.assertEqual(sorted(expected), sorted(actual))
26 def testValidateMSVSSettings_tool_names(self):
39 self.stderr,
41 self._ExpectedWarnings(
45 def testValidateMSVSSettings_settings(self)
[all...]
/third_party/python/Lib/urllib/
H A Dresponse.py19 def __init__(self, fp):
20 super(addbase, self).__init__(fp, '<urllib response>', delete=False)
22 self.fp = fp
24 def __repr__(self):
25 return '<%s at %r whose fp = %r>' % (self.__class__.__name__,
26 id(self), self.file)
28 def __enter__(self):
29 if self.fp.closed:
31 return self
[all...]

Completed in 12 milliseconds

1...<<31323334353637383940>>...153