Home
last modified time | relevance | path

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

/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.java87 private final CloseGuard guard = CloseGuard.get(); field in Inflater
104 guard.open("end"); in Inflater()
371 guard.close(); in end()
386 if (guard != null) { in finalize()
387 guard.warnIfOpen(); in finalize()
DDeflater.java87 private final CloseGuard guard = CloseGuard.get(); field in Deflater
171 guard.open("end"); in Deflater()
526 guard.close(); in end()
541 if (guard != null) { in finalize()
542 guard.warnIfOpen(); in finalize()
DZipFile.java69 private final CloseGuard guard = CloseGuard.get(); field in ZipFile
230 guard.open("close"); in ZipFile()
586 guard.close(); in close()
643 if (guard != null) { in finalize()
644 guard.warnIfOpen(); in finalize()
/libcore/ojluni/src/main/java/java/io/
DFileInputStream.java69 private final CloseGuard guard = CloseGuard.get(); field in FileInputStream
147 guard.open("close"); in FileInputStream()
348 guard.close(); in close()
413 if (guard != null) { in finalize()
414 guard.warnIfOpen(); in finalize()
DFileOutputStream.java83 private final CloseGuard guard = CloseGuard.get(); field in FileOutputStream
222 guard.open("close"); in FileOutputStream()
344 guard.close(); in close()
411 if (guard != null) { in finalize()
412 guard.warnIfOpen(); in finalize()
DRandomAccessFile.java68 private final CloseGuard guard = CloseGuard.get(); field in RandomAccessFile
255 guard.open("close"); in RandomAccessFile()
620 guard.close(); in close()
1157 if (guard != null) { in finalize()
1158 guard.warnIfOpen(); in finalize()
/libcore/ojluni/src/main/java/java/net/
DAbstractPlainDatagramSocketImpl.java61 private final CloseGuard guard = CloseGuard.get(); field in AbstractPlainDatagramSocketImpl
87 guard.open("close"); in create()
232 guard.close(); in close()
246 if (guard != null) { in finalize()
247 guard.warnIfOpen(); in finalize()
DAbstractPlainSocketImpl.java76 private final CloseGuard guard = CloseGuard.get(); field in AbstractPlainSocketImpl
103 guard.open("close"); in create()
548 if (guard != null) { in finalize()
549 guard.warnIfOpen(); in finalize()
621 guard.close(); in socketClose()