/frameworks/base/tools/aapt2/tools/ |
D | 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): 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 …]
|
D | extract_unicode_properties.py | 93 for file_path in sys.argv[1:]: 94 with open(file_path) as f:
|
/frameworks/base/core/jni/ |
D | fd_utils.cpp | 191 const std::string file_path; member in FileDescriptorInfo 203 FileDescriptorInfo(struct stat stat, const std::string& file_path, int fd, int open_flags, 270 std::string file_path; in CreateFromFd() local 272 if (!android::base::Readlink(fd_path, &file_path)) { in CreateFromFd() 278 if (!allowlist->IsAllowed(file_path)) { in CreateFromFd() 279 fail_fn(android::base::StringPrintf("Not allowlisted (%d): %s", fd, file_path.c_str())); in CreateFromFd() 289 file_path.c_str(), in CreateFromFd() 309 file_path.c_str(), in CreateFromFd() 323 new FileDescriptorInfo(f_stat, file_path, fd, open_flags, fd_flags, fs_flags, offset)); in CreateFromFd() 342 if (IsArtMemfd(file_path)) { in ReopenOrDetach() [all …]
|
/frameworks/base/tools/aapt2/optimize/ |
D | Obfuscator.h | 42 bool WriteObfuscationMap(const std::string& file_path) const; 57 virtual std::string ShortenFileName(android::StringPiece file_path, int output_length);
|
D | Obfuscator.cpp | 43 std::string Obfuscator::ShortenFileName(android::StringPiece file_path, int output_length) { in ShortenFileName() argument 44 std::size_t hash_num = std::hash<android::StringPiece>{}(file_path); in ShortenFileName() 226 bool Obfuscator::WriteObfuscationMap(const std::string& file_path) const { in WriteObfuscationMap() 241 std::ofstream fout(file_path, std::ios::out | std::ios::trunc | std::ios::binary); in WriteObfuscationMap()
|
D | Obfuscator_test.cpp | 62 std::string ShortenFileName(android::StringPiece file_path, int output_length) override { in ShortenFileName() argument 63 return shortened_name_map_[std::string(file_path)]; in ShortenFileName()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | MediaStoreSaver.java | 41 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/ |
D | MediaStoreSaver.java | 42 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/ |
D | MediaStoreSaver.java | 42 String file_path = folder_path + "/" + folderName; in save() local 43 File dir = new File(file_path); in save()
|
/frameworks/base/tools/aapt2/tools/consumers/ |
D | positional_arguments.py | 13 def matches(self, file_path): argument 14 dirname, basename = os.path.split(file_path)
|
D | duplicates.py | 9 def matches(self, file_path): argument 10 dirname, basename = os.path.split(file_path)
|
/frameworks/base/tests/FsVerityTest/block_device_writer/ |
D | block_device_writer.cpp | 62 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/apct-tests/perftests/core/src/android/libcore/varhandles/ |
D | generate_java.py | 509 file_path = final_java_dir / "{}.java".format(bench.fullname()) 510 with file_path.open("w") as f:
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.h | 152 const std::string &file_path);
|
D | Optimize.cpp | 307 const std::string &file_path) { in WriteShortenedPathsMap() argument 312 return WriteStringToFile(ss.str(), file_path); in WriteShortenedPathsMap()
|
/frameworks/base/tools/aapt2/ |
D | LoadedApk.h | 114 std::unique_ptr<xml::XmlResource> LoadXml(const std::string& file_path,
|
D | LoadedApk.cpp | 314 std::unique_ptr<xml::XmlResource> LoadedApk::LoadXml(const std::string& file_path, in LoadXml() argument 316 io::IFile* file = apk_->FindFile(file_path); in LoadXml()
|
/frameworks/base/tools/aapt2/test/ |
D | Fixture.h | 105 std::string Build(const std::string& file_path);
|
/frameworks/base/tools/fonts/ |
D | fontchain_linter.py | 487 def parse_unicode_datafile(file_path, reverse=False): argument 492 with open(file_path) as datafile: 523 def parse_emoji_variants(file_path): argument 526 with open(file_path) as datafile:
|
/frameworks/base/tools/aapt2/format/ |
D | Archive_test.cpp | 86 std::string file_path = file::BuildPath({path, file}); in VerifyDirectory() local 88 std::ifstream stream(file_path); in VerifyDirectory()
|
/frameworks/base/tools/aapt2/dump/ |
D | DumpManifest.cpp | 2778 auto file_path = it->Next()->GetSource().path.c_str(); in Extract() local 2781 android::util::ValidLibraryPathLastSlash(file_path, has_renderscript_bitcode, false); in Extract() 2783 architectures_from_apk.insert(std::string(file_path + APK_LIB_LEN, last_slash)); in Extract()
|