/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 39 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 …]
|
D | IoTracker.java | 19 import dalvik.system.BlockGuard; 35 BlockGuard.getThreadPolicy().onUnbufferedIO(); in trackIo()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | FileDispatcherImpl.java | 28 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 …]
|
D | SocketDispatcher.java | 28 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()
|
D | DatagramDispatcher.java | 28 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()
|
D | FileChannelImpl.java | 53 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()
|
D | Net.java | 29 import dalvik.system.BlockGuard; 462 BlockGuard.getThreadPolicy().onNetwork();
|
D | DatagramChannelImpl.java | 38 import dalvik.system.BlockGuard; 439 BlockGuard.getThreadPolicy().onNetwork(); in receive() 503 BlockGuard.getThreadPolicy().onNetwork(); in send()
|
/libcore/ojluni/src/main/java/java/io/ |
D | UnixFileSystem.java | 37 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 …]
|
D | FileInputStream.java | 34 import dalvik.system.BlockGuard; 483 BlockGuard.getThreadPolicy().onReadFromDisk(); in skip()
|
D | FileOutputStream.java | 39 import dalvik.system.BlockGuard;
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 62 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/ |
D | PathClassLoaderTest.java | 19 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()
|
D | BlockGuardTest.java | 33 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/ |
D | SocketOutputStream.java | 34 import dalvik.system.BlockGuard; 115 BlockGuard.getThreadPolicy().onNetwork(); in socketWrite()
|
D | SocketInputStream.java | 34 import dalvik.system.BlockGuard; 172 BlockGuard.getThreadPolicy().onNetwork(); in read()
|
D | Inet6AddressImpl.java | 32 import dalvik.system.BlockGuard; 115 BlockGuard.getThreadPolicy().onNetwork(); in lookupHostByName() 162 BlockGuard.getThreadPolicy().onNetwork(); in getHostByAddr()
|
D | AbstractPlainSocketImpl.java | 35 import dalvik.system.BlockGuard; 389 BlockGuard.getThreadPolicy().onNetwork(); in doConnect() 450 BlockGuard.getThreadPolicy().onNetwork(); in accept()
|
D | AbstractPlainDatagramSocketImpl.java | 35 import dalvik.system.BlockGuard; 134 BlockGuard.getThreadPolicy().onNetwork(); in connect()
|
/libcore/mmodules/intracoreapi/api/intra/ |
D | last-api.txt | 12 @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 {
|
D | current.txt | 56 @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/ |
D | BlockGuard.java | 42 public final class BlockGuard { class 290 private BlockGuard() {} in BlockGuard() method in BlockGuard
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLTest.java | 38 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/ |
D | Runtime.java | 41 import dalvik.system.BlockGuard; 788 BlockGuard.getThreadPolicy().onExplicitGc(); in gc()
|
/libcore/api/ |
D | module-lib-current.txt | 185 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 {
|