Home
last modified time | relevance | path

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

1234567

/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.cc58 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
60 EXPECT_NE(nullptr, fs); in TEST_F()
63 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F()
83 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
85 EXPECT_EQ(nullptr, fs); in TEST_F()
96 unique_ptr<BootImgFilesystem> fs = in TEST_F() local
98 EXPECT_NE(nullptr, fs); in TEST_F()
101 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F()
/system/extras/checkpoint_gc/
Dcheckpoint_gc.sh42 read OLD_SLEEP < /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
43 echo 50 > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time || exit 1
44 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent || exit 1
46 read DIRTY_SEGMENTS_START < /sys/fs/f2fs/${NAME}/dirty_segments
56 read DIRTY_SEGMENTS < /sys/fs/f2fs/${NAME}/dirty_segments
63 echo 1 > /sys/fs/f2fs/${NAME}/gc_urgent
67 echo 0 > /sys/fs/f2fs/${NAME}/gc_urgent
68 echo ${OLD_SLEEP} > /sys/fs/f2fs/${NAME}/gc_urgent_sleep_time
/system/apex/apexd/
Dapex_shim.cpp38 namespace fs = std::filesystem;
48 static constexpr const fs::perms kFordbiddenFilePermissions =
49 fs::perms::owner_exec | fs::perms::group_exec | fs::perms::others_exec;
93 Status IsRegularFile(const fs::directory_entry& entry) { in IsRegularFile()
94 const fs::path& path = entry.path(); in IsRegularFile()
96 fs::file_status status = entry.status(ec); in IsRegularFile()
101 if (!fs::is_regular_file(status)) { in IsRegularFile()
104 if ((status.permissions() & kFordbiddenFilePermissions) != fs::perms::none) { in IsRegularFile()
111 Status IsHashTxt(const fs::directory_entry& entry) { in IsHashTxt()
123 Status IsWhitelistedTopLevelEntry(const fs::directory_entry& entry) { in IsWhitelistedTopLevelEntry()
[all …]
Dapex_database.cpp44 namespace fs = std::filesystem;
74 const fs::path kDevBlock = "/dev/block";
75 const fs::path kSysBlock = "/sys/block";
80 explicit BlockDevice(const fs::path& path) { name = path.filename(); } in BlockDevice()
88 fs::path SysPath() const { return kSysBlock / name; } in SysPath()
90 fs::path DevPath() const { return kDevBlock / name; } in DevPath()
106 if (fs::is_block_file(dev.DevPath(), ec)) { in GetSlaves()
117 std::pair<fs::path, fs::path> parseMountInfo(const std::string& mountInfo) { in parseMountInfo()
126 auto packageId = fs::path(mountPoint).filename(); in parseMountPoint()
155 auto status = WalkDir(dir, [&](const fs::directory_entry& entry) { in scanFlattendedPackages()
[all …]
Dapexd_utils.h87 namespace fs = std::filesystem; in WalkDir() local
89 auto it = fs::directory_iterator(path, ec); in WalkDir()
90 auto end = fs::directory_iterator(); in WalkDir()
105 namespace fs = std::filesystem; in ReadDir() local
109 auto status = WalkDir(path, [&](const fs::directory_entry& entry) { in ReadDir()
166 namespace fs = std::filesystem; in PathExists() local
170 if (!fs::exists(fs::path(path), ec)) { in PathExists()
/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/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/libvintf/
DVintfObjectRecovery.cpp82 const FileSystem* fs = nullptr; in fetch() local
83 status_t err = getFileSystem(path, &fs, error); in fetch()
85 return fs->fetch(path, fetched, error); in fetch()
90 const FileSystem* fs = nullptr; in listFiles() local
91 status_t err = getFileSystem(path, &fs, error); in listFiles()
93 return fs->listFiles(path, out, error); in listFiles()
102 status_t getFileSystem(const std::string& path, const FileSystem** fs, in getFileSystem() argument
118 *fs = &mSystemFileSystem; in getFileSystem()
120 *fs = &mMntFileSystem; in getFileSystem()
/system/core/rootdir/
Dfsverity_init.sh19 echo 1 > /proc/sys/fs/verity/require_signatures
23 /system/bin/mini-keyctl padd asymmetric fsv_product .fs-verity < "$cert" ||
28 /system/bin/mini-keyctl restrict_keyring .fs-verity ||
Dasan_extract.rc2 on post-fs-data
/system/gsid/
Dgsid.rc6 on post-fs
10 on post-fs-data
/system/tools/xsdc/src/com/android/xsdc/
DMain.java101 FileSystem fs = new FileSystem(packageDir); in main() local
103 javaCodeGenerator.print(fs); in main()
107 FileSystem fs = new FileSystem(new File(outDir)); in main() local
110 cppCodeGenerator.print(fs); in main()
/system/vold/
DAndroid.bp125 "fs/Exfat.cpp",
126 "fs/Ext4.cpp",
127 "fs/F2fs.cpp",
128 "fs/Vfat.cpp",
/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/sepolicy/public/
Dcharger.te26 # Read /sys/fs/pstore/console-ramoops
28 # only one file in /sys/fs/pstore
/system/sepolicy/prebuilts/api/26.0/public/
Dcharger.te26 # Read /sys/fs/pstore/console-ramoops
28 # only one file in /sys/fs/pstore
/system/sepolicy/prebuilts/api/27.0/public/
Dcharger.te26 # Read /sys/fs/pstore/console-ramoops
28 # only one file in /sys/fs/pstore
/system/sepolicy/prebuilts/api/29.0/public/
Dcharger.te26 # Read /sys/fs/pstore/console-ramoops
28 # only one file in /sys/fs/pstore
/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/sepolicy/prebuilts/api/28.0/public/
Dcharger.te27 # Read /sys/fs/pstore/console-ramoops
29 # only one file in /sys/fs/pstore
/system/core/init/
Dfirst_stage_init.cpp48 namespace fs = std::filesystem;
209 if (!fs::copy_file("/adb_debug.prop", kDebugRamdiskProp, ec) || in FirstStageMain()
210 !fs::copy_file("/userdebug_plat_sepolicy.cil", kDebugRamdiskSEPolicy, ec)) { in FirstStageMain()
/system/nvram/hal/
Dfake-nvram.rc1 on post-fs-data

1234567