Home
last modified time | relevance | path

Searched refs:_path (Results 1 – 25 of 59) sorted by relevance

123

/external/autotest/server/cros/ap_configurators/
Dpyauto_utils.py31 _path = '' variable in ExistingPathReplacer
44 self._path = path
45 if os.path.exists(self._path):
47 assert os.path.isdir(self._path), '%s is not a directory' % self._path
49 assert os.path.isfile(self._path), '%s is not a file' % self._path
51 self._backup_basename = os.path.basename(self._path)
52 self._backup_dir = tempfile.mkdtemp(dir=os.path.dirname(self._path),
54 logging.info('Backing up %s in %s' % (self._path, self._backup_dir))
55 shutil.move(self._path,
64 logging.info('Reinstating backup from %s to %s' % (from_path, self._path))
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_blacklist.py18 self._path = path
28 if not os.path.exists(self._path):
32 with open(self._path, 'r') as f:
36 os.remove(self._path)
40 self._path, blacklist)
52 with open(self._path, 'w') as f:
69 ','.join(devices), self._path, reason)
77 logger.info('Resetting blacklist %s', self._path)
79 if os.path.exists(self._path):
80 os.remove(self._path)
/external/skqp/experimental/canvaskit/htmlcanvas/
Dpath2d.js145 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/
Dpath2d.js145 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/lzma/CPP/Windows/
DFileDir.h67 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()
DFileDir.cpp336 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/
DExtractDialog.cpp188 _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/
Dmailbox.py45 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/
Dmailbox.py38 self._path = os.path.abspath(os.path.expanduser(path))
273 'tmp': os.path.join(self._path, 'tmp'),
274 'new': os.path.join(self._path, 'new'),
275 'cur': os.path.join(self._path, 'cur'),
277 if not os.path.exists(self._path):
279 os.mkdir(self._path, 0o700)
283 raise NoSuchMailboxError(self._path)
308 dest = os.path.join(self._path, subdir, uniq + suffix)
333 os.remove(os.path.join(self._path, self._lookup(key)))
360 tmp_path = os.path.join(self._path, temp_subpath)
[all …]
/external/ltp/android/tools/
Dcheck_success_build.py36 _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/parameter-framework/upstream/utility/windows/
DDynamicLibrary.cpp40 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/libyuv/files/
Dsetup_links.py149 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/webrtc/
Dsetup_links.py170 self._path = path
179 log('Planning to remove %s: %s', filesystem_type, self._path)
181 log('Removing %s: %s', filesystem_type, self._path)
184 os.remove(self._path)
191 self._path = path
195 logging.warn('Planning to remove directory: %s', self._path)
197 logging.warn('Removing directory: %s', self._path)
203 subprocess.check_call(['rd', '/q', '/s', self._path], shell=True)
205 shutil.rmtree(self._path)
212 self._path = path
[all …]
/external/python/cpython2/Lib/test/
Dtest_mailbox.py54 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 …]
Dtest_old_mailbox.py122 self._path = test_support.TESTFN
125 os.unlink(self._path)
129 with open(self._path, 'w') as f:
147 with open(self._path, 'r') as f:
/external/python/cpython3/Lib/test/
Dtest_mailbox.py54 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/fonttools/Tests/ufoLib/
DUFOZ_test.py61 self._path = s
64 return tostr(self._path, sys.getfilesystemencoding())
69 assert reader._path == path.__fspath__()
72 assert writer._path == path.__fspath__()
99 assert writer._path == "<memfs>"
/external/libxcam/xcore/
Danalyzer_loader.cpp30 _path = strndup (lib_path, XCAM_MAX_STR_SIZE); in AnalyzerLoader()
38 if (_path) in ~AnalyzerLoader()
39 xcam_free (_path); in ~AnalyzerLoader()
94 …XCAM_LOG_DEBUG ("get symbol(%s) failed from lib(%s), reason:%s", _symbol, XCAM_STR (_path), dlerro… in get_symbol()
Danalyzer_loader.h40 return _path; in get_lib_path()
51 char *_path; variable
/external/scapy/.travis/
Dtest.sh65 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/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DClassPathRepository.java36 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()
DMemorySensitiveClassPathRepository.java38 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/autotest/client/cros/
Ddevice_jail_utils.py80 self._path = match.group(1)
86 self._path = match.group(1)
110 dev_file_wrapper[0] = OSFile(self._path, os.O_RDWR)
157 '--remove={0}'.format(self._path)])
Dcros_disks.py450 self._path = path
465 os.path.join(base_dir, self._path))
482 os.path.join(base_dir, self._path))
501 path = os.path.join(base_dir, self._path) if self._path else base_dir
503 if self._path:
517 path = os.path.join(base_dir, self._path) if self._path else base_dir
535 path = os.path.join(base_dir, self._path)
545 path = os.path.join(base_dir, self._path)
/external/openssh/regress/
Dforward-control.sh12 _path=$1
14 while test ! -f $_path ; do
15 test $_n -eq 1 && trace "waiting for $_path to appear"

123