Home
last modified time | relevance | path

Searched +full:open +full:- +full:source (Results 1 – 25 of 1139) sorted by relevance

12345678910>>...46

/third_party/icu/
DOAT.xml1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
17 -->
18 <!-- OAT(OSS Audit Tool) configuration guide:
19 basedir: Root dir, the basedir + project path is the real source file location.
28 5. task project: Projects to be checked, the path field define the source root dir of the project.
37 "license" is used to check source license header in the specified path;
38 "copyright" is used to check source copyright header in the specified path;
39 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
[all …]
/third_party/libphonenumber/
DOAT.xml1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd.
8 http://www.apache.org/licenses/LICENSE-2.0
18 -->
19 <!-- OAT(OSS Audit Tool) configuration guide:
20 basedir: Root dir, the basedir + project path is the real source file location.
29 5. task project: Projects to be checked, the path field define the source root dir of the project.
38 "license" is used to check source license header in the specified path;
39 "copyright" is used to check source copyright header in the specified path;
40 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
[all …]
/third_party/libsnd/
Dmake_lite.py5 def count_enclosed_functions (source): argument
9 for ch in source:
18 return -1
21 def find_function_prototype (source, proto_name): argument
22 proto_re = "(^[a-zA-Z_ \t]+\s+%s[^a-zA-Z0-9_]\s*\([^\)]+\)\s+;\n)" % (proto_name)
23 proto_result = re.search (proto_re, source, re.MULTILINE | re.DOTALL)
29 def find_function_definition (source, func_name): argument
30 func_re = "(\n[a-zA-Z_ \t]+\n%s[^a-zA-Z0-9_].* /\* %s \*/\n)" % (func_name, func_name)
31 func_result = re.search (func_re, source, re.MULTILINE | re.DOTALL)
43 def find_include (source, inc_name): argument
[all …]
/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py27 """Should have no issue importing a source module [basic]. And if there is
126 with open(mapping['_temp'], 'w', encoding='utf-8') as file:
147 with open(mapping[name], 'w', encoding='utf-8') as file:
164 with open(mapping['_temp'], 'w', encoding='utf-8') as file:
177 with open(file_path, 'w', encoding='utf-8') as file:
199 source = mapping['_temp']
200 compiled = self.util.cache_from_source(source)
201 with open(source, 'w', encoding='utf-8') as f:
204 os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5))
243 source = mapping['_temp']
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dtest_check_spec_links.py3 # 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 …]
/third_party/python/Lib/test/
Dtest_pipes.py20 # tr a-z A-Z is not portable, so make the ranges explicit
33 with t.open(TESTFN, 'w') as f:
35 with open(TESTFN) as f:
41 with open(TESTFN, 'w') as f:
46 with open(TESTFN2) as f:
52 with open(TESTFN, 'w') as f:
56 f = t.open(TESTFN, 'r')
65 with open(TESTFN, 'w') as f:
67 with open(TESTFN2, 'w') as f:
71 with open(TESTFN2) as f:
[all …]
Dtest_winconsoleio.py26 "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 …]
Dtest_linecache.py55 self.file_byte_string = ''.join(self.file_list).encode('utf-8')
59 with tokenize.open(self.file_name) as fp:
97 file_byte_string = b'# coding=utf-8\n\x80abc'
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:
[all …]
/third_party/python/Lib/distutils/tests/
Dtest_file_util.py29 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 …]
/third_party/python/Tools/iobench/
Diobench.py1 # -*- 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 …]
/third_party/openSLES/
DOAT.xml1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2022 Huawei Device Co., Ltd.
8 http://www.apache.org/licenses/LICENSE-2.0
18 -->
19 <!-- OAT(OSS Audit Tool) configuration guide:
20 basedir: Root dir, the basedir + project path is the real source file location.
29 5. task project: Projects to be checked, the path field define the source root dir of the project.
38 "license" is used to check source license header in the specified path;
39 "copyright" is used to check source copyright header in the specified path;
40 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
[all …]
/third_party/python/Lib/
Dpipes.py4 ------------
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().
75 STDIN_FILEOUT = '-f' # Must write a real file
76 FILEIN_STDOUT = 'f-' # Must read a real file
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/
DCONTRIBUTIONS2 ---------------------------
4 This software is distributed under a permissive open source license to
5 allow it to be used in any projects, whether open source or proprietary.
13 inclusion of Signed-off-by tag in the contributions at the end of the
20 --------------------------------------------------------
26 Signed-off-by: Your Name <your@email.example.org>
57 format-patch. The patch can then be sent, e.g., with git send-email.
61 ------------------------------------------
64 open source license indicated in the file" means that the contribution
74 open source license indicated in the file" means that the contribution
[all …]
/third_party/wpa_supplicant/
DCONTRIBUTIONS2 ---------------------------
4 This software is distributed under a permissive open source license to
5 allow it to be used in any projects, whether open source or proprietary.
13 inclusion of Signed-off-by tag in the contributions at the end of the
20 --------------------------------------------------------
26 Signed-off-by: Your Name <your@email.example.org>
57 format-patch. The patch can then be sent, e.g., with git send-email.
61 ------------------------------------------
64 open source license indicated in the file" means that the contribution
74 open source license indicated in the file" means that the contribution
[all …]
/third_party/openssl/external/perl/Text-Template-1.56/t/
Dtaint.t1 #!perl -T
2 # Tests for taint-mode features
13 …or all versions up to at least 0.2308) is currently bugged under MSWin32/taint mode [as of 2018-09]
15 …# ref: [File-Temp: Fails under -T, Windows 7, Strawberry Perl 5.12.1](https://rt.cpan.org/Public/B…
20 my $tmpfile = File::Temp->new;
21 my $file = $tmpfile->filename;
32 open my $fh, '>', $file or die "Couldn't write temporary file $file: $!";
37 my $obj = Text::Template->new(@_);
38 eval { $obj->fill_in() };
48 my $obj = Text::Template->new(@_);
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/chapters/VK_KHR_display/
Ddisplay.adoc1 // Copyright 2014-2024 The Khronos Group Inc.
3 // SPDX-License-Identifier: CC-BY-4.0
19 [open,refpage='VkDisplayKHR',desc='Opaque handle to a display object',type='handles']
20 --
24 --
26 [open,refpage='vkGetPhysicalDeviceDisplayPropertiesKHR',desc='Query information about the available…
27 --
57 --
59 [open,refpage='VkDisplayPropertiesKHR',desc='Structure describing an available display device',type…
60 --
[all …]
Ddisplay.txt1 // Copyright 2014-2021 The Khronos Group, Inc.
3 // SPDX-License-Identifier: CC-BY-4.0
19 [open,refpage='VkDisplayKHR',desc='Opaque handle to a display object',type='handles']
20 --
24 --
26 [open,refpage='vkGetPhysicalDeviceDisplayPropertiesKHR',desc='Query information about the available…
27 --
53 --
55 [open,refpage='VkDisplayPropertiesKHR',desc='Structure describing an available display device',type…
56 --
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/
DCONTRIBUTIONS2 ---------------------------
4 This software is distributed under a permissive open source license to
5 allow it to be used in any projects, whether open source or proprietary.
13 inclusion of Signed-off-by tag in the contributions at the end of the
20 --------------------------------------------------------
26 Signed-off-by: Your Name <your@email.example.org>
57 format-patch. The patch can then be sent, e.g., with git send-email.
64 ------------------------------------------
67 open source license indicated in the file" means that the contribution
77 open source license indicated in the file" means that the contribution
[all …]
/third_party/curl/docs/
DCHECKSRC.md1 <!--
4 SPDX-License-Identifier: curl
5 -->
9 This is the tool we use within the curl project to scan C source code and
10 check that it adheres to our [Source Code Style guide](CODE_STYLE.md).
18 `-W[file]` skip that file and exclude it from being checked. Helpful
21 `-D[dir]` directory name to prepend to filenames when accessing them.
23 `-h` shows the help output, that also lists all recognized warnings
33 checksrc.pl -h
39 - `ASSIGNWITHINCONDITION`: Assignment within a conditional expression. The
[all …]
/third_party/sqlite/
DLICENSE3 …e the original SQLite code, either in source code form or as a compiled binary, for any purpose, c…
5- those parts of the SQLite library that you actually bundle and ship with a larger application. S…
7 …tten from scratch. No code has been taken from other projects or from the open internet. Every lin…
9 Open-Source, not Open-Contribution
11open-source, meaning that you can make as many copies of it as you want and do whatever you want w…
28 … you would like to make a suggested change, and include a patch as a proof-of-concept, that would …
/third_party/vk-gl-cts/external/vulkan-docs/src/chapters/
Dcopies.txt1 // Copyright 2015-2021 The Khronos Group, Inc.
3 // SPDX-License-Identifier: CC-BY-4.0
33 Multisampled images can: be resolved to a non-multisampled image with
45 * The set of all bytes bound to all the source regions must: not overlap
49 * Copy regions must: be non-empty.
54 * Source image subresources must: be in either the
63 As a consequence, if an image subresource is used as both source and
67 * Source images must: have ename:VK_FORMAT_FEATURE_TRANSFER_SRC_BIT in
68 their <<resources-image-format-features,format features>>.
70 in their <<resources-image-format-features,format features>>.
[all …]
Dcopies.adoc1 // Copyright 2015-2024 The Khronos Group Inc.
3 // SPDX-License-Identifier: CC-BY-4.0
14 All copy commands that have a source format with an X component in its
21 [[copies-buffers]]
24 [open,refpage='vkCmdCopyBuffer',desc='Copy data between buffer regions',type='protos']
25 --
34 * pname:srcBuffer is the source buffer.
40 Each source region specified by pname:pRegions is copied from the source
53 --
55 [open,refpage='VkBufferCopy',desc='Structure specifying a buffer copy operation',type='structs']
[all …]
/third_party/jerryscript/
DDCO.md3 The JerryScript project uses the signed-off-by language and process to give us a clear chain of tru…
7 … in whole or in part by me and I have the right to submit it under the open source license indicat…
9open source license and I have the right under that license to submit that work with modifications…
13 …, including my sign-off) is maintained indefinitely and may be redistributed consistent with this …
15 We have the same requirements for using the signed-off-by process as the Linux kernel.
16 In short, you need to include a signed-off-by tag in the commit message of every patch.
20 > JerryScript-DCO-1.0-Signed-off-by: Random J Developer random@developer.example.org
22 "JerryScript-DCO-1.0-Signed-off-by:" this is a developer's certification that he or she has the rig…
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
Dgentests.pl1 #!/usr/bin/perl -w
3 # Copyright (c) 2002-2003, Intel Corporation. All rights reserved.
4 # Created by: rusty.lynch REMOVE-THIS AT intel DOT com
7 # source tree.
22 open (LIST, "ls ./templates/*.in|") or die "Could not get listing";
27 if ($fname =~ /template_([0-9]*)-.*\.in/) {
30 open (TEMPLATE, "$fname") or die "Could not open $fname";
34 print "Building source based on $fname\n";
39 open (OUT, ">$assertion-" . $testcases{$assertion} . ".c")
40 or die "Could not open source file";
/third_party/python/Doc/library/
Ddbm.rst1 :mod:`dbm` --- Interfaces to Unix "databases"
7 **Source code:** :source:`Lib/dbm/__init__.py`
9 --------------
11 :mod:`dbm` is a generic interface to variants of the DBM database ---
13 slow-but-simple implementation in module :mod:`dbm.dumb` will be used. There
22 item --- the latter is used when :exc:`dbm.error` is raised.
28 available --- :mod:`dbm.gnu`, :mod:`dbm.ndbm` or :mod:`dbm.dumb` --- should
29 be used to open a given file.
37 Accepts :term:`path-like object` for filename.
39 .. function:: open(file, flag='r', mode=0o666)
[all …]

12345678910>>...46