Home
last modified time | relevance | path

Searched full:fs (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/system/update_engine/payload_generator/
Dsquashfs_filesystem_unittest.cc75 void CheckSquashfs(const unique_ptr<SquashfsFilesystem>& fs) { in CheckSquashfs() argument
76 ASSERT_TRUE(fs); in CheckSquashfs()
77 EXPECT_EQ(kTestBlockSize, fs->GetBlockSize()); in CheckSquashfs()
80 ASSERT_TRUE(fs->GetFiles(&files)); in CheckSquashfs()
87 ExpectBlocksInRange(file.extents, fs->GetBlockCount()); in CheckSquashfs()
114 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFile( in TEST_F() local
116 CheckSquashfs(fs); in TEST_F()
119 EXPECT_EQ(4096 / kTestBlockSize, fs->GetBlockCount()); in TEST_F()
122 ASSERT_TRUE(fs->GetFiles(&files)); in TEST_F()
135 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFile( in TEST_F() local
[all …]
Dext2_filesystem_unittest.cc67 unique_ptr<Ext2Filesystem> fs = in TEST_F() local
69 ASSERT_EQ(nullptr, fs.get()); in TEST_F()
71 fs = Ext2Filesystem::CreateFromFile("/path/to/invalid/file"); in TEST_F()
72 ASSERT_EQ(nullptr, fs.get()); in TEST_F()
76 unique_ptr<Ext2Filesystem> fs = Ext2Filesystem::CreateFromFile( in TEST_F() local
79 ASSERT_NE(nullptr, fs.get()); in TEST_F()
80 EXPECT_EQ(kDefaultFilesystemBlockCount, fs->GetBlockCount()); in TEST_F()
81 EXPECT_EQ(kDefaultFilesystemBlockSize, fs->GetBlockSize()); in TEST_F()
84 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F()
91 ExpectBlocksInRange(file.extents, fs->GetBlockCount()); in TEST_F()
[all …]
Dmapfile_filesystem_unittest.cc63 unique_ptr<MapfileFilesystem> fs = MapfileFilesystem::CreateFromFile( in TEST_F() local
65 ASSERT_NE(nullptr, fs.get()); in TEST_F()
67 EXPECT_EQ(0U, fs->GetBlockCount()); in TEST_F()
69 EXPECT_EQ(4096U, fs->GetBlockSize()); in TEST_F()
82 unique_ptr<MapfileFilesystem> fs = MapfileFilesystem::CreateFromFile( in TEST_F() local
84 ASSERT_NE(nullptr, fs.get()); in TEST_F()
87 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F()
94 ExpectBlocksInRange(file.extents, fs->GetBlockCount()); in TEST_F()
114 unique_ptr<MapfileFilesystem> fs = MapfileFilesystem::CreateFromFile( in TEST_F() local
116 ASSERT_NE(nullptr, fs.get()); in TEST_F()
[all …]
Dboot_img_filesystem_unittest.cc73 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
75 EXPECT_NE(nullptr, fs); in TEST_F()
78 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F()
98 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
100 EXPECT_NE(nullptr, fs); in TEST_F()
103 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F()
123 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
125 EXPECT_EQ(nullptr, fs); in TEST_F()
136 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
138 EXPECT_NE(nullptr, fs); in TEST_F()
[all …]
/system/linkerconfig/contents/tests/configuration/
Dvndk_test.cc37 std::string Search(const Namespace& ns, std::string_view soname, fsmap fs) { in Search() argument
40 auto libs = fs[path]; in Search()
65 auto fs = fsmap{ in TEST()
71 EXPECT_EQ(apex_vndk_lib_path, Search(vndk_ns, libvndk, fs)); in TEST()
72 EXPECT_EQ(apex_vndk_lib_path, Search(vndk_ns, libvndksp, fs)); in TEST()
75 fs[vendor_vndk_lib_path] = {libvndk}; in TEST()
76 EXPECT_EQ(vendor_vndk_lib_path, Search(vndk_ns, libvndk, fs)); in TEST()
77 EXPECT_EQ(apex_vndk_lib_path, Search(vndk_ns, libvndksp, fs)); in TEST()
80 fs[vendor_vndksp_lib_path] = {libvndksp}; in TEST()
81 EXPECT_EQ(vendor_vndk_lib_path, Search(vndk_ns, libvndk, fs)); in TEST()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dsimpleperf_etm_provider.cpp47 namespace fs = std::filesystem;
53 bool Trace(const fs::path& outputPath, const std::string& tag,
55 bool Process(const fs::path& inputPath, const fs::path& outputPath,
68 bool SimpleperfETMProvider::Trace(const fs::path& outputPath, const std::string& tag, in Trace()
75 bool SimpleperfETMProvider::Process(const fs::path& inputPath, const fs::path& outputPath, in Process()
77 for (const auto& entry : fs::directory_iterator(inputPath)) { in Process()
78 const fs::path& traceFile = entry.path(); in Process()
83 const fs::path binaryOutput = in Process()
88 fs::remove(traceFile); in Process()
Dscheduler.cpp46 namespace fs = std::filesystem;
55 void ClearDir(const fs::path& path) { in ClearDir()
56 if (fs::exists(path)) { in ClearDir()
57 for (const auto& entry : fs::directory_iterator(path)) { in ClearDir()
58 fs::remove_all(entry); in ClearDir()
64 const fs::path configFile = config.profileOutputDir / "config.json"; in ClearOnConfigChange()
68 if (fs::exists(configFile)) { in ClearOnConfigChange()
177 std::vector<fs::path> profiles; in ProcessProfile()
178 profiles.insert(profiles.begin(), fs::directory_iterator(config.profileOutputDir), in ProcessProfile()
179 fs::directory_iterator()); in ProcessProfile()
/system/core/libpixelflinger/codeflinger/
Dblending.cpp74 int fs = component==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; in build_blending() local
76 if (fs==GGL_SRC_ALPHA_SATURATE && component==GGLFormat::ALPHA) in build_blending()
77 fs = GGL_ONE; in build_blending()
78 const int blending = blending_codes(fs, fd); in build_blending()
103 (fs==GGL_DST_COLOR && fd==GGL_ONE_MINUS_DST_COLOR) || in build_blending()
104 (fs==GGL_SRC_COLOR && fd==GGL_ONE_MINUS_SRC_COLOR) || in build_blending()
105 (fs==GGL_DST_ALPHA && fd==GGL_ONE_MINUS_DST_ALPHA) || in build_blending()
106 (fs==GGL_SRC_ALPHA && fd==GGL_ONE_MINUS_SRC_ALPHA); in build_blending()
109 (fs==GGL_ONE_MINUS_DST_COLOR && fd==GGL_DST_COLOR) || in build_blending()
110 (fs==GGL_ONE_MINUS_SRC_COLOR && fd==GGL_SRC_COLOR) || in build_blending()
[all …]
/system/apex/apexd/
Dapex_shim.cpp41 namespace fs = std::filesystem;
48 static constexpr const fs::perms kForbiddenFilePermissions =
49 fs::perms::owner_exec | fs::perms::group_exec | fs::perms::others_exec;
124 auto iter = fs::recursive_directory_iterator(mount_point, ec); in ValidateShimApex()
125 // Unfortunately fs::recursive_directory_iterator::operator++ can throw an in ValidateShimApex()
128 while (iter != fs::end(iter)) { in ValidateShimApex()
131 auto resolved_mount_point = fs::path(mount_point).string(); in ValidateShimApex()
133 fs::file_status status = iter->status(ec); in ValidateShimApex()
135 if (fs::is_symlink(status)) { in ValidateShimApex()
139 } else if (fs::is_regular_file(status)) { in ValidateShimApex()
[all …]
Dapexd_utils.h92 namespace fs = std::filesystem; in WalkDir() local
94 auto it = fs::directory_iterator(path, ec); in WalkDir()
95 auto end = fs::directory_iterator(); in WalkDir()
109 namespace fs = std::filesystem; in ReadDir() local
112 auto status = WalkDir(path, [&](const fs::directory_entry& entry) { in ReadDir()
168 namespace fs = std::filesystem; in DeleteDir() local
170 fs::remove_all(path, ec); in DeleteDir()
188 namespace fs = std::filesystem; in PathExists() local
191 if (!fs::exists(fs::path(path), ec)) { in PathExists()
227 namespace fs = std::filesystem; in GetSubdirs() local
Dapex_database.cpp45 namespace fs = std::filesystem;
60 const fs::path kDevBlock = "/dev/block";
61 const fs::path kSysBlock = "/sys/block";
66 explicit BlockDevice(const fs::path& path) { name = path.filename(); } in BlockDevice()
74 fs::path SysPath() const { return kSysBlock / name; } in SysPath()
76 fs::path DevPath() const { return kDevBlock / name; } in DevPath()
92 if (fs::is_block_file(dev.DevPath(), ec)) { in GetSlaves()
103 std::pair<fs::path, fs::path> parseMountInfo(const std::string& mountInfo) { in parseMountInfo()
112 auto packageId = fs::path(mountPoint).filename(); in parseMountPoint()
259 if (fs::path(mountPoint).parent_path() != kApexRoot) { in PopulateFromMounts()
/system/extras/checkpoint_gc/
Dcheckpoint_gc.sh43 read OLD_SLEEP < /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
44 echo 50 > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
45 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent || exit 1
47 read DIRTY_SEGMENTS_START < /sys/fs/f2fs/${NAME}/dirty_segments
57 read DIRTY_SEGMENTS < /sys/fs/f2fs/${NAME}/dirty_segments
64 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent
68 echo 0 > /sys/fs/f2fs/${NAME}/gc_urgent
69 echo ${OLD_SLEEP} > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time
/system/extras/tests/kernel.config/
Dnfs_test.cpp23 std::string fs; in TEST() local
24 EXPECT_TRUE(android::base::ReadFileToString("/proc/filesystems", &fs)); in TEST()
25 EXPECT_TRUE(fs.find("\tnfs\n") == std::string::npos); in TEST()
26 EXPECT_TRUE(fs.find("\tnfs4\n") == std::string::npos); in TEST()
27 EXPECT_TRUE(fs.find("\tnfsd\n") == std::string::npos); in TEST()
Dpstore_test.cpp22 EXPECT_EQ(0, access("/sys/fs/pstore", F_OK)); in TEST()
26 EXPECT_TRUE(!access("/sys/fs/pstore/console-ramoops-0", F_OK) ^ in TEST()
27 !access("/sys/fs/pstore/console-ramoops", F_OK)); in TEST()
32 EXPECT_EQ(0, access("/sys/fs/pstore/pmsg-ramoops-0", F_OK)); in TEST()
/system/security/fsverity_init/
Dfsverity_init.cpp64 key_serial_t keyring_id = android::GetKeyringId(".fs-verity"); in main()
66 LOG(ERROR) << "Failed to find .fs-verity keyring id"; in main()
70 // Requires files backed by fs-verity to be verified with a key in .fs-verity in main()
72 if (!android::base::WriteStringToFile("1", "/proc/sys/fs/verity/require_signatures")) { in main()
73 PLOG(ERROR) << "Failed to enforce fs-verity signature"; in main()
80 PLOG(ERROR) << "Cannot restrict .fs-verity keyring"; in main()
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp17 #include <linux/fs.h>
212 std::string fstab_contents = R"fs( in TEST()
228 )fs"; in TEST()
317 std::string fstab_contents = R"fs( in TEST()
322 source none4 swap defaults checkpoint=fs in TEST()
324 )fs"; in TEST()
396 std::string fstab_contents = R"fs( in TEST()
403 )fs"; in TEST()
475 std::string fstab_contents = R"fs( in TEST()
477 )fs"; in TEST()
[all …]
/system/extras/boottime_tools/bootanalyze/
Dconfig.yaml19 fs: processing action \(fs\)
20 post-fs: processing action \(post-fs\)
21 late-fs: processing action \(late-fs\)
22 post-fs-data: processing action \(post-fs-data\)
/system/core/rootdir/
Dinit.rc86 mkdir /dev/sys/fs 0755 system system
353 mount bpf bpf /sys/fs/bpf nodev noexec nosuid
360 mount pstore pstore /sys/fs/pstore nodev noexec nosuid
361 chown system log /sys/fs/pstore
362 chmod 0550 /sys/fs/pstore
363 chown system log /sys/fs/pstore/console-ramoops
364 chmod 0440 /sys/fs/pstore/console-ramoops
365 chown system log /sys/fs/pstore/console-ramoops-0
366 chmod 0440 /sys/fs/pstore/console-ramoops-0
367 chown system log /sys/fs/pstore/pmsg-ramoops-0
[all …]
/system/core/bootstat/
Dbootstat.rc5 # before post-fs trigger
6 on post-fs && property:ro.boot.bootreason=*
9 on post-fs-data
47 # post-fs-data: /data is writable
50 on post-fs-data && property:init.svc.bootanim=running && property:ro.crypto.type=block
/system/bt/gd/cert/
Devent_stream.py192 … logging.debug("Waiting for event iteration (%fs remaining)" % (remaining.total_seconds()))
216 logging.debug("assert_event_occurs %d %fs" % (at_least_times, timeout.total_seconds()))
221 logging.debug("Waiting for event (%fs remaining)" % (remaining.total_seconds()))
239 logging.debug("assert_all_events_occur %fs" % timeout.total_seconds())
245 logging.debug("Waiting for event (%fs remaining)" % (remaining.total_seconds()))
270 logging.debug("assert_none_matching %fs" % (timeout.total_seconds()))
275 logging.debug("Waiting for event (%fs remaining)" % (remaining.total_seconds()))
289 logging.debug("assert_none %fs" % (timeout.total_seconds()))
/system/tools/aidl/build/
Daidl_test.go57 type testCustomizer func(fs map[string][]byte, config android.Config)
60 return func(fs map[string][]byte, config android.Config) {
62 fs[k] = v
107 fs := map[string][]byte{}
109 cc.GatherRequiredFilesForTest(fs)
112 // The fs now needs to be populated before creating the config, call customizers twice
113 // for now, once to get any fs changes, and later after the config was created to
115 tempConfig := android.TestArchConfig(buildDir, nil, bp, fs)
116 c(fs, tempConfig)
119 config := android.TestArchConfig(buildDir, nil, bp, fs)
[all …]
/system/sepolicy/prebuilts/api/26.0/private/
Dgenfs_contexts1 # Label inodes with the fs label.
17 genfscon proc /sys/fs/protected_hardlinks u:object_r:proc_security:s0
18 genfscon proc /sys/fs/protected_symlinks u:object_r:proc_security:s0
19 genfscon proc /sys/fs/suid_dumpable u:object_r:proc_security:s0
/system/extras/simpleperf/
Denvironment_test.cpp27 namespace fs = std::filesystem;
107 fs::path dir(GetTestData("sysfs/module/fake_kernel_module/notes")); in TEST()
108 ASSERT_TRUE(fs::copy_file(dir / "note.gnu.build-id", dir / ".note.gnu.build-id", in TEST()
109 fs::copy_options::overwrite_existing)); in TEST()
/system/gsid/
Dgsid.rc8 on post-fs
14 on post-fs-data
/system/vold/
DAndroid.bp136 "fs/Exfat.cpp",
137 "fs/Ext4.cpp",
138 "fs/F2fs.cpp",
139 "fs/Vfat.cpp",

12345678910>>...14