HomeSort by relevance Sort by last modified time
    Searched refs:file_path (Results 1 - 25 of 422) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /test/vts/drivers/libdrivercomm/
VtsDriverFileUtil.h 30 extern string ReadFile(const string& file_path);
VtsDriverFileUtil.cpp 28 string ReadFile(const string& file_path) {
29 ifstream ifs(file_path);
  /frameworks/base/tools/aapt2/tools/
fix_resources.py 17 for file_path in enumerate_files(res_path):
18 eligible_consumers = filter(lambda c: c.matches(file_path), consumers)
20 print "checking {0} ...".format(file_path)
22 original_contents = read_contents(file_path)
25 contents = c.consume(file_path, contents)
27 write_contents(file_path, contents)
40 def read_contents(file_path):
41 """Reads the contents of file_path without decoding."""
42 with open(file_path) as fin:
45 def write_contents(file_path, contents)
    [all...]
  /external/libmojo/base/android/
apk_assets.h 11 #include "base/files/file_path.h"
22 // - |file_path|: Path to file within .apk. e.g.: assets/foo.pak
26 const std::string& file_path,
34 const base::FilePath& file_path);
path_service_android.cc 9 #include "base/files/file_path.h"
20 FilePath file_path(ConvertJavaStringToUTF8(env, path));
21 PathService::Override(what, file_path);
  /external/tensorflow/tensorflow/python/debug/lib/
source_utils.py 38 def _norm_abs_path(file_path):
39 return os.path.normpath(os.path.abspath(file_path))
42 def is_extension_uncompiled_python_source(file_path):
43 _, extension = os.path.splitext(file_path)
47 def is_extension_compiled_python_source(file_path):
48 _, extension = os.path.splitext(file_path)
133 for file_path, line_number, _, _ in reversed(dump.node_traceback(op.name)):
138 if _norm_abs_path(file_path) != source_file_path:
214 for file_path, line_number, _, _ in dump.node_traceback(op.name):
215 file_path = _norm_abs_path(file_path
    [all...]
  /test/framework/harnesses/host_controller/acloud/
acloud_config.py 60 def Load(self, file_path):
64 file_path: string, path to config file.
66 if not os.path.isfile(file_path):
67 logging.error('Failed to read acloud config file %s' % file_path)
73 with open(file_path, 'r') as f:
84 'acloud config file %s' % (line, file_path))
93 def Save(self, file_path):
97 file_path: string, path to config file.
101 with open(file_path, 'w') as f:
  /external/libbrillo/brillo/
test_helpers.h 13 #include <base/files/file_path.h>
19 inline void ExpectFileEquals(const char* golden, const char* file_path) {
21 EXPECT_TRUE(base::ReadFileToString(base::FilePath(file_path), &contents));
  /external/skia/tools/
sanitize_source_files.py 85 def TrailingWhitespaceRemover(line, file_path, line_number):
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number):
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number):
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path):
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path):
129 'svn propget svn:eol-style %s' % file_path)
    [all...]
  /external/skqp/tools/
sanitize_source_files.py 85 def TrailingWhitespaceRemover(line, file_path, line_number):
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number):
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number):
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path):
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path):
129 'svn propget svn:eol-style %s' % file_path)
    [all...]
  /system/sepolicy/build/
file_utils.py 23 def make_parent_dirs(file_path):
24 """Creates parent directories for the file_path."""
25 if os.path.exists(file_path):
28 parent_dir = os.path.dirname(file_path)
  /external/chromium-trace/catapult/common/py_utils/py_utils/
cloud_storage_unittest.py 162 file_path = os.path.join(dir_path, 'file1')
163 file_path_sha = file_path + '.sha1'
166 os.remove(file_path + '.fetchts')
168 self.CreateFiles([file_path, file_path_sha])
174 cloud_storage.Get('bucket', 'foo', file_path)
176 cloud_storage.GetIfChanged(file_path, 'foo')
178 cloud_storage.GetIfHashChanged('bar', file_path, 'bucket', 'hash1234')
180 cloud_storage.Insert('bucket', 'foo', file_path)
204 file_path = 'test-file-path.wpr'
208 self.assertFalse(cloud_storage.GetIfChanged(file_path,
    [all...]
  /external/tensorflow/tensorflow/python/lib/io/
file_io_test.py 44 file_path = os.path.join(self._base_dir, "temp_file")
45 self.assertFalse(file_io.file_exists(file_path))
47 _ = file_io.read_file_to_string(file_path)
50 file_path = os.path.join(self._base_dir, "temp_file")
51 file_io.write_string_to_file(file_path, "testing")
52 self.assertTrue(file_io.file_exists(file_path))
53 file_contents = file_io.read_file_to_string(file_path)
57 file_path = os.path.join(self._base_dir, "temp_file")
58 file_io.atomic_write_string_to_file(file_path, "testing")
59 self.assertTrue(file_io.file_exists(file_path))
    [all...]
  /test/vts-testcase/hal/script/build/
build_rule_gen_utils.py 30 def WriteBuildRule(file_path, build_rule):
33 Opens file_path and writes build_rule into it. Creates intermediate
37 file_path: string, path to file to which to write.
40 print 'Updating %s' % file_path
41 dir_path = os.path.dirname(file_path)
46 with open(file_path, 'w') as bp_file:
  /external/libxcam/xcore/
calibration_parser.h 38 XCamReturn parse_intrinsic_file(const char *file_path, IntrinsicParameter &intrinsic_param);
39 XCamReturn parse_extrinsic_file(const char *file_path, ExtrinsicParameter &extrinsic_param);
  /external/v8/gypfiles/
gyp_environment.py 19 def apply_gyp_environment(file_path=None):
23 if not file_path or not os.path.exists(file_path):
25 file_contents = open(file_path).read()
29 e.filename = os.path.abspath(file_path)
42 var, os.path.abspath(file_path)
  /external/webrtc/webrtc/base/objc/
RTCLogging.mm 39 NSString* RTCFileName(const char* file_path) {
41 [[NSString alloc] initWithBytesNoCopy:const_cast<char*>(file_path)
42 length:strlen(file_path)
  /bionic/tools/versioner/src/
VFS.cpp 51 const char* file_path = ent->fts_accpath; local
52 unique_fd fd(open(file_path, O_RDONLY | O_CLOEXEC));
54 err(1, "failed to open header '%s'", file_path);
57 auto buffer_opt = llvm::MemoryBuffer::getOpenFile(fd, file_path, -1, false, false);
59 errx(1, "failed to map header '%s'", file_path);
62 if (!vfs->addFile(file_path, ent->fts_statp->st_mtime, std::move(buffer_opt.get()))) {
63 errx(1, "failed to add file '%s'", file_path);
  /art/dexlist/
dexlist_test.cc 44 std::string file_path = GetTestAndroidRoot(); local
45 file_path += "/bin/dexlist";
46 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path";
47 std::vector<std::string> exec_argv = { file_path };
  /test/vts/drivers/hal/common/component_loader/
DllLoader.cpp 34 void* DllLoader::Load(const char* file_path) {
35 if (!file_path) {
36 LOG(ERROR) << "file_path is NULL";
41 handle_ = dlopen(file_path, RTLD_LAZY);
43 LOG(ERROR) << "Can't load a shared library, " << file_path
47 LOG(DEBUG) << "DLL loaded " << file_path;
  /external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
module.py 10 def __init__(self, file_path):
11 self._file_path = file_path
17 def file_path(self): member in class:Module
__init__.py 19 def _TransformFile(transform, file_path):
20 module = Module(file_path)
  /external/libmojo/third_party/catapult/devil/devil/utils/
zip_utils.py 24 file_path = os.path.join(dir_path, f)
26 logging.debug('file: %s -> %s', file_path, file_arc_path)
27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
  /system/tools/aidl/
io_delegate.h 50 const std::string& file_path) const;
61 const std::string& file_path) const;
63 virtual void RemovePath(const std::string& file_path) const;
  /external/libchrome/base/files/
file_unittest.cc 24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); local
39 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ);
46 File file(file_path, base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_READ);
54 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ);
67 file.Initialize(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ);
79 File file(file_path, base::File::FLAG_CREATE | base::File::FLAG_READ);
87 File file(file_path,
96 file_path = temp_dir.GetPath().AppendASCII("create_file_2");
97 File file(file_path,
105 EXPECT_FALSE(base::PathExists(file_path));
111 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); local
129 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); local
156 FilePath file_path = temp_dir.GetPath().AppendASCII("read_write_file"); local
228 FilePath file_path = temp_dir.GetPath().AppendASCII("append_file"); local
276 FilePath file_path = temp_dir.GetPath().AppendASCII("truncate_file"); local
391 FilePath file_path = local
416 FilePath file_path = local
440 FilePath file_path = temp_dir.GetPath().AppendASCII("seek_file"); local
457 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
484 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
525 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
539 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
555 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
572 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
594 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
620 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
635 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
655 FilePath file_path = temp_dir.GetPath().AppendASCII("file"); local
    [all...]

Completed in 536 milliseconds

1 2 3 4 5 6 7 8 91011>>