Home
last modified time | relevance | path

Searched refs:full_path (Results 1 – 25 of 28) sorted by relevance

12

/aosp12/system/apex/apexd/
H A Dapex_database.h39 std::string full_path; // Full path to the apex file. member
51 MountedApexData(const std::string& loop_name, const std::string& full_path,
57 full_path(full_path),
70 compare_val = full_path.compare(rhs.full_path);
120 const std::string& full_path,
132 if (pkg_it->first.full_path == full_path &&
141 const std::string& full_path) in SetLatest() argument
144 SetLatestLocked(package, full_path); in SetLatest()
148 const std::string& full_path) in SetLatestLocked() argument
156 if (pkg_it->first.full_path == full_path) { in SetLatestLocked()
[all …]
H A Dapex_database.cpp178 apex_data->full_path = backing_files[0]; in PopulateLoopInfo()
187 std::string_view full_path = apex_data->full_path; in NormalizeIfDeleted() local
188 if (ConsumeSuffix(&full_path, "(deleted)")) { in NormalizeIfDeleted()
190 auto it = full_path.rbegin(); in NormalizeIfDeleted()
191 while (it != full_path.rend() && isspace(*it)) { in NormalizeIfDeleted()
194 full_path.remove_suffix(it - full_path.rbegin()); in NormalizeIfDeleted()
198 apex_data->full_path = full_path; in NormalizeIfDeleted()
300 SetLatestLocked(package, mount_data->full_path); in PopulateFromMounts()
304 << mount_data->full_path; in PopulateFromMounts()
H A Dapex_database_test.cpp105 const std::string& loop_name, const std::string& full_path, in Contains() argument
111 if (package == p && loop_name == d.loop_name && full_path == d.full_path && in Contains()
121 const std::string& loop_name, const std::string& full_path, in ContainsPackage() argument
127 if (loop_name == d.loop_name && full_path == d.full_path && in ContainsPackage()
223 ASSERT_EQ(ret->full_path, std::string(kPath)); in TEST()
H A Dapexd_test.cpp992 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1033 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1081 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1134 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1182 ASSERT_EQ(data.full_path, ret->GetPath()); in TEST_F()
1226 ASSERT_EQ(data.full_path, file_path); in TEST_F()
1270 ASSERT_EQ(data.full_path, file_path); in TEST_F()
2717 ASSERT_EQ(data.full_path, apex_path_3); in TEST_F()
3113 ASSERT_EQ(data.full_path, apex_path); in TEST_F()
3147 ASSERT_EQ(data.full_path, apex_path); in TEST_F()
[all …]
H A Dapexd.cpp494 const std::string& full_path = apex.GetPath(); in MountPackageImpl() local
1039 if (d.full_path == apex.GetPath()) { in UnmountPackage()
1130 bool IsMounted(const std::string& full_path) { in IsMounted() argument
1135 if (full_path == data.full_path) { in IsMounted()
1379 Result<void> ActivatePackage(const std::string& full_path) { in ActivatePackage() argument
1380 LOG(INFO) << "Trying to activate " << full_path; in ActivatePackage()
1382 Result<ApexFile> apex_file = ApexFile::Open(full_path); in ActivatePackage()
1391 LOG(INFO) << "Trying to deactivate " << full_path; in DeactivatePackage()
1393 Result<ApexFile> apex_file = ApexFile::Open(full_path); in DeactivatePackage()
3115 auto apex = ApexFile::Open(data.full_path); in UnmountAll()
[all …]
H A Dapexd.h95 android::base::Result<void> ActivatePackage(const std::string& full_path)
97 android::base::Result<void> DeactivatePackage(const std::string& full_path)
/aosp12/art/libartbase/base/
H A Dfile_utils.cc525 bool LocationIsOnArtModule(std::string_view full_path) { in LocationIsOnArtModule() argument
531 return android::base::StartsWith(full_path, module_path); in LocationIsOnArtModule()
551 static bool IsLocationOn(std::string_view full_path, in IsLocationOn() argument
579 return android::base::StartsWith(full_path, path_prefix); in IsLocationOn()
582 bool LocationIsOnSystemFramework(std::string_view full_path) { in LocationIsOnSystemFramework() argument
583 return IsLocationOn(full_path, in LocationIsOnSystemFramework()
590 return IsLocationOn(full_path, in LocationIsOnSystemExtFramework()
596 IsLocationOn(full_path, in LocationIsOnSystemExtFramework()
607 bool LocationIsOnI18nModule(std::string_view full_path) { in LocationIsOnI18nModule() argument
612 bool LocationIsOnApex(std::string_view full_path) { in LocationIsOnApex() argument
[all …]
/aosp12/frameworks/base/tools/aapt2/io/
H A DFileSystem.cpp100 std::string full_path = prefix_path; in Create() local
101 file::AppendPath(&full_path, leaf_entry->d_name); in Create()
104 if (file::GetFileType(full_path) == file::FileType::kDirectory in Create()
105 || file::IsHidden(full_path)) { in Create()
109 sorted_files.push_back(full_path); in Create()
114 for (const std::string& full_path : sorted_files) { in Create() local
115 collection->InsertFile(full_path); in Create()
/aosp12/frameworks/base/tools/aapt2/test/
H A DFixture.cpp55 std::string full_path = file::BuildPath({root_dir, entry->d_name}); in ClearDirectory() local
56 if (file::GetFileType(full_path) == file::FileType::kDirectory) { in ClearDirectory()
57 ClearDirectory(full_path); in ClearDirectory()
59 _rmdir(full_path.c_str()); in ClearDirectory()
61 rmdir(full_path.c_str()); in ClearDirectory()
64 android::base::utf8::unlink(full_path.c_str()); in ClearDirectory()
/aosp12/hardware/invensense/65xx/libsensors_iio/
H A DMPLSupport.cpp282 char full_path[MAX_SYSFS_NAME_LEN]; in read_sysfs_dir() local
303 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
304 LOGV_IF(0,"HAL DEBUG: reading %s", full_path); in read_sysfs_dir()
305 fd = open(full_path, O_RDONLY); in read_sysfs_dir()
313 LOGI("HAL DEBUG:sysfs:cat %s = %ld", full_path, data); in read_sysfs_dir()
315 LOGV_IF(0,"HAL DEBUG: error reading %s", full_path); in read_sysfs_dir()
318 LOGV_IF(0,"HAL DEBUG: error opening %s", full_path); in read_sysfs_dir()
/aosp12/build/make/tools/releasetools/
H A Dtest_utils.py73 full_path = os.path.realpath(os.path.join(
75 if signapk_exists(full_path):
76 return full_path
85 full_path = os.path.realpath(os.path.join(current_dir, *path))
86 if signapk_exists(full_path):
87 return full_path
H A Dtest_merge_target_files.py243 full_path = os.path.join(product_out_dir, path)
244 if not os.path.exists(os.path.dirname(full_path)):
245 os.makedirs(os.path.dirname(full_path))
246 with open(full_path, 'w') as f:
/aosp12/hardware/invensense/6515/libsensors_iio/
H A DMPLSupport.cpp285 char full_path[MAX_SYSFS_NAME_LEN]; in read_sysfs_dir() local
306 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
307 LOGV_IF(0,"HAL DEBUG: reading %s", full_path); in read_sysfs_dir()
308 fd = open(full_path, O_RDONLY); in read_sysfs_dir()
316 LOGI("HAL DEBUG:sysfs:cat %s = %ld", full_path, data); in read_sysfs_dir()
318 LOGV_IF(0,"HAL DEBUG: error reading %s", full_path); in read_sysfs_dir()
321 LOGV_IF(0,"HAL DEBUG: error opening %s", full_path); in read_sysfs_dir()
/aosp12/frameworks/base/tools/aapt2/format/
H A DArchive.cpp61 std::string full_path = dir_; in StartEntry() local
62 file::AppendPath(&full_path, path); in StartEntry()
63 file::mkdirs(file::GetStem(full_path).to_string()); in StartEntry()
65 file_ = {::android::base::utf8::fopen(full_path.c_str(), "wb"), fclose}; in StartEntry()
/aosp12/art/compiler/debug/
H A Delf_debug_line_writer.h179 std::string full_path(file_name); in WriteCompilationUnit()
195 full_path = package_name + "/" + file_name; in WriteCompilationUnit()
199 auto it2 = files_map.find(full_path); in WriteCompilationUnit()
202 files_map.emplace(full_path, file_index); in WriteCompilationUnit()
/aosp12/system/core/fs_mgr/libsnapshot/
H A Destimate_cow_from_nonab_ota.cpp109 auto full_path = path_ + "/" + path; in HasFile() local
110 return access(full_path.c_str(), F_OK) == 0; in HasFile()
115 auto full_path = path_ + "/" + path; in OpenFile() local
116 unique_fd fd(open(full_path.c_str(), O_RDONLY)); in OpenFile()
118 PLOG(ERROR) << "open failed: " << full_path; in OpenFile()
/aosp12/system/core/fs_mgr/libfs_avb/
H A Dutil.cpp139 std::string full_path = android::base::StringPrintf("%s/%s", dir.c_str(), de->d_name); in ListFiles() local
140 files.emplace_back(std::move(full_path)); in ListFiles()
/aosp12/hardware/qcom/wlan/qcwcn/wcnss-service/
H A Dwcnss_service.c232 void find_full_path(char *cur_dir, char *file_to_find, char *full_path) in find_full_path() argument
256 file_to_find, full_path); in find_full_path()
260 snprintf(full_path, MAX_FILE_LENGTH, "%s/%s", in find_full_path()
/aosp12/frameworks/base/tools/aapt2/util/
H A DFiles.cpp364 std::string full_path = root_dir; in FindFiles() local
365 AppendPath(&full_path, file_name); in FindFiles()
366 const FileType file_type = GetFileType(full_path); in FindFiles()
/aosp12/art/runtime/gc/space/
H A Dimage_space_test.cc42 std::string GetFilenameBase(const std::string& full_path) { in GetFilenameBase() argument
43 size_t slash_pos = full_path.rfind('/'); in GetFilenameBase()
45 size_t dot_pos = full_path.rfind('.'); in GetFilenameBase()
48 return full_path.substr(slash_pos + 1u, dot_pos - (slash_pos + 1u)); in GetFilenameBase()
/aosp12/packages/modules/adb/
H A Dtest_device.py710 self.full_path = handle.name
711 self.base_name = os.path.basename(self.full_path)
715 def __init__(self, checksum, full_path): argument
717 self.full_path = full_path
718 self.base_name = posixpath.basename(self.full_path)
749 full_path = posixpath.join(in_dir, base_name)
751 device.shell(['dd', 'if=/dev/urandom', 'of={}'.format(full_path),
753 dev_md5, _ = device.shell([get_md5_prog(device), full_path])[0].split()
755 files.append(DeviceFile(dev_md5, full_path))
903 paths = [x.full_path for x in temp_files]
[all …]
/aosp12/system/extras/simpleperf/
H A Dtracing.cpp98 std::string full_path = tracefs_dir + path; in ReadTraceFsFile() local
99 if (!android::base::ReadFileToString(full_path, content)) { in ReadTraceFsFile()
101 PLOG(ERROR) << "failed to read " << full_path; in ReadTraceFsFile()
/aosp12/system/apex/tools/
H A Ddeapexer.py56 def full_path(self): member in ApexImageEntry
234 res += e.full_path
/aosp12/system/core/init/
H A Dfirst_stage_mount.cpp481 std::string full_path = StringPrintf("%s/%s", avb_key_dir, de->d_name); in PreloadAvbKeys() local
482 key_paths.emplace_back(std::move(full_path)); in PreloadAvbKeys()
/aosp12/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp1561 std::string full_path = assets_dir; in CopyAssetsDirsToApk() local
1562 file::AppendPath(&full_path, file); in CopyAssetsDirsToApk()
1567 util::make_unique<io::RegularFile>(Source(std::move(full_path)))); in CopyAssetsDirsToApk()
1570 << "asset file overrides '" << full_path << "'"); in CopyAssetsDirsToApk()

12