Home
last modified time | relevance | path

Searched refs:self (Results 1651 - 1675 of 4624) sorted by relevance

1...<<61626364656667686970>>...185

/third_party/python/Lib/test/
H A Dtest_lltrace.py22 def run_code(self, code):
25 self.addCleanup(os_helper.unlink, os_helper.TESTFN)
28 self.assertEqual(stderr, b"")
29 self.assertEqual(status, 0)
39 def test_lltrace(self):
40 stdout = self.run_code("""
56 self.assertIn("GET_ITER", stdout)
57 self.assertIn("FOR_ITER", stdout)
58 self.assertIn("UNARY_POSITIVE", stdout)
59 self
[all...]
H A Dtest_fnmatch.py12 def check_match(self, filename, pattern, should_match=True, fn=fnmatch):
14 self.assertTrue(fn(filename, pattern),
18 self.assertFalse(fn(filename, pattern),
22 def test_fnmatch(self):
23 check = self.check_match
49 def test_slow_fnmatch(self):
50 check = self.check_match
56 def test_mix_bytes_str(self):
57 self.assertRaises(TypeError, fnmatch, 'test', b'*')
58 self
[all...]
H A Dtest_multiprocessing_main_handling.py151 def setUp(self):
152 if self.start_method not in AVAILABLE_START_METHODS:
153 self.skipTest("%r start method not available" % self.start_method)
155 def _check_output(self, script_name, exit_code, out, err):
159 self.assertEqual(exit_code, 0)
160 self.assertEqual(err.decode('utf-8'), '')
161 expected_results = "%s -> [1, 4, 9]" % self.start_method
162 self.assertEqual(out.decode('utf-8').strip(), expected_results)
164 def _check_script(self, script_nam
[all...]
/third_party/skia/third_party/externals/harfbuzz/test/shape/
H A Dhb_test_tools.py74 def __init__ (self, formatter, colors=diff_colors, symbols=diff_symbols):
75 self.formatter = formatter
76 self.colors = colors
77 self.symbols = symbols
79 def colorize_lines (self, lines):
81 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
90 oo[i] += self.formatter.end_color ()
92 oo = [o + self.formatter.escape (l[2:]) for o in oo]
94 if l[0] in self.symbols:
95 i = self
[all...]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_delete_handler.py34 def __init__(self, args):
35 super(HdfDeleteHandler, self).__init__()
36 self.cmd = 'delete'
37 self.handlers = {
38 'vendor': self._delete_vendor_handler,
39 'module': self._delete_module_handler,
40 'driver': self._delete_driver_handler,
41 'module_driver': self._delete_module_driver_handler,
43 self.parser.add_argument("--action_type",
44 help=' '.join(self
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dmarshal_XML.py33 def create_function(self, element, context):
38 def process_element(self, element):
40 super(marshal_function, self).process_element(element)
44 if element.get('name') != self.name:
48 self.fixed_params = []
49 self.variable_params = []
50 for p in self.parameters:
54 self.variable_params.append(p)
56 self.fixed_params.append(p)
59 self
[all...]
/third_party/node/deps/openssl/openssl/util/perl/TLSProxy/
H A DEncryptedExtensions.pm24 my $self = $class->SUPER::new(
32 $self->{extension_data} = "";
34 return $self;
39 my $self = shift;
41 my $extensions_len = unpack('n', $self->data);
48 $extension_data = substr($self->data, 2);
54 if (length($self->data) != 2) {
67 $self->extension_data(\%extensions);
75 my $self = shift;
79 foreach my $key (keys %{$self
[all...]
/third_party/openssl/util/perl/TLSProxy/
H A DEncryptedExtensions.pm24 my $self = $class->SUPER::new(
32 $self->{extension_data} = "";
34 return $self;
39 my $self = shift;
41 my $extensions_len = unpack('n', $self->data);
48 $extension_data = substr($self->data, 2);
54 if (length($self->data) != 2) {
67 $self->extension_data(\%extensions);
75 my $self = shift;
79 foreach my $key (keys %{$self
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Denum_type_wrapper.py48 def __init__(self, enum_type):
50 self._enum_type = enum_type
51 self.DESCRIPTOR = enum_type # pylint: disable=invalid-name
53 def Name(self, number): # pylint: disable=invalid-name
56 return self._enum_type.values_by_number[number].name
63 self._enum_type.name, type(number), number))
67 self._enum_type.name, number))
69 def Value(self, name): # pylint: disable=invalid-name
72 return self._enum_type.values_by_name[name].number
76 self
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_zip.py16 def setUp(self):
18 self._fixture_on_path('example-21.12-py3-none-any.whl')
20 def test_zip_version(self):
21 self.assertEqual(version('example'), '21.12')
23 def test_zip_version_does_not_match(self):
24 with self.assertRaises(PackageNotFoundError):
27 def test_zip_entry_points(self):
30 self.assertEqual(entry_point.value, 'example:main')
32 self.assertEqual(entry_point.value, 'example:main')
34 def test_missing_metadata(self)
[all...]
/third_party/skia/third_party/externals/abseil-cpp/
H A Dconanfile.py26 def configure(self):
27 if self.settings.os == "Windows" and \
28 self.settings.compiler == "Visual Studio" and \
29 Version(self.settings.compiler.version.value) < "14":
32 def build(self):
34 cmake = CMake(self)
39 def package(self):
40 self.copy("LICENSE", dst="licenses")
41 self.copy("*.h", dst="include", src=".")
42 self
[all...]
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Dmessage.c42 MessageHeader* self = (MessageHeader *)_self; in Message_mark() local
43 layout_mark(self->descriptor->layout, Message_data(self)); in Message_mark()
46 void Message_free(void* self) { in Message_free() argument
47 stringsink* unknown = ((MessageHeader *)self)->unknown_fields; in Message_free()
52 xfree(self); in Message_free()
81 static const upb_fielddef* which_oneof_field(MessageHeader* self, const upb_oneofdef* o) { in which_oneof_field() argument
86 slot_read_oneof_case(self->descriptor->layout, Message_data(self), o); in which_oneof_field()
146 static int extract_method_call(VALUE method_name, MessageHeader* self, in extract_method_call() argument
288 MessageHeader* self; Message_method_missing() local
381 MessageHeader* self; Message_respond_to_missing() local
408 MessageHeader* self; Message_initialize_kwarg() local
483 MessageHeader* self; Message_initialize() local
511 MessageHeader* self; Message_dup() local
528 MessageHeader* self; Message_deep_copy() local
553 MessageHeader* self; Message_eq() local
577 MessageHeader* self; Message_hash() local
592 MessageHeader* self; Message_inspect() local
612 MessageHeader* self; Message_to_h() local
675 MessageHeader* self; Message_index() local
694 MessageHeader* self; Message_index_set() local
771 enum_lookup(VALUE self, VALUE number) enum_lookup() argument
791 enum_resolve(VALUE self, VALUE sym) enum_resolve() argument
812 enum_descriptor(VALUE self) enum_descriptor() argument
850 Google_Protobuf_deep_copy(VALUE self, VALUE obj) Google_Protobuf_deep_copy() argument
[all...]
/drivers/peripheral/huks/hdi_service/
H A Dhuks_hdi_service.c31 static int32_t HuksModuleInit(struct IHuks *self) in HuksModuleInit() argument
33 (void)self; in HuksModuleInit()
37 static int32_t HuksModuleDestroy(struct IHuks *self) in HuksModuleDestroy() argument
39 (void)self; in HuksModuleDestroy()
43 static int32_t HuksGenerateKey(struct IHuks *self, const struct HuksBlob *keyAlias, const struct HuksParamSet *paramSet, in HuksGenerateKey() argument
46 (void)self; in HuksGenerateKey()
52 static int32_t HuksImportKey(struct IHuks *self, const struct HuksBlob *keyAlias, const struct HuksBlob *key, in HuksImportKey() argument
55 (void)self; in HuksImportKey()
61 static int32_t HuksImportWrappedKey(struct IHuks *self, const struct HuksBlob *wrappingKeyAlias, in HuksImportWrappedKey() argument
65 (void)self; in HuksImportWrappedKey()
72 HuksExportPublicKey(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, struct HuksBlob *keyOut) HuksExportPublicKey() argument
81 HuksInit(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, struct HuksBlob *handle, struct HuksBlob *token) HuksInit() argument
90 HuksUpdate(struct IHuks *self, const struct HuksBlob *handle, const struct HuksParamSet *paramSet, const struct HuksBlob *inData, struct HuksBlob *outData) HuksUpdate() argument
99 HuksFinish(struct IHuks *self, const struct HuksBlob *handle, const struct HuksParamSet *paramSet, const struct HuksBlob *inData, struct HuksBlob *outData) HuksFinish() argument
108 HuksAbort(struct IHuks *self, const struct HuksBlob *handle, const struct HuksParamSet *paramSet) HuksAbort() argument
116 HuksCheckKeyValidity(struct IHuks *self, const struct HuksParamSet *paramSet, const struct HuksBlob *encKey) HuksCheckKeyValidity() argument
125 HuksAttestKey(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, struct HuksBlob *certChain) HuksAttestKey() argument
134 HuksGenerateRandom(struct IHuks *self, const struct HuksParamSet *paramSet, struct HuksBlob *random) HuksGenerateRandom() argument
142 HuksSign(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *srcData, struct HuksBlob *signature) HuksSign() argument
151 HuksVerify(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *srcData, const struct HuksBlob *signature) HuksVerify() argument
160 HuksEncrypt(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *plainText, struct HuksBlob *cipherText) HuksEncrypt() argument
169 HuksDecrypt(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *cipherText, struct HuksBlob *plainText) HuksDecrypt() argument
178 HuksAgreeKey(struct IHuks *self, const struct HuksParamSet *paramSet, const struct HuksBlob *encPrivateKey, const struct HuksBlob *peerPublicKey, struct HuksBlob *agreedKey) HuksAgreeKey() argument
187 HuksDeriveKey(struct IHuks *self, const struct HuksParamSet *paramSet, const struct HuksBlob *encKdfKey, struct HuksBlob *derivedKey) HuksDeriveKey() argument
196 HuksMac(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *srcData, struct HuksBlob *mac) HuksMac() argument
205 HuksUpgradeKey(struct IHuks *self, const struct HuksBlob *encOldKey, const struct HuksParamSet *paramSet, struct HuksBlob *encNewKey) HuksUpgradeKey() argument
214 HuksExportChipsetPlatformPublicKey(struct IHuks *self, const struct HuksBlob *salt, enum HuksChipsetPlatformDecryptScene scene, struct HuksBlob *publicKey) HuksExportChipsetPlatformPublicKey() argument
224 HuksGetVersion(struct IHuks *self, uint32_t *majorVer, uint32_t *minorVer) HuksGetVersion() argument
[all...]
/third_party/ltp/metadata/
H A Ddata_storage.h137 static inline int data_node_hash_add(struct data_node *self, const char *id, struct data_node *payload) in data_node_hash_add() argument
139 if (self->type != DATA_HASH) in data_node_hash_add()
142 struct data_node_hash *hash = &self->hash; in data_node_hash_add()
155 static inline void data_node_free(struct data_node *self) in data_node_free() argument
159 switch (self->type) { in data_node_free()
164 for (i = 0; i < self->hash.elems_used; i++) { in data_node_free()
165 data_node_free(self->hash.elems[i].node); in data_node_free()
166 free(self->hash.elems[i].id); in data_node_free()
170 for (i = 0; i < self->array.array_used; i++) in data_node_free()
171 data_node_free(self in data_node_free()
178 data_node_hash_del(struct data_node *self, const char *id) data_node_hash_del() argument
199 data_node_hash_get(struct data_node *self, const char *id) data_node_hash_get() argument
215 data_node_array_add(struct data_node *self, struct data_node *payload) data_node_array_add() argument
230 data_node_array_len(struct data_node *self) data_node_array_len() argument
244 data_node_print_(struct data_node *self, unsigned int padd) data_node_print_() argument
278 data_node_print(struct data_node *self) data_node_print() argument
334 data_to_json_(struct data_node *self, FILE *f, unsigned int padd, int do_padd) data_to_json_() argument
371 data_to_json(struct data_node *self, FILE *f, unsigned int padd) data_to_json() argument
[all...]
/third_party/node/tools/gyp/
H A Dtest_gyp.py169 def __init__(self, formats, tests, gyp_options, verbose):
170 self.formats = formats
171 self.tests = tests
172 self.verbose = verbose
173 self.gyp_options = gyp_options
174 self.failures = []
175 self.num_tests = len(formats) * len(tests)
176 num_digits = len(str(self.num_tests))
177 self.fmt_str = "[%%%dd/%%%dd] (%%s) %%s" % (num_digits, num_digits)
178 self
[all...]
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_create.c55 pthread_t self = __pthread_self(); in __pthread_exit() local
58 self->canceldisable = 1; in __pthread_exit()
59 self->cancelasync = 0; in __pthread_exit()
60 self->result = result; in __pthread_exit()
62 while (self->cancelbuf) { in __pthread_exit()
63 void (*f)(void *) = self->cancelbuf->__f; in __pthread_exit()
64 void *x = self->cancelbuf->__x; in __pthread_exit()
65 self->cancelbuf = self->cancelbuf->__next; in __pthread_exit()
78 LOCK(self in __pthread_exit()
168 struct pthread *self = __pthread_self(); __do_cleanup_push() local
238 struct pthread *self, *new; __pthread_create() local
[all...]
/third_party/musl/src/thread/liteos_a/
H A Dpthread_create.c55 pthread_t self = __pthread_self(); in __pthread_exit() local
58 self->canceldisable = 1; in __pthread_exit()
59 self->cancelasync = 0; in __pthread_exit()
60 self->result = result; in __pthread_exit()
62 while (self->cancelbuf) { in __pthread_exit()
63 void (*f)(void *) = self->cancelbuf->__f; in __pthread_exit()
64 void *x = self->cancelbuf->__x; in __pthread_exit()
65 self->cancelbuf = self->cancelbuf->__next; in __pthread_exit()
78 LOCK(self in __pthread_exit()
168 struct pthread *self = __pthread_self(); __do_cleanup_push() local
238 struct pthread *self, *new; __pthread_create() local
[all...]
/third_party/ninja/misc/
H A Dninja_syntax.py33 def __init__(self, output: TextIOWrapper, width: int = 78) -> None:
34 self.output = output
35 self.width = width
37 def newline(self) -> None:
38 self.output.write('\n')
40 def comment(self, text: str) -> None:
41 for line in textwrap.wrap(text, self.width - 2, break_long_words=False,
43 self.output.write('# ' + line + '\n')
46 self,
55 self
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/
H A Dtest_gyp.py169 def __init__(self, formats, tests, gyp_options, verbose):
170 self.formats = formats
171 self.tests = tests
172 self.verbose = verbose
173 self.gyp_options = gyp_options
174 self.failures = []
175 self.num_tests = len(formats) * len(tests)
176 num_digits = len(str(self.num_tests))
177 self.fmt_str = "[%%%dd/%%%dd] (%%s) %%s" % (num_digits, num_digits)
178 self
[all...]
/third_party/rust/crates/unicode-width/scripts/
H A Dunicode.py186 def __init__(self):
188 self.entry_set = set()
189 self.widths = []
191 def append(self, codepoint: Codepoint, width: EffectiveWidth):
193 self.entry_set.add((codepoint, width))
194 self.widths.append(width)
196 def try_extend(self, attempt: "Bucket") -> bool:
197 """If either `self` or `attempt`'s width list starts with the other bucket's width list,
198 set `self`'s width list to the longer of the two, add all of `attempt`'s codepoints
199 into `self`, an
[all...]
/build/test/example/
H A Dtest_build_option.py565 def test_target_cpu(self, cpu_para):
569 cmd = self.CMD.format('--target-cpu', cpu_para).split()
571 result = self.get_match_result(cmd, "target_cpu", cpu_para)
576 def test_ccache(self, ccache_para):
580 cmd = self.CMD.format('--ccache', ccache_para).split()
582 result = self.get_match_result(cmd, "ccache", ccache_para)
587 def test_rename_last_log(self, rename_last_log_para):
591 cmd = self.CMD.format('--rename-last-log', rename_last_log_para).split()
595 if self.is_exist(self
[all...]
/build/hb/util/loader/
H A Dplatforms_loader.py27 def __init__(self, platforms_config_file, source_root_dir, root_build_dir,
29 self._platforms_config_file = platforms_config_file
30 self._source_root_dir = source_root_dir
31 self._root_build_dir = root_build_dir
32 self._platforms_info = {}
33 self._all_parts = {}
34 self._all_stubs = {}
35 self._is_load = False
36 self._target_arch = target_arch
37 self
[all...]
/third_party/python/Lib/idlelib/
H A Dstackviewer.py23 def __init__(self, flist=None, tb=None):
24 self.flist = flist
25 self.stack = self.get_stack(tb)
26 self.text = self.get_exception()
28 def get_stack(self, tb):
39 def get_exception(self):
49 def GetText(self):
50 return self
[all...]
/third_party/astc-encoder/Test/
H A Dastc_trace_analysis.py56 def __init__(self, block_x, block_y, block_z):
57 self.block_x = block_x
58 self.block_y = block_y
59 self.block_z = block_z
60 self.blocks = []
62 def add_block(self, block):
63 self.blocks.append(block)
65 def __getitem__(self, i):
66 return self.blocks[i]
68 def __delitem__(self,
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DFormattedValueStringBuilderImpl.java51 public static int findSpan(FormattedStringBuilder self, Object value) { in findSpan() argument
52 for (int i = self.zero; i < self.zero + self.length; i++) { in findSpan()
53 if (!(self.fields[i] instanceof SpanFieldPlaceholder)) { in findSpan()
56 if (((SpanFieldPlaceholder) self.fields[i]).value.equals(value)) { in findSpan()
57 return i - self.zero; in findSpan()
69 FormattedStringBuilder self, in applySpanRange()
74 for (int i = start + self.zero; i < end + self in applySpanRange()
68 applySpanRange( FormattedStringBuilder self, UFormat.SpanField spanField, Object value, int start, int end) applySpanRange() argument
86 nextFieldPosition(FormattedStringBuilder self, FieldPosition fp) nextFieldPosition() argument
134 toCharacterIterator(FormattedStringBuilder self, Field numericField) toCharacterIterator() argument
165 nextPosition(FormattedStringBuilder self, ConstrainedFieldPosition cfpos, Field numericField) nextPosition() argument
319 trimBack(FormattedStringBuilder self, int limit) trimBack() argument
324 trimFront(FormattedStringBuilder self, int start) trimFront() argument
[all...]

Completed in 11 milliseconds

1...<<61626364656667686970>>...185