/prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/test/ |
test_discovery.py | 31 original_isfile = os.path.isfile 33 os.path.isfile = original_isfile 34 original_isdir = os.path.isdir 36 os.path.isdir = original_isdir 41 os.listdir = lambda path: path_lists.pop(0) 44 def isdir(path): 45 return path.endswith('dir') 46 os.path.isdir = isdir 49 def isfile(path): 51 return not path.endswith('dir') and not 'another_dir' in pat [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/data/ |
AbstractData.java | 47 * Retrieves the value at the specified path in this HDF node's subtree. 51 public String getValue(String path, String defaultValue) { 52 Data child = getChild(path); 62 * Retrieves the integer value at the specified path in this HDF node's subtree. If the value does 67 public int getIntValue(String path, int defaultValue) { 68 Data child = getChild(path); 82 * Retrieves the value at the specified path in this HDF node's subtree. If not found, returns 85 public String getValue(String path) { 86 return getValue(path, null); 90 * Retrieves the value at the specified path in this HDF node's subtree. If not found or invalid [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
WindowsFakeFileSystem.java | 25 * <li>Either forward slashes (/) or backward slashes (\) are valid path separators (but are normalized to '\')</li>
26 * <li>An absolute path starts with a drive specifier (e.g. 'a:' or 'c:') followed
58 * @param path - the path
61 protected String getFileSystemEntryKey(String path) {
62 return normalize(path).toLowerCase();
70 * Return true if the specified path designates a valid (absolute) file path. For Windows
71 * paths, a path is valid if it starts with a drive specifier followed by
74 * @param path - the path [all...] |
/external/skia/gm/ |
inversepaths.cpp | 16 SkPath path; local 17 path.addRect(rect); 18 return path; 23 SkPath path; local 24 path.addRect(rect); 25 return path; 29 SkPath path; local 30 path.addCircle(cx, cy, d/2, SkPath::kCW_Direction); 31 return path; 35 SkPath path; local 124 SkPath path = paths[pathIndex](cx, cy, size); variable [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/shortest_paths/tests/ |
test_dense.py | 17 path, dist =nx.floyd_warshall_predecessor_and_distance(XG) 19 assert_equal(path['s']['v'],'u') 32 path, dist = nx.floyd_warshall_predecessor_and_distance(GG) 34 # skip this test, could be alternate path s-u-v 35 # assert_equal(path['s']['v'],'y') 43 path, dist = nx.floyd_warshall_predecessor_and_distance(G) 45 # skip this test, could be alternate path s-u-v 46 # assert_equal(path['s']['v'],'x') 53 path, dist = nx.floyd_warshall_predecessor_and_distance(nx.cycle_graph(7)) 55 assert_equal(path[0][3],2 [all...] |
/device/htc/flounder/ |
nvaudio_conf.xml | 14 <!ELEMENT playback (pcm_config, device, path)> 15 <!ELEMENT capture (pcm_config, device, path)> 16 <!ELEMENT voice-call (pcm_config, device, path)> 17 <!ELEMENT device (path)> 18 <!ELEMENT path (ctl)> 39 <!ELEMENT path EMPTY> 40 <!ATTLIST path name CDATA #IMPLIED> 41 <!ELEMENT path EMPTY> 75 <path> 80 </path> [all...] |
/external/chromium-trace/trace-viewer/tracing/build/ |
gjslint.py | 14 os.path.abspath(os.path.join( 16 os.path.abspath(os.path.join( 19 sys.path += new_paths 24 sys.path.remove(p) 41 sys.argv.extend(['-r', os.path.relpath(p)])
|
/external/compiler-rt/unittests/ |
lit.common.unit.cfg | 18 # Tweak PATH to include llvm tools dir. 20 if (not llvm_tools_dir) or (not os.path.exists(llvm_tools_dir)): 22 path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH'])) 23 config.environment['PATH'] = path
|
/external/icu/icu4c/source/common/ |
resbund_cnv.cpp | 25 ResourceBundle::ResourceBundle( const UnicodeString& path, 30 constructForLocale(path, locale, error); 33 ResourceBundle::ResourceBundle( const UnicodeString& path, 37 constructForLocale(path, Locale::getDefault(), error); 41 ResourceBundle::constructForLocale(const UnicodeString& path, 45 if (path.isEmpty()) { 49 UnicodeString nullTerminatedPath(path);
|
/external/jetty/ |
.classpath | 3 <classpathentry excluding="org/eclipse/jetty/jmx/|org/eclipse/jetty/util/log/jmx/|org/eclipse/jetty/server/handler/jmx/|org/eclipse/jetty/server/jmx/|org/eclipse/jetty/server/session/jmx/|org/eclipse/jetty/servlet/jmx/|org/eclipse/jetty/security/SpnegoLoginService.java|org/eclipse/jetty/security/SpnegoUserIdentity.java|org/eclipse/jetty/security/SpnegoUserPrincipal.java|org/eclipse/jetty/server/session/JDBCSessionIdManager.java|org/eclipse/jetty/server/session/JDBCSessionManager.java|org/eclipse/jetty/util/preventers/AppContextLeakPreventer.java|org/eclipse/jetty/util/preventers/AWTLeakPreventer.java" including="**/*.java" kind="src" path="src/java"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 <classpathentry kind="lib" path="lib/javax.servlet-3.0.0.v201112011016.jar" sourcepath="lib/javax.servlet-3.0.0.v201112011016-sources.jar"/> 6 <classpathentry kind="lib" path="lib/slf4j-api-1.6.1.jar"/> 7 <classpathentry kind="lib" path="lib/slf4j-jdk14-1.6.1.jar"/> 8 <classpathentry kind="lib" path="lib/jetty-util-6.1.26.jar"/> 9 <classpathentry kind="output" path="bin/classes"/>
|
/external/lzma/CPP/7zip/Common/ |
FilePathAutoRename.cpp | 15 const UString &extension, unsigned value, UString &path)
19 path = name;
20 path += number;
21 path += extension;
22 return NFile::NFind::DoesFileOrDirExist(path);
27 UString path;
local 49 if (MakeAutoName(name, extension, mid, path))
|
/external/skia/include/effects/ |
SkDiscretePathEffect.h | 15 This path effect chops a path into discrete segments, and randomly displaces them. 19 /** Break the path into segments of segLength length, and randomly move the endpoints 20 away from the original path by a maximum of deviation. 24 the seed value that is used to randomize the path 26 in which case filtering a path multiple times will 30 different set of path segments.
|
/external/skia/src/gpu/gl/ |
GrGLPathRange.h | 18 * Currently this represents a range of GL_NV_path_rendering Path IDs. If we 19 * support other GL path extensions then this would have to have a type enum 26 * Initialize a GL path range from a PathGenerator. This class will allocate 27 * the GPU path objects and initialize them lazily. 32 * Initialize a GL path range from an existing range of pre-initialized GPU 33 * path objects. This class assumes ownership of the GPU path objects and
|
/external/vogar/src/vogar/util/ |
IoUtils.java | 26 public static void safeMkdirs(File path) { 28 if (!path.exists()) { 29 success = path.mkdirs(); 30 } else if (!path.isDirectory()) { 31 success = path.delete() && path.mkdirs(); 37 throw new RuntimeException("Failed to make directory " + path);
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/networkx/tests/ |
test.py | 3 from os import path,getcwd namespace 26 nx_install_dir=path.join(path.dirname(__file__), path.pardir) 28 if getcwd() == path.abspath(path.join(nx_install_dir,path.pardir)):
|
/system/vold/ |
Process.h | 24 static void killProcessesWithOpenFiles(const char *path, int signal); 26 static int checkSymLink(int pid, const char *path, const char *name); 27 static int checkFileMaps(int pid, const char *path); 28 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max); 33 static int readSymLink(const char *path, char *link, size_t max); 34 static int pathMatchesMountPoint(const char *path, const char *mountPoint); 39 void vold_killProcessesWithOpenFiles(const char *path, int signal);
|
/system/core/healthd/ |
BatteryMonitor.cpp | 99 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) { 102 if (path.isEmpty()) 104 int fd = open(path.string(), O_RDONLY, 0); 106 KLOG_ERROR(LOG_TAG, "Could not open '%s'\n", path.string()); 123 BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String8& path) { 126 int length = readFromFile(path, buf, SIZE); 151 bool BatteryMonitor::getBooleanField(const String8& path) { 156 if (readFromFile(path, buf, SIZE) > 0) { 165 int BatteryMonitor::getIntField(const String8& path) { 170 if (readFromFile(path, buf, SIZE) > 0) 215 String8 path; local 376 String8 path; local [all...] |
/external/antlr/antlr-3.4/runtime/Python/ |
setup.py | 35 for path in ('antlr3', 'unittests', 'tests'): 36 path = os.path.join(os.path.dirname(__file__), path) 37 if os.path.isdir(path): 38 for root, dirs, files in os.walk(path, topdown=True): 44 filePath = os.path.join(root, name) 83 testDir = os.path.join(os.path.dirname(__file__), 'unittests' [all...] |
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/tvcm/ |
resource.py | 12 """Represents a file found via a path search.""" 22 """The path to the file from the top-level directory""" 23 return os.path.relpath(self.absolute_path, self.toplevel_dir) 31 """The dotted name for this resource based on its relative path.""" 36 dirname = os.path.dirname(relative_path) 37 basename = os.path.basename(relative_path) 38 modname = os.path.splitext(basename)[0] 40 name = dirname.replace(os.path.sep, '.') + '.' + modname 49 if not os.path.exists(self.absolute_path):
|
/external/e2fsprogs/misc/ |
mklost+found.c | 34 char path [sizeof (LPF) + 1 + 256]; local 61 strcpy (path, LPF); 62 strcat (path, "/"); 63 strcat (path, name); 64 if ((d = creat (path, 0644)) == -1) { 77 strcpy (path, LPF); 78 strcat (path, "/"); 79 strcat (path, name); 80 if (unlink (path) == -1) {
|
/external/llvm/utils/llvm-build/llvmbuild/ |
configutil.py | 11 Given an input and output path, "configure" the file at the given input path 19 The output path's parent directory need not exist (it will be created). 21 If the output path does exist and the configured data is not different than 39 output_parent_path = os.path.dirname(os.path.abspath(output_path)) 40 if not os.path.exists(output_parent_path): 43 # If the output path exists, load it and compare to the configured contents. 44 if os.path.exists(output_path):
|
/external/skia/tests/ |
ParsePathTest.cpp | 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { 13 SkParsePath::ToSVGString(path, &str); 22 // edge, even if it is not in the path. 23 REPORTER_ASSERT(reporter, path == path2); 24 if (path != path2) { 46 SkPath path; local 47 bool success = SkParsePath::FromSVGString(gRec[i].fStr, &path); 50 const SkRect& pathBounds = path.getBounds(); 53 test_to_from(reporter, path);
|
/external/skia/tools/skpdiff/ |
skpdiff_util.h | 38 * @param path A path to a directory to enumerate 42 bool get_directory(const char path[], SkTArray<SkString>* entries); 53 * Gets the absolute version of the given path. 54 * @param path The absolute or relative path to expand 55 * @return The absolute path of the given path on success, or an empty string on failure. 57 SkString get_absolute_path(const SkString& path);
|
/frameworks/base/graphics/java/android/graphics/ |
FontFamily.java | 61 public boolean addFont(String path) { 62 return nAddFont(mNativePtr, path); 65 public boolean addFontWeightStyle(String path, int weight, boolean style) { 66 return nAddFontWeightStyle(mNativePtr, path, weight, style); 69 public boolean addFontFromAsset(AssetManager mgr, String path) { 70 return nAddFontFromAsset(mNativePtr, mgr, path); 75 private static native boolean nAddFont(long nativeFamily, String path); 76 private static native boolean nAddFontWeightStyle(long nativeFamily, String path, 79 String path);
|
/device/htc/flounder/audio/hal/ |
Android.mk | 24 $(call include-path-for, audio-utils) \ 25 $(call include-path-for, audio-route) \ 26 $(call include-path-for, audio-effects)
|