/aosp12/build/soong/finder/ |
H A D | finder_test.go | 31 func newFs() *fs.MockFs { 32 return fs.NewMockFs(map[string][]byte{}) 295 fs.AssertSameResponse(t, foundPaths, 326 fs.AssertSameResponse(t, foundPaths, 352 fs.AssertSameResponse(t, foundPaths, 432 fs.AssertSameResponse(t, foundPaths, 440 fs.AssertSameResponse(t, foundPaths, 446 fs.AssertSameResponse(t, foundPaths, 516 fs.Create(t, path, filesystem) 572 fs.Create(t, path, filesystem) [all …]
|
/aosp12/frameworks/av/media/libstagefright/renderfright/gl/ |
H A D | ProgramCache.cpp | 232 fs << R"__SHADER__( in generateEOTF() 247 fs << R"__SHADER__( in generateEOTF() 262 fs << R"__SHADER__( in generateEOTF() 475 fs << R"__SHADER__( in generateOOTF() 482 fs << R"__SHADER__( in generateOOTF() 586 Formatter fs; in generateFragmentShader() local 606 fs << R"__SHADER__( in generateFragmentShader() 629 fs << R"__SHADER__( in generateFragmentShader() 651 fs << R"__SHADER__( in generateFragmentShader() 757 fs << dedent << "}"; in generateFragmentShader() [all …]
|
/aosp12/frameworks/native/libs/renderengine/gl/ |
H A D | ProgramCache.cpp | 235 fs << R"__SHADER__( in generateEOTF() 250 fs << R"__SHADER__( in generateEOTF() 265 fs << R"__SHADER__( in generateEOTF() 478 fs << R"__SHADER__( in generateOOTF() 485 fs << R"__SHADER__( in generateOOTF() 589 Formatter fs; in generateFragmentShader() local 609 fs << R"__SHADER__( in generateFragmentShader() 632 fs << R"__SHADER__( in generateFragmentShader() 654 fs << R"__SHADER__( in generateFragmentShader() 787 fs << dedent << "}"; in generateFragmentShader() [all …]
|
/aosp12/system/update_engine/payload_generator/ |
H A D | squashfs_filesystem_unittest.cc | 76 ASSERT_TRUE(fs); in CheckSquashfs() 116 CheckSquashfs(fs); in TEST_F() 137 CheckSquashfs(fs); in TEST_F() 155 CheckSquashfs(fs); in TEST_F() 170 CheckSquashfs(fs); in TEST_F() 184 CheckSquashfs(fs); in TEST_F() 197 CheckSquashfs(fs); in TEST_F() 255 EXPECT_FALSE(fs); in TEST_F() 263 EXPECT_FALSE(fs); in TEST_F() 274 EXPECT_FALSE(fs); in TEST_F() [all …]
|
H A D | ext2_filesystem_unittest.cc | 67 unique_ptr<Ext2Filesystem> fs = in TEST_F() local 69 ASSERT_EQ(nullptr, fs.get()); in TEST_F() 72 ASSERT_EQ(nullptr, fs.get()); in TEST_F() 79 ASSERT_NE(nullptr, fs.get()); in TEST_F() 84 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F() 106 unique_ptr<Ext2Filesystem> fs = in TEST_F() local 108 ASSERT_NE(nullptr, fs.get()); in TEST_F() 113 EXPECT_TRUE(fs->GetFiles(&files)); in TEST_F() 190 ASSERT_NE(nullptr, fs.get()); in TEST_F() 200 ASSERT_NE(nullptr, fs.get()); in TEST_F() [all …]
|
H A 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() 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() 116 ASSERT_NE(nullptr, fs.get()); in TEST_F() 119 EXPECT_FALSE(fs->GetFiles(&files)); in TEST_F() 128 ASSERT_NE(nullptr, fs.get()); in TEST_F() [all …]
|
H A 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 …]
|
/aosp12/build/blueprint/pathtools/ |
H A D | fs.go | 42 fs := &mockFs{ 58 fs.dirs[dir] = true 61 fs.dirs[dir] = true 64 fs.dirs["."] = true 65 fs.dirs["/"] = true 68 fs.all = append(fs.all, f) 72 fs.all = append(fs.all, d) 76 fs.all = append(fs.all, s) 79 sort.Strings(fs.all) 81 return fs [all …]
|
H A D | fs_test.go | 111 run := func(t *testing.T, fs FileSystem) { 113 f(t, fs, "") 116 f(t, fs, absTestDataDir) 189 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 192 got, err := fs.IsDir(filepath.Join(dir, test.name)) 231 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 277 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 343 got, err := fs.Readlink(test.from) 404 got, err := fs.Lstat(filepath.Join(dir, test.name)) 472 got, err := fs.Stat(filepath.Join(dir, test.name)) [all …]
|
/aosp12/build/soong/android/ |
H A D | visibility_test.go | 18 fs: MockFS{ 29 fs: MockFS{ 40 fs: MockFS{ 51 fs: MockFS{ 62 fs: MockFS{ 73 fs: MockFS{ 84 fs: MockFS{ 95 fs: MockFS{ 116 fs: MockFS{ 132 fs: MockFS{ [all …]
|
H A D | neverallow_test.go | 31 fs MockFS 46 fs: map[string][]byte{ 67 fs: map[string][]byte{ 80 fs: map[string][]byte{ 93 fs: map[string][]byte{ 104 fs: map[string][]byte{ 120 fs: map[string][]byte{ 136 fs: map[string][]byte{ 158 fs: map[string][]byte{ 176 fs: map[string][]byte{ [all …]
|
H A D | license_test.go | 24 fs MockFS 29 fs: map[string][]byte{ 43 fs: map[string][]byte{ 75 fs: map[string][]byte{ 94 fs: map[string][]byte{ 108 fs: map[string][]byte{ 134 fs: map[string][]byte{ 187 test.fs.AddToFixture(), 195 func testLicense(t *testing.T, fs MockFS, expectedErrors []string) {
|
/aosp12/system/apex/apexd/ |
H A D | apex_file_repository_test.cpp | 39 namespace fs = std::filesystem; 59 fs::copy(GetTestFile(name), built_in_dir); in PrepareCompressedApex() 77 fs::copy(GetTestFile("apex.apexd_test_different_app.apex"), in TEST() 129 fs::copy(GetTestFile("apex.apexd_test.apex"), td.path); in TEST() 151 fs::copy(GetTestFile("apex.apexd_test.apex"), td.path); in TEST() 152 fs::copy(GetTestFile("apex.apexd_test.apex"), in TEST() 182 fs::copy(GetTestFile("apex.apexd_test.apex"), td.path); in TEST() 198 fs::copy_options::overwrite_existing); in TEST() 233 *path, fs::copy_options::overwrite_existing); in TEST() 250 fs::copy(GetTestFile("apex.apexd_test.apex"), td.path); in TEST() [all …]
|
H A D | apex_shim.cpp | 42 namespace fs = std::filesystem; 49 static constexpr const fs::perms kForbiddenFilePermissions = 50 fs::perms::owner_exec | fs::perms::group_exec | fs::perms::others_exec; 126 auto iter = fs::recursive_directory_iterator(mount_point, ec); in ValidateShimApex() 130 while (iter != fs::end(iter)) { in ValidateShimApex() 133 auto resolved_mount_point = fs::path(mount_point).string(); in ValidateShimApex() 135 fs::file_status status = iter->status(ec); in ValidateShimApex() 137 if (fs::is_symlink(status)) { in ValidateShimApex() 141 } else if (fs::is_regular_file(status)) { in ValidateShimApex() 143 fs::perms::none) { in ValidateShimApex() [all …]
|
H A D | apexd_utils.h | 92 namespace fs = std::filesystem; in WalkDir() local 95 auto end = fs::directory_iterator(); in WalkDir() 110 namespace fs = std::filesystem; in ReadDir() local 175 namespace fs = std::filesystem; in DeleteDir() local 177 fs::remove_all(path, ec); in DeleteDir() 186 namespace fs = std::filesystem; in PathExists() local 189 if (!fs::exists(fs::path(path), ec)) { in PathExists() 228 namespace fs = std::filesystem; in GetSubdirs() local 325 namespace fs = std::filesystem; in MoveDir() local 341 fs::copy(from_path, to_path, fs::copy_options::recursive, ec); in MoveDir() [all …]
|
/aosp12/frameworks/compile/slang/tests/F_fs_types/ |
H A D | stderr.txt.expect | 1 fs_types.fs:4:8: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'd' 2 fs_types.fs:13:10: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'myS' 3 fs_types.fs:15:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'd' 4 fs_types.fs:16:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'e' 5 fs_types.fs:17:15: error: Builtin types > 32 bits in size are forbidden in Filterscript 6 fs_types.fs:18:7: error: Builtin types > 32 bits in size are forbidden in Filterscript 7 fs_types.fs:21:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'l' 9 fs_types.fs:23:13: error: Builtin types > 32 bits in size are forbidden in Filterscript 10 fs_types.fs:24:7: error: Builtin types > 32 bits in size are forbidden in Filterscript 13 fs_types.fs:29:13: error: Builtin types > 32 bits in size are forbidden in Filterscript [all …]
|
/aosp12/system/linkerconfig/contents/tests/configuration/ |
H A 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 …]
|
/aosp12/system/apex/tests/native/ |
H A D | apex_shared_libraries_test.cpp | 37 namespace fs = std::filesystem; 52 if (fs::path(entry.mount_point).parent_path() != kApexRoot) { in TEST() 68 auto lib = fs::path(entry.mount_point) / "lib"; in TEST() 70 auto lib = fs::path(entry.mount_point) / "lib64"; in TEST() 72 if (!fs::is_directory(lib)) { in TEST() 75 for (auto& p : fs::directory_iterator(lib)) { in TEST() 77 if (!fs::is_symlink(p, ec)) { in TEST() 83 auto target = fs::read_symlink(p.path(), ec); in TEST() 89 auto dest = fs::canonical(p.path(), ec); in TEST() 108 auto dest = *static_cast<fs::path*>(data); in TEST() [all …]
|
/aosp12/system/extras/checkpoint_gc/ |
H A D | checkpoint_gc.sh | 32 if [ ! -f /dev/sys/fs/by-name/userdata/gc_urgent ]; then 38 if [ -f /dev/sys/fs/by-name/userdata/unusable ]; then 42 read START < /dev/sys/fs/by-name/userdata/unusable 46 read START < /dev/sys/fs/by-name/userdata/dirty_segments 50 echo 2 > /dev/sys/fs/by-name/userdata/gc_urgent || exit 1 63 read CURRENT < /dev/sys/fs/by-name/userdata/unusable 65 read CURRENT < /dev/sys/fs/by-name/userdata/dirty_segments 74 echo 2 > /dev/sys/fs/by-name/userdata/gc_urgent 81 echo 2 > /dev/sys/fs/by-name/userdata/gc_urgent
|
/aosp12/frameworks/compile/mclinker/lib/Support/ |
H A D | FileSystem.cpp | 16 bool mcld::sys::fs::exists(const Path& pPath) { in exists() 17 mcld::sys::fs::FileStatus file_status; in exists() 18 mcld::sys::fs::detail::status(pPath, file_status); in exists() 19 return (file_status.type() != mcld::sys::fs::StatusError) && in exists() 20 (file_status.type() != mcld::sys::fs::FileNotFound); in exists() 23 bool mcld::sys::fs::is_directory(const Path& pPath) { in is_directory() 26 return (file_status.type() == mcld::sys::fs::DirectoryFile); in is_directory()
|
/aosp12/frameworks/av/media/libeffects/lvm/tests/ |
H A D | build_and_run_all_unit_tests_reverb.sh | 60 for fs in ${fs_arr[*]} 66 --output $testdir/sinesweep_$((chMask))_$((fs)).raw \ 67 --chMask $chMask $flags --fs $fs --preset $preset_val 79 adb shell cmp $testdir/sinesweep_0_$((fs)).raw \ 80 $testdir/sinesweep_$((chMask))_$((fs)).raw 85 adb shell cmp $testdir/sinesweep_1_$((fs)).raw \ 86 $testdir/sinesweep_$((chMask))_$((fs)).raw
|
H A D | build_and_run_all_unit_tests.sh | 92 for fs in ${fs_arr[*]} 97 -o:$testdir/sinesweep_$((chMask))_$((fs)).raw -chMask:$chMask -fs:$fs $flags 116 adb shell cmp $testdir/sinesweep_1_$((fs)).raw \ 117 $testdir/sinesweep_$((chMask))_$((fs)).raw 120 adb shell $testdir/snr $testdir/sinesweep_1_$((fs)).raw \ 121 $testdir/sinesweep_$((chMask))_$((fs)).raw -thr:90.308998
|
/aosp12/frameworks/compile/mclinker/include/mcld/MC/ |
H A D | SearchDirs.h | 44 explicit SearchDirs(const sys::fs::Path& pSysRoot); 49 sys::fs::Path* find(const std::string& pNamespec, 52 const sys::fs::Path* find(const std::string& pNamespec, 55 void setSysRoot(const sys::fs::Path& pSysRoot) { m_SysRoot = pSysRoot; } in setSysRoot() 56 const sys::fs::Path& sysroot() const { return m_SysRoot; } in sysroot() 69 bool insert(const sys::fs::Path& pDirectory); 73 sys::fs::Path m_SysRoot;
|
/aosp12/frameworks/compile/mclinker/lib/MC/ |
H A D | MCLDDirectory.cpp | 30 sys::fs::detail::open_dir(*this); in MCLDDirectory() 44 sys::fs::detail::open_dir(*this); in MCLDDirectory() 58 sys::fs::detail::open_dir(*this); in MCLDDirectory() 72 sys::fs::detail::open_dir(*this); in assign() 73 Directory::m_FileStatus = sys::fs::FileStatus(); in assign() 74 Directory::m_SymLinkStatus = sys::fs::FileStatus(); in assign() 87 void MCLDDirectory::setSysroot(const sys::fs::Path& pSysroot) { in setSysroot() 93 sys::fs::detail::canonicalize(Directory::m_Path.native()); in setSysroot() 94 sys::fs::detail::open_dir(*this); in setSysroot()
|
/aosp12/build/make/tools/ |
H A D | fat16copy.py | 102 def __init__(self, fs, cluster, size=None): argument 109 self.fs = fs 114 self.size = fs.get_chain_size(cluster) 247 chunk = self.backing.fs.allocate(1) 299 self.fs = fs 422 def __init__(self, fs): argument 423 self.fs = fs 425 self.size = fs.root_entries * 32 428 f = self.fs.f 429 f.seek(self.fs.data_start() + self.idx) [all …]
|