Searched refs:file_path (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/tools/aapt2/tools/
H A Dfix_resources.py17 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, content
[all...]
H A Dextract_unicode_properties.py93 for file_path in sys.argv[1:]:
94 with open(file_path) as f:
/frameworks/base/tools/aapt2/cmd/
H A DDump.cpp49 bool TryDumpFile(IAaptContext* context, const std::string& file_path) { argument
53 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(file_path, &err);
59 context->GetDiagnostics()->Error(DiagMessage(file_path)
66 context->GetDiagnostics()->Error(DiagMessage(file_path) << "invalid resources.arsc.flat");
70 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics());
81 context->GetDiagnostics()->Error(DiagMessage(file_path)
87 BinaryResourceParser parser(context, table.get(), Source(file_path), data->data(),
97 Maybe<android::FileMap> file = file::MmapPath(file_path, &err);
99 context->GetDiagnostics()->Error(DiagMessage(file_path) << err);
108 table = DeserializeTableFromPb(pb_table, Source(file_path), contex
[all...]
/frameworks/rs/tests/lldb/tests/harness/
H A Dutil_log.py34 file_path=None, file_mode='a'):
48 file_path: String, path to the text file in which to store the logs.
56 ValueError: If the argument "file_path" has not been provided when
82 if file_path is None:
83 raise ValueError('Missing mandatory argument "file_path"')
85 handler_default = logging.FileHandler(file_path, file_mode)
/frameworks/base/core/jni/
H A Dfd_utils.h85 const std::string file_path; member in class:FileDescriptorInfo
95 FileDescriptorInfo(struct stat stat, const std::string& file_path, int fd, int open_flags,
H A Dfd_utils.cpp164 std::string file_path; local
166 if (!android::base::Readlink(fd_path, &file_path)) {
170 if (!whitelist->IsAllowed(file_path)) {
171 LOG(ERROR) << "Not whitelisted : " << file_path;
211 return new FileDescriptorInfo(f_stat, file_path, fd, open_flags, fd_flags, fs_flags, offset);
232 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags));
235 PLOG(ERROR) << "Failed open(" << file_path << ", " << open_flags << ")";
278 FileDescriptorInfo::FileDescriptorInfo(struct stat stat, const std::string& file_path, argument
283 file_path(file_path),
[all...]
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DMediaStoreSaver.java42 String file_path = folder_path + "/" + folderName;
43 File dir = new File(file_path);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DMediaStoreSaver.java41 String file_path = folder_path + "/" + folderName;
42 File dir = new File(file_path);
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DMediaStoreSaver.java42 String file_path = folder_path + "/" + folderName;
43 File dir = new File(file_path);
/frameworks/base/tools/aapt2/tools/consumers/
H A Dpositional_arguments.py13 def matches(self, file_path):
14 dirname, basename = os.path.split(file_path)
H A Dduplicates.py9 def matches(self, file_path):
10 dirname, basename = os.path.split(file_path)
/frameworks/native/libs/vr/libvrflinger/
H A Ddisplay_service.cpp208 std::string file_path = base::GetProperty(property_name, ""); local
209 if (file_path.empty()) {
214 if (!base::ReadFileToString(file_path, &data)) {
/frameworks/base/tools/fonts/
H A Dfontchain_lint.py354 def parse_unicode_datafile(file_path, reverse=False):
359 with open(file_path) as datafile:
390 def parse_emoji_variants(file_path):
393 with open(file_path) as datafile:
/frameworks/rs/tests/lldb/tests/
H A Drun_test.py299 file_path=args.log_file_path,
/frameworks/rs/tests/lldb/
H A Drun_tests.py230 file_path=self.log_file_path

Completed in 740 milliseconds