Home
last modified time | relevance | path

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

/external/libchrome/base/android/java/src/org/chromium/base/
DStrictModeContext.java45 StrictMode.VmPolicy oldPolicy = StrictMode.getVmPolicy(); in allowAllVmPolicies() local
47 return new StrictModeContext(oldPolicy); in allowAllVmPolicies()
54 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in allowDiskWrites() local
55 return new StrictModeContext(oldPolicy); in allowDiskWrites()
62 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in allowDiskReads() local
63 return new StrictModeContext(oldPolicy); in allowDiskReads()
70 StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in allowSlowCalls() local
72 new StrictMode.ThreadPolicy.Builder(oldPolicy).permitCustomSlowCalls().build()); in allowSlowCalls()
73 return new StrictModeContext(oldPolicy); in allowSlowCalls()
DTimezoneUtils.java31 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in getDefaultTimeZoneId() local
33 StrictMode.setThreadPolicy(oldPolicy); in getDefaultTimeZoneId()
DSysUtils.java63 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in detectAmountOfPhysicalMemoryKB() local
98 StrictMode.setThreadPolicy(oldPolicy); in detectAmountOfPhysicalMemoryKB()
DEarlyTraceEvent.java120 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in maybeEnable() local
132 StrictMode.setThreadPolicy(oldPolicy); in maybeEnable()
DApiCompatibilityUtils.java459 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in getDrawable() local
467 StrictMode.setThreadPolicy(oldPolicy); in getDrawable()
/external/guava/guava-tests/test/com/google/common/base/
DFinalizableReferenceQueueClassLoaderUnloadingTest.java167 Policy oldPolicy = Policy.getPolicy(); in testUnloadableWithSecurityManager() local
175 Policy.setPolicy(oldPolicy); in testUnloadableWithSecurityManager()
200 Policy oldPolicy = Policy.getPolicy(); in testUnloadableInStaticFieldIfClosed() local
209 Policy.setPolicy(oldPolicy); in testUnloadableInStaticFieldIfClosed()
/external/guava/android/guava-tests/test/com/google/common/base/
DFinalizableReferenceQueueClassLoaderUnloadingTest.java167 Policy oldPolicy = Policy.getPolicy(); in testUnloadableWithSecurityManager() local
175 Policy.setPolicy(oldPolicy); in testUnloadableWithSecurityManager()
200 Policy oldPolicy = Policy.getPolicy(); in testUnloadableInStaticFieldIfClosed() local
209 Policy.setPolicy(oldPolicy); in testUnloadableInStaticFieldIfClosed()
/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlPolicyBuilder.java333 AttributePolicy oldPolicy = globalAttrPolicies.get(attributeName); in allowAttributesGlobally() local
335 attributeName, AttributePolicy.Util.join(oldPolicy, policy)); in allowAttributesGlobally()
351 AttributePolicy oldPolicy = policies.get(attributeName); in allowAttributesOnElements() local
354 AttributePolicy.Util.join(oldPolicy, policy)); in allowAttributesOnElements()
/external/libchrome/base/android/java/src/org/chromium/base/library_loader/
DLibraryLoader.java313 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in isNotPrefetchingLibraries() local
318 StrictMode.setThreadPolicy(oldPolicy); in isNotPrefetchingLibraries()