Searched refs:filesystem (Results 1 - 25 of 275) sorted by relevance

1234567891011

/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/
H A Dfind_files.py44 The callback has to take three arguments: filesystem, dirname and filename."""
49 def find(filesystem, base_dir, paths=None, skipped_directories=None, file_filter=None, directory_sort_key=None):
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]
68 def _normalized_find(filesystem, paths, skipped_directories, file_filter, directory_sort_key):
76 paths_to_walk = itertools.chain(*(filesystem.glob(path) for path in paths))
83 all_files = itertools.chain(*(sort_by_directory_key(filesystem
[all...]
H A Dfind_files_unittest.py32 from webkitpy.common.system.filesystem import FileSystem
45 def assert_filesystem_normalizes(self, filesystem):
46 self.assertEqual(find_files._normalize(filesystem, "c:\\foo",
H A Dhost_mock.py42 add_unit_tests_to_mock_filesystem(self.filesystem)
59 self._scm = MockSCM(filesystem=self.filesystem, executive=self.executive)
60 # Various pieces of code (wrongly) call filesystem.chdir(checkout_root).
61 # Making the checkout_root exist in the mock filesystem makes that chdir not raise.
62 self.filesystem.maybe_make_directory(self._scm.checkout_root)
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dchar_node.h14 explicit CharNode(Filesystem* filesystem) : Node(filesystem) { argument
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/test/
H A Dfinder.py34 def __init__(self, filesystem, top_directory, starting_subdirectory):
35 self.filesystem = filesystem
36 self.top_directory = filesystem.realpath(top_directory)
40 self.top_package = starting_subdirectory.replace(filesystem.sep, '.') + '.'
41 self.search_directory = filesystem.join(self.top_directory, starting_subdirectory)
45 search_directory = self.filesystem.join(self.top_directory, sub_directory)
49 def file_filter(filesystem, dirname, basename):
52 filenames = self.filesystem.files_under(search_directory, file_filter=file_filter)
56 return path.replace(self.top_directory + self.filesystem
[all...]
H A Dmain_unittest.py28 from webkitpy.common.system.filesystem import FileSystem
86 filesystem = FileSystem()
88 module_path = filesystem.path_to_module(self.__module__)
90 coverage_file = filesystem.join(script_dir, '.coverage')
92 if filesystem.exists(coverage_file):
94 filesystem.move(coverage_file, coverage_file_orig)
97 proc = executive.popen([sys.executable, filesystem.join(script_dir, 'test-webkitpy'), '-c', STUBS_CLASS + '.test_empty'],
105 filesystem.move(coverage_file_orig, coverage_file)
106 elif filesystem.exists(coverage_file):
107 filesystem
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dcrashlogs.py42 log_directory = self._host.filesystem.expanduser("~")
43 log_directory = self._host.filesystem.join(log_directory, "Library", "Logs")
44 if self._host.filesystem.exists(self._host.filesystem.join(log_directory, "DiagnosticReports")):
45 log_directory = self._host.filesystem.join(log_directory, "DiagnosticReports")
47 log_directory = self._host.filesystem.join(log_directory, "CrashReporter")
55 logs = self._host.filesystem.files_under(log_directory, file_filter=is_crash_log)
60 if not newer_than or self._host.filesystem.mtime(path) > newer_than:
61 f = self._host.filesystem.read_text_file(path)
H A Dcrashlogs_unittest.py87 filesystem = MockFileSystem(files)
88 crash_logs = CrashLogs(MockSystemHost(filesystem=filesystem))
106 filesystem.read_text_file = bad_read
110 filesystem = MockFileSystem(files)
111 crash_logs = CrashLogs(MockSystemHost(filesystem=filesystem))
112 filesystem.mtime = bad_mtime
H A Dsystemhost.py33 from webkitpy.common.system import environment, executive, filesystem, platforminfo, user, workspace namespace
40 self.filesystem = filesystem.FileSystem()
43 self.workspace = workspace.Workspace(self.filesystem, self.executive)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/breakpad/
H A Ddump_reader_multipart_unittest.py60 self.assertTrue(host.filesystem.exists(dump_reader._path_to_generate_breakpad_symbols()))
66 host.filesystem.maybe_make_directory(build_dir)
78 host.filesystem.write_text_file(dump_file, "\r\n".join(TestDumpReaderMultipart._MULTIPART_DUMP))
80 host.filesystem.maybe_make_directory(build_dir)
81 host.filesystem.exists = lambda x: True
85 host.filesystem.open_binary_file_for_reading = host.filesystem.open_text_file_for_reading
97 host.filesystem.write_text_file(dump_file, "\r\n".join(TestDumpReaderMultipart._MULTIPART_DUMP))
99 host.filesystem.maybe_make_directory(build_dir)
100 host.filesystem
[all...]
H A Ddump_reader.py49 return self._host.filesystem.join(self._build_dir, 'crash-dumps')
52 if self._host.filesystem.isdir(self.crash_dumps_directory()):
53 self._host.filesystem.rmtree(self.crash_dumps_directory())
63 for root, dirs, files in self._host.filesystem.walk(self.crash_dumps_directory()):
65 dmp_file = self._host.filesystem.join(root, dmp)
66 if self._host.filesystem.mtime(dmp_file) < start_time:
H A Ddump_reader_win_unittest.py42 host.filesystem.maybe_make_directory(build_dir)
52 host.filesystem.write_text_file(dump_file, 'channel:\npid:%s\nplat:Win32\nprod:content_shell\n' % expected_pid)
54 host.filesystem.maybe_make_directory(build_dir)
65 host.filesystem.write_text_file(dump_file, 'product:content_shell\n')
66 host.filesystem.write_binary_file(real_dump_file, 'MDMP')
68 host.filesystem.maybe_make_directory(build_dir)
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/
H A DHTMLInputElementFileSystem.cpp32 #include "modules/filesystem/HTMLInputElementFileSystem.h"
36 #include "modules/filesystem/DOMFilePath.h"
37 #include "modules/filesystem/DOMFileSystem.h"
38 #include "modules/filesystem/DirectoryEntry.h"
39 #include "modules/filesystem/Entry.h"
40 #include "modules/filesystem/FileEntry.h"
55 DOMFileSystem* filesystem = DOMFileSystem::createIsolatedFileSystem(executionContext, input.droppedFileSystemId());
56 if (!filesystem) {
57 // Drag-drop isolated filesystem is not available.
69 // The dropped entries are mapped as top-level entries in the isolated filesystem
[all...]
H A DFileEntry.cpp32 #include "modules/filesystem/FileEntry.h"
35 #include "modules/filesystem/DOMFileSystem.h"
36 #include "modules/filesystem/ErrorCallback.h"
37 #include "modules/filesystem/FileCallback.h"
38 #include "modules/filesystem/FileWriterCallback.h"
49 filesystem()->createWriter(this, successCallback, errorCallback);
54 filesystem()->createFile(this, successCallback, errorCallback);
H A DFileEntrySync.cpp32 #include "modules/filesystem/FileEntrySync.h"
36 #include "modules/filesystem/FileWriterSync.h"
47 return filesystem()->createFile(this, exceptionState);
52 return filesystem()->createWriter(this, exceptionState);
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/
H A Dserver_base_unittest.py48 host.filesystem.write_text_file(server._pid_file, 'foo')
50 self.assertEqual(host.filesystem.files[server._pid_file], None)
52 host.filesystem.write_text_file(server._pid_file, 'foo')
58 self.assertEqual(host.filesystem.files[server._pid_file], None)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/
H A Dperftestsrunner_unittest.py52 runner._host.filesystem.maybe_make_directory(runner._base_path, 'inspector')
53 runner._host.filesystem.maybe_make_directory(runner._base_path, 'Bindings')
54 runner._host.filesystem.maybe_make_directory(runner._base_path, 'Parser')
58 dirname = runner._host.filesystem.join(runner._base_path, dirname) if dirname else runner._base_path
59 runner._host.filesystem.maybe_make_directory(dirname)
60 runner._host.filesystem.files[runner._host.filesystem.join(dirname, filename)] = content
75 port.host.filesystem.files[runner._host.filesystem.join(runner._base_path, filename)] = 'some content'
80 port.host.filesystem
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/
H A Ddetection.py32 from webkitpy.common.system.filesystem import FileSystem
42 def __init__(self, filesystem, executive):
43 self._filesystem = filesystem
72 return SVN(cwd=absolute_path, patch_directories=patch_directories, filesystem=self._filesystem, executive=self._executive)
75 return Git(cwd=absolute_path, filesystem=self._filesystem, executive=self._executive)
H A Ddetection_unittest.py41 filesystem = MockFileSystem()
43 detector = SCMDetector(filesystem, executive)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/
H A Dfilereader_unittest.py25 from webkitpy.common.system.filesystem import FileSystem
55 self.filesystem = FileSystem()
56 self._temp_dir = str(self.filesystem.mkdtemp())
58 self._file_reader = TextFileReader(self.filesystem, self._processor)
62 self.filesystem.rmtree(self._temp_dir)
67 file_path = self.filesystem.join(self._temp_dir, rel_path)
68 self.filesystem.write_text_file(file_path, text)
91 temp_dir = self.filesystem.join(self._temp_dir, 'test_dir')
92 self.filesystem.maybe_make_directory(temp_dir)
139 dir = self.filesystem
[all...]
H A Dfilereader.py57 def __init__(self, filesystem, processor):
65 self.filesystem = filesystem
88 # FIXME: This should use self.filesystem
114 if not self.filesystem.exists(file_path) and file_path != "-":
134 # FIXME: We should consider moving to self.filesystem.files_under() (or adding walk() to FileSystem)
137 file_path = self.filesystem.join(dir_path, file_name)
142 if self.filesystem.isdir(path):
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/
H A Drebaselineserver.py48 self.filesystem = host.filesystem
83 results_json_path = host.filesystem.join(results_directory, 'full_results.json')
84 results_json = json_results_generator.load_json(host.filesystem, results_json_path)
88 platforms = host.filesystem.listdir(host.filesystem.join(layout_tests_directory, 'platform'))
/external/chromium_org/chrome/renderer/resources/extensions/
H A Dmedia_galleries_custom_bindings.js19 var filesystem = mediaGalleriesNatives.GetMediaFileSystemObject(
21 $Array.push(result, filesystem);
24 mediaGalleriesMetadata[filesystem.name] = metadata;
88 function(filesystem) {
89 if (filesystem && filesystem.name &&
90 filesystem.name in mediaGalleriesMetadata) {
91 return mediaGalleriesMetadata[filesystem.name];
/external/libsepol/tests/policies/test-cond/
H A Drefpolicy-base.conf5 class filesystem
140 class filesystem
977 allow bin_t fs_t:filesystem associate;
978 allow bin_t noxattrfs:filesystem associate;
980 allow sbin_t fs_t:filesystem associate;
981 allow sbin_t noxattrfs:filesystem associate;
983 allow ls_exec_t fs_t:filesystem associate;
984 allow ls_exec_t noxattrfs:filesystem associate;
987 allow shell_exec_t fs_t:filesystem associate;
988 allow shell_exec_t noxattrfs:filesystem associat
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.core.filesystem_1.3.1.R36x_v20100727-0745.jar ... properties org/ org/eclipse/ org/eclipse/core/ org/eclipse/core/filesystem/ org/eclipse/core/filesystem/EFS.class EFS.java ...

Completed in 318 milliseconds

1234567891011