Home
last modified time | relevance | path

Searched +full:require +full:- +full:main +full:- +full:filename (Results 1 – 25 of 699) sorted by relevance

12345678910>>...28

/external/google-cloud-java/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/getfile/
DSyncGetFileFilename.java8 * https://www.apache.org/licenses/LICENSE-2.0
22 import com.google.devtools.artifactregistry.v1.FileName;
26 public static void main(String[] args) throws Exception { in main() method in SyncGetFileFilename
32 // It will require modifications to work: in syncGetFileFilename()
33 // - It may require correct/in-range values for request initialization. in syncGetFileFilename()
34 // - It may require specifying regional endpoints when creating the service client as shown in in syncGetFileFilename()
37 FileName name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"); in syncGetFileFilename()
DSyncGetFileString.java8 * https://www.apache.org/licenses/LICENSE-2.0
22 import com.google.devtools.artifactregistry.v1.FileName;
26 public static void main(String[] args) throws Exception { in main() method in SyncGetFileString
32 // It will require modifications to work: in syncGetFileString()
33 // - It may require correct/in-range values for request initialization. in syncGetFileString()
34 // - It may require specifying regional endpoints when creating the service client as shown in in syncGetFileString()
37 String name = FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString(); in syncGetFileString()
DSyncGetFile.java8 * https://www.apache.org/licenses/LICENSE-2.0
22 import com.google.devtools.artifactregistry.v1.FileName;
27 public static void main(String[] args) throws Exception { in main() method in SyncGetFile
33 // It will require modifications to work: in syncGetFile()
34 // - It may require correct/in-range values for request initialization. in syncGetFile()
35 // - It may require specifying regional endpoints when creating the service client as shown in in syncGetFile()
40 .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) in syncGetFile()
DAsyncGetFile.java8 * https://www.apache.org/licenses/LICENSE-2.0
23 import com.google.devtools.artifactregistry.v1.FileName;
28 public static void main(String[] args) throws Exception { in main() method in AsyncGetFile
34 // It will require modifications to work: in asyncGetFile()
35 // - It may require correct/in-range values for request initialization. in asyncGetFile()
36 // - It may require specifying regional endpoints when creating the service client as shown in in asyncGetFile()
41 .setName(FileName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]").toString()) in asyncGetFile()
/external/perfetto/infra/perfetto.dev/src/
Dgen_proto_reference.js7 // http://www.apache.org/licenses/LICENSE-2.0
19 const protobufjs = require('protobufjs');
20 const fs = require('fs');
21 const path = require('path');
22 const argv = require('yargs').argv
30 // - The message-level comment, which becomes a full paragraph.
31 // - The per-field comments, rendered as as table.
46 // This is used to escape only the per-field comments.
47 // Removes \n due to 80col wrapping and preserves only end-of-sentence line
80 const fileName = path.basename(pType.filename);
[all …]
/external/libxml2/example/
Dreader1.c6 * (Note that the XMLReader functions require libxml2 version later
8 * usage: reader1 <filename>
31 name = BAD_CAST "--"; in processNode()
53 * @filename: the file name to parse
58 streamFile(const char *filename) { in streamFile() argument
62 reader = xmlReaderForFile(filename, NULL, 0); in streamFile()
71 fprintf(stderr, "%s : failed to parse\n", filename); in streamFile()
74 fprintf(stderr, "Unable to open %s\n", filename); in streamFile()
78 int main(int argc, char **argv) { in main() function
95 int main(void) { in main() function
Dreader2.c7 * (Note that the XMLReader functions require libxml2 version later
33 name = BAD_CAST "--"; in processNode()
55 * @filename: the file name to parse
60 streamFile(const char *filename) { in streamFile() argument
69 reader = xmlReaderForFile(filename, NULL, in streamFile()
83 fprintf(stderr, "Document %s does not validate\n", filename); in streamFile()
87 fprintf(stderr, "%s : failed to parse\n", filename); in streamFile()
90 fprintf(stderr, "Unable to open %s\n", filename); in streamFile()
94 int main(int argc, char **argv) { in main() function
111 int main(void) { in main() function
Dreader4.c6 * and parser context. (Note that the XMLReader functions require
8 * usage: reader4 <filename> [ filename ... ]
40 URL = docPtr->URL; in processDoc()
53 int main(int argc, char **argv) { in main() function
110 int main(void) { in main() function
/external/cronet/testing/merge_scripts/code_coverage/
Dconvert_to_istanbul.js2 // Use of this source code is governed by a BSD-style license that can be
14 const {createHash} = require('crypto');
15 const {join, dirname, normalize} = require('path');
16 const {readdir, readFile, writeFile, mkdir, access} = require('fs').promises;
17 const V8ToIstanbul = require(join(...NODE_MODULES, 'v8-to-istanbul'));
18 const {ArgumentParser} = require(join(...NODE_MODULES, 'argparse'));
19 const convertSourceMap = require(join(...NODE_MODULES, 'convert-source-map'));
20 const sourceMap = require(join(...NODE_MODULES, 'source-map'));
41 const origLine = sourcesMap[mapping.source][mapping.originalLine-1];
42 const genLine = sourcesMap[instrumentedFilePath][mapping.generatedLine-1];
[all …]
/external/openthread/third_party/mbedtls/repo/scripts/
Dconfig.py10 # Note that the version of this script in the mbedtls-2.28 branch must remain
14 ## SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
31 # pylint: disable=too-few-public-methods
162 # * Options that require additional build dependencies or unusual hardware.
169 #pylint: disable=line-too-long
186 'MBEDTLS_PKCS11_C', # build dependency (libpkcs11-helper)
209 configurable function pointers that default to the built-in function.
214 Exclude alternative implementations of library functions since they require
222 # Similar to non-platform xxx_ALT, requires platform_alt.h
240 # The baremetal configuration excludes options that require a library or
[all …]
Dcode_style.py7 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
18 UNCRUSTIFY_ARGS = ["-c", CONFIG_FILE]
19 CHECK_GENERATED_FILES = "tests/scripts/check-generated-files.sh"
32 # Match FILENAME(s) in "check SCRIPT (FILENAME...)"
35 def list_generated_files() -> FrozenSet[str]:
43 # Parse check-generated-files.sh to get an up-to-date list of
47 # This introduces a limitation: check-generated-files.sh must have
50 content = open(CHECK_GENERATED_FILES, encoding="utf-8").read()
54 def get_src_files(since: Optional[str]) -> List[str]:
68 output = subprocess.check_output(["git", "ls-files"] + file_patterns,
[all …]
/external/lua/doc/
Dlua.14 lua \- Lua interpreter
39 and also as arguments to its main function.
43 .B "lua \-v \-i"
46 .B "lua \-"
69 .RI '@ filename ',
71 .I filename
81 .BI \-e " stat"
85 .B \-i
89 .BI \-l " name"
90 require library
[all …]
/external/mbedtls/scripts/
Dconfig.py11 # this script in the mbedtls-2.28 branch must remain compatible with
16 ## SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
33 # pylint: disable=too-few-public-methods
173 # * Options that require additional build dependencies or unusual hardware.
180 #pylint: disable=line-too-long
217 configurable function pointers that default to the built-in function.
222 Exclude alternative implementations of library functions since they require
231 # Similar to non-platform xxx_ALT, requires platform_alt.h
249 # The baremetal configuration excludes options that require a library or
255 #pylint: disable=line-too-long
[all …]
Dcode_style.py7 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
18 UNCRUSTIFY_ARGS = ["-c", CONFIG_FILE]
19 CHECK_GENERATED_FILES = "tests/scripts/check-generated-files.sh"
32 # Match FILENAME(s) in "check SCRIPT (FILENAME...)"
35 def list_generated_files() -> FrozenSet[str]:
43 # Parse check-generated-files.sh to get an up-to-date list of
47 # This introduces a limitation: check-generated-files.sh must have
50 content = open(CHECK_GENERATED_FILES, encoding="utf-8").read()
54 def get_src_files(since: Optional[str]) -> List[str]:
68 output = subprocess.check_output(["git", "ls-files"] + file_patterns,
[all …]
/external/cronet/build/android/gyp/
Dwrite_native_libraries_java.py4 # Use of this source code is governed by a BSD-style license that can be
51 filename = os.path.split(library_name)[1]
52 assert filename.startswith('lib') and filename.endswith('.so'), filename
54 return '"%s"' % filename[3:-3]
57 def main(): function
61 parser.add_argument('--final', action='store_true', help='Use final fields.')
63 '--enable-chromium-linker',
67 '--native-libraries-list', help='File with list of native libraries.')
68 parser.add_argument('--cpu-family',
77 '--main-component-library',
[all …]
/external/kotlinx.atomicfu/atomicfu-gradle-plugin/src/test/kotlin/kotlinx/atomicfu/plugin/gradle/internal/
DTestDsl.kt2 * Copyright 2016-2022 JetBrains s.r.o. in <lambda>()
12 internal fun BaseKotlinGradleTest.test(fn: BaseKotlinScope.() -> Unit): GradleRunner { in <lambda>()
16 baseKotlinScope.files.forEach { scope -> in <lambda>()
39 …Container.kotlin(classFileName: String, sourceSet: String = "main", fn: AppendableScope.() -> Unit… in kotlin()
40 require(classFileName.endsWith(".kt")) { in kotlin()
44 val fileName = "src/${sourceSet}/kotlin/$classFileName" in kotlin() constant
45 file(fileName, fn) in kotlin()
51 internal fun FileContainer.buildGradleKts(fn: AppendableScope.() -> Unit) { in buildGradleKts()
52 val fileName = "build.gradle.kts" in buildGradleKts() constant
53 file(fileName, fn) in buildGradleKts()
[all …]
/external/angle/build/android/gyp/
Dwrite_native_libraries_java.py4 # Use of this source code is governed by a BSD-style license that can be
51 filename = os.path.split(library_name)[1]
52 assert filename.startswith('lib') and filename.endswith('.so'), filename
54 return '"%s"' % filename[3:-3]
57 def main(): function
61 parser.add_argument('--final', action='store_true', help='Use final fields.')
63 '--enable-chromium-linker',
67 '--native-libraries-list', help='File with list of native libraries.')
68 parser.add_argument('--cpu-family',
78 '--output', required=True, help='Path to the generated srcjar file.')
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/lua/
Dupbc.cc1 // Copyright (c) 2009-2021, Google LLC
52 static std::string Filename(const protobuf::FileDescriptor* file) { in Filename() function
53 return StripExtension(file->name()) + "_pb.lua"; in Filename()
57 std::string ret = StripExtension(file->name()) + "_pb"; in ModuleName()
66 text = 'A' + (digit - 10); in PrintHexDigit()
68 printer->WriteRaw(&text, 1); in PrintHexDigit()
73 printer->Print("\'"); in PrintString()
74 while (max_cols > 0 && !str->empty()) { in PrintString()
77 printer->PrintRaw("\\\\"); in PrintString()
78 max_cols--; in PrintString()
[all …]
/external/grpc-grpc/tools/distrib/python/grpcio_tools/grpc_tools/
Dcommand.py7 # http://www.apache.org/licenses/LICENSE-2.0
29 ) -> str:
30 """Obtain the filename for a resource on the file system."""
47 for filename in files:
48 if filename.endswith(".proto"):
50 os.path.abspath(os.path.join(root, filename))
58 "--proto_path={}".format(inclusion_root),
59 "--proto_path={}".format(well_known_protos_include),
60 "--python_out={}".format(inclusion_root),
61 "--pyi_out={}".format(inclusion_root),
[all …]
/external/linux-kselftest/tools/testing/selftests/exec/
Drecursion-depth.c27 int main(void) in main() function
29 if (unshare(CLONE_NEWNS) == -1) { in main()
37 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
41 /* Require "exec" filesystem. */ in main()
42 if (mount(NULL, "/tmp", "ramfs", 0, NULL) == -1) { in main()
47 #define FILENAME "/tmp/1" in main() macro
49 int fd = creat(FILENAME, 0700); in main()
50 if (fd == -1) { in main()
54 #define S "#!" FILENAME "\n" in main()
61 int rv = execve(FILENAME, NULL, NULL); in main()
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpcio_tools/grpc_tools/
Dcommand.py7 # http://www.apache.org/licenses/LICENSE-2.0
27 for filename in files:
28 if filename.endswith('.proto'):
30 filename)))
38 '--proto_path={}'.format(inclusion_root),
39 '--proto_path={}'.format(well_known_protos_include),
40 '--python_out={}'.format(inclusion_root),
41 '--pyi_out={}'.format(inclusion_root),
42 '--grpc_python_out={}'.format(inclusion_root),
44 if protoc.main(command) != 0:
[all …]
/external/minijail/tools/
Dgenerate_seccomp_policy.py2 # -*- coding: utf-8 -*-
10 # http://www.apache.org/licenses/LICENSE-2.0
44 # http://www.apache.org/licenses/LICENSE-2.0
57 LINE_RE = re.compile(r'^\s*(?:\[[^]]*\]|\d+)?\s*([a-zA-Z0-9_]+)\(([^)<]*)')
79 # pylint: disable=too-few-public-methods
91 strace_line_re = re.compile(r'[a-z]+[0-9]*\(.+\) += ')
94 for filename in values:
95 if not os.path.exists(filename):
96 parser.error(f'Input file {filename} not found.')
97 with open(filename, mode='r', encoding='utf8') as input_file:
[all …]
/external/kotlinx.coroutines/js/example-frontend-js/webpack.config.d/
Dcustom-config.js2 …* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen…
6 const HtmlWebpackPlugin = require('html-webpack-plugin');
8 config.output.filename = "[name].bundle.js"
16 // path from <root-build>/js/packages/example-frontend-js to src/main/web
17 config.resolve.modules.push("../../../../js/example-frontend-js/src/main/web");
/external/grpc-grpc/examples/node/
Dpackage-lock.json2 "name": "grpc-examples",
7 "@grpc/grpc-js": {
9 "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.1.8.tgz",
10 …"integrity": "sha512-64hg5rmEm6F/NvlWERhHmmgxbWU8nD2TMWE+9TvG7/WcOrFT3fzg/Uu631pXRFwmJ4aWO/kp9vVSl…
12 "@grpc/proto-loader": "^0.6.0-pre14",
14 "google-auth-library": "^6.0.0",
18 "@grpc/proto-loader": {
19 "version": "0.6.0-pre9",
20 "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.0-pre9.tgz",
21 …"integrity": "sha512-oM+LjpEjNzW5pNJjt4/hq1HYayNeQT+eGrOPABJnYHv7TyNPDNzkQ76rDYZF86X5swJOa4EujEMzQ…
[all …]
/external/pigweed/pw_ide/ts/pigweed-vscode/
Dwebpack.config.js7 // https://www.apache.org/licenses/LICENSE-2.0
17 const path = require('path');
18 const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
19 const webpack = require('webpack');
24 // Code web �� -> https://webpack.js.org/configuration/target/#target
27 // the entry point of this extension, �� ->
28 // https://webpack.js.org/configuration/entry-context/
32 // the bundle is stored in the 'dist' folder (check package.json), �� ->
35 filename: 'extension.js', property
37 devtoolModuleFilenameTemplate: '../[resource-path]',
[all …]

12345678910>>...28