/external/autotest/server/cros/ap_configurators/ |
D | pyauto_utils.py | 33 _path = '' variable in ExistingPathReplacer 46 self._path = path 47 if os.path.exists(self._path): 49 assert os.path.isdir(self._path), '%s is not a directory' % self._path 51 assert os.path.isfile(self._path), '%s is not a file' % self._path 53 self._backup_basename = os.path.basename(self._path) 54 self._backup_dir = tempfile.mkdtemp(dir=os.path.dirname(self._path), 56 logging.info('Backing up %s in %s' % (self._path, self._backup_dir)) 57 shutil.move(self._path, 66 logging.info('Reinstating backup from %s to %s' % (from_path, self._path)) [all …]
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | device_denylist.py | 17 self._path = path 27 if not os.path.exists(self._path): 31 with open(self._path, 'r') as f: 35 os.remove(self._path) 39 self._path, denylist) 51 with open(self._path, 'w') as f: 68 self._path, reason) 76 logger.info('Resetting denylist %s', self._path) 78 if os.path.exists(self._path): 79 os.remove(self._path)
|
/external/skqp/experimental/canvaskit/htmlcanvas/ |
D | path2d.js | 145 this._path = null; 147 this._path = CanvasKit.MakePathFromSVGString(path); 149 this._path = path._getPath().copy(); 151 this._path = new CanvasKit.SkPath(); 155 return this._path; 165 this._path.addPath(path2d._getPath(), [transform.a, transform.c, transform.e, 170 arc(this._path, x, y, radius, startAngle, endAngle, ccw); 174 arcTo(this._path, x1, y1, x2, y2, radius); 178 bezierCurveTo(this._path, cp1x, cp1y, cp2x, cp2y, x, y); 182 closePath(this._path); [all …]
|
/external/skia/modules/canvaskit/htmlcanvas/ |
D | path2d.js | 146 this._path = null; 148 this._path = CanvasKit.Path.MakeFromSVGString(path); 150 this._path = path._getPath().copy(); 152 this._path = new CanvasKit.Path(); 156 return this._path; 166 this._path.addPath(path2d._getPath(), [transform.a, transform.c, transform.e, 171 arc(this._path, x, y, radius, startAngle, endAngle, ccw); 175 arcTo(this._path, x1, y1, x2, y2, radius); 179 bezierCurveTo(this._path, cp1x, cp1y, cp2x, cp2y, x, y); 183 closePath(this._path); [all …]
|
/external/lzma/CPP/Windows/ |
D | FileDir.h | 67 FString _path; variable 72 const FString &GetPath() const { return _path; } in GetPath() 82 FString _path; variable 86 const FString &GetPath() const { return _path; } in GetPath() 95 FString _path; variable 101 GetCurrentDir(_path); in CCurrentDirRestorer() 109 if (s != _path) in ~CCurrentDirRestorer() 110 SetCurrentDir(_path); in ~CCurrentDirRestorer()
|
D | FileDir.cpp | 336 bool CreateComplexDir(CFSTR _path) in CreateComplexDir() argument 341 DWORD attrib = NFind::GetFileAttrib(_path); in CreateComplexDir() 348 if (IsDriveRootPath_SuperAllowed(_path)) in CreateComplexDir() 351 unsigned prefixSize = GetRootPrefixSize(_path); in CreateComplexDir() 357 FString path (_path); in CreateComplexDir() 641 if (!CreateTempFile(prefix, false, _path, outFile)) in Create() 654 if (!CreateTempFile(tempPath + namePrefix, true, _path, outFile)) in CreateRandomInTempFolder() 664 _mustBeDeleted = !DeleteFileAlways(_path); in Remove() 681 return MyMoveFile(_path, name); in MoveTo() 700 if (!CreateTempFile(tempPath + prefix, true, _path, NULL)) in Create() [all …]
|
/external/lzma/CPP/7zip/UI/GUI/ |
D | ExtractDialog.cpp | 188 _path.Attach(GetItem(IDC_EXTRACT_PATH)); in OnInit() 209 _path.SetText(pathPrefix); in OnInit() 213 _path.AddString(_info.Paths[i]); in OnInit() 278 _path.GetText(currentPath); in OnButtonSetPath() 284 _path.SetCurSel(-1); in OnButtonSetPath() 286 _path.SetText(resultPath); in OnButtonSetPath() 352 _path.GetText(s); in OnOK() 356 int currentItem = _path.GetCurSel(); in OnOK() 359 _path.GetText(s); in OnOK() 360 if (_path.GetCount() >= kHistorySize) in OnOK() [all …]
|
/external/python/cpython2/Lib/ |
D | mailbox.py | 45 self._path = os.path.abspath(os.path.expanduser(path)) 251 'tmp': os.path.join(self._path, 'tmp'), 252 'new': os.path.join(self._path, 'new'), 253 'cur': os.path.join(self._path, 'cur'), 255 if not os.path.exists(self._path): 257 os.mkdir(self._path, 0700) 261 raise NoSuchMailboxError(self._path) 286 dest = os.path.join(self._path, subdir, uniq + suffix) 310 os.remove(os.path.join(self._path, self._lookup(key))) 340 tmp_path = os.path.join(self._path, temp_subpath) [all …]
|
/external/python/cpython3/Lib/ |
D | mailbox.py | 39 self._path = os.path.abspath(os.path.expanduser(path)) 276 'tmp': os.path.join(self._path, 'tmp'), 277 'new': os.path.join(self._path, 'new'), 278 'cur': os.path.join(self._path, 'cur'), 280 if not os.path.exists(self._path): 282 os.mkdir(self._path, 0o700) 286 raise NoSuchMailboxError(self._path) 311 dest = os.path.join(self._path, subdir, uniq + suffix) 336 os.remove(os.path.join(self._path, self._lookup(key))) 363 tmp_path = os.path.join(self._path, temp_subpath) [all …]
|
/external/parameter-framework/upstream/utility/windows/ |
D | DynamicLibrary.cpp | 40 DynamicLibrary::DynamicLibrary(const std::string &path) : _path(osSanitizePathName(path)) in DynamicLibrary() 44 HMODULE module = LoadLibrary(_path.c_str()); in DynamicLibrary() 50 throw std::runtime_error(_path + ": cannot open shared object file."); in DynamicLibrary() 69 throw std::runtime_error(_path + ": undefined symbol: " + symbol); in osGetSymbol()
|
/external/ltp/android/tools/ |
D | check_success_build.py | 36 _path = None variable in Module 62 self._path = self._header[1] 83 print " Module build failed: " + os.path.basename(self._path) 100 os.path.basename(self._path)) 115 "assuming build success: " + self._path 129 return os.path.isfile(self._output_dir + self._path)
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ |
D | JsonMappingException.java | 192 protected LinkedList<Reference> _path; field in JsonMappingException 415 if (_path == null) { in getPath() 418 return Collections.unmodifiableList(_path); in getPath() 457 if (_path == null) { in prependPath() 458 _path = new LinkedList<Reference>(); in prependPath() 464 if (_path.size() < MAX_REFS_TO_LIST) { in prependPath() 465 _path.addFirst(r); in prependPath() 497 if (_path == null) { in _buildMessage() 526 if (_path == null) { in _appendPathDesc() 529 Iterator<Reference> it = _path.iterator(); in _appendPathDesc()
|
/external/fonttools/Tests/ufoLib/ |
D | UFOZ_test.py | 59 self._path = s 62 return tostr(self._path, sys.getfilesystemencoding()) 67 assert reader._path == path.__fspath__() 70 assert writer._path == path.__fspath__() 97 assert writer._path == "<memfs>"
|
/external/libyuv/files/ |
D | setup_links.py | 149 self._path = path 158 log('Planning to remove %s: %s', filesystem_type, self._path) 160 log('Removing %s: %s', filesystem_type, self._path) 163 os.remove(self._path) 170 self._path = path 174 logging.warn('Planning to remove directory: %s', self._path) 176 logging.warn('Removing directory: %s', self._path) 182 subprocess.check_call(['rd', '/q', '/s', self._path], shell=True) 184 shutil.rmtree(self._path) 191 self._path = path [all …]
|
/external/scapy/.travis/ |
D | test.sh | 65 for _path in /sbin /usr/sbin /usr/local/sbin /Users/travis/Library/Python/2.7/bin; do 66 [ -d "$_path" ] && echo "$PATH" | grep -qvE "(^|:)$_path(:|$)" && export PATH="$PATH:$_path"
|
/external/python/cpython2/Lib/test/ |
D | test_mailbox.py | 54 self._path = test_support.TESTFN 55 self._delete_recursively(self._path) 56 self._box = self._factory(self._path) 60 self._delete_recursively(self._path) 144 self._box = self._factory(self._path, factory=rfc822.Message) 438 self._box = self._factory(self._path) 459 return self._path + '.lock' 512 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' % 559 box = mailbox.Maildir(self._path, factory=FakeMessage) 567 self._box = mailbox.Maildir(self._path) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_mailbox.py | 54 self._path = support.TESTFN 55 self._delete_recursively(self._path) 56 self._box = self._factory(self._path) 60 self._delete_recursively(self._path) 234 self._box = self._factory(self._path) 528 self._box = self._factory(self._path) 549 return self._path + '.lock' 598 self.assertEqual(os.listdir(os.path.join(self._path, 'tmp')), []) 606 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' % 653 box = mailbox.Maildir(self._path, factory=FakeMessage) [all …]
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/ |
D | ClassPathRepository.java | 36 private ClassPath _path = null; field in ClassPathRepository 40 _path = path; in ClassPathRepository() 89 return loadClass(_path.getInputStream(className), className); in loadClass() 154 return _path; in getClassPath()
|
D | MemorySensitiveClassPathRepository.java | 38 private ClassPath _path = null; field in MemorySensitiveClassPathRepository 42 this._path = path; in MemorySensitiveClassPathRepository() 95 return loadClass(_path.getInputStream(className), className); in loadClass() 161 return _path; in getClassPath()
|
/external/pigweed/pw_tokenizer/py/ |
D | tokens_test.py | 401 self._path = Path(file.name) 404 self._path.unlink() 407 self._path.write_text(CSV_DATABASE) 408 db = tokens.DatabaseFile(self._path) 415 self.assertEqual(self._path.read_text(), 419 self._path.write_text('1234') 422 tokens.DatabaseFile(self._path) 425 self._path.write_text('MK34567890') 428 tokens.DatabaseFile(self._path) 431 self._path.write_bytes(b'\x80' * 20) [all …]
|
/external/llvm-project/lld/include/lld/Core/ |
D | File.h | 72 return _path; in path() 74 _archiveMemberPath = (_archivePath + "(" + _path + ")").str(); in path() 84 StringRef memberPath() const { return _path; } in memberPath() 217 : _path(p), _kind(kind), _ordinal(UINT64_MAX), in File() 231 StringRef _path;
|
/external/pigweed/pw_build/py/ |
D | python_runner_test.py | 256 def _path(self, *segments: str, create: bool = False) -> str: member in ExpandExpressionsTest 287 path = self._path('test', 'fake_test.elf') 309 path = self._path('test', 'fake_test.elf', create=True) 349 self._path('fake_source_set.file_a.cc.o'), 350 self._path('fake_source_set.file_b.c.o') 357 self._path('fake_test.fake_test.cc.o'), 358 self._path('fake_test.fake_test_c.c.o')
|
/external/autotest/client/cros/ |
D | cros_disks.py | 477 self._path = path 492 os.path.join(base_dir, self._path)) 509 os.path.join(base_dir, self._path)) 539 path = os.path.join(base_dir, self._path) if self._path else base_dir 541 if self._path: 556 path = os.path.join(base_dir, self._path) if self._path else base_dir 566 seen.add(content._path) 599 path = os.path.join(base_dir, self._path) 609 path = os.path.join(base_dir, self._path)
|
/external/igt-gpu-tools/scripts/ |
D | test_igt_gpu_tools.py | 53 self._path = ondevice_test_path 54 subtests = run_command([self._path, "--list-subtests"]) 71 return run_command([self._path, "--run-subtest", subtest_name])
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_pathlib.py | 467 def _path(self): member in FakePath 525 self._path(), mode, buffering, encoding, errors, newline) 534 with FakeFileOpen(self.filesystem)(self._path(), mode='rb') as f: 541 with FakeFileOpen(self.filesystem)(self._path(), mode='r', 556 with FakeFileOpen(self.filesystem)(self._path(), mode='wb') as f: 576 with FakeFileOpen(self.filesystem)(self._path(), 613 return FakePath(os.path.expanduser(self._path()) 633 self.filesystem.utime(self._path(), times=None) 635 self.filesystem.raise_os_error(errno.EEXIST, self._path())
|