Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tests/FsVerityTest/block_device_writer/
Dblock_device_writer.cpp55 const char* file_name; member
96 int64_t get_physical_offset(const char* file_name, uint64_t byte_offset) { in get_physical_offset() argument
97 android::base::unique_fd fd(open(file_name, O_RDONLY)); in get_physical_offset()
99 fprintf(stderr, "open %s failed\n", file_name); in get_physical_offset()
196 args->file_name = *(arg++); in parse_args()
218 pinned_file = std::make_unique<ScopedF2fsFilePinning>(args->file_name); in main()
221 int64_t physical_offset_signed = get_physical_offset(args->file_name, args->byte_offset); in main()
/frameworks/base/tools/aapt2/optimize/
DObfuscator.cpp55 static std::string RenameDisallowedFileNames(const std::string& file_name) { in RenameDisallowedFileNames() argument
61 if (file_name.length() == 3) { in RenameDisallowedFileNames()
65 std::transform(file_name.begin(), file_name.end(), result_upper_cased.begin(), in RenameDisallowedFileNames()
70 return "_" + file_name; in RenameDisallowedFileNames()
75 return file_name; in RenameDisallowedFileNames()
/frameworks/av/media/libstagefright/xmlparser/vts/
DValidateMediaCodecs.cpp57 for (std::string file_name : files) { in TEST() local
58 EXPECT_ONE_VALID_XML_MULTIPLE_LOCATIONS(file_name.c_str(), {location}, in TEST()
/frameworks/base/core/xsd/vts/
DValidatePermission.cpp58 for (std::string file_name : files) { in TEST() local
59 EXPECT_ONE_VALID_XML_MULTIPLE_LOCATIONS(file_name.c_str(), {location}, in TEST()
/frameworks/native/cmds/dumpstate/
DDumpPool.cpp149 std::string file_name(de->d_name); in deleteTempFiles() local
150 if (file_name.find(PREFIX_TMPFILE_NAME) != 0) { in deleteTempFiles()
153 if (unlinkat(dir_fd, file_name.c_str(), 0)) { in deleteTempFiles()
154 MYLOGE("Failed to unlink (%s): %s\n", file_name.c_str(), in deleteTempFiles()
/frameworks/base/services/core/xsd/vts/
DValidateDefaultPermissions.cpp58 for (auto& file_name : files) { in TEST() local
59 EXPECT_ONE_VALID_XML_MULTIPLE_LOCATIONS(file_name.c_str(), {dir_path}, in TEST()
/frameworks/native/cmds/evemu-record/
Dmain.rs77 let file_name = path.file_name().unwrap().to_str().unwrap(); in pick_input_device() localVariable
78 if path.is_dir() || !file_name.starts_with("event") { in pick_input_device()
81 let number = file_name.strip_prefix("event").unwrap().parse::<u32>(); in pick_input_device()
/frameworks/base/tools/aapt2/util/
DFiles.cpp369 std::string file_name = entry->d_name; in FindFiles() local
371 AppendPath(&full_path, file_name); in FindFiles()
375 if (!(*filter)(file_name, file_type)) { in FindFiles()
381 subdirs.push_back(std::move(file_name)); in FindFiles()
383 files.push_back(std::move(file_name)); in FindFiles()
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp280 std::string file_name; in createFabricatedOverlay() local
284 file_name = StringPrintf("%s-%s-%s.frro", overlay.packageName.c_str(), in createFabricatedOverlay()
286 path = StringPrintf("%s/%s", kIdmapCacheDir.data(), file_name.c_str()); in createFabricatedOverlay()
291 if (file_name.size() > kMaxFileNameLength) { in createFabricatedOverlay()
294 file_name.c_str(), kMaxFileNameLength)); in createFabricatedOverlay()
/frameworks/base/tools/aapt2/cmd/
DCompile_test.cpp191 static void AssertTranslations(CommandTestFixture *ctf, std::string file_name, in AssertTranslations() argument
196 const std::string source_file = ctf->GetTestPath("/res/values/" + file_name + ".xml"); in AssertTranslations()
197 const std::string compiled_files_dir = ctf->GetTestPath("/compiled_" + file_name); in AssertTranslations()
198 const std::string out_apk = ctf->GetTestPath("/" + file_name + ".apk"); in AssertTranslations()
/frameworks/rs/
Dbuild_rs.py195 file_name = os.path.basename(built_file)
200 ['strip', os.path.join(install_path, file_name)])
/frameworks/base/tools/fonts/
Dfontchain_linter.py763 file_name, index = record.font
774 assert psName == file_name[:-4], ('file name %s should match with %s' % (
775 file_name, psName))
/frameworks/native/cmds/installd/
Dotapreopt.cpp623 std::string file_name(file_name_start, file_name_len); in calculate_oat_file_path() local
631 file_name.c_str(), in calculate_oat_file_path()
Ddexopt.cpp948 static int open_output_file(const char* file_name, bool recreate, int permissions) { in open_output_file() argument
951 if (unlink(file_name) < 0) { in open_output_file()
953 PLOG(ERROR) << "open_output_file: Couldn't unlink " << file_name; in open_output_file()
958 return open(file_name, flags, permissions); in open_output_file()
/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp437 static jlong NativeOpenXml(JNIEnv* env, jclass /*clazz*/, jlong ptr, jstring file_name) { in NativeOpenXml() argument
438 ScopedUtfChars path_utf8(env, file_name); in NativeOpenXml()
/frameworks/base/libs/androidfw/
DAsset.cpp681 const char* fname = mMap->file_name(); in openFileDescriptor()
DAssetManager.cpp945 dataMap->file_name(), mode, pAsset.get()); in openAssetFromZipLocked()
950 dataMap->file_name(), mode, pAsset.get()); in openAssetFromZipLocked()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp1725 std::string file_name(de->d_name); in getTempFileCounts() local
1726 if (file_name.find(DumpPool::PREFIX_TMPFILE_NAME) != 0) { in getTempFileCounts()
/frameworks/proto_logging/stats/atoms/bluetooth/
Dbluetooth_extension_atoms.proto270 optional android.bluetooth.ContentProfileFileName file_name = 2; field