Lines Matching refs:base
171 android::base::unique_fd fd( in IsFscryptV2Supported()
266 android::base::unique_fd blk_fd( in ReadRawDataOfFile()
319 android::base::unique_fd fd( in WriteTestFile()
325 if (!android::base::WriteFully(fd, plaintext.data(), plaintext.size())) { in WriteTestFile()
402 android::base::unique_fd mntfd( in TearDown()
434 android::base::unique_fd mntfd( in SetMasterKey()
525 android::base::unique_fd dirfd( in SetEncryptionPolicy()
545 android::base::unique_fd fd( in SetEncryptionPolicy()
584 android::base::unique_fd fd(open(kTestFile, O_RDONLY | O_CLOEXEC)); in GenerateTestFile()
863 path = android::base::StringPrintf("%s/file%d", kTestDir, i); in TestEmmcOptimizedDunWraparound()
864 android::base::unique_fd fd( in TestEmmcOptimizedDunWraparound()
892 android::base::unique_fd fd(open(path.c_str(), open_flags)); in TestEmmcOptimizedDunWraparound()
1029 if (android::base::GetProperty("ro.crypto.type", "") != "file") { in TEST()