Home
last modified time | relevance | path

Searched refs:self (Results 926 - 950 of 3802) sorted by relevance

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

/third_party/openssl/Configurations/
H A Dgentemplate.pm53 my $self = shift;
56 my $fh = $self->{output};
82 my $self = shift;
88 my @list = @{ $self->{info}->{depends}->{$thing} //
89 $self->{info}->{depends}->{$extensionlessthing}
100 next if defined $self->{info}->{attributes}->{depends}->{$thing}->{$item}->{'weak'};
101 my @resolved = $self->collectdepends($item, @listsofar, $item);
113 my $self = shift;
140 } @{$self->{info}->{depends}->{$item} // []}
186 my $self
[all...]
/third_party/vk-gl-cts/external/
H A Dfetch_sources.py52 def __init__(self, baseDir, extractDir):
53 self.baseDir = baseDir
54 self.extractDir = extractDir
56 def clean (self):
57 fullDstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir)
66 def __init__(self, url, checksum, baseDir, extractDir = "src", postExtract=None):
67 Source.__init__(self, baseDir, extractDir)
68 self.url = url
69 self
[all...]
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/
H A Dfiltration.py46 def filter(self, request):
47 if not request.apply_file_filter(self):
50 assert self.match(file)
67 def match(self, file):
72 def match(self, file):
77 def match(self, file):
82 def __init__(self, json_data):
84 self.is_includelist = True
85 self.includelist = json_data["whitelist"]
87 self
[all...]
/third_party/python/Lib/test/
H A Dtest_reprlib.py28 def test_string(self):
29 eq = self.assertEqual
42 def test_tuple(self):
43 eq = self.assertEqual
61 def test_container(self):
65 eq = self.assertEqual
114 def test_set_literal(self):
115 eq = self.assertEqual
121 def test_frozenset(self):
122 eq = self
[all...]
H A Dtest_plistlib.py408 def tearDown(self):
414 def _create(self, fmt=None):
441 def test_create(self):
442 pl = self._create()
443 self.assertEqual(pl["aString"], "Doodah")
444 self.assertEqual(pl["aDict"]["aFalseValue"], False)
446 def test_io(self):
447 pl = self._create()
454 self.assertEqual(dict(pl), dict(pl2))
456 self
[all...]
H A Dtest_zlib.py54 def test_library_version(self):
60 self.assertEqual(zlib.ZLIB_RUNTIME_VERSION[0], zlib.ZLIB_VERSION[0])
65 def test_crc32start(self):
66 self.assertEqual(zlib.crc32(b""), zlib.crc32(b"", 0))
67 self.assertTrue(zlib.crc32(b"abc", 0xffffffff))
69 def test_crc32empty(self):
70 self.assertEqual(zlib.crc32(b"", 0), 0)
71 self.assertEqual(zlib.crc32(b"", 1), 1)
72 self.assertEqual(zlib.crc32(b"", 432), 432)
74 def test_adler32start(self)
[all...]
H A Dtest_minidom.py56 def confirm(self, test, testname = "Test"):
57 self.assertTrue(test, testname)
59 def checkWholeText(self, node, s):
61 self.confirm(t == s, "looking for %r, found %r" % (s, t))
63 def testDocumentAsyncAttr(self):
65 self.assertFalse(doc.async_)
66 self.assertFalse(Document.async_)
68 def testParseFromBinaryFile(self):
72 self.confirm(isinstance(dom, Document))
74 def testParseFromTextFile(self)
[all...]
H A Dtest_format.py98 def test_common_format(self):
286 def test_str_format(self):
319 def test_bytes_and_bytearray_format(self):
330 def __bytes__(self):
393 def test_nul(self):
400 def test_non_ascii(self):
403 self.assertEqual(format("abc", "\u2007<5"), "abc\u2007\u2007")
404 self.assertEqual(format(123, "\u2007<5"), "123\u2007\u2007")
405 self.assertEqual(format(12.3, "\u2007<6"), "12.3\u2007\u2007")
406 self
[all...]
/foundation/communication/dsoftbus/core/connection/manager/
H A Dsoftbus_conn_flow_control.c30 static int32_t Apply(struct ConnSlideWindowController *self, int32_t expect) in Apply() argument
32 CONN_CHECK_AND_RETURN_RET_LOGE(self, SOFTBUS_INVALID_PARAM, CONN_COMMON, "invalid parameter, controller is null"); in Apply()
34 int32_t status = SoftBusMutexLock(&self->lock); in Apply()
36 if (!self->active) { in Apply()
37 (void)SoftBusMutexUnlock(&self->lock); in Apply()
44 timestamp_t expiredTimestamp = now - (timestamp_t)self->windowInMillis; in Apply()
46 LIST_FOR_EACH_ENTRY_SAFE(it, next, &self->histories, struct HistoryNode, node) { in Apply()
56 if (self->quotaInBytes <= appliedTotal) { in Apply()
57 unsigned int sleepMs = (timestamp_t)self->windowInMillis - (now - currentWindowStartTimestamp); in Apply()
58 (void)SoftBusMutexUnlock(&self in Apply()
78 CleanupHistoriesUnsafe(struct ConnSlideWindowController *self) CleanupHistoriesUnsafe() argument
88 ChangeConfiguration( struct ConnSlideWindowController *self, bool active, int32_t windowInMillis, int32_t quotaInBytes) ChangeConfiguration() argument
111 Enable(struct ConnSlideWindowController *self, int32_t windowInMillis, int32_t quotaInBytes) Enable() argument
116 Disable(struct ConnSlideWindowController *self) Disable() argument
121 ConnSlideWindowControllerConstructor(struct ConnSlideWindowController *self) ConnSlideWindowControllerConstructor() argument
138 ConnSlideWindowControllerDestructor(struct ConnSlideWindowController *self) ConnSlideWindowControllerDestructor() argument
160 ConnSlideWindowControllerDelete(struct ConnSlideWindowController *self) ConnSlideWindowControllerDelete() argument
[all...]
/third_party/node/tools/gyp/pylib/gyp/
H A Dninja_syntax.py20 def __init__(self, output, width=78):
21 self.output = output
22 self.width = width
24 def newline(self):
25 self.output.write("\n")
27 def comment(self, text):
28 for line in textwrap.wrap(text, self.width - 2):
29 self.output.write("# " + line + "\n")
31 def variable(self, key, value, indent=0):
36 self
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dninja_syntax.py20 def __init__(self, output, width=78):
21 self.output = output
22 self.width = width
24 def newline(self):
25 self.output.write("\n")
27 def comment(self, text):
28 for line in textwrap.wrap(text, self.width - 2):
29 self.output.write("# " + line + "\n")
31 def variable(self, key, value, indent=0):
36 self
[all...]
/third_party/python/Tools/clinic/
H A Dcpp.py27 def __init__(self, filename=None, *, verbose=False):
28 self.stack = []
29 self.in_comment = False
30 self.continuation = None
31 self.line_number = 0
32 self.filename = filename
33 self.verbose = verbose
35 def __repr__(self):
38 str(id(self)),
39 " line=", str(self
[all...]
/third_party/python/Lib/
H A Dgraphlib.py12 def __init__(self, node):
14 self.node = node
19 self.npredecessors = 0
23 self.successors = []
44 def __init__(self, graph=None):
45 self._node2info = {}
46 self._ready_nodes = None
47 self._npassedout = 0
48 self._nfinished = 0
52 self
[all...]
/third_party/python/Lib/test/test_importlib/import_/
H A Dtest___package__.py37 def import_module(self, globals_):
38 with self.mock_modules('pkg.__init__', 'pkg.fake') as importer:
40 self.__import__('pkg.fake')
41 module = self.__import__('',
46 def test_using___package__(self):
48 module = self.import_module({'__package__': 'pkg.fake'})
49 self.assertEqual(module.__name__, 'pkg')
51 def test_using___name__(self):
55 module = self.import_module({'__name__': 'pkg.fake',
57 self
[all...]
/third_party/vk-gl-cts/modules/gles3/scripts/
H A Dgen-qualification_order.py108 def __init__(self, compileFail, invariantInput, paramList):
109 self.compileFail = 'expect compile_fail' if compileFail else 'expect pass'
110 self.name = ''
116 self.name += p.name
118 self.name += '_'
125 self.name += "_invariant_input"
133 self.variableVtx = variables.replace("anon_centroid", "out")
134 self.variableFrg = variables.replace("anon_centroid", "in")
135 self.variableVtx = self
[all...]
/foundation/ability/idl_tool/idl_tool_2/
H A Dbuild_hdi_files_info.py36 def __init__(self, file_name, token_type, value):
37 self.token_type = token_type
38 self.value = value
39 self.row = 1
40 self.col = 1
41 self.file_name = file_name
43 def clean(self):
44 self.token_type = TokenType.UNKNOWN
45 self.value = ""
46 self
[all...]
/third_party/python/Modules/
H A D_queuemodule.c42 simplequeue_clear(simplequeueobject *self) in simplequeue_clear() argument
44 Py_CLEAR(self->lst); in simplequeue_clear()
49 simplequeue_dealloc(simplequeueobject *self) in simplequeue_dealloc() argument
51 PyTypeObject *tp = Py_TYPE(self); in simplequeue_dealloc()
53 PyObject_GC_UnTrack(self); in simplequeue_dealloc()
54 if (self->lock != NULL) { in simplequeue_dealloc()
56 if (self->locked > 0) in simplequeue_dealloc()
57 PyThread_release_lock(self->lock); in simplequeue_dealloc()
58 PyThread_free_lock(self->lock); in simplequeue_dealloc()
60 (void)simplequeue_clear(self); in simplequeue_dealloc()
68 simplequeue_traverse(simplequeueobject *self, visitproc visit, void *arg) simplequeue_traverse() argument
86 simplequeueobject *self; simplequeue_new_impl() local
122 _queue_SimpleQueue_put_impl(simplequeueobject *self, PyObject *item, int block, PyObject *timeout) _queue_SimpleQueue_put_impl() argument
150 _queue_SimpleQueue_put_nowait_impl(simplequeueobject *self, PyObject *item) _queue_SimpleQueue_put_nowait_impl() argument
157 simplequeue_pop_item(simplequeueobject *self) simplequeue_pop_item() argument
204 _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObject *cls, int block, PyObject *timeout_obj) _queue_SimpleQueue_get_impl() argument
301 _queue_SimpleQueue_get_nowait_impl(simplequeueobject *self, PyTypeObject *cls) _queue_SimpleQueue_get_nowait_impl() argument
315 _queue_SimpleQueue_empty_impl(simplequeueobject *self) _queue_SimpleQueue_empty_impl() argument
328 _queue_SimpleQueue_qsize_impl(simplequeueobject *self) _queue_SimpleQueue_qsize_impl() argument
[all...]
/third_party/python/Lib/unittest/test/
H A Dtest_suite.py14 def test_1(self): pass
15 def test_2(self): pass
16 def test_3(self): pass
17 def runTest(self): pass
50 def test_init__tests_optional(self):
53 self.assertEqual(suite.countTestCases(), 0)
56 self.assertEqual(suite.countTestCases(), 0)
65 def test_init__empty_tests(self):
68 self.assertEqual(suite.countTestCases(), 0)
71 self
[all...]
/third_party/PyYAML/yaml/
H A D_yaml.pyx69 def __init__(self, object name, size_t index, size_t line, size_t column,
71 self.name = name
72 self.index = index
73 self.line = line
74 self.column = column
75 self.buffer = buffer
76 self.pointer = pointer
78 def get_snippet(self):
81 def __str__(self):
83 % (self
[all...]
/third_party/protobuf/python/google/protobuf/
H A Ddescriptor.py81 self = object.__new__(cls)
82 self._lock = threading.Lock() # pylint: disable=protected-access
83 return self
85 def __enter__(self):
86 self._lock.acquire()
88 def __exit__(self, exc_type, exc_value, exc_tb):
89 self._lock.release()
134 def __init__(self, options, serialized_options, options_class_name):
139 self._options = options
140 self
[all...]
/third_party/mesa3d/src/vulkan/overlay-layer/
H A Dmesa-overlay-control.py20 def __init__(self, path):
29 self.sock = sock
34 self.epoll = epoll
36 def recv(self, timeout):
44 events = self.epoll.poll(timeout)
47 if fd != self.sock.fileno():
55 msg = self.sock.recv(4096)
65 def send(self, msg):
66 self.sock.send(msg)
73 def __init__(self, con
[all...]
/third_party/python/Lib/idlelib/
H A Dtextview.py17 def set(self, lo, hi):
19 self.grid()
21 self.grid_remove()
24 def pack(self, **kwargs):
25 raise TclError(f'{self.__class__.__name__} does not support "pack"')
27 def place(self, **kwargs):
28 raise TclError(f'{self.__class__.__name__} does not support "place"')
34 def __init__(self, master, wrap=NONE, **kwargs):
49 text = self.text = Text(self, wra
[all...]
/third_party/python/Lib/concurrent/futures/
H A Dthread.py47 def __init__(self, future, fn, args, kwargs):
48 self.future = future
49 self.fn = fn
50 self.args = args
51 self.kwargs = kwargs
53 def run(self):
54 if not self.future.set_running_or_notify_cancel():
58 result = self.fn(*self.args, **self
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_windows.py93 def test_find_spec_missing(self):
94 spec = self.machinery.WindowsRegistryFinder.find_spec('spam')
95 self.assertIs(spec, None)
97 def test_find_module_missing(self):
100 loader = self.machinery.WindowsRegistryFinder.find_module('spam')
101 self.assertIs(loader, None)
103 def test_module_found(self):
104 with setup_module(self.machinery, self.test_module):
107 loader = self
[all...]
/third_party/vk-gl-cts/scripts/log/
H A Dbottleneck_report.py31 def __init__(self):
32 self.path = ""
33 self.numberOfTests = 0
34 self.timeOfExecution = 0
37 def __init__(self):
38 self.path = ""
39 self.timeOfExecution = 0
48 def __init__ (self):
49 self.list = []
50 self
[all...]

Completed in 11 milliseconds

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