Home
last modified time | relevance | path

Searched refs:assertDiskWritePolicy (Results 1 – 1 of 1) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java381 Consumer<ViolationInfo> assertDiskWritePolicy = in testWrite() local
384 inspectViolation(() -> File.createTempFile("foo", "bar"), assertDiskWritePolicy); in testWrite()
385 inspectViolation(() -> new FileOutputStream(file), assertDiskWritePolicy); in testWrite() local
386 inspectViolation(file::delete, assertDiskWritePolicy); in testWrite()
387 inspectViolation(file::createNewFile, assertDiskWritePolicy); in testWrite()
388 inspectViolation(() -> os.write(32), assertDiskWritePolicy); in testWrite()
392 assertDiskWritePolicy); in testWrite() local
393 inspectViolation(() -> Os.write(fd, new byte[10], 0, 1), assertDiskWritePolicy); in testWrite() local
394 inspectViolation(() -> Os.fsync(fd), assertDiskWritePolicy); in testWrite() local
396 () -> file.renameTo(new File(file.getParent(), "foobar")), assertDiskWritePolicy); in testWrite() local