Home
last modified time | relevance | path

Searched refs:BlockGuard (Results 1 – 25 of 27) sorted by relevance

12

/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java39 import dalvik.system.BlockGuard;
64 BlockGuard.getThreadPolicy().onNetwork(); in accept()
74 BlockGuard.getThreadPolicy().onReadFromDisk(); in access()
75 BlockGuard.getVmPolicy().onPathAccess(path); in access()
81 BlockGuard.getThreadPolicy().onWriteToDisk(); in chmod()
82 BlockGuard.getVmPolicy().onPathAccess(path); in chmod()
88 BlockGuard.getThreadPolicy().onWriteToDisk(); in chown()
89 BlockGuard.getVmPolicy().onPathAccess(path); in chown()
104 BlockGuard.getThreadPolicy().onNetwork(); in close()
157 if (!skipGuard) BlockGuard.getThreadPolicy().onNetwork(); in connect()
[all …]
DIoTracker.java19 import dalvik.system.BlockGuard;
35 BlockGuard.getThreadPolicy().onUnbufferedIO(); in trackIo()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java28 import dalvik.system.BlockGuard;
48 BlockGuard.getThreadPolicy().onReadFromDisk(); in read()
56 BlockGuard.getThreadPolicy().onReadFromDisk(); in pread()
62 BlockGuard.getThreadPolicy().onReadFromDisk(); in readv()
68 BlockGuard.getThreadPolicy().onWriteToDisk(); in write()
76 BlockGuard.getThreadPolicy().onWriteToDisk(); in pwrite()
84 BlockGuard.getThreadPolicy().onWriteToDisk(); in writev()
90 BlockGuard.getThreadPolicy().onWriteToDisk(); in force()
96 BlockGuard.getThreadPolicy().onWriteToDisk(); in truncate()
102 BlockGuard.getThreadPolicy().onReadFromDisk(); in size()
[all …]
DSocketDispatcher.java28 import dalvik.system.BlockGuard;
42 BlockGuard.getThreadPolicy().onNetwork(); in read()
48 BlockGuard.getThreadPolicy().onNetwork(); in readv()
54 BlockGuard.getThreadPolicy().onNetwork(); in write()
60 BlockGuard.getThreadPolicy().onNetwork(); in writev()
DDatagramDispatcher.java28 import dalvik.system.BlockGuard;
47 BlockGuard.getThreadPolicy().onNetwork(); in read()
53 BlockGuard.getThreadPolicy().onNetwork(); in readv()
59 BlockGuard.getThreadPolicy().onNetwork(); in write()
65 BlockGuard.getThreadPolicy().onNetwork(); in writev()
DFileChannelImpl.java53 import dalvik.system.BlockGuard;
302 BlockGuard.getThreadPolicy().onWriteToDisk(); in position()
333 BlockGuard.getThreadPolicy().onReadFromDisk(); in position()
475 BlockGuard.getThreadPolicy().onWriteToDisk(); in transferToDirectlyInternal()
980 BlockGuard.getThreadPolicy().onReadFromDisk(); in map()
DNet.java29 import dalvik.system.BlockGuard;
462 BlockGuard.getThreadPolicy().onNetwork();
DDatagramChannelImpl.java38 import dalvik.system.BlockGuard;
439 BlockGuard.getThreadPolicy().onNetwork(); in receive()
503 BlockGuard.getThreadPolicy().onNetwork(); in send()
/libcore/ojluni/src/main/java/java/io/
DUnixFileSystem.java37 import dalvik.system.BlockGuard;
215 BlockGuard.getThreadPolicy().onReadFromDisk(); in canonicalize()
216 BlockGuard.getVmPolicy().onPathAccess(path); in canonicalize()
301 BlockGuard.getThreadPolicy().onReadFromDisk(); in getBooleanAttributes()
302 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getBooleanAttributes()
340 BlockGuard.getThreadPolicy().onReadFromDisk(); in getLastModifiedTime()
341 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getLastModifiedTime()
357 BlockGuard.getThreadPolicy().onWriteToDisk(); in setPermission()
358 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in setPermission()
366 BlockGuard.getThreadPolicy().onWriteToDisk(); in createFileExclusively()
[all …]
DFileInputStream.java34 import dalvik.system.BlockGuard;
483 BlockGuard.getThreadPolicy().onReadFromDisk(); in skip()
DFileOutputStream.java39 import dalvik.system.BlockGuard;
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java62 import dalvik.system.BlockGuard;
81 @Mock private BlockGuard.Policy mockThreadPolicy;
82 @Mock private BlockGuard.VmPolicy mockVmPolicy;
84 private BlockGuard.Policy savedThreadPolicy;
85 private BlockGuard.VmPolicy savedVmPolicy;
90 savedThreadPolicy = BlockGuard.getThreadPolicy(); in setUp()
91 savedVmPolicy = BlockGuard.getVmPolicy(); in setUp()
92 BlockGuard.setThreadPolicy(mockThreadPolicy); in setUp()
93 BlockGuard.setVmPolicy(mockVmPolicy); in setUp()
98 BlockGuard.setVmPolicy(savedVmPolicy); in tearDown()
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java19 import dalvik.system.BlockGuard;
130 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in test_classLoader_exceptionDuringLoading()
131 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in test_classLoader_exceptionDuringLoading()
172 BlockGuard.setThreadPolicy(policy); in test_classLoader_exceptionDuringLoading()
DBlockGuardTest.java33 import dalvik.system.BlockGuard;
37 private BlockGuard.Policy oldPolicy;
43 oldPolicy = BlockGuard.getThreadPolicy(); in setUp()
44 BlockGuard.setThreadPolicy(recorder); in setUp()
49 BlockGuard.setThreadPolicy(oldPolicy); in tearDown()
308 private static class RecordingPolicy implements BlockGuard.Policy {
/libcore/ojluni/src/main/java/java/net/
DSocketOutputStream.java34 import dalvik.system.BlockGuard;
115 BlockGuard.getThreadPolicy().onNetwork(); in socketWrite()
DSocketInputStream.java34 import dalvik.system.BlockGuard;
172 BlockGuard.getThreadPolicy().onNetwork(); in read()
DInet6AddressImpl.java32 import dalvik.system.BlockGuard;
115 BlockGuard.getThreadPolicy().onNetwork(); in lookupHostByName()
162 BlockGuard.getThreadPolicy().onNetwork(); in getHostByAddr()
DAbstractPlainSocketImpl.java35 import dalvik.system.BlockGuard;
389 BlockGuard.getThreadPolicy().onNetwork(); in doConnect()
450 BlockGuard.getThreadPolicy().onNetwork(); in accept()
DAbstractPlainDatagramSocketImpl.java35 import dalvik.system.BlockGuard;
134 BlockGuard.getThreadPolicy().onNetwork(); in connect()
/libcore/mmodules/intracoreapi/api/intra/
Dlast-api.txt12 @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public final class BlockGuard {
13 ….CorePlatformApi @libcore.api.IntraCoreApi public static dalvik.system.BlockGuard.Policy getThread…
16 @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public static interface BlockGuard.Policy {
Dcurrent.txt56 @libcore.api.IntraCoreApi public final class BlockGuard {
57 …method @NonNull @libcore.api.IntraCoreApi public static dalvik.system.BlockGuard.Policy getThreadP…
60 @libcore.api.IntraCoreApi public static interface BlockGuard.Policy {
/libcore/dalvik/src/main/java/dalvik/system/
DBlockGuard.java42 public final class BlockGuard { class
290 private BlockGuard() {} in BlockGuard() method in BlockGuard
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java38 import dalvik.system.BlockGuard;
913 final BlockGuard.Policy oldPolicy = BlockGuard.getThreadPolicy(); in testHashCodeAndEqualsDoesNotPerformNetworkIo()
914 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in testHashCodeAndEqualsDoesNotPerformNetworkIo()
953 BlockGuard.setThreadPolicy(oldPolicy); in testHashCodeAndEqualsDoesNotPerformNetworkIo()
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java41 import dalvik.system.BlockGuard;
788 BlockGuard.getThreadPolicy().onExplicitGc(); in gc()
/libcore/api/
Dmodule-lib-current.txt185 public final class BlockGuard {
186 method @NonNull public static dalvik.system.BlockGuard.Policy getThreadPolicy();
187 method @NonNull public static dalvik.system.BlockGuard.VmPolicy getVmPolicy();
188 method public static void setThreadPolicy(@NonNull dalvik.system.BlockGuard.Policy);
189 method public static void setVmPolicy(@NonNull dalvik.system.BlockGuard.VmPolicy);
190 field public static final dalvik.system.BlockGuard.Policy LAX_POLICY;
191 field public static final dalvik.system.BlockGuard.VmPolicy LAX_VM_POLICY;
194 public static interface BlockGuard.Policy {
201 public static interface BlockGuard.VmPolicy {

12