| /third_party/skia/third_party/externals/brotli/research/ |
| D | brotlidump.py | 2 """Program to dump contents of Brotli compressed files showing the compression format. 4 I found the following issues with the Brotli format: 5 - The distance alphabet has size 16+(48<<POSTFIX), 7 It could be lowered to 16+(44-POSTFIX<<POSTFIX), and this could matter. 8 - The block type code is useless if NBLTYPES==2, you would only need 1 symbol 23 """Show character in readable format 30 else: return '\\x{:02x}'.format(c) 43 ''.join(formatSubString(s[-100:])) 60 return "BitStream(pos={:x}:{})".format(self.pos>>3, self.pos&7) 92 #mask unwanted bits: & (1<<n)-1 [all …]
|
| /third_party/rust/crates/bindgen/bindgen/codegen/ |
| D | serialize.rs | 15 fn get_loc(item: &Item) -> String { in get_loc() 22 type Extra; typedef 27 extra: Self::Extra, in serialize() argument 30 ) -> Result<(), CodegenError>; in serialize() 34 type Extra = (); typedef 39 (): Self::Extra, in serialize() argument 42 ) -> Result<(), CodegenError> { in serialize() 49 msg: format!("Cannot serialize item kind {:?}", kind), in serialize() 58 type Extra = &'a Item; typedef 63 item: Self::Extra, in serialize() argument [all …]
|
| /third_party/f2fs-tools/tools/ |
| D | BUILD.gn | 9 config("f2fs-defaults") { 11 "-std=gnu89", 12 "-Wno-implicit-function-declaration", 13 "-Wno-pointer-sign", 20 configs = [ ":f2fs-defaults" ] 27 "//third_party/f2fs-tools", 28 "//third_party/f2fs-tools/include", 31 cflags = [ "-Wno-error=format-extra-args" ] 37 part_name = "f2fs-tools" 44 configs = [ ":f2fs-defaults" ] [all …]
|
| /third_party/nghttp2/script/ |
| D | fetch-ocsp-response | 2 # -*- coding: utf-8 -*- 4 # nghttp2 - HTTP/2 C Library 83 def run_openssl(args, allow_tempfail=False): argument 86 p = subprocess.Popen(args, stdout=subprocess.PIPE) 88 die('failed to invoke {}:{}'.format(args, e)) 96 raise Exception('nonzero return code {}'.format(p.returncode)) 99 msg = 'OpenSSL exitted abnormally: {}:{}'.format(args, e) 114 return run_openssl([cmd, 'version']).decode('utf-8').strip() 120 [cmd, 'x509', '-in', cert_fn, '-noout', 121 '-ocsp_uri']).decode('utf-8').strip() [all …]
|
| /third_party/skia/src/core/ |
| D | SkString.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 30 static StringBuffer apply_format_string(const char* format, va_list args, char (&stackBuffer)[SIZE], in apply_format_string() argument 34 va_copy(argsCopy, args); in apply_format_string() 35 int outLength = std::vsnprintf(stackBuffer, SIZE, format, args); in apply_format_string() 47 // format it. Format the string into our heap buffer. `set` automatically reserves an extra in apply_format_string() 49 heapBuffer->set(nullptr, outLength); in apply_format_string() 50 char* heapBufferDest = heapBuffer->writable_str(); in apply_format_string() 51 SkDEBUGCODE(int checkLength =) std::vsnprintf(heapBufferDest, outLength + 1, format, argsCopy); in apply_format_string() 65 !strncmp(string + strLen - suffixLen, suffixStr, suffixLen); in SkStrEndsWith() 74 return (suffixChar == string[strLen-1]); in SkStrEndsWith() [all …]
|
| /third_party/python/Tools/c-analyzer/cpython/ |
| D | __main__.py | 170 extra = {'unsupported': ['type unknown'] * len(decl.members)} 172 extra = {'unsupported': ['type unknown']} 173 info = (info, extra) 214 parser.add_argument('--levels', action='append', metavar='LEVEL[,...]') 215 parser.add_argument(f'--public', dest='levels', 217 parser.add_argument(f'--no-public', dest='levels', 218 action='append_const', const='no-public') 220 parser.add_argument(f'--{level}', dest='levels', 222 def process_levels(args, *, argv=None): argument 224 for raw in args.levels or (): [all …]
|
| /third_party/python/Lib/logging/ |
| D | __init__.py | 1 # Copyright 2001-2019 by Vinay Sajip. All Rights Reserved. 21 Copyright (C) 2001-2019 Vinay Sajip. All Rights Reserved. 45 __author__ = "Vinay Sajip <vinay_sajip@red-dove.com>" 51 #--------------------------------------------------------------------------- 53 #--------------------------------------------------------------------------- 81 #--------------------------------------------------------------------------- 83 #--------------------------------------------------------------------------- 86 # of values having corresponding names. There is a pseudo-level, NOTSET, which 87 # is only really there as a lower limit for user-defined levels. Handlers and 89 # at user-defined levels. [all …]
|
| /third_party/skia/third_party/externals/dawn/generator/ |
| D | generator_lib.py | 8 # http://www.apache.org/licenses/LICENSE-2.0 19 GN and Ninja build-based systems. See generator_lib.gni as well. 21 Clients should create a Generator sub-class, then call run_generator() 30 --depfile can be used to specify an output Ninja dependency file for the 34 Finally, --expected-output-files can be used to check the list of generated 43 # template: Jinja2 template name, relative to --template-dir path. 47 # params_dicts: iterable of (name:string -> value:string) dictionaries. 60 """Return generator description for --help.""" 64 """Add generator-specific argparse arguments.""" 67 def get_file_renders(self, args): argument [all …]
|
| /third_party/node/deps/v8/tools/ |
| D | generate-runtime-call-stats.py | 3 # Use of this source code is governed by a BSD-style license that can be 33 "--group", 38 "-r", 39 "--repeats", 47 "-v", 48 "--verbose", 53 "--device", 58 "-d", 59 "--dir", 63 "already exists and it won't re-run the benchmark")) [all …]
|
| /third_party/python/Doc/library/ |
| D | logging.rst | 1 :mod:`logging` --- Logging facility for Python 7 .. moduleauthor:: Vinay Sajip <vinay_sajip@red-dove.com> 8 .. sectionauthor:: Vinay Sajip <vinay_sajip@red-dove.com> 19 * :ref:`Basic Tutorial <logging-basic-tutorial>` 20 * :ref:`Advanced Tutorial <logging-advanced-tutorial>` 21 * :ref:`Logging Cookbook <logging-cookbook>` 23 -------------- 30 can include your own messages integrated with messages from third-party 35 .. code-block:: none 59 -------------- [all …]
|
| /third_party/rust/crates/bindgen/csmith-fuzzing/ |
| D | predicate.py | 19 and non-zero if any of them fail. This is appropriate for determining if some 24 known-bad test case into a new, smaller test case that exhibits the same bad 26 compile with `rustc`, and want to exit non-zero early if that is not the 35 BINDGEN_ARGS = "--with-derive-partialeq \ 36 --with-derive-eq \ 37 --with-derive-partialord \ 38 --with-derive-ord \ 39 --with-derive-hash \ 40 --with-derive-default" 43 "--bindgen-args", [all …]
|
| /third_party/skia/infra/bots/assets/clang_linux/ |
| D | create.py | 5 # Use of this source code is governed by a BSD-style license that can be 25 # Build Clang, lld, compiler-rt (sanitizer support) and libc++. 27 subprocess.check_call(["git", "clone", "--depth", "1", "-b", BRANCH, 28 "https://llvm.googlesource.com/llvm-project"]) 29 os.chdir("llvm-project") 32 subprocess.check_call(["cmake", "../llvm", "-G", "Ninja", 33 "-DCMAKE_BUILD_TYPE=MinSizeRel", 34 "-DCMAKE_INSTALL_PREFIX=" + target_dir, 35 "-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;" + 36 "compiler-rt;libcxx;libcxxabi;lld", [all …]
|
| /third_party/ntfs-3g/libntfs-3g/ |
| D | logging.c | 2 * logging.c - Centralised logging. Originated from the Linux-NTFS project. 5 * Copyright (c) 2005-2008 Szabolcs Szakacsits 6 * Copyright (c) 2010 Jean-Pierre Andre 19 * along with this program (in the main directory of the NTFS-3G 21 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 62 # define BROKEN_GCC_FORMAT_ATTRIBUTE __attribute__((format(printf, 6, 0))) 66 * struct ntfs_logging - Control info for the logging system 99 * ntfs_log_get_levels - Get a list of the current logging levels 103 * Returns: Log levels in a 32-bit field 111 * ntfs_log_set_levels - Enable extra logging levels [all …]
|
| /third_party/rust/crates/bitflags/src/ |
| D | lib.rs | 2 // file at the top-level directory of this distribution and at 3 // http://rust-lang.org/COPYRIGHT. 5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 11 //! A typesafe bitmask flag generator useful for sets of C-style bitmask flags. 37 //! assert_eq!((e1 - e2), Flags::A); // set difference 68 //! fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 77 //! assert_eq!(format!("{}", flags), "hi!"); 78 //! assert_eq!(format!("{:?}", Flags::A | Flags::B), "A | B"); [all …]
|
| /third_party/python/Parser/ |
| D | asdl.py | 1 #------------------------------------------------------------------------------- 8 # non-terminals. Id is either TokenId or ConstructorId. 21 #------------------------------------------------------------------------------- 30 # Note: this is a "meta-AST". ASDL files (such as Python.asdl) describe the AST 49 return 'Module({0.name}, {0.dfns})'.format(self) 57 return 'Type({0.name}, {0.value})'.format(self) 65 return 'Constructor({0.name}, {0.fields})'.format(self) 76 extra = "*" 78 extra = "?" 80 extra = "" [all …]
|
| /third_party/python/Lib/ |
| D | zipfile.py | 4 XXX references to utf-8 need further investigation. 53 error = BadZipfile = BadZipFile # Pre-3.2 compatibility names 56 ZIP64_LIMIT = (1 << 31) - 1 57 ZIP_FILECOUNT_LIMIT = (1 << 16) - 1 58 ZIP_MAX_COMMENT = (1 << 16) - 1 76 # in the PKWARE description of the ZIP file format: 81 # (section V.I in the format document) 100 # of entries in the structure (section V.F in the format document) 132 # _MASK_USE_DATA_DESCRIPTOR: If set, crc-32, compressed size and uncompressed 153 # (section V.A in the format document) [all …]
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/ |
| D | dpp-nfc.py | 4 # Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi> 5 # Copyright (c) 2019-2020, The Linux Foundation 82 if os.path.basename(ctrl).startswith("p2p-dev-"): 143 def get_status(wpas, extra=None): argument 144 if extra: 145 extra = "-" + extra 147 extra = "" 148 res = wpas.request("STATUS" + extra) 160 def get_status_field(wpas, field, extra=None): argument 161 vals = get_status(wpas, extra) [all …]
|
| /third_party/node/deps/v8/src/wasm/ |
| D | decoder.h | 2 // Use of this source code is governed by a BSD-style license that can be 16 #include "src/base/compiler-specific.h" 22 #include "src/wasm/wasm-opcodes.h" 23 #include "src/wasm/wasm-result.h" 24 #include "src/zone/zone-containers.h" 65 DCHECK_EQ(static_cast<uint32_t>(end - start), end - start); in start_() 73 if (V8_UNLIKELY(pc > end_ || length > static_cast<uint32_t>(end_ - pc))) { in validate_size() 80 // Reads an 8-bit unsigned integer. 86 // Reads a 16-bit unsigned integer (little endian). 92 // Reads a 32-bit unsigned integer (little endian). [all …]
|
| /third_party/python/Lib/unittest/ |
| D | case.py | 76 # exc_info -> frame -> exc_info 121 def addModuleCleanup(function, /, *args, **kwargs): argument 124 _module_cleanups.append((function, args, kwargs)) 127 """Same as enterContext, but module-wide.""" 136 function, args, kwargs = _module_cleanups.pop() 138 function(*args, **kwargs) 142 # Swallows all but first exception. If a multi-exception handler 154 def skip_wrapper(*args, **kwargs): argument 213 def handle(self, name, args, kwargs): argument 215 If args is empty, assertRaises/Warns is being used as a [all …]
|
| /third_party/python/Python/clinic/ |
| D | marshal.c.h | 7 "--\n" 16 " Indicates the data format that dump should use.\n" 19 "ValueError exception is raised - but garbage data will also be written\n" 30 marshal_dump(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in marshal_dump() argument 40 value = args[0]; in marshal_dump() 41 file = args[1]; in marshal_dump() 45 version = _PyLong_AsInt(args[2]); in marshal_dump() 46 if (version == -1 && PyErr_Occurred()) { in marshal_dump() 58 "--\n" 66 "version\'s incompatible marshal format), raise EOFError, ValueError or\n" [all …]
|
| /third_party/python/Lib/test/ |
| D | test_decorators.py | 19 # ----------------------------------------------- 22 def __init__(self, exprstr, func, args, kwds): argument 24 Exception.__init__(self, "dbcheck %r failed (func=%s args=%s kwds=%s)" % 25 (exprstr, func, args, kwds)) 31 expr = compile(exprstr, "dbcheck-%s" % func.__name__, "eval") 32 def check(*args, **kwds): argument 34 raise DbcheckError(exprstr, func, args, kwds) 35 return func(*args, **kwds) 39 # ----------------------------------------------- 46 def call(*args, **kwds): argument [all …]
|
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/ |
| D | FromJsonTest.java | 16 …ub.com/messageformat/messageformat/blob/master/packages/mf2-messageformat/src/__fixtures/test-mess… 37 .arguments(Args.of("place", "world")) 43 // errorsJs: ["missing-var"] 47 .arguments(Args.of("one", 1.3, "two", 4.2)) 53 .arguments(Args.of("one", 1.3, "two", 4.2)) 61 .locale("ar-EG") 85 .arguments(Args.of("foo", 2f)) 90 .arguments(Args.of("foo", "2")) 92 // errorsJs: ["invalid-type"] 100 .arguments(Args.of("foo", "foo")) [all …]
|
| /third_party/benchmark/docs/ |
| D | user_guide.md | 5 [Output Formats](#output-formats) 7 [Output Files](#output-files) 9 [Running Benchmarks](#running-benchmarks) 11 [Running a Subset of Benchmarks](#running-a-subset-of-benchmarks) 13 [Result Comparison](#result-comparison) 15 [Extra Context](#extra-context) 19 [Runtime and Reporting Considerations](#runtime-and-reporting-considerations) 23 [Passing Arguments](#passing-arguments) 25 [Custom Benchmark Name](#custom-benchmark-name) 27 [Calculating Asymptotic Complexity](#asymptotic-complexity) [all …]
|
| /third_party/ninja/src/ |
| D | browse.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 77 target = next(lines)[:-1] # strip trailing colon 90 type = 'order-only' 109 font-family: sans; 110 font-size: 0.8em; 114 font-weight: normal; 115 font-size: 140%; 116 text-align: center; 120 font-weight: normal; 121 font-size: 120%; [all …]
|
| /third_party/mesa3d/src/intel/tools/ |
| D | aub_write.h | 2 * Copyright © 2007-2017 Intel Corporation 33 #include "drm-uapi/i915_drm.h" 43 _fail(const char *prefix, const char *format, ...) in _fail() argument 45 va_list args; in _fail() local 47 va_start(args, format); in _fail() 50 vfprintf(stderr, format, args); in _fail() 51 va_end(args); in _fail() 85 /* Set if you want extra logging */ 112 return aub->devinfo.ver >= 8; in aub_use_execlists() 120 if (devinfo->ver >= 8) { in aub_write_reloc()
|