| /external/oss-fuzz/ |
| D | README.md | 1 # OSS-Fuzz: Continuous Fuzzing for Open Source Software 3 [Fuzz testing] is a well-known technique for uncovering programming errors in 6 vulnerabilities and stability bugs by deploying [guided in-process fuzzing of 7 Chrome components], and we now want to share that service with the open source 12 …/bugs.chromium.org/p/chromium/issues/list?q=label%3AStability-LibFuzzer%2CStability-AFL%20-status%… 13 [guided in-process fuzzing of Chrome components]: https://security.googleblog.com/2016/08/guided-in… 16 OSS-Fuzz aims to make common open source software more secure and stable by 32 Currently, OSS-Fuzz supports C/C++, Rust, Go, Python and Java/JVM code. Other languages 33 supported by [LLVM] may work too. OSS-Fuzz supports fuzzing x86_64 and i386 39  [all …]
|
| /external/python/cpython3/Lib/test/test_importlib/source/ |
| D | test_file_loader.py | 28 """Should have no issue importing a source module [basic]. And if there is 127 with open(mapping['_temp'], 'w', encoding='utf-8') as file: 148 with open(mapping[name], 'w', encoding='utf-8') as file: 165 with open(mapping['_temp'], 'w', encoding='utf-8') as file: 178 with open(file_path, 'w', encoding='utf-8') as file: 200 source = mapping['_temp'] 201 compiled = self.util.cache_from_source(source) 202 with open(source, 'w', encoding='utf-8') as f: 205 os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5)) 244 source = mapping['_temp'] [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
| D | DataSource.java | 2 * Copyright (C) 2016 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 26 /** Reads data from URI-identified resources. */ 37 * Adds a {@link TransferListener} to listen to data transfers. This method is not thread-safe. 44 * Opens the source to read the specified data. If an {@link IOException} is thrown, callers must 53 * {@link #open} will succeed and data from the requested position to the end of the 56 * resource, then {@link #open} will succeed, and {@link #read} will immediately return 59 * resource, then {@link #open} will throw an {@link IOException} for which {@link 64 * @throws IOException If an error occurs opening the source. {@link DataSourceException} can be 66 * @return The number of bytes that can be read from the opened source. For unbounded requests [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
| D | DataSource.java | 2 * Copyright (C) 2016 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 26 /** Reads data from URI-identified resources. */ 37 * Adds a {@link TransferListener} to listen to data transfers. This method is not thread-safe. 44 * Opens the source to read the specified data. If an {@link IOException} is thrown, callers must 53 * {@link #open} will succeed and data from the requested position to the end of the 56 * resource, then {@link #open} will succeed, and {@link #read} will immediately return 59 * resource, then {@link #open} will throw an {@link IOException} for which {@link 64 * @throws IOException If an error occurs opening the source. {@link DataSourceException} can be 66 * @return The number of bytes that can be read from the opened source. For unbounded requests [all …]
|
| /external/gfxstream-protocols/registry/vulkan/scripts/ |
| D | test_check_spec_links.py | 3 # Copyright (c) 2018-2019 Collabora, Ltd. 5 # SPDX-License-Identifier: Apache-2.0 17 # API-specific constants 53 … """Fixture - add an arg named ckr to your test function to automatically get one passed to you.""" 116 # Should error - this ought to be code:uint32_t 134 # double-underscores make italicized placeholders 135 # (triple are double-underscores delimited by underscores...) 196 # TODO can we auto-correct this to add the backticks? 205 assert(ckr.check("[open,desc='',type='',xrefs='']").numErrors() == 1) 207 assert(ckr.check("[open,refpage='',type='',xrefs='']").numErrors() == 1) [all …]
|
| /external/fonttools/Tests/designspaceLib/data/ |
| D | test_v5_decovar.designspace | 1 <?xml version='1.0' encoding='UTF-8'?> 10 <axis tag="TRMF" name="Open Inline Terminal" minimum="0" maximum="1000" default="0"/> 21 …<!-- Labels without location or just partly specified location are at the default location plus th… 24 <label name="Open"> 60 <label name="Flared Open"> 84 <dimension name="Open Inline Terminal" uservalue="500"/> 109 <dimension name="Open Inline Terminal" uservalue="250"/> 123 <source filename="DecovarAlpha-Regular24.ufo" name="master_Regular"/> 124 <source filename="DecovarAlpha-Regular24SkelA.ufo" name="master_sklA"> 128 </source> [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_pipes.py | 12 # tr a-z A-Z is not portable, so make the ranges explicit 23 f = t.open(TESTFN, 'w') 26 with open(TESTFN) as f: 30 with open(TESTFN, 'w') as f: 35 with open(TESTFN2) as f: 39 with open(TESTFN, 'w') as f: 43 with t.open(TESTFN, 'r') as f: 49 with open(TESTFN, 'w') as f: 51 with open(TESTFN2, 'w') as f: 55 with open(TESTFN2) as f: [all …]
|
| D | test_import.py | 46 # Brief digression to test that import is case-sensitive: if we got 58 from test import double_const # don't blink -- that *was* the test 63 source = TESTFN + ext 70 with open(source, "w") as f: 88 unlink(source) 120 f = open(fname, 'w').close() 143 # a read only source file resulted in a read only pyc file, which 148 # Write a Python file, make it read-only and import it 149 with open(fname, 'w') as f: 151 # Tweak the mtime of the source to ensure pyc gets updated later [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_pipes.py | 18 # tr a-z A-Z is not portable, so make the ranges explicit 31 with t.open(TESTFN, 'w') as f: 33 with open(TESTFN) as f: 39 with open(TESTFN, 'w') as f: 44 with open(TESTFN2) as f: 50 with open(TESTFN, 'w') as f: 54 f = t.open(TESTFN, 'r') 63 with open(TESTFN, 'w') as f: 65 with open(TESTFN2, 'w') as f: 69 with open(TESTFN2) as f: [all …]
|
| D | test_winconsoleio.py | 26 "negative file descriptor", ConIO, -1) 30 # Windows 10: "Cannot open non-console file" 31 # Earlier: "Cannot open console output buffer for reading" 33 "Cannot open (console|non-console file)", ConIO, fd) 38 # cannot open console because it's not a real console 50 # cannot open console because it's not a real console 62 # cannot open console because it's not a real console 95 # bpo-45354: Windows 11 changed MS-DOS device name handling 97 f = open('C:/con', 'rb', buffering=0) 104 f = open(r'\\.\conin$', 'rb', buffering=0) [all …]
|
| D | test_linecache.py | 55 self.file_byte_string = ''.join(self.file_list).encode('utf-8') 59 with tokenize.open(self.file_name) as fp: 107 self.assertEqual(getline(FILENAME, -1), EMPTY) 119 with open(filename, encoding='utf-8') as file: 129 with open(os_helper.TESTFN, "w", encoding='utf-8') as fp: 153 # Create a source file and cache its contents 156 with open(source_name, 'w', encoding='utf-8') as source: 157 source.write(SOURCE_1) 162 with open(source_name, encoding='utf-8') as source: 163 for index, line in enumerate(source): [all …]
|
| /external/oss-fuzz/docs/reference/ |
| D | useful_links.md | 1 --- 5 permalink: /reference/useful-links/ 7 --- 11 - TOC 13 --- 17 * The main page: [oss-fuzz.com](https://oss-fuzz.com) 21 * [This page](https://oss-fuzz-build-logs.storage.googleapis.com/index.html) 26 * 2016-12-01 - Announcing OSS-Fuzz: Continuous fuzzing for open source software 27 ([Open Source](https://opensource.googleblog.com/2016/12/announcing-oss-fuzz-continuous-fuzzing.htm… 28 [Testing](https://testing.googleblog.com/2016/12/announcing-oss-fuzz-continuous-fuzzing.html), [all …]
|
| /external/libaom/build/cmake/ |
| D | version.pl | 3 ## Copyright (c) 2016, Alliance for Open Media. All rights reserved 5 ## This source code is subject to the terms of the BSD 2 Clause License and 6 ## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 7 ## was not distributed with this source code in the LICENSE file, you can 8 ## obtain it at www.aomedia.org/license/software. If the Alliance for Open 9 ## Media Patent License 1.0 was not distributed with this source code in the 26 die("--version_data and --version_filename are required."); 32 if (-r $version_data) { 35 open(my $changelog_file, '<', $changelog_filename) or 36 die("Unable to open CHANGELOG @ $changelog_filename: $!."); [all …]
|
| /external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/ |
| D | JavaInputAstVisitor.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 32 import static com.sun.source.tree.Tree.Kind.ANNOTATION; 33 import static com.sun.source.tree.Tree.Kind.ARRAY_ACCESS; 34 import static com.sun.source.tree.Tree.Kind.ASSIGNMENT; 35 import static com.sun.source.tree.Tree.Kind.BLOCK; 36 import static com.sun.source.tree.Tree.Kind.EXTENDS_WILDCARD; 37 import static com.sun.source.tree.Tree.Kind.IF; 38 import static com.sun.source.tree.Tree.Kind.METHOD_INVOCATION; 39 import static com.sun.source.tree.Tree.Kind.NEW_ARRAY; 40 import static com.sun.source.tree.Tree.Kind.NEW_CLASS; [all …]
|
| /external/python/setuptools/setuptools/_distutils/tests/ |
| D | test_file_util.py | 29 self.source = os.path.join(tmp_dir, 'f1') 38 f = open(self.source, 'w') 44 move_file(self.source, self.target, verbose=0) 49 move_file(self.target, self.source, verbose=0) 51 move_file(self.source, self.target, verbose=1) 52 wanted = ['moving %s -> %s' % (self.source, self.target)] 56 move_file(self.target, self.source, verbose=0) 61 move_file(self.source, self.target_dir, verbose=1) 62 wanted = ['moving %s -> %s' % (self.source, self.target_dir)] 69 with open(self.source, 'w') as fobj: [all …]
|
| /external/python/cpython3/Lib/distutils/tests/ |
| D | test_file_util.py | 29 self.source = os.path.join(tmp_dir, 'f1') 38 f = open(self.source, 'w') 44 move_file(self.source, self.target, verbose=0) 49 move_file(self.target, self.source, verbose=0) 51 move_file(self.source, self.target, verbose=1) 52 wanted = ['moving %s -> %s' % (self.source, self.target)] 56 move_file(self.target, self.source, verbose=0) 61 move_file(self.source, self.target_dir, verbose=1) 62 wanted = ['moving %s -> %s' % (self.source, self.target_dir)] 69 with open(self.source, 'w') as fobj: [all …]
|
| /external/grpc-grpc/third_party/nanopb/tests/site_scons/ |
| D | site_init.py | 16 def run_test(target, source, env): argument 17 if len(source) > 1: 18 infile = open(str(source[1])) 25 args = [str(source[0])] 33 stdout = open(str(target[0]), 'w'), 47 def decode_actions(source, target, env, for_signature): argument 49 dirs = ' '.join(['-I' + esc(env.GetBuildPath(d)) for d in env['PROTOCPATH']]) 50 return '$PROTOC $PROTOCFLAGS %s --decode=%s %s <%s >%s' % ( 51 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0]))) 58 def encode_actions(source, target, env, for_signature): argument [all …]
|
| /external/nanopb-c/tests/site_scons/ |
| D | site_init.py | 16 def run_test(target, source, env): argument 17 if len(source) > 1: 18 infile = open(str(source[1])) 25 args = [str(source[0])] 33 stdout = open(str(target[0]), 'w'), 47 def decode_actions(source, target, env, for_signature): argument 49 dirs = ' '.join(['-I' + esc(env.GetBuildPath(d)) for d in env['PROTOCPATH']]) 50 return '$PROTOC $PROTOCFLAGS %s --decode=%s %s <%s >%s' % ( 51 dirs, env['MESSAGE'], esc(str(source[1])), esc(str(source[0])), esc(str(target[0]))) 58 def encode_actions(source, target, env, for_signature): argument [all …]
|
| /external/licenseclassifier/v2/assets/License/Lattice-Semiconductor/ |
| D | license.txt | 1 LATTICE OPEN SOURCE LICENSE AGREEMENT 3 …source code generation tool, then Software refers to such output files that includes that componen… 5 1. The Provider grants to You a personal, non-exclusive right to use and distribute the source code… 6 - You make distributions free of charge under these license terms 7 …- You ensure that the original copyright notices and limitations of liability and warranty section… 9 …grants to You a personal, non-exclusive right to modify the source code of the Software and incorp… 10 …- You arrange Your design such that the Derivative Work is an identifiable module within Your over… 11 …- You distribute the source code associated with the modules containing the Derivative Work in a c… 12 …- You ensure that the original copyright notices and limitations of liability and warranty section… 13 - You clearly identify areas of the source code that You have modified. [all …]
|
| /external/jsoncpp/ |
| D | README.md | 3 …-jsoncpp%2F1.8.0-green.svg?logo=data:image/png;base64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt… 4 [](https://github.com/open-source-parsers/js… 5 …dge](https://img.shields.io/badge/document-doxygen-brightgreen)](http://open-source-parsers.github… 6 …://coveralls.io/repos/github/open-source-parsers/jsoncpp/badge.svg?branch=master)](https://coveral… 9 [JSON][json-org] is a lightweight data-interchange format. It can represent 13 [json-org]: http://json.org/ 23 [JsonCpp documentation][JsonCpp-documentation] is generated using [Doxygen][]. 25 [JsonCpp-documentation]: http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html 29 ## A note on backward-compatibility 34 * Major versions maintain binary-compatibility. [all …]
|
| /external/python/cpython3/Tools/iobench/ |
| D | iobench.py | 1 # -*- coding: utf-8 -*- 25 return open(fn, mode, encoding=encoding or TEXT_ENCODING) 29 return open(fn, mode) 41 return (("%s-%s-%s.txt" % (name, TEXT_ENCODING, NEWLINES), size) 106 for i in xrange(0, size - 1): 116 for i in xrange(0, size - 1, 1000): 138 def write_bytewise(f, source): argument 140 for i in xrange(0, len(source)): 141 f.write(source[i:i+1]) 145 def write_small_chunks(f, source): argument [all …]
|
| /external/perfetto/docs/visualization/ |
| D | deep-linking-to-perfetto-ui.md | 3 This document describes how to open traces hosted on external servers with the 5 and implement _'Open with Perfetto UI'_-like features. 7 ## Using window.open and postMessage 10 via `window.open('https://ui.perfetto.dev')` and `postMessage()`. 13 cases this is some dashboard which you want to deep-link to the Perfetto UI. 15 #### Open ui.perfetto.dev via window.open 17 The source dashboard, the one that knows how to locate a trace and deal with 21 var handle = window.open('https://ui.perfetto.dev'); 25 between the source dashboard and the Perfetto UI. 29 Wait for the UI to be ready. The `window.open()` message channel is not [all …]
|
| /external/chromium-trace/catapult/common/py_utils/py_utils/ |
| D | file_util_unittest.py | 2 # Use of this source code is governed by a BSD-style license that can be 23 source_path = os.path.join(self._tempdir, 'source') 24 with open(source_path, 'w') as f: 32 self.assertEqual('data', open(dest_path, 'r').read()) 35 source_path = os.path.join(self._tempdir, 'source') 36 with open(source_path, 'w') as f: 44 self.assertEqual('data', open(dest_path, 'r').read()) 47 source_path = os.path.join(self._tempdir, 'source') 48 with open(source_path, 'w') as f: 52 with open(dest_path, 'w') as f: [all …]
|
| /external/python/cpython2/Lib/distutils/tests/ |
| D | test_file_util.py | 30 self.source = os.path.join(tmp_dir, 'f1') 39 f = open(self.source, 'w') 45 move_file(self.source, self.target, verbose=0) 50 move_file(self.target, self.source, verbose=0) 52 move_file(self.source, self.target, verbose=1) 53 wanted = ['moving %s -> %s' % (self.source, self.target)] 57 move_file(self.target, self.source, verbose=0) 62 move_file(self.source, self.target_dir, verbose=1) 63 wanted = ['moving %s -> %s' % (self.source, self.target_dir)] 71 content = [line.strip() for line in open(foo).readlines()] [all …]
|
| /external/python/cpython3/Lib/ |
| D | pipes.py | 4 ------------ 12 from a disk file or from an open file, and similar for its output. 27 ----------- 34 where kind is a string of two characters: the first is '-' if the 50 To open a file for reading or writing through a conversion pipeline: 51 fp = t.open(file, mode) 52 where mode is 'r' to read the file, or 'w' to write it -- just like 53 for the built-in function open() or for os.popen(). 72 STDIN_FILEOUT = '-f' # Must write a real file 73 FILEIN_STDOUT = 'f-' # Must read a real file [all …]
|