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.java38 import dalvik.system.BlockGuard;
62 BlockGuard.getThreadPolicy().onNetwork(); in accept()
71 BlockGuard.getThreadPolicy().onReadFromDisk(); in access()
72 BlockGuard.getVmPolicy().onPathAccess(path); in access()
78 BlockGuard.getThreadPolicy().onWriteToDisk(); in chmod()
79 BlockGuard.getVmPolicy().onPathAccess(path); in chmod()
85 BlockGuard.getThreadPolicy().onWriteToDisk(); in chown()
86 BlockGuard.getVmPolicy().onPathAccess(path); in chown()
101 BlockGuard.getThreadPolicy().onNetwork(); in close()
137 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/java/io/
DUnixFileSystem.java33 import dalvik.system.BlockGuard;
176 BlockGuard.getThreadPolicy().onReadFromDisk(); in canonicalize()
177 BlockGuard.getVmPolicy().onPathAccess(path); in canonicalize()
250 BlockGuard.getThreadPolicy().onReadFromDisk(); in getBooleanAttributes()
251 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getBooleanAttributes()
289 BlockGuard.getThreadPolicy().onReadFromDisk(); in getLastModifiedTime()
290 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getLastModifiedTime()
306 BlockGuard.getThreadPolicy().onWriteToDisk(); in setPermission()
307 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in setPermission()
315 BlockGuard.getThreadPolicy().onWriteToDisk(); in createFileExclusively()
[all …]
DFileInputStream.java34 import dalvik.system.BlockGuard;
359 BlockGuard.getThreadPolicy().onReadFromDisk(); in skip()
DFileOutputStream.java37 import dalvik.system.BlockGuard;
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java28 import dalvik.system.BlockGuard;
52 BlockGuard.getThreadPolicy().onReadFromDisk(); in read()
60 BlockGuard.getThreadPolicy().onReadFromDisk(); in pread()
66 BlockGuard.getThreadPolicy().onReadFromDisk(); in readv()
72 BlockGuard.getThreadPolicy().onWriteToDisk(); in write()
80 BlockGuard.getThreadPolicy().onWriteToDisk(); in pwrite()
88 BlockGuard.getThreadPolicy().onWriteToDisk(); in writev()
94 BlockGuard.getThreadPolicy().onWriteToDisk(); in force()
100 BlockGuard.getThreadPolicy().onWriteToDisk(); in truncate()
106 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;
304 BlockGuard.getThreadPolicy().onWriteToDisk(); in position()
335 BlockGuard.getThreadPolicy().onReadFromDisk(); in position()
477 BlockGuard.getThreadPolicy().onWriteToDisk(); in transferToDirectlyInternal()
982 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()
DSocketChannelImpl.java55 import dalvik.system.BlockGuard;
759 BlockGuard.getThreadPolicy().onNetwork(); in finishConnect()
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java54 import dalvik.system.BlockGuard;
73 @Mock private BlockGuard.Policy mockThreadPolicy;
74 @Mock private BlockGuard.VmPolicy mockVmPolicy;
76 private BlockGuard.Policy savedThreadPolicy;
77 private BlockGuard.VmPolicy savedVmPolicy;
82 savedThreadPolicy = BlockGuard.getThreadPolicy(); in setUp()
83 savedVmPolicy = BlockGuard.getVmPolicy(); in setUp()
84 BlockGuard.setThreadPolicy(mockThreadPolicy); in setUp()
85 BlockGuard.setVmPolicy(mockVmPolicy); in setUp()
90 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;
116 BlockGuard.getThreadPolicy().onNetwork(); in socketWrite()
DSocketInputStream.java34 import dalvik.system.BlockGuard;
175 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/dalvik/src/main/java/dalvik/system/
DBlockGuard.java39 public final class BlockGuard { class
257 private BlockGuard() {} in BlockGuard() method in BlockGuard
/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-api.txt52 @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public final class BlockGuard {
53 ….CorePlatformApi @libcore.api.IntraCoreApi public static dalvik.system.BlockGuard.Policy getThread…
56 @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public static interface BlockGuard.Policy {
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java33 import dalvik.system.BlockGuard;
775 BlockGuard.getThreadPolicy().onExplicitGc(); in gc()
/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()

12