/system/update_engine/payload_generator/ |
D | squashfs_filesystem_unittest.cc | 75 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 …]
|
D | ext2_filesystem_unittest.cc | 67 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 …]
|
D | mapfile_filesystem_unittest.cc | 63 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 …]
|
D | boot_img_filesystem_unittest.cc | 73 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/ |
D | vndk_test.cc | 37 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/ |
D | simpleperf_etm_provider.cpp | 47 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()
|
D | scheduler.cpp | 46 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/ |
D | checkpoint_gc.sh | 43 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/ |
D | nfs_test.cpp | 23 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/ |
D | apex_shim.cpp | 41 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 …]
|
D | apexd_utils.h | 92 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
|
D | apex_database.cpp | 45 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()
|
D | apexd_rollback_utils.h | 67 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()
|
D | flattened_apex_test.cpp | 40 namespace fs = std::filesystem; in TEST() 41 auto assert_is_dir = [&](const fs::directory_entry& entry) { in TEST()
|
/system/core/libpixelflinger/codeflinger/ |
D | blending.cpp | 74 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/ |
D | environment_test.cpp | 27 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/ |
D | Main.java | 107 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/ |
D | gsid.rc | 8 on post-fs 14 on post-fs-data
|
/system/tools/aidl/build/ |
D | aidl_test.go | 57 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/ |
D | Android.bp | 136 "fs/Exfat.cpp", 137 "fs/Ext4.cpp", 138 "fs/F2fs.cpp", 139 "fs/Vfat.cpp",
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | fs_use | 13 fs_use_xattr incremental-fs u:object_r:labeledfs:s0; 19 # Label inodes from combination of task label and fs label.
|
/system/sepolicy/public/ |
D | charger.te | 26 # Read /sys/fs/pstore/console-ramoops 28 # only one file in /sys/fs/pstore
|
/system/core/fs_mgr/ |
D | clean_scratch_files.rc | 1 on post-fs-data && property:ro.debuggable=1
|
/system/sepolicy/private/ |
D | fs_use | 13 fs_use_xattr incremental-fs u:object_r:labeledfs:s0; 20 # Label inodes from combination of task label and fs label.
|
/system/core/bootstat/ |
D | bootstat.rc | 5 # 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
|