Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 203) sorted by relevance

123456789

/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/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()
/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()
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()
141 fs::perms::none) { 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()
Dapexd_rollback_utils.h67 namespace fs = std::filesystem; in ReplaceFiles() local
70 fs::remove_all(to_path, error_code); in ReplaceFiles()
78 fs::remove_all(to_path, error_code); in ReplaceFiles()
Dflattened_apex_test.cpp40 namespace fs = std::filesystem; in TEST()
41 auto assert_is_dir = [&](const fs::directory_entry& entry) { in TEST()
/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/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/tools/xsdc/src/com/android/xsdc/
DMain.java107 FileSystem fs = new FileSystem(packageDir); in main() local
110 javaCodeGenerator.print(fs); in main()
114 FileSystem fs = new FileSystem(new File(outDir)); in main() local
117 cppCodeGenerator.print(fs); in main()
/system/gsid/
Dgsid.rc8 on post-fs
14 on post-fs-data
/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)
115 tempConfig := android.TestArchConfig(buildDir, nil, bp, fs)
116 c(fs, tempConfig)
119 config := android.TestArchConfig(buildDir, nil, bp, fs)
/system/vold/
DAndroid.bp136 "fs/Exfat.cpp",
137 "fs/Ext4.cpp",
138 "fs/F2fs.cpp",
139 "fs/Vfat.cpp",
/system/sepolicy/prebuilts/api/30.0/private/
Dfs_use13 fs_use_xattr incremental-fs u:object_r:labeledfs:s0;
19 # Label inodes from combination of task label and fs label.
/system/sepolicy/public/
Dcharger.te26 # Read /sys/fs/pstore/console-ramoops
28 # only one file in /sys/fs/pstore
/system/core/fs_mgr/
Dclean_scratch_files.rc1 on post-fs-data && property:ro.debuggable=1
/system/sepolicy/private/
Dfs_use13 fs_use_xattr incremental-fs u:object_r:labeledfs:s0;
20 # Label inodes from combination of task label and fs label.
/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

123456789