/third_party/icu/icu4c/source/python/icutools/databuilder/ |
H A D | filtration.py | 46 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/jinja2/ |
H A D | utils.py | 428 def __init__(self, capacity: int) -> None: 429 self.capacity = capacity 430 self._mapping: t.Dict[t.Any, t.Any] = {} 431 self._queue: "te.Deque[t.Any]" = deque() 432 self._postinit() 434 def _postinit(self) -> None: 436 self._popleft = self._queue.popleft 437 self._pop = self [all...] |
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | glX_proto_size.py | 35 def __init__(self, func_name, enum_dict): 36 self.name = func_name 37 self.mode = 1 38 self.sig = None 46 self.enums = {} 55 self.count = {} 58 # Fill self.count and self.enums using the dictionary of enums 75 if mode_set and mode != self.mode: 78 self [all...] |
/third_party/node/deps/openssl/openssl/Configurations/ |
H A D | gentemplate.pm | 53 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/python/Lib/ctypes/test/ |
H A D | test_callbacks.py | 13 ## def tearDown(self): 17 def callback(self, *args): 18 self.got_args = args 21 def check_type(self, typ, arg): 22 PROTO = self.functype.__func__(typ, typ) 23 result = PROTO(self.callback)(arg) 25 self.assertAlmostEqual(result, arg, places=5) 27 self.assertEqual(self.got_args, (arg,)) 28 self [all...] |
H A D | test_byteswap.py | 18 def test_X(self): 25 def test_slots(self): 40 with self.assertRaises(AttributeError): 42 with self.assertRaises(AttributeError): 45 def test_endian_short(self): 47 self.assertIs(c_short.__ctype_le__, c_short) 48 self.assertIs(c_short.__ctype_be__.__ctype_le__, c_short) 50 self.assertIs(c_short.__ctype_be__, c_short) 51 self.assertIs(c_short.__ctype_le__.__ctype_be__, c_short) 53 self [all...] |
/third_party/openssl/Configurations/ |
H A D | gentemplate.pm | 53 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 D | fetch_sources.py | 52 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 D | filtration.py | 46 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 D | test_reprlib.py | 28 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 D | test_plistlib.py | 408 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 D | test_zlib.py | 54 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 D | test_minidom.py | 56 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...] |
/third_party/python/Tools/demo/ |
H A D | queens.py | 16 def __init__(self, n=N): 17 self.n = n 18 self.reset() 20 def reset(self): 21 n = self.n 22 self.y = [None] * n # Where is the queen in column x 23 self.row = [0] * n # Is row[y] safe? 24 self.up = [0] * (2*n-1) # Is upward diagonal[x-y] safe? 25 self.down = [0] * (2*n-1) # Is downward diagonal[x+y] safe? 26 self [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | vkconventions.py | 49 def null(self): 53 def formatVersion(self, name, apivariant, major, minor): 65 def formatExtension(self, name): 70 def struct_macro(self): 79 def constFlagBits(self): 84 def structtype_member_name(self): 89 def nextpointer_member_name(self): 94 def valid_pointer_prefix(self): 98 def is_structure_type_member(self, paramtype, paramname): 100 return paramtype == 'VkStructureType' and paramname == self [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_pkg_import.py | 14 def __init__(self, *args, **kw): 15 self.package_name = 'PACKAGE_' 16 while self.package_name in sys.modules: 17 self.package_name += random.choice(string.ascii_letters) 18 self.module_name = self.package_name + '.foo' 19 unittest.TestCase.__init__(self, *args, **kw) 21 def remove_modules(self): 22 for module_name in (self.package_name, self [all...] |
/third_party/vulkan-headers/registry/ |
H A D | vkconventions.py | 49 def null(self): 53 def formatVersion(self, name, apivariant, major, minor): 65 def formatExtension(self, name): 70 def struct_macro(self): 79 def constFlagBits(self): 84 def structtype_member_name(self): 89 def nextpointer_member_name(self): 94 def valid_pointer_prefix(self): 98 def is_structure_type_member(self, paramtype, paramname): 100 return paramtype == 'VkStructureType' and paramname == self [all...] |
/foundation/ability/idl_tool/idl_tool_2/ |
H A D | build_hdi_files_info.py | 36 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/PyYAML/yaml/ |
H A D | _yaml.pyx | 69 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...] |
/foundation/communication/dsoftbus/core/connection/manager/ |
H A D | softbus_conn_flow_control.c | 30 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...] |
/test/testfwk/developer_test/aw/python/distributed/common/ |
H A D | devices.py | 86 def __init__(self, conn_type, remote_ip="", device_sn="", repote_port="", name=""): 87 self.conn_type = conn_type 88 self.device_sn = device_sn 89 self.name = name 90 self.test_path = "data/test" 92 self.device_params = self.get_device_hdc_para( 96 self.device_params = self.get_device_para( 98 self [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | ninja_syntax.py | 20 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 D | ninja_syntax.py | 20 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 D | cpp.py | 27 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 D | graphlib.py | 12 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...] |