Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DStrictMode.java1254 int oldPolicyMask = getThreadPolicyMask(); in allowThreadDiskWritesMask() local
1255 int newPolicyMask = oldPolicyMask & ~(DETECT_THREAD_DISK_WRITE | DETECT_THREAD_DISK_READ); in allowThreadDiskWritesMask()
1256 if (newPolicyMask != oldPolicyMask) { in allowThreadDiskWritesMask()
1259 return oldPolicyMask; in allowThreadDiskWritesMask()
1278 int oldPolicyMask = getThreadPolicyMask(); in allowThreadDiskReadsMask() local
1279 int newPolicyMask = oldPolicyMask & ~(DETECT_THREAD_DISK_READ); in allowThreadDiskReadsMask()
1280 if (newPolicyMask != oldPolicyMask) { in allowThreadDiskReadsMask()
1283 return oldPolicyMask; in allowThreadDiskReadsMask()