commit | 97461bd25c3821f3fb6af9705f0612259c6b4492 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@android.com> | Tue Aug 24 11:46:47 2010 -0700 |
committer | Brad Fitzpatrick <bradfitz@android.com> | Tue Aug 24 11:47:19 2010 -0700 |
tree | fa090d0495b22759bc751f0f9ef6061bc9e9a0cd | |
parent | 2703a42d16af0e62da1bba02b6c935d98debf936 [diff] |
Some StrictMode API changes. * rename setThreadBlockingPolicy to setThreadPolicy (opens the way to using StrictMode for non-blocking-related things in the future?) * add allowThreadDiskWrites() and allowThreadDiskReads() to modify the current policy mask and return the old one. this will allow turning off part of StrictMode during certain regions of code. (for instance, writing to disk in Activity onPause...) Change-Id: Ia1878153713f79299971fdab567fa15b3cb9d56c