| /external/okio/okio/src/commonMain/kotlin/okio/ |
| D | Path.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 18 import okio.Path.Companion.toPath 21 * A hierarchical address on a file system. A path is an identifier only; a [FileSystem] is required 22 * to access the file that a path refers to, if any. 25 * ---------------------- 28 * (including Linux, Android, macOS, and iOS), the `/` slash character separates path segments. On 29 * Windows, the `\` backslash character separates path segments. The two platforms each have their 30 * own rules for path resolution. This class implements all rules on all platforms; for example you 31 * can model a Linux path in a native Windows application. [all …]
|
| /external/apache-xml/src/main/java/org/apache/xml/utils/ |
| D | SystemIDResolver.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 13 * distributed under the License is distributed on an "AS IS" BASIS, 19 * $Id: SystemIDResolver.java 468655 2006-10-28 07:12:06Z minchau $ 30 * This class is used to resolve relative URIs and SystemID 31 * strings into absolute URIs. 33 * <p>This is a generic utility for resolving URIs, other than the 35 * see code comments for details on how resolution is performed.</p> 42 * Get an absolute URI from a given relative URI (local path). 44 * <p>The relative URI is a local filesystem path. The path can be 45 * absolute or relative. If it is a relative path, it is resolved relative [all …]
|
| /external/apache-xml/src/main/java/org/apache/xml/serializer/utils/ |
| D | SystemIDResolver.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 13 * distributed under the License is distributed on an "AS IS" BASIS, 19 * $Id: SystemIDResolver.java 468654 2006-10-28 07:09:23Z minchau $ 30 * This class is used to resolve relative URIs and SystemID 31 * strings into absolute URIs. 33 * <p>This is a generic utility for resolving URIs, other than the 35 * see code comments for details on how resolution is performed.</p> 37 * This class is a copy of the one in org.apache.xml.utils. 40 * This class is not a public API, it is only public because it is 49 * Get an absolute URI from a given relative URI (local path). [all …]
|
| /external/curl/tests/ |
| D | pathhelp.pm | 10 # This software is licensed as described in the file COPYING, which 15 # copies of the Software, and permit persons to whom the Software is 18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 # SPDX-License-Identifier: curl 25 # This Perl package helps with path transforming when running curl tests on 30 # (1) /some/path - absolute path in Unix-style 31 # (2) D:/some/path - absolute path in Win32-style 32 # (3) some/path - relative path 33 # (4) D:some/path - path relative to current directory on Win32 drive (paths 35 # (5) \some/path - path from root directory on current Win32 drive (*) [all …]
|
| /external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
| D | PathUtilities.java | 4 import java.nio.file.Path; 14 * <li>Absolute with respect to the current working directory (if relative). 15 * <li>Normalized with respect to "upward" parent path segments. 18 * <p>For example if the current directory is {@code "/home/user/work/cldr"}: 23 * // Resolve parent path segments. 25 * // Retain (but normalize) absolute paths. 29 * <p>Note that it is very important to realize that this is NOT the same as obtaining the 30 * "canonical" path (e.g. via {@link File#getCanonicalPath()} since the methods in this class <em>do 33 * <p>This is important because in some build systems (e.g. Bazel), file hierarchies are created by 34 * mapping files using symbolic links, and there's no necessary reason that the canonical file path [all …]
|
| /external/linux-kselftest/tools/testing/selftests/openat2/ |
| D | resolve_test.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2018-2019 SUSE LLC. 24 * |-- procexe -> /proc/self/exe 25 * |-- procroot -> /proc/self/root 26 * |-- root/ 27 * |-- mnt/ [mountpoint] 28 * | |-- self -> ../mnt/ 29 * | `-- absself -> /mnt/ 30 * |-- etc/ 31 * | `-- passwd [all …]
|
| /external/webrtc/third_party/crc32c/src/ |
| D | .ycm_extra_conf.py | 2 # Use of this source code is governed by a BSD-style license that can be 7 https://github.com/ycm-core/ycmd#ycm_extra_confpy-specification 17 '-Werror', # Unlike clang_complete, YCM can also be used as a linter. 18 '-DUSE_CLANG_COMPLETER', # YCM needs this. 19 '-xc++', # YCM needs this to avoid compiling headers as C code. 25 '-isystem', 26 '-I', 27 '-iquote', 28 '--sysroot=' 33 """Returns the absolute path to the directory containing this script.""" [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Support/ |
| D | Path.h | 1 //===- llvm/Support/Path.h - Path Operating System Concept ------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This file declares the llvm::sys::path namespace. It is designed after 11 // path class. 13 //===----------------------------------------------------------------------===// 25 namespace path { 35 /// Check if \p S uses POSIX path rules. 48 /// Check if \p S uses Windows path rules. 54 /// Path iterator. [all …]
|
| /external/webrtc/tools_webrtc/vim/ |
| D | webrtc.ycm_extra_conf.py | 5 # Use of this source code is governed by a BSD-style license 11 # Autocompletion config for YouCompleteMe in WebRTC. This is just copied from 23 # ln -rs tools_webrtc/vim/webrtc.ycm_extra_conf.py \ 29 # let g:ycm_extra_conf_globlist=['<path to .ycm_extra_conf.py>'] 47 # * The purpose of this script is to construct an accurate enough command line 50 # * Right now, we only pull the -I and -D flags. That seems to be sufficient 59 import os.path 66 '-DUSE_CLANG_COMPLETER', 67 '-std=c++11', 68 '-x', [all …]
|
| /external/fonttools/Lib/fontTools/svgLib/path/ |
| D | parser.py | 1 # SVG Path specification parser. 2 # This is an adaptation from 'svg.path' by Lennart Regebro (@regebro), 4 # returning a list of svg.path Path objects. 6 # https://github.com/regebro/svg.path/blob/4f9b6e3/src/svg/path/parser.py 7 # Copyright (c) 2013-2014 Lennart Regebro 20 # https://www.w3.org/TR/css-syntax-3/#number-token-diagram 21 # but -6.e-5 will be tokenized as "-6" then "-5" and confuse parsing 23 r"[-+]?" # optional sign 25 r"(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][-+]?[0-9]+)?" # int/float 27 r"(?:\.[0-9]+(?:[eE][-+]?[0-9]+)?)" # float with leading dot (e.g. '.42') [all …]
|
| /external/toolchain-utils/llvm_tools/ |
| D | chroot.py | 3 # Use of this source code is governed by a BSD-style license that can be 9 from pathlib import Path 14 def InChroot() -> bool: 19 def VerifyInsideChroot() -> None: 29 def VerifyOutsideChroot() -> None: 39 def VerifyChromeOSRoot(chromeos_root: Union[Path, str]) -> None: argument 40 """Checks whether the path actually points to ChromiumOS checkout root. 43 AssertionError: The path is not ChromiumOS checkout root. 46 subdir = "src/third_party/chromiumos-overlay" 47 path = Path(chromeos_root).expanduser() / subdir [all …]
|
| /external/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/ |
| D | NativeLibraryLoader.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 12 * distributed under the License is distributed on an "AS IS" BASIS, 25 * http://www.apache.org/licenses/LICENSE-2.0 28 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 61 private static final String NATIVE_RESOURCE_HOME = "META-INF/native/"; 71 log("-D{0}: {1}", WORK_DIR_PROPERTY_NAME, WORKDIR); 95 // Good to have an absolute path, but it's OK. in getWorkDir() 120 final boolean absolute; field in NativeLibraryLoader.LoadResult 126 String name, boolean absolute, boolean usingHelperClassloader) { in newSuccessResult() argument 127 return new LoadResult(name, absolute, true, usingHelperClassloader, null); in newSuccessResult() [all …]
|
| /external/conscrypt/openjdk/src/main/java/org/conscrypt/ |
| D | NativeLibraryLoader.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 24 * http://www.apache.org/licenses/LICENSE-2.0 27 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 60 private static final String NATIVE_RESOURCE_HOME = "META-INF/native/"; 70 log("-D{0}: {1}", WORK_DIR_PROPERTY_NAME, WORKDIR); 94 // Good to have an absolute path, but it's OK. in getWorkDir() 119 final boolean absolute; field in NativeLibraryLoader.LoadResult 125 String name, boolean absolute, boolean usingHelperClassloader) { in newSuccessResult() argument 126 return new LoadResult(name, absolute, true, usingHelperClassloader, null); in newSuccessResult() [all …]
|
| /external/webrtc/tools_webrtc/presubmit_checks_lib/ |
| D | check_orphan_headers.py | 5 # Use of this source code is governed by a BSD-style license 40 file_path: the path of the file to read. 52 file_path: the absolute path to the .h file to check. 55 root_dir_path: the absolute path of the root of project. 58 A string with the absolute path to the BUILD.gn file responsible to include 63 'File {} is not an header file (.h)'.format(file_path)) 64 candidate_dir = os.path.dirname(file_path) 66 candidate_build_gn_path = os.path.join(candidate_dir, 'BUILD.gn') 69 candidate_dir = os.path.abspath(os.path.join(candidate_dir, os.pardir)) 75 """Returns True if the header is listed in the BUILD.gn file. [all …]
|
| /external/ant-glob/src/org/apache/tools/ant/util/ |
| D | FileUtils.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 12 * distributed under the License is distributed on an "AS IS" BASIS, 28 * referred to using abstract path names which are translated to native 38 //get some non-crypto-grade randomness from various places. 62 * NTFS has a granularity of 100 nanoseconds, which is less 69 * fromUri is called for each element when parseing ant build 70 * files. It is a costly operation. This just caches the result 91 * Method to retrieve The FileUtils, which is shared by all users of this 107 * Verifies that the specified filename represents an absolute path. 108 * Differs from new java.io.File("filename").isAbsolute() in that a path [all …]
|
| /external/cronet/third_party/apache-portable-runtime/src/docs/ |
| D | canonical_filenames.html | 11 compared, and that a mismatch is guarenteed to reflect that the 14 <p>The first discrepancy is in volume roots. Unix and pure deriviates 15 have only one root path, "/". Win32 and OS2 share root paths of 16 the form "D:/", D: is the volume designation. However, this can 18 'this' machine. Win32 and OS2 also may employ a UNC root path, 19 of the form "//server/share/" where share is a share-point of the 22 machine. All these non-Unix file systems accept volume:path, 23 without a slash following the colon, as a path relative to the 25 is, neither an absolute nor a relative path per se.</p> 27 <p>The second discrepancy is in the meaning of the 'this' directory. [all …]
|
| /external/cronet/url/ |
| D | url_canon_relative.cc | 2 // Use of this source code is governed by a BSD-style license that can be 25 // Firefox does a case-sensitive compare (which is probably wrong--Mozilla bug 26 // 379034), whereas IE is case-insensitive. 42 // We assume the base is already canonical, so we don't have to in AreSchemesEqual() 54 // consistent about URL paths beginning with slashes. This function is like 70 // Caller should ensure that the |scheme| is not empty. in IsValidScheme() 73 // From https://url.spec.whatwg.org/#scheme-start-state: in IsValidScheme() 75 // 1. If c is an ASCII alpha, append c, lowercased, to buffer, and set in IsValidScheme() 77 // 2. Otherwise, if state override is not given, set state to no scheme in IsValidScheme() 84 // From https://url.spec.whatwg.org/#scheme-state: in IsValidScheme() [all …]
|
| /external/bazelbuild-rules_go/go/tools/builders/ |
| D | stdlib.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 10 // distributed under the License is distributed on an "AS IS" BASIS, 22 "path/filepath" 32 out := flags.String("out", "", "Path to output go root") 52 // Fail fast if cgo is required but a toolchain is not configured. 54 return fmt.Errorf(`cgo is required, but a C toolchain has not been configured. 55 You may need to use the flags --cpu=x64_windows --compiler=mingw-gcc.`) 82 // Make sure we have an absolute path to the C compiler. 83 // TODO(#1357): also take absolute paths of includes and other paths in flags. 86 // Ensure paths are absolute. [all …]
|
| /external/libtraceevent/scripts/ |
| D | utilities.mak | 1 # SPDX-License-Identifier: GPL-2.0 9 # nl-escape 11 # Usage: escape = $(call nl-escape[,escape]) 13 # This is used as the common way to specify 15 # newlines; the default is a bizarre string. 17 nl-escape = $(if $(1),$(1),m822df3020w6a44id34bt574ctac44eb9f4n) 19 # escape-nl 21 # Usage: escaped-text = $(call escape-nl,text[,escape]) 28 # The only solution is to change each newline into 31 # $(call unescape-nl...) [all …]
|
| /external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/ |
| D | AbsoluteFileResourceLoaderTestCase.java | 12 * http://www.apache.org/licenses/LICENSE-2.0 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 35 * Test use of an absolute path with the FileResourceLoader 37 * @author <a href="mailto:wglass@apache.org">Will Glass-Husain</a> 58 * Path to template file. This will get combined with the 59 * application directory to form an absolute path 61 private final static String TEMPLATE_PATH = TEST_COMPARE_DIR + "/absolute/absolute"; 66 private static final String RESULTS_DIR = TEST_RESULT_DIR + "/absolute/results"; 71 private static final String COMPARE_DIR = TEST_COMPARE_DIR + "/absolute/compare"; [all …]
|
| /external/cronet/build/toolchain/ios/ |
| D | compile_xcassets.py | 2 # Use of this source code is governed by a BSD-style license that can be 7 The script compile_xcassets.py is a wrapper around actool to compile 10 actool seems to require absolute path but gn generates command-line 13 The wrapper filter out any message that is not a section header and 14 not a warning or error message, and fails if filtered output is not 16 an option to fail with non-zero error code when there are warnings. 31 NOTICE_SECTION = 'com.apple.actool.compilation-results' 33 # Map special type of asset catalog to the corresponding command-line 36 '.appiconset': '--app-icon', 37 '.launchimage': '--launch-image', [all …]
|
| /external/libbrillo/brillo/ |
| D | file_utils.h | 2 // Use of this source code is governed by a BSD-style license that can be 19 // Ensures a regular file owned by user |uid| and group |gid| exists at |path|. 20 // Any other entity at |path| will be deleted and replaced with an empty 21 // regular file. If a new file is needed, any missing parent directories will 26 BRILLO_EXPORT bool TouchFile(const base::FilePath& path, 35 BRILLO_EXPORT bool TouchFile(const base::FilePath& path); 37 // Opens the absolute |path| to a regular file or directory ensuring that none 38 // of the path components are symbolic links and returns a FD. If |path| is 39 // relative, or contains any symbolic links, or points to a non-regular file or 40 // directory, an invalid FD is returned instead. |mode| is ignored unless [all …]
|
| /external/angle/build/toolchain/ios/ |
| D | compile_xcassets.py | 2 # Use of this source code is governed by a BSD-style license that can be 7 The script compile_xcassets.py is a wrapper around actool to compile 10 actool seems to require absolute path but gn generates command-line 13 The wrapper filter out any message that is not a section header and 14 not a warning or error message, and fails if filtered output is not 16 an option to fail with non-zero error code when there are warnings. 32 NOTICE_SECTION = 'com.apple.actool.compilation-results' 34 # Map special type of asset catalog to the corresponding command-line 37 '.appiconset': '--app-icon', 38 '.launchimage': '--launch-image', [all …]
|
| /external/python/cpython2/Lib/ |
| D | ntpath.py | 1 # Module 'ntpath' -- common operations on WinNT/Win95 pathnames 5 module as os.path. 24 # strings representing various path-related bits and pieces 41 # (this is done by normpath). 50 # Return whether a path is absolute. 51 # Trivial in Posix, harder on the Mac or MS-DOS. 52 # For DOS it is absolute if it starts with a slash or backslash (current 57 """Test whether a path is absolute""" 63 def join(path, *paths): argument 65 result_drive, result_path = splitdrive(path) [all …]
|
| /external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/ |
| D | FakeWindowsFileSystem.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 25 * <li>Filenames are case-insensitive (and normalized to lower-case)</li> 26 …* <li>Either forward slashes (/) or backward slashes (\) are valid path separators (but are norm… 27 * <li>An absolute path starts with a drive specifier (e.g. 'a:' or 'c:') followed 31 * @version $Revision: $ - $Date: $ 41 //------------------------------------------------------------------------- 43 //------------------------------------------------------------------------- 49 protected boolean isValidName(String path) { 51 assert path != null [all …]
|