/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
RmdCommandHandler.java | 40 String path = getRealPath(session, command.getRequiredParameter(0));
local 43 verifyFileSystemCondition(getFileSystem().exists(path), path, "filesystem.doesNotExist");
local 44 verifyFileSystemCondition(getFileSystem().isDirectory(path), path, "filesystem.isNotADirectory");
local 45 verifyFileSystemCondition(getFileSystem().listNames(path).size() == 0, path, "filesystem.directoryIsNotEmpty");
local 48 verifyWritePermission(session, getFileSystem().getParent(path));
50 getFileSystem().delete(path);
51 sendReply(session, ReplyCodes.RMD_OK, "rmd", list(path));
[all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
FileSystemEntry.java | 37 * Return the path for this file system entry
39 * @return the path for this file system entry
44 * Return the file name or directory name (no path) for this entry
46 * @return the file name or directory name (no path) for this entry
87 * Return a new FileSystemEntry that is a clone of this object, except having the specified path
89 * @param path - the new path value for the cloned file system entry
90 * @return a new FileSystemEntry that has all the same values as this object except for its path
92 public FileSystemEntry cloneWithNewPath(String path);
95 * Lock down the path so it cannot be changed [all...] |
/external/nanopb-c/examples/network_server/ |
client.c | 38 bool listdir(int fd, char *path) 46 if (path == NULL) 53 if (strlen(path) + 1 > sizeof(request.path)) 55 fprintf(stderr, "Too long path.\n"); 59 strcpy(request.path, path); 92 char *path = NULL; local 95 path = argv[1]; 110 if (!listdir(sockfd, path)) [all...] |
/external/skia/samplecode/ |
SampleAAClip.cpp | 78 SkPath path; local 84 // path.addRect(bounds); 85 // path.addOval(bounds); 86 path.addRoundRect(bounds, 4, 4); 87 aaclip.setPath(path); 92 path.offset(10, 10); 93 aaclip2.setPath(path); 110 SkPath path; 111 path.addRect(r); 115 canvas->drawPath(path, paint) [all...] |
/external/v8/build/android/gyp/ |
push_libraries.py | 19 BUILD_ANDROID_DIR = os.path.abspath( 20 os.path.join(os.path.dirname(__file__), os.pardir)) 21 sys.path.append(BUILD_ANDROID_DIR) 38 device_path = os.path.join(options.device_dir, lib) 39 host_path = os.path.join(options.libraries_dir, lib) 45 device.PushChangedFiles([(os.path.abspath(host_path), device_path)]) 64 parser.add_option('--stamp', help='Path to touch on success.') 66 help='Path to build device configuration.') 75 output_directory=os.path.abspath(options.output_directory) [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
PathShape.java | 21 import android.graphics.Path; 24 * Creates geometric paths, utilizing the {@link android.graphics.Path} class. 25 * The path can be drawn to a Canvas with its own draw() method, 30 private Path mPath; 40 * @param path a Path that defines the geometric paths for this shape 48 public PathShape(Path path, float stdWidth, float stdHeight) { 49 mPath = path; 71 shape.mPath = new Path(mPath) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MediaSetUtils.java | 24 import com.android.gallery3d.data.Path; 47 private static final Path[] CAMERA_PATHS = { 48 Path.fromString("/local/all/" + CAMERA_BUCKET_ID), 49 Path.fromString("/local/image/" + CAMERA_BUCKET_ID), 50 Path.fromString("/local/video/" + CAMERA_BUCKET_ID)}; 52 public static boolean isCameraSource(Path path) { 53 return CAMERA_PATHS[0] == path || CAMERA_PATHS[1] == path 54 || CAMERA_PATHS[2] == path; [all...] |
/prebuilts/go/darwin-x86/src/go/types/ |
self_test.go | 14 "path/filepath" 51 path := filepath.Join("..", p) 52 runbench(t, path, false) 53 runbench(t, path, true) 58 func runbench(t *testing.T, path string, ignoreFuncBodies bool) { 60 files, err := pkgFiles(fset, path) 68 conf.Check(path, fset, files, nil) 82 filepath.Base(path), d, lines, int64(float64(lines)/d.Seconds()), ignoreFuncBodies, 86 func pkgFiles(fset *token.FileSet, path string) ([]*ast.File, error) { 87 filenames, err := pkgFilenames(path) // from stdlib_test.g [all...] |
/prebuilts/go/darwin-x86/src/syscall/ |
zsysnum_openbsd_386.go | 13 SYS_OPEN = 5 // { int sys_open(const char *path, \ 16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } 17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); } 19 SYS_CHDIR = 12 // { int sys_chdir(const char *path); } 21 SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ 22 SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } 23 SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ 28 SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ 29 SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } 40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); [all...] |
zsysnum_openbsd_amd64.go | 13 SYS_OPEN = 5 // { int sys_open(const char *path, \ 16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } 17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); } 19 SYS_CHDIR = 12 // { int sys_chdir(const char *path); } 21 SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ 22 SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } 23 SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ 28 SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ 29 SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } 40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
self_test.go | 14 "path/filepath" 51 path := filepath.Join("..", p) 52 runbench(t, path, false) 53 runbench(t, path, true) 58 func runbench(t *testing.T, path string, ignoreFuncBodies bool) { 60 files, err := pkgFiles(fset, path) 68 conf.Check(path, fset, files, nil) 82 filepath.Base(path), d, lines, int64(float64(lines)/d.Seconds()), ignoreFuncBodies, 86 func pkgFiles(fset *token.FileSet, path string) ([]*ast.File, error) { 87 filenames, err := pkgFilenames(path) // from stdlib_test.g [all...] |
/prebuilts/go/linux-x86/src/syscall/ |
zsysnum_openbsd_386.go | 13 SYS_OPEN = 5 // { int sys_open(const char *path, \ 16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } 17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); } 19 SYS_CHDIR = 12 // { int sys_chdir(const char *path); } 21 SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ 22 SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } 23 SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ 28 SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ 29 SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } 40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); [all...] |
zsysnum_openbsd_amd64.go | 13 SYS_OPEN = 5 // { int sys_open(const char *path, \ 16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } 17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); } 19 SYS_CHDIR = 12 // { int sys_chdir(const char *path); } 21 SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ 22 SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } 23 SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ 28 SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ 29 SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } 40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); [all...] |
/system/core/base/ |
test_utils.cpp | 63 CHECK_LT(result, sizeof(tmp_dir)) << "path truncated to: " << result; 65 // GetTempPath() returns a path with a trailing slash, but init() 81 unlink(path); 85 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(), 87 fd = mkstemp(path); 95 rmdir(path); 99 snprintf(path, sizeof(path), "%s%cTemporaryDir-XXXXXX", tmp_dir.c_str(), 101 return (mkdtemp(path) != nullptr) [all...] |
/system/core/include/cutils/ |
fs.h | 46 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 52 extern int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid); 58 extern int fs_prepare_file_strict(const char* path, mode_t mode, uid_t uid, gid_t gid); 65 extern int fs_read_atomic_int(const char* path, int* value); 71 extern int fs_write_atomic_int(const char* path, int value); 74 * Ensure that all directories along given path exist, creating parent 75 * directories as needed. Validates that given path is absolute and that 76 * it contains no relative "." or ".." paths or symlinks. Last path segment 77 * is treated as filename and ignored, unless the path ends with "/". 79 extern int fs_mkdirs(const char* path, mode_t mode) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_shutil.py | 9 import os.path namespace 11 from os.path import splitdrive 54 def write_file(self, path, content='xxx'): 55 """Writes a file in the given path. 58 path can be a string or a sequence. 60 if isinstance(path, (list, tuple)): 61 path = os.path.join(*path) 62 f = open(path, 'w' [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_shutil.py | 9 import os.path namespace 11 from os.path import splitdrive 54 def write_file(self, path, content='xxx'): 55 """Writes a file in the given path. 58 path can be a string or a sequence. 60 if isinstance(path, (list, tuple)): 61 path = os.path.join(*path) 62 f = open(path, 'w' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_shutil.py | 9 import os.path namespace 11 from os.path import splitdrive 54 def write_file(self, path, content='xxx'): 55 """Writes a file in the given path. 58 path can be a string or a sequence. 60 if isinstance(path, (list, tuple)): 61 path = os.path.join(*path) 62 f = open(path, 'w' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_shutil.py | 9 import os.path namespace 11 from os.path import splitdrive 54 def write_file(self, path, content='xxx'): 55 """Writes a file in the given path. 58 path can be a string or a sequence. 60 if isinstance(path, (list, tuple)): 61 path = os.path.join(*path) 62 f = open(path, 'w' [all...] |
/external/chromium-trace/catapult/third_party/coverage/coverage/ |
files.py | 9 import os.path namespace 26 # The absolute path to our current directory. 27 RELATIVE_DIR = os.path.normcase(abs_file(os.curdir) + os.sep) 47 fnorm = os.path.normcase(filename) 57 An absolute path with no redundant components and normalized case. 61 if not os.path.isabs(filename): 62 for path in [os.curdir] + sys.path: 63 if path is None: 65 f = os.path.join(path, filename [all...] |
/external/jsoncpp/src/jsontestrunner/ |
main.cpp | 45 static std::string readInputTestFile(const char* path) { 46 FILE* file = fopen(path, "rb"); 63 printValueTree(FILE* fout, Json::Value& value, const std::string& path = ".") { 69 fprintf(fout, "%s=null\n", path.c_str()); 74 path.c_str(), 80 path.c_str(), 86 path.c_str(), 90 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); 93 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); 96 fprintf(fout, "%s=[]\n", path.c_str()) 228 std::string path; local [all...] |
/external/autotest/client/bin/ |
local_host.py | 62 Get a list of files on a remote host given a glob pattern path. 69 Given a sequence of path strings, return the set of all paths that 72 @param paths: sequence of path strings. 73 @return: a sequence of path strings that are all the unique paths that 80 path = paths.pop() 81 if not os.path.exists(path): 83 closure.add(path) 84 if os.path.islink(path) [all...] |
/external/autotest/client/cros/faft/utils/ |
firmware_updater.py | 26 self._keys_path = os.path.join(self._temp_path, 'keys') 27 self._work_path = os.path.join(self._temp_path, 'work') 46 working_shellball = os.path.join(self._temp_path, 68 (os.path.join(self._work_path, 'bios.bin'), 'RW_FWID_A')) 85 os.path.join(self._work_path, 'bios.bin'), 86 os.path.join(self._temp_path, 'output.bin'), 87 os.path.join(self._keys_path, 'firmware_data_key.vbprivk'), 88 os.path.join(self._keys_path, 'firmware.keyblock'), 89 os.path.join(self._keys_path, 'dev_firmware_data_key.vbprivk'), 90 os.path.join(self._keys_path, 'dev_firmware.keyblock') [all...] |
/external/autotest/client/site_tests/platform_CrosDisksArchive/ |
platform_CrosDisksArchive.py | 34 Path of any found file relative to the root directory. 39 for path in os.listdir(os.path.join(root_dir, current_dir)): 40 expanded_path = os.path.join(root_dir, current_dir, path) 41 relative_path = os.path.join(current_dir, path) 42 if os.path.isdir(expanded_path): 55 archive_path: Path of the output archive. 62 for path in self._find_all_files(root_dir) [all...] |
/external/pdfium/testing/tools/ |
common.py | 42 # Usually, we pass "-logdir" "foo\bar\spam path" args to Dr. Memory. 71 self.my_dir = os.path.dirname(os.path.realpath(__file__)) 72 self.testing_dir = os.path.dirname(self.my_dir) 73 if (os.path.basename(self.my_dir) != 'tools' or 74 os.path.basename(self.testing_dir) != 'testing'): 76 self.pdfium_dir = os.path.dirname(self.testing_dir) 77 # Find path to build directory. This depends on whether this is a 79 # standalone, we expect a path like .../pdfium/out/Debug, but for 80 # chromium, we expect a path like .../src/out/Debug two level [all...] |