Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/tools/aapt2/tools/
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): argument
42 with open(file_path) as fin:
45 def write_contents(file_path, contents): argument
49 dirname, basename = os.path.split(file_path)
[all …]
Dextract_unicode_properties.py93 for file_path in sys.argv[1:]:
94 with open(file_path) as f:
/frameworks/base/core/jni/
Dfd_utils.cpp187 const std::string file_path; member in FileDescriptorInfo
197 FileDescriptorInfo(struct stat stat, const std::string& file_path, int fd, int open_flags,
266 std::string file_path; in CreateFromFd() local
268 if (!android::base::Readlink(fd_path, &file_path)) { in CreateFromFd()
274 if (!whitelist->IsAllowed(file_path)) { in CreateFromFd()
275 fail_fn(android::base::StringPrintf("Not whitelisted (%d): %s", fd, file_path.c_str())); in CreateFromFd()
285 file_path.c_str(), in CreateFromFd()
305 file_path.c_str(), in CreateFromFd()
318 return new FileDescriptorInfo(f_stat, file_path, fd, open_flags, fd_flags, fs_flags, offset); in CreateFromFd()
337 if (IsArtMemfd(file_path)) { in ReopenOrDetach()
[all …]
/frameworks/rs/tests/lldb/tests/harness/
Dutil_log.py34 file_path=None, file_mode='a'): argument
82 if file_path is None:
85 handler_default = logging.FileHandler(file_path, file_mode)
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java41 String file_path = folder_path + "/" + folderName; in savePNG() local
42 File dir = new File(file_path); in savePNG()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java42 String file_path = folder_path + "/" + folderName; in save() local
43 File dir = new File(file_path); in save()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java42 String file_path = folder_path + "/" + folderName; in save() local
43 File dir = new File(file_path); in save()
/frameworks/base/tools/aapt2/tools/consumers/
Dpositional_arguments.py13 def matches(self, file_path): argument
14 dirname, basename = os.path.split(file_path)
Dduplicates.py9 def matches(self, file_path): argument
10 dirname, basename = os.path.split(file_path)
/frameworks/base/tools/aapt2/optimize/
DResourcePathShortener.cpp40 std::string ShortenFileName(const android::StringPiece& file_path, int output_length) { in ShortenFileName() argument
41 std::size_t hash_num = std::hash<android::StringPiece>{}(file_path); in ShortenFileName()
/frameworks/native/libs/vr/libvrflinger/
Ddisplay_service.cpp210 std::string file_path = base::GetProperty(property_name, ""); in OnGetConfigurationData() local
211 if (file_path.empty()) { in OnGetConfigurationData()
216 if (!base::ReadFileToString(file_path, &data)) { in OnGetConfigurationData()
/frameworks/base/tools/fonts/
Dfontchain_linter.py391 def parse_unicode_datafile(file_path, reverse=False): argument
396 with open(file_path) as datafile:
427 def parse_emoji_variants(file_path): argument
430 with open(file_path) as datafile:
/frameworks/base/tools/aapt2/cmd/
DOptimize.h125 const std::string &file_path);
DOptimize.cpp285 const std::string &file_path) { in WriteShortenedPathsMap() argument
290 return WriteStringToFile(ss.str(), file_path); in WriteShortenedPathsMap()
/frameworks/base/tools/aapt2/
DLoadedApk.h114 std::unique_ptr<xml::XmlResource> LoadXml(const std::string& file_path, IDiagnostics* diag) const;
DLoadedApk.cpp304 std::unique_ptr<xml::XmlResource> LoadedApk::LoadXml(const std::string& file_path, in LoadXml() argument
306 io::IFile* file = apk_->FindFile(file_path); in LoadXml()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp2122 auto file_path = it->Next()->GetSource().path; in Dump() local
2125 size_t pos = file_path.find("lib/"); in Dump()
2127 file_path = file_path.substr(pos + 4); in Dump()
2128 pos = file_path.find('/'); in Dump()
2130 file_path = file_path.substr(0, pos); in Dump()
2133 architectures.insert(file_path); in Dump()
/frameworks/rs/tests/lldb/tests/
Drun_test.py299 file_path=args.log_file_path,
/frameworks/rs/tests/lldb/
Drun_tests.py230 file_path=self.log_file_path
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp244 static bool IsFileEmpty(const std::string& file_path) { in IsFileEmpty() argument
245 std::ifstream file(file_path, std::ios::binary | std::ios::ate); in IsFileEmpty()
247 MYLOGE("Cannot open file: %s\n", file_path.c_str()); in IsFileEmpty()