Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 18 of 18) 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
199 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 (!allowlist->IsAllowed(file_path)) { in CreateFromFd()
275 fail_fn(android::base::StringPrintf("Not allowlisted (%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/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.cpp41 std::string ShortenFileName(const android::StringPiece& file_path, int output_length) { in ShortenFileName() argument
42 std::size_t hash_num = std::hash<android::StringPiece>{}(file_path); in ShortenFileName()
/frameworks/base/tests/ApkVerityTest/block_device_writer/
Dblock_device_writer.cpp62 explicit ScopedF2fsFilePinning(const char* file_path) { in ScopedF2fsFilePinning() argument
63 fd_.reset(TEMP_FAILURE_RETRY(open(file_path, O_WRONLY | O_CLOEXEC, 0))); in ScopedF2fsFilePinning()
/frameworks/base/tools/aapt2/cmd/
DOptimize.h123 const std::string &file_path);
DOptimize.cpp291 const std::string &file_path) { in WriteShortenedPathsMap() argument
296 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.cpp310 std::unique_ptr<xml::XmlResource> LoadedApk::LoadXml(const std::string& file_path, in LoadXml() argument
312 io::IFile* file = apk_->FindFile(file_path); in LoadXml()
/frameworks/base/tools/aapt2/format/
DArchive_test.cpp61 std::string file_path = file::BuildPath({path, file}); in VerifyDirectory() local
63 std::ifstream stream(file_path); in VerifyDirectory()
/frameworks/base/tools/fonts/
Dfontchain_linter.py486 def parse_unicode_datafile(file_path, reverse=False): argument
491 with open(file_path) as datafile:
522 def parse_emoji_variants(file_path): argument
525 with open(file_path) as datafile:
/frameworks/base/tools/aapt2/test/
DFixture.h106 std::string Build(const std::string& file_path);
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp2327 auto file_path = it->Next()->GetSource().path; in Dump() local
2330 size_t pos = file_path.find("lib/"); in Dump()
2332 file_path = file_path.substr(pos + 4); in Dump()
2333 pos = file_path.find('/'); in Dump()
2335 file_path = file_path.substr(0, pos); in Dump()
2338 architectures.insert(file_path); in Dump()