Searched refs:assertDiskWritePolicy (Results 1 – 1 of 1) sorted by relevance
/cts/tests/tests/os/src/android/os/cts/ |
D | StrictModeTest.java | 411 Consumer<ViolationInfo> assertDiskWritePolicy = info -> assertThat( in testWrite() local 414 inspectViolation(() -> File.createTempFile("foo", "bar"), assertDiskWritePolicy); in testWrite() 415 inspectViolation(() -> new FileOutputStream(file), assertDiskWritePolicy); in testWrite() local 416 inspectViolation(file::delete, assertDiskWritePolicy); in testWrite() 417 inspectViolation(file::createNewFile, assertDiskWritePolicy); in testWrite() 418 inspectViolation(() -> os.write(32), assertDiskWritePolicy); in testWrite() 422 assertDiskWritePolicy); in testWrite() local 423 inspectViolation(() -> Os.write(fd, new byte[10], 0, 1), assertDiskWritePolicy); in testWrite() local 424 inspectViolation(() -> Os.fsync(fd), assertDiskWritePolicy); in testWrite() local 426 () -> file.renameTo(new File(file.getParent(), "foobar")), assertDiskWritePolicy); in testWrite() local
|