/external/clang/test/CodeGen/ |
bitfield.c | 1 // RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - -O3 -no-struct-path-tbaa | FileCheck %s 2 // RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - -O3 | FileCheck %s --check-prefix=PATH 21 // PATH-LABEL: @g0() 22 // PATH: ret i32 1 43 // PATH-LABEL: @g1() 44 // PATH: ret i32 1 63 // PATH-LABEL: @g2() 64 // PATH: ret i32 1 86 // PATH-LABEL: @g3() 87 // PATH: ret i32 [all...] |
/external/droiddriver/src/io/appium/droiddriver/util/ |
FileUtils.java | 35 * Opens file at {@code path} to output. If any directories on {@code path} do 40 public static BufferedOutputStream open(String path) throws FileNotFoundException { 41 File file = getAbsoluteFile(path); 53 * Returns a new file constructed using the absolute path of {@code path}. 57 * If any directories on {@code path} do not exist, they will be created. 59 public static File getAbsoluteFile(String path) { 60 File file = new File(path); 62 file = new File(System.getProperty("java.io.tmpdir"), path); [all...] |
/external/libselinux/src/ |
procattr.c | 21 char *path, *buf; local 29 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr); 32 rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr); 37 fd = open(path, O_RDONLY); 38 free(path); 79 char *path; local 86 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr); 89 rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr); 94 fd = open(path, O_RDWR); 95 free(path); [all...] |
/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/include/effects/ |
Sk1DPathEffect.h | 27 /** Called with the current distance along the path, with the current matrix 52 /** Dash by replicating the specified path. 53 @param path The path to replicate (dash) 54 @param advance The space between instances of path 55 @param phase distance (mod advance) along path for its initial position 56 @param style how to transform path at each point (based on the current 59 static SkPath1DPathEffect* Create(const SkPath& path, SkScalar advance, SkScalar phase, 61 return SkNEW_ARGS(SkPath1DPathEffect, (path, advance, phase, style)); 71 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Style) [all...] |
/external/skia/samplecode/ |
SampleAAClip.cpp | 77 SkPath path; local 83 // path.addRect(bounds); 84 // path.addOval(bounds); 85 path.addRoundRect(bounds, 4, 4); 86 aaclip.setPath(path); 91 path.offset(10, 10); 92 aaclip2.setPath(path); 109 SkPath path; 110 path.addRect(r); 114 canvas->drawPath(path, paint) [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...] |
/frameworks/base/tools/aapt2/ |
Source.h | 34 std::string path; member in struct:aapt::Source 44 std::string path; member in struct:aapt::SourceLine 55 std::string path; member in struct:aapt::SourceLineColumn 65 return SourceLine{ path, line }; 69 return SourceLineColumn{ path, line, column }; 73 return out << source.path; 77 return out << source.path << ":" << source.line; 81 return out << source.path << ":" << source.line << ":" << source.column; 85 return std::tie(lhs.path, lhs.line) < std::tie(rhs.path, rhs.line) [all...] |
/ndk/build/tools/toolchain-patches/mclinker/ |
0006-Fix-mingw-and-darwin-builds.patch | 32 std::string path(FindFileData.cFileName); 33 fs::PathCache::entry_type* entry = pDir.m_Cache.insert(path, exist); 35 - entry->setValue(path); 36 + entry->setValue(sys::fs::Path(path)); 45 path += std::string(FindFileData.cFileName); 46 entry = pIter.m_pParent->m_Cache.insert(path, exist); 48 - entry->setValue(path); 49 + entry->setValue(sys::fs::Path(path)); [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/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...] |
/system/media/audio_route/ |
audio_route.c | 74 struct mixer_path *path; member in struct:config_parse_state 78 /* path functions */ 98 static void path_print(struct audio_route *ar, struct mixer_path *path) 103 ALOGE("Path: %s, length: %d", path->name, path->length); 104 for (i = 0; i < path->length; i++) { 105 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index); 108 for (j = 0; j < path->setting[i].num_values; j++) 109 ALOGE(" id=%d value=%d", j, path->setting[i].value[j]) 608 struct mixer_path *path; local 629 struct mixer_path *path; local 653 struct mixer_path *path; local [all...] |
/external/jsoncpp/src/jsontestrunner/ |
main.cpp | 44 readInputTestFile( const char *path ) 46 FILE *file = fopen( path, "rb" ); 63 printValueTree( FILE *fout, Json::Value &value, const std::string &path = "." ) 68 fprintf( fout, "%s=null\n", path.c_str() ); 71 fprintf( fout, "%s=%s\n", path.c_str(), Json::valueToString( value.asLargestInt() ).c_str() ); 74 fprintf( fout, "%s=%s\n", path.c_str(), Json::valueToString( value.asLargestUInt() ).c_str() ); 77 fprintf( fout, "%s=%s\n", path.c_str(), normalizeFloatingPointStr(value.asDouble()).c_str() ); 80 fprintf( fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str() ); 83 fprintf( fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false" ); 87 fprintf( fout, "%s=[]\n", path.c_str() ) 242 std::string path; local [all...] |
/frameworks/base/core/java/android/transition/ |
PatternPathMotion.java | 23 import android.graphics.Path; 29 * A PathMotion that takes a Path pattern and applies it to the separation between two points. 30 * The starting point of the Path will be moved to the origin and the end point will be scaled 42 private Path mOriginalPatternPath; 44 private final Path mPatternPath = new Path(); 63 Path pattern = PathParser.createPathFromPathData(pathData); 72 * Creates a PatternPathMotion with the Path defining a pattern of motion between two 77 * @param patternPath A Path to be used as a pattern for two-dimensional motion. 79 public PatternPathMotion(Path patternPath) 140 Path path = new Path(); local [all...] |
/frameworks/base/test-runner/src/junit/runner/ |
TestCaseClassLoader.java | 25 /** scanned class path */ 39 * Constructs a TestCaseLoader. It scans the class path 43 this(System.getProperty("java.class.path")); 47 * Constructs a TestCaseLoader. It scans the class path 56 String separator= System.getProperty("path.separator"); 113 String path= (String) fPathItems.elementAt(i); local 115 if (isJar(path)) { 116 data= loadJarData(path, fileName); 118 data= loadFileData(path, fileName); 132 private byte[] loadFileData(String path, String fileName) 216 String path= p.getProperty(key); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalAlbumSet.java | 37 // The path should be "/local/image", "local/video" or "/local/all" 43 public static final Path PATH_ALL = Path.fromString("/local/all"); 44 public static final Path PATH_IMAGE = Path.fromString("/local/image"); 45 public static final Path PATH_VIDEO = Path.fromString("/local/video"); 61 public LocalAlbumSet(Path path, GalleryApp application) { 62 super(path, nextVersionNumber()) 139 Path path = parent.getChild(id); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/ |
GalleryWidgetMigrator.java | 31 import com.android.gallery3d.data.Path; 43 * bucket ID (i.e., directory hash) change in JB and JB MR1 (The external storage path has changed 62 // Migration is only needed when external storage path has changed 86 // path combined with external storage path. Otherwise, iterate through old external 87 // storage paths to find the relative path that matches the old bucket id, and then update 88 // bucket id and relative path 91 Path path = Path.fromString(entry.albumPath) local 137 String path = file.getAbsolutePath(); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SelectionManager.java | 23 import com.android.gallery3d.data.Path; 37 private Set<Path> mClickedSet; 49 public void onSelectionChange(Path path, boolean selected); 54 mClickedSet = new HashSet<Path>(); 107 public boolean isItemSelected(Path itemId) { 130 public void toggle(Path path) { 131 if (mClickedSet.contains(path)) { 132 mClickedSet.remove(path); [all...] |
/external/lzma/CPP/Common/ |
Wildcard.cpp | 85 // Splits path to strings
87 void SplitPathToParts(const UString &path, UStringVector &pathParts)
91 int len = path.Length();
96 wchar_t c = path[i];
108 void SplitPathToParts(const UString &path, UString &dirPrefix, UString &name)
111 for (i = path.Length() - 1; i >= 0; i--)
112 if (IsCharDirLimiter(path[i]))
114 dirPrefix = path.Left(i + 1);
115 name = path.Mid(i + 1);
118 UString ExtractDirPrefixFromPath(const UString &path)
[all...] |
/external/smali/util/src/test/java/org/jf/util/ |
PathUtilTest.java | 45 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 47 Assert.assertEquals(path, relativePath.getPath()); 58 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 60 /*the "internal" version of the method in PathUtil doesn't handle the case when the "leaf" of the base path 63 Assert.assertEquals(path, "."); 73 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 75 Assert.assertEquals(path, "."); 85 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 87 Assert.assertEquals(path, "."); 97 String path = PathUtil.getRelativeFileInternal(basePath, relativePath) local 109 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 121 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 133 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 145 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 157 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 169 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 181 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 193 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 205 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 217 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 229 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 241 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 253 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local 265 String path = PathUtil.getRelativeFileInternal(basePath, relativePath); local [all...] |
/external/deqp/scripts/build/ |
common.py | 27 SRC_BASE_DIR = os.path.realpath(os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))) 28 DEQP_DIR = os.path.join(SRC_BASE_DIR, "deqp") 39 def pushWorkingDir (path): 41 os.chdir(path) 67 for path in os.environ['PATH'].split(os.pathsep): 68 path = path.strip('"' [all...] |
/external/lldb/utils/test/ |
run-until-faulted.py | 5 The lldb executable is located via your PATH env variable, if not specified. 14 return os.path.isfile(fpath) and os.access(fpath, os.X_OK) 17 """Find the full path to a program, or return None.""" 18 fpath, fname = os.path.split(program) 23 for path in os.environ["PATH"].split(os.pathsep): 24 exe_file = os.path.join(path, program) 69 # This is to set up the Python path to include the pexpect-2.4 dir. 71 scriptPath = sys.path[0 [all...] |