Home
last modified time | relevance | path

Searched refs:guard (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/security/
DGuardedObject.java54 private Guard guard; // the guard field in GuardedObject
66 public GuardedObject(Object object, Guard guard) in GuardedObject() argument
68 this.guard = guard; in GuardedObject()
84 if (guard != null) in getObject()
85 guard.checkGuard(object); in getObject()
97 if (guard != null) in writeObject()
98 guard.checkGuard(object); in writeObject()
/libcore/ojluni/src/main/java/java/util/zip/
DInflater.java96 private final CloseGuard guard = CloseGuard.get(); field in Inflater
122 guard.open("end"); in Inflater()
390 guard.close(); in end()
406 if (guard != null) { in finalize()
407 guard.warnIfOpen(); in finalize()
DDeflater.java96 private final CloseGuard guard = CloseGuard.get(); field in Deflater
189 guard.open("end"); in Deflater()
559 guard.close(); in end()
574 if (guard != null) { in finalize()
575 guard.warnIfOpen(); in finalize()
DZipFile.java85 private final CloseGuard guard = CloseGuard.get(); field in ZipFile
273 guard.open("close"); in ZipFile()
672 if (guard != null) { in close()
673 guard.close(); in close()
743 if (guard != null) { in finalize()
744 guard.warnIfOpen(); in finalize()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixDirectoryStream.java65 private final CloseGuard guard = CloseGuard.get(); field in UnixDirectoryStream
76 guard.open("close"); in UnixDirectoryStream()
105 guard.close(); in closeImpl()
239 if (guard != null) { in finalize()
240 guard.warnIfOpen(); in finalize()
DLinuxWatchService.java193 private final CloseGuard guard = CloseGuard.get(); field in LinuxWatchService.Poller
203 guard.open("close"); in Poller()
301 guard.close(); in implCloseAll()
318 if (guard != null) { in finalize()
319 guard.warnIfOpen(); in finalize()
DUnixSecureDirectoryStream.java56 private final CloseGuard guard = CloseGuard.get(); field in UnixSecureDirectoryStream
67 guard.open("close"); in UnixSecureDirectoryStream()
84 guard.close(); in close()
579 if (guard != null) { in finalize()
580 guard.warnIfOpen(); in finalize()
/libcore/ojluni/src/main/java/java/io/
DFileInputStream.java82 private final CloseGuard guard = CloseGuard.get(); field in FileInputStream
174 guard.open("close"); in FileInputStream()
416 guard.close(); in close()
492 if (guard != null) { in finalize()
493 guard.warnIfOpen(); in finalize()
DFileOutputStream.java95 private final CloseGuard guard = CloseGuard.get(); field in FileOutputStream
252 guard.open("close"); in FileOutputStream()
417 guard.close(); in close()
485 if (guard != null) { in finalize()
486 guard.warnIfOpen(); in finalize()
DRandomAccessFile.java73 private final CloseGuard guard = CloseGuard.get(); field in RandomAccessFile
292 guard.open("close"); in RandomAccessFile()
696 guard.close(); in close()
1237 if (guard != null) { in finalize()
1238 guard.warnIfOpen(); in finalize()
/libcore/ojluni/src/main/native/
DJniConstants.cpp62 std::lock_guard guard(g_constants_mutex); in EnsureJniConstantsInitialized() local
78 std::lock_guard guard(g_constants_mutex); in Invalidate() local
/libcore/ojluni/src/main/java/java/net/
DAbstractPlainDatagramSocketImpl.java59 private final CloseGuard guard = CloseGuard.get(); field in AbstractPlainDatagramSocketImpl
102 guard.open("close"); in create()
252 guard.close(); in close()
267 if (guard != null) { in finalize()
268 guard.warnIfOpen(); in finalize()
DAbstractPlainSocketImpl.java105 private final CloseGuard guard = CloseGuard.get(); field in AbstractPlainSocketImpl
137 guard.open("close"); in create()
569 guard.close(); in close()
608 guard.close(); in reset()
658 if (guard != null) { in finalize()
659 guard.warnIfOpen(); in finalize()
/libcore/ojluni/src/main/java/sun/nio/ch/
DUnixAsynchronousServerSocketChannelImpl.java75 private final CloseGuard guard = CloseGuard.get(); field in UnixAsynchronousServerSocketChannelImpl
95 guard.open("close"); in UnixAsynchronousServerSocketChannelImpl()
101 guard.close(); in implClose()
136 if (guard != null) { in finalize()
137 guard.warnIfOpen(); in finalize()
DSocketChannelImpl.java124 private final CloseGuard guard = CloseGuard.get(); field in SocketChannelImpl
137 guard.open("close"); in SocketChannelImpl()
153 guard.open("close"); in SocketChannelImpl()
174 guard.open("close"); in SocketChannelImpl()
884 guard.close(); in implCloseSelectableChannel()
936 if (guard != null) { in finalize()
937 guard.warnIfOpen(); in finalize()
DUnixAsynchronousSocketChannelImpl.java97 private final CloseGuard guard = CloseGuard.get(); field in UnixAsynchronousSocketChannelImpl
118 guard.open("close"); in UnixAsynchronousSocketChannelImpl()
142 guard.open("close"); in UnixAsynchronousSocketChannelImpl()
229 guard.close(); in implClose()
243 if (guard != null) { in finalize()
244 guard.warnIfOpen(); in finalize()
DDatagramChannelImpl.java117 private final CloseGuard guard = CloseGuard.get(); field in DatagramChannelImpl
132 guard.open("close"); in DatagramChannelImpl()
163 guard.open("close"); in DatagramChannelImpl()
179 guard.open("close"); in DatagramChannelImpl()
1040 guard.close(); in implCloseSelectableChannel()
1082 if (guard != null) { in finalize()
1083 guard.warnIfOpen(); in finalize()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DInflater.java151 private final dalvik.system.CloseGuard guard; field in Inflater
154 guard = null;
DDeflater.java176 private final dalvik.system.CloseGuard guard; field in Deflater
179 guard = null;
DZipFile.java187 private final dalvik.system.CloseGuard guard; field in ZipFile
190 guard = null;
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/
DCloseGuardSupportTest.java161 private CloseGuard guard = CloseGuard.get(); in test()
163 guard.open("test resource"); in test()
167 guard.warnIfOpen(); in test()
/libcore/ojluni/annotations/hiddenapi/java/io/
DFileOutputStream.java119 private final dalvik.system.CloseGuard guard; field in FileOutputStream
122 guard = null;
DFileInputStream.java114 private final dalvik.system.CloseGuard guard; field in FileInputStream
117 guard = null;
DRandomAccessFile.java233 private final dalvik.system.CloseGuard guard; field in RandomAccessFile
236 guard = null;
/libcore/luni/src/main/native/
DJniConstants.cpp90 std::lock_guard guard(g_constants_mutex); in EnsureJniConstantsInitialized() local
139 std::lock_guard guard(g_constants_mutex); in Invalidate() local

12