Searched refs:base_dir (Results 1 - 25 of 112) sorted by relevance

12345

/external/chromium_org/build/android/gn/
H A Dzip.py16 def DoZip(inputs, output, base_dir):
19 outfile.write(f, os.path.relpath(f, base_dir))
33 base_dir = options.base_dir
35 DoZip(inputs, output, base_dir)
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Ddirectory_zipper.py23 # multiple files. All files are underneath |base_dir|. If any file changes its
24 # stat will change, so the stat of |base_dir| will also change.
26 def _MakeZipFile(self, base_dir, files):
27 base_dir = base_dir.strip('/')
32 self._file_system.ReadSingle(posixpath.join(base_dir, file_name)))
42 dir_name = posixpath.basename(base_dir)
H A Dtemplate_data_source_test.py18 def _CreateTestDataSource(base_dir):
26 (SERVER2, base_dir))
32 def __init__(self, server_instance, base_dir):
33 type(self)._BASE = base_dir
/external/chromium_org/gpu/gles2_conform_support/
H A Dgenerate_gles2_embedded_data.py29 def __init__(self, scan_dir, base_dir):
31 self.base_dir = base_dir
33 if self.base_dir != None:
34 self.files_data_h = open(os.path.join(base_dir, "FilesDATA.h"), "wb")
35 self.files_data_c = open(os.path.join(base_dir, "FilesDATA.c"), "wb")
36 self.files_toc_c = open(os.path.join(base_dir, "FilesTOC.c"), "wb")
49 if self.base_dir != None:
72 if self.base_dir == None:
111 base_dir
[all...]
/external/chromium_org/content/test/gpu/gpu_tests/
H A Dwebgl_robustness.py52 def __init__(self, page_set, base_dir):
56 base_dir=base_dir)
71 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir))
H A Dcontext_lost.py143 def __init__(self, page_set, base_dir):
147 base_dir=base_dir,
161 def __init__(self, page_set, base_dir):
165 base_dir=base_dir,
177 def __init__(self, page_set, base_dir):
181 base_dir=base_dir,
193 def __init__(self, page_set, base_dir)
[all...]
H A Dscreenshot_sync.py31 def __init__(self, page_set, base_dir):
35 base_dir=base_dir,
55 ps.AddPage(ScreenshotSyncPage(ps, ps.base_dir))
H A Dmaps.py77 def __init__(self, page_set, base_dir):
81 base_dir=base_dir,
103 ps.AddPage(MapsPage(ps, ps.base_dir))
/external/chromium_org/mojo/shell/
H A Dshell_test_base.cc41 base::FilePath base_dir; local
42 CHECK(PathService::Get(base::DIR_EXE, &base_dir));
49 base::FilePath service_dir(base_dir);
52 base::FilePath service_dir(base_dir.AppendASCII("lib"));
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/
H A Dfind_files.py49 def find(filesystem, base_dir, paths=None, skipped_directories=None, file_filter=None, directory_sort_key=None):
53 paths: a list of path expressions relative to base_dir
56 everything under the base_dir.
61 return _normalized_find(filesystem, _normalize(filesystem, base_dir, paths), skipped_directories, file_filter, directory_sort_key)
64 def _normalize(filesystem, base_dir, paths):
65 return [filesystem.normpath(filesystem.join(base_dir, path)) for path in paths]
/external/chromium_org/build/android/
H A Dfindbugs_diff.py39 if not options.base_dir:
40 options.base_dir = os.path.join(constants.DIR_SOURCE_ROOT, 'build',
H A Dadb_logcat_monitor.py9 Usage: adb_logcat_monitor.py <base_dir> [<adb_binary_path>]
12 inside the <base_dir> directory, which it attempts to create. The
42 def StartLogcatIfNecessary(device_id, adb_cmd, base_dir):
59 logcat_file = open(os.path.join(base_dir, logcat_filename), 'w')
97 def main(base_dir, adb_cmd='adb'):
100 if os.path.exists(base_dir):
101 print 'adb_logcat_monitor: %s already exists? Cleaning' % base_dir
102 shutil.rmtree(base_dir, ignore_errors=True)
104 os.makedirs(base_dir)
105 logging.basicConfig(filename=os.path.join(base_dir, 'eventlo
[all...]
H A Dadb_logcat_printer.py9 To test, call './adb_logcat_printer.py <base_dir>' where
10 <base_dir> contains 'adb logcat -v threadtime' files named as
16 Additionally, if a <base_dir>/LOGCAT_MONITOR_PID exists, the script
72 def FindLogFiles(base_dir):
76 base_dir: directory to search
84 for cur_file in os.listdir(base_dir):
88 os.path.join(base_dir, cur_file))]
127 def ShutdownLogcatMonitor(base_dir, logger):
130 monitor_pid_path = os.path.join(base_dir, 'LOGCAT_MONITOR_PID')
161 base_dir
[all...]
/external/chromium_org/chrome/installer/util/
H A Dself_cleaning_temp_dir.cc15 // Populates |base_dir| with the topmost directory in the hierarchy of
17 // |base_dir| is cleared.
21 base::FilePath* base_dir) {
22 DCHECK(base_dir);
25 // Empty base_dir means that we didn't create any extra directories.
26 base_dir->clear();
30 *base_dir = parent_dir;
32 } while (parent_dir != *base_dir && !base::PathExists(parent_dir));
58 base::FilePath base_dir; local
59 GetTopDirToCreate(parent_dir, &base_dir);
19 GetTopDirToCreate( const base::FilePath& temp_parent_dir, base::FilePath* base_dir) argument
[all...]
/external/chromium_org/content/test/gpu/
H A Drun_gpu_test.py17 base_dir = os.path.dirname(os.path.realpath(__file__)) variable
18 test_runner.config = environment.Environment([base_dir])
/external/zlib/
H A Dupdate_zlib.sh9 base_dir=$(realpath $(dirname $0))
24 src_dir=$base_dir/src
28 cd $base_dir
/external/chromium_org/tools/perf/
H A Drun_benchmark16 base_dir = os.path.dirname(os.path.realpath(__file__)) variable
24 test_runner.config = environment.Environment([base_dir], test_aliases)
H A Drun_measurement26 base_dir = os.path.dirname(os.path.realpath(__file__))
27 test_runner.config = environment.Environment([base_dir])
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom/generate/
H A Dtemplate_expander.py33 def ApplyTemplate(base_dir, path_to_template, params, filters=None, **kwargs):
35 path_to_templates = os.path.join(base_dir, template_directory)
47 base_dir = os.path.dirname(inspect.getfile(sys._getframe(1)))
51 return ApplyTemplate(base_dir, path_to_template, parameters, **kwargs)
/external/chromium_org/tools/perf/benchmarks/
H A Dmaps.py34 def __init__(self, page_set, base_dir):
38 base_dir=base_dir)
57 ps.AddPage(MapsPage(ps, ps.base_dir))
/external/chromium_org/tools/telemetry/telemetry/util/
H A Dfind_dependencies.py33 def FindBootstrapDependencies(base_dir):
34 deps_file = os.path.join(base_dir, DEPS_FILE)
68 def FindPageSetDependencies(base_dir):
69 logging.info('Finding page sets in %s' % base_dir)
71 # Add base_dir to path so our imports relative to base_dir will work.
72 sys.path.append(base_dir)
73 tests = discover.DiscoverClasses(base_dir, base_dir, test.Test,
87 util.GetBaseDir = lambda: base_dir
[all...]
/external/oprofile/libutil/
H A Dop_file.h76 * @param base_dir directory from where lookup starts
79 * NO_RECURSION: Find matching files from passed base_dir and call
81 * MATCH_ANY_ENTRY_RECURSION: Starting at base_dir, for each entry in the
85 * MATCH_DIR_ONLY_RECURSION: Starting at base_dir, if an entry in the
92 * Return a list of pathnames under base_dir, filtered by filter and optionally
101 char const * base_dir, char const * filter,
/external/chromium_org/tools/telemetry/telemetry/page/
H A Dpage_measurement_unittest_base.py20 def __init__(self, url, page_set, base_dir):
21 super(BasicTestPage, self).__init__(url, page_set, base_dir)
33 page = BasicTestPage('file://' + test_filename, ps, base_dir=ps.base_dir)
38 base_dir = util.GetUnittestDataDir()
39 ps = page_set_module.PageSet(file_path=base_dir)
H A Dpage_test_unittest.py18 def __init__(self, url, page_set, base_dir):
19 super(TestPage, self).__init__(url, page_set, base_dir)
/external/chromium_org/tools/grit/grit/
H A Dscons.py83 def _GetOutputFiles(grd, base_dir):
103 path = os.path.join(base_dir, output.GetFilename())
116 def _ProcessNodes(grd, base_dir, lang_folders):
121 base_dir: The base directory for filenames.
164 static_files.append(os.path.join(base_dir, os.path.basename(file)))
169 def _SetDependencies(env, base_dir, res_file, rc_alls, translated_files,
175 base_dir: The base directory for filenames.
183 env.Depends(os.path.join(base_dir, res_file), static_files)
218 base_dir = util.dirname(str(target[0]))
219 (rc_headers, rc_alls, lang_folders) = _GetOutputFiles(grd, base_dir)
[all...]

Completed in 611 milliseconds

12345