Home
last modified time | relevance | path

Searched refs:self (Results 976 - 1000 of 5700) sorted by relevance

1...<<31323334353637383940>>...228

/third_party/icu/icu4c/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/jinja2/
H A Dutils.py428 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 DglX_proto_size.py35 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 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/python/Lib/ctypes/test/
H A Dtest_callbacks.py13 ## 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 Dtest_byteswap.py18 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 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_ntpath.py79 def assertPathEqual(self, path1, path2):
82 self.assertEqual(path1, path2)
84 def assertPathIn(self, path, pathset):
85 self.assertIn(_norm(path), _norm(pathset))
89 def test_splitext(self):
101 def test_splitdrive(self):
119 self.assertEqual(ntpath.splitdrive('//conky/MOUNTPOİNT/foo/bar'),
155 def test_split(self):
167 def test_isabs(self):
177 def test_commonprefix(self)
[all...]
H A Dtest_largefile.py25 def setUp(self):
31 with self.open(TESTFN, mode) as f:
43 self.assertEqual(os.fstat(f.fileno())[stat.ST_SIZE], size+1)
63 def test_large_read(self, _size):
65 with self.open(TESTFN, "rb") as f:
66 self.assertEqual(len(f.read()), size + 1)
67 self.assertEqual(f.tell(), size + 1)
69 def test_osstat(self):
70 self.assertEqual(os.stat(TESTFN)[stat.ST_SIZE], size+1)
72 def test_seek_read(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/json/tools/amalgamate/
H A Damalgamate.py45 # Prepends self.source_path to file_path if needed.
46 def actual_path(self, file_path):
48 file_path = os.path.join(self.source_path, file_path)
51 # Search included file_path in self.include_paths and
53 def find_included_file(self, file_path, source_dir):
54 search_dirs = self.include_paths[:]
60 if os.path.isfile(self.actual_path(search_path)):
64 def __init__(self, args):
68 setattr(self, key, config[key])
70 self
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_install.py32 def setUp(self):
34 self._backup_config_vars = dict(sysconfig._config_vars)
36 def tearDown(self):
39 sysconfig._config_vars.update(self._backup_config_vars)
41 def test_home_installation_scheme(self):
45 builddir = self.mkdtemp()
60 self.assertEqual(cmd.install_base, destination)
61 self.assertEqual(cmd.install_platbase, destination)
66 self.assertEqual(got, expected)
79 def test_user_site(self)
[all...]
H A Dtest_filelist.py39 def assertNoWarnings(self):
40 self.assertEqual(self.get_logs(WARN), [])
41 self.clear_logs()
43 def assertWarnings(self):
44 self.assertGreater(len(self.get_logs(WARN)), 0)
45 self.clear_logs()
47 def test_glob_to_re(self):
63 self
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_textview.py44 def setUp(self):
49 def test_init_modal(self):
51 self.assertTrue(VW.transient.called)
52 self.assertTrue(VW.grab_set.called)
53 self.assertTrue(VW.wait_window.called)
56 def test_init_nonmodal(self):
58 self.assertFalse(VW.transient.called)
59 self.assertFalse(VW.grab_set.called)
60 self.assertFalse(VW.wait_window.called)
63 def test_ok(self)
[all...]
H A Dtest_search.py27 def setUp(self):
28 self.engine = searchengine.SearchEngine(self.root)
29 self.dialog = search.SearchDialog(self.root, self.engine)
30 self.dialog.bell = lambda: None
31 self.text = Text(self.root)
32 self
[all...]
/third_party/PyYAML/lib/yaml/
H A Dloader.py13 def __init__(self, stream):
14 Reader.__init__(self, stream)
15 Scanner.__init__(self)
16 Parser.__init__(self)
17 Composer.__init__(self)
18 BaseConstructor.__init__(self)
19 BaseResolver.__init__(self)
23 def __init__(self, stream):
24 Reader.__init__(self, stream)
25 Scanner.__init__(self)
[all...]
/third_party/skia/tools/skpbench/
H A D_hardware.py23 def __init__(self):
24 self.warmup_time = 0
26 def __enter__(self):
27 return self
29 def __exit__(self, exception_type, exception_value, traceback):
32 def filter_line(self, line):
36 def sanity_check(self):
40 def print_debug_diagnostics(self):
54 def __init__(self, message, sleeptime=60):
55 Exception.__init__(self, messag
[all...]
H A D_hardware_android.py12 def __init__(self, adb):
13 Hardware.__init__(self)
14 self.warmup_time = 5
15 self._adb = adb
16 self.desiredClock = 0.66
18 if self._adb.root():
19 self._adb.remount()
21 def __enter__(self):
22 Hardware.__enter__(self)
23 if not self
[all...]
/test/testfwk/xdevice/plugins/devicetest/core/
H A Dtest_case.py78 def __init__(self):
96 def __init__(self, tag, configs):
97 self.cur_case = None
98 self.devices = []
99 self.configs = configs
100 self.result = RunResult.PASSED
101 self.last_result = RunResult.PASSED
102 self.test_method_result = RunResult.PASSED
103 self.section = RunSection.SETUP
104 self
[all...]
/third_party/python/Lib/encodings/
H A Dutf_8_sig.py27 def __init__(self, errors='strict'):
28 codecs.IncrementalEncoder.__init__(self, errors)
29 self.first = 1
31 def encode(self, input, final=False):
32 if self.first:
33 self.first = 0
35 codecs.utf_8_encode(input, self.errors)[0]
37 return codecs.utf_8_encode(input, self.errors)[0]
39 def reset(self):
40 codecs.IncrementalEncoder.reset(self)
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_speedups.py5 def __bool__(self):
10 def test_scanstring(self):
11 self.assertEqual(self.json.decoder.scanstring.__module__, "_json")
12 self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring)
14 def test_encode_basestring_ascii(self):
15 self.assertEqual(self
[all...]
/third_party/python/Lib/distutils/command/
H A Dbdist_dumb.py50 def initialize_options(self):
51 self.bdist_dir = None
52 self.plat_name = None
53 self.format = None
54 self.keep_temp = 0
55 self.dist_dir = None
56 self.skip_build = None
57 self.relative = 0
58 self.owner = None
59 self
[all...]

Completed in 11 milliseconds

1...<<31323334353637383940>>...228