/prebuilts/misc/darwin-x86/analyzer/tools/scan-build/ |
set-xcode-analyzer | 20 def FindClangSpecs(path): 21 print "(+) Searching for xcspec file in: ", path 22 for root, dirs, files in os.walk(path): 25 yield os.path.join(root, f) 27 def ModifySpec(path, isBuiltinAnalyzer, pathToChecker): 30 with open(path) as f: 34 with open(path) as f2: 52 print "(+) processing:", path 54 shutil.copy(t.name, path) 55 os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH [all...] |
/prebuilts/misc/linux-x86/analyzer/tools/scan-build/ |
set-xcode-analyzer | 20 def FindClangSpecs(path): 21 print "(+) Searching for xcspec file in: ", path 22 for root, dirs, files in os.walk(path): 25 yield os.path.join(root, f) 27 def ModifySpec(path, isBuiltinAnalyzer, pathToChecker): 30 with open(path) as f: 34 with open(path) as f2: 52 print "(+) processing:", path 54 shutil.copy(t.name, path) 55 os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH [all...] |
/prebuilts/ndk/ |
make_platform_symlinks.py | 20 THIS_DIR = os.path.realpath(os.path.dirname(__file__)) 29 if os.path.exists(api_str(api)): 39 os.chdir(os.path.join(THIS_DIR, 'current/platforms')) 47 if not os.path.exists(api_str(api)): 51 src = os.path.join('..', api_str(first_multiarch_api), arch) 52 dst = os.path.join(api_str(api), arch) 53 if os.path.islink(dst): 58 if not os.path.exists(api_str(api)): 62 src = os.path.join('..', api_str(first_lp64_api), arch [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
idle.pyw | 4 # IDLE is not installed, but maybe PyShell is on sys.path: 11 idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_sunaudiodev.py | 11 if not os.path.exists(audiodev): 14 def play_sound_file(path): 15 fp = open(path, 'r')
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
idle.pyw | 4 # IDLE is not installed, but maybe PyShell is on sys.path: 11 idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_sunaudiodev.py | 11 if not os.path.exists(audiodev): 14 def play_sound_file(path): 15 fp = open(path, 'r')
|
/system/connectivity/shill/test-scripts/ |
monitor-flimflam | 8 def property_changed(name, value, path, interface): 14 print "{%s} [%s] %s = %s" % (iface, path, name, val) 24 path_keyword="path",
|
/system/core/libprocessgroup/ |
processgroup.cpp | 87 static int convertUidToPath(char *path, size_t size, uid_t uid) 89 return snprintf(path, size, "%s/%s%d", 95 static int convertUidPidToPath(char *path, size_t size, uid_t uid, int pid) 97 return snprintf(path, size, "%s/%s%d/%s%d", 108 char path[PROCESSGROUP_MAX_PATH_LEN] = {0}; local 109 convertUidPidToPath(path, sizeof(path), uid, pid); 110 strlcat(path, PROCESSGROUP_CGROUP_PROCS_FILE, sizeof(path)); 112 int fd = open(path, O_RDONLY) 191 char path[PROCESSGROUP_MAX_PATH_LEN] = {0}; local 209 char path[PROCESSGROUP_MAX_PATH_LEN]; local 238 char path[PROCESSGROUP_MAX_PATH_LEN]; local 342 char path[PROCESSGROUP_MAX_PATH_LEN] = {0}; local [all...] |
/system/extras/f2fs_utils/ |
mkf2fsuserimg.sh | 3 # To call this script, make sure make_f2fs is somewhere in PATH 12 echo "in mkf2fsuserimg.sh PATH=$PATH"
|
/external/v8/gypfiles/ |
vs_toolchain.py | 16 script_dir = os.path.dirname(os.path.realpath(__file__)) 17 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir)) 18 SRC_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 19 sys.path.insert(1, os.path.join(chrome_src, 'tools')) 20 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib') [all...] |
/external/clang/lib/Tooling/ |
FileMatchTrie.cpp | 17 #include "llvm/Support/Path.h" 36 /// Each node has storage for up to one path and a map mapping a path segment to 44 /// An insert of a path 47 /// - If the node has a path 'p2' but no children, take the last path segment 53 /// An insert operation is linear in the number of a path's segments. 55 // We cannot put relative paths into the FileMatchTrie as then a path can be 56 // a postfix of another path, violating a core assumption of the trie. 57 if (llvm::sys::path::is_relative(NewPath) [all...] |
/system/media/audio_route/ |
audio_route.c | 82 struct mixer_path *path; member in struct:config_parse_state 86 /* path functions */ 127 static void path_print(struct audio_route *ar, struct mixer_path *path) 132 ALOGE("Path: %s, length: %d", path->name, path->length); 133 for (i = 0; i < path->length; i++) { 134 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index); 138 for (j = 0; j < path->setting[i].num_values; j++) 139 ALOGE(" id=%d value=0x%02x", j, path->setting[i].value.bytes[j]) 727 struct mixer_path *path; local 748 struct mixer_path *path; local 772 struct mixer_path *path; local [all...] |
/development/tools/checkstyle/gitlint/ |
utils.py | 46 if (os.path.isabs(program) and os.path.isfile(program) and 51 locations = os.environ.get("PATH").split(os.pathsep) 53 candidate = os.path.join(location, program) 54 if os.path.isfile(candidate) and os.access(candidate, os.X_OK): 60 """Returns all the programs that are not found in the PATH.""" 66 dirname = os.path.dirname(filename) 67 if not os.path.exists(dirname): 75 filename = os.path.abspath(filename)[1:] 76 home_folder = os.path.expanduser('~' [all...] |
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
dependency_manager_util.py | 14 def _WinReadOnlyHandler(func, path, execinfo): 15 if not os.access(path, os.W_OK): 16 os.chmod(path, stat.S_IWRITE) 17 func(path) 23 assert os.path.isabs(dir_path) 26 if os.path.isdir(dir_path): 32 return os.path.realpath(os.path.abspath(path_name)) 35 base_path = ResolvePath(os.getcwd()) + os.path.sep 37 if not ResolvePath(os.path.join(base_path, member)).startswith(base_path) [all...] |
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
AndroidFiles.java | 49 public FileHandle getFileHandle (String path, FileType type) {
50 FileHandle handle = new AndroidFileHandle(type == FileType.Internal ? assets : null, path, type);
51 if (expansionFile != null && type == FileType.Internal) handle = getZipFileHandleIfExists(handle, path);
55 private FileHandle getZipFileHandleIfExists (FileHandle handle, String path) {
57 assets.open(path).close(); // Check if file exists.
61 FileHandle zipHandle = new AndroidZipFileHandle(path);
70 public FileHandle classpath (String path) {
71 return new AndroidFileHandle(null, path, FileType.Classpath);
75 public FileHandle internal (String path) {
76 FileHandle handle = new AndroidFileHandle(assets, path, FileType.Internal); [all...] |
/external/llvm/test/Unit/ |
lit.cfg | 15 # test_source_root: The root path where tests are located. 16 # test_exec_root: The root path where tests should be run. 19 config.test_exec_root = os.path.join(llvm_obj_root, 'unittests') 33 # Propagate path to symbolizer for ASan/MSan. 38 # Win32 seeks DLLs along %PATH%. 39 if sys.platform in ['win32', 'cygwin'] and os.path.isdir(config.shlibdir): 40 config.environment['PATH'] = os.path.pathsep.join(( 41 config.shlibdir, config.environment['PATH'])) 54 if site_cfg and os.path.exists(site_cfg) [all...] |
/external/rootdev/ |
rootdev.h | 19 * rootdev: returns the path to the root device in @path 20 * @path: pre-allocated char array the result will be written to 21 * @size: size of @path 27 int rootdev(char *path, size_t size, bool full, bool strip); 37 int rootdev_wrapper(char *path, size_t size, 42 * rootdev_get_device: finds the /dev path for @dev 46 * @search: path to search under. NULL for default. 62 * @search: path to search under. NULL for default. 70 * rootdev_get_path: converts a device name to a path in the device tre [all...] |
/external/v8/build/android/gyp/ |
java_google_api_keys.py | 17 sys.path.append( 18 os.path.abspath(os.path.join(sys.path[0], '../../../google_apis'))) 21 sys.path.append(os.path.abspath(os.path.join( 22 os.path.dirname(__file__), os.pardir))) 31 return os.path.relpath(__file__, host_paths.DIR_SOURCE_ROOT) 74 folder = os.path.dirname(output_path [all...] |
/external/webrtc/webrtc/base/ |
win32filesystem.h | 26 // does not already exist at the given path, otherwise fails. 29 // This will attempt to delete the path located at filename. 30 // If the path points to a folder, it will fail with VERIFY 33 // This will attempt to delete an empty folder. If the path does not point to 42 // This moves a file from old_path to new_path. If the new path is on a 48 // Moves a folder from old_path to new_path. If the new path is on a different 60 // Returns true if a file exists at path 61 virtual bool IsFile(const Pathname &path); 72 // If create is true, the path will be recursively created. 77 virtual bool GetFileSize(const Pathname& path, size_t* size) [all...] |
/frameworks/base/tools/aapt2/util/ |
Files.h | 53 FileType getFileType(const StringPiece& path); 62 * Appends a path to `base`, separated by the directory separator. 67 * Makes all the directories in `path`. The last element in the path 70 bool mkdirs(const StringPiece& path); 73 * Returns all but the last part of the path. 75 StringPiece getStem(const StringPiece& path); 78 * Returns the last part of the path with extension. 80 StringPiece getFilename(const StringPiece& path); 83 * Returns the extension of the path. This is the entire string afte [all...] |
/frameworks/compile/slang/lit-tests/ |
lit.cfg | 18 # test_source_root: The path where tests are located (default is the test suite 22 # test_exec_root: The path where tests are located (default is the test suite 24 config.test_exec_root = os.path.join(config.base_path, 'out', 'tests', 'slang', 'lit-tests') 29 def inferTool(binary_name, env_var, PATH): 34 if tool and os.path.isfile(tool): 37 # Otherwise look in the path. 39 tool = lit.util.which(binary_name, PATH) 42 lit_config.fatal("couldn't find " + binary_name + " program in " + PATH + " , try setting " 45 return os.path.abspath(tool) 47 config.slang = inferTool('llvm-rs-cc', 'SLANG', os.path.join(os.getenv('ANDROID_HOST_OUT'), 'bin')).replace('\\', '/' [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/unittest/ |
loader.py | 172 top_level_dir = os.path.abspath(top_level_dir) 174 if not top_level_dir in sys.path: 177 # in sys.path to minimise likelihood of conflicts between installed 179 sys.path.insert(0, top_level_dir) 183 if os.path.isdir(os.path.abspath(start_dir)): 184 start_dir = os.path.abspath(start_dir) 186 is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py')) 196 start_dir = os.path.abspath(os.path.dirname((the_module.__file__)) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/unittest/ |
loader.py | 172 top_level_dir = os.path.abspath(top_level_dir) 174 if not top_level_dir in sys.path: 177 # in sys.path to minimise likelihood of conflicts between installed 179 sys.path.insert(0, top_level_dir) 183 if os.path.isdir(os.path.abspath(start_dir)): 184 start_dir = os.path.abspath(start_dir) 186 is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py')) 196 start_dir = os.path.abspath(os.path.dirname((the_module.__file__)) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/ |
loader.py | 172 top_level_dir = os.path.abspath(top_level_dir) 174 if not top_level_dir in sys.path: 177 # in sys.path to minimise likelihood of conflicts between installed 179 sys.path.insert(0, top_level_dir) 183 if os.path.isdir(os.path.abspath(start_dir)): 184 start_dir = os.path.abspath(start_dir) 186 is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py')) 196 start_dir = os.path.abspath(os.path.dirname((the_module.__file__)) [all...] |