Lines Matching refs:base
165 android::base::unique_fd fd( in IsFscryptV2Supported()
261 android::base::unique_fd blk_fd( in ReadRawDataOfFile()
314 android::base::unique_fd fd( in WriteTestFile()
320 if (!android::base::WriteFully(fd, plaintext.data(), plaintext.size())) { in WriteTestFile()
397 android::base::unique_fd mntfd( in TearDown()
429 android::base::unique_fd mntfd( in SetMasterKey()
520 android::base::unique_fd dirfd( in SetEncryptionPolicy()
540 android::base::unique_fd fd( in SetEncryptionPolicy()
579 android::base::unique_fd fd(open(kTestFile, O_RDONLY | O_CLOEXEC)); in GenerateTestFile()
858 path = android::base::StringPrintf("%s/file%d", kTestDir, i); in TestEmmcOptimizedDunWraparound()
859 android::base::unique_fd fd( in TestEmmcOptimizedDunWraparound()
887 android::base::unique_fd fd(open(path.c_str(), open_flags)); in TestEmmcOptimizedDunWraparound()
1024 if (android::base::GetProperty("ro.crypto.type", "") != "file") { in TEST()