commit | c95b2c85f3101e686c08d0f0e117088a524894c7 | [log] [tgz] |
---|---|---|
author | Shubham Ajmera <shubhamajmera@google.com> | Thu Sep 29 16:35:36 2016 +0100 |
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | Thu Sep 29 16:36:12 2016 +0100 |
tree | acd54066fff864dde4f875ba12dcd0aa9cc00c03 | |
parent | b60951f670e5e6d271786f9d0041091b5c16173d [diff] |
Add new StrictMode thread policy - DETECT_UNBUFFERED_IO This will enable the developers to check if they could replace an unbuffered I/O operation with a corresponding buffered I/O operation. The policy can be set as follow: StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectUnbufferedIO().build()); Test: vogar BlockGuardTest Bug: 3018772 Change-Id: Ib804a8e9980ae40abfd216f8b87c250fd413bd5c (cherry picked from commit 9b7184a8fd6c940872f1526667dd7933db4bdd5f)w