OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:CloseGuard
(Results
1 - 4
of
4
) sorted by null
/external/conscrypt/src/compat/java/dalvik/system/
CloseGuard.java
21
public class
CloseGuard
{
28
Class<?> c_closeGuard = Class.forName("dalvik.system.
CloseGuard
");
47
private
CloseGuard
(Object wrappedGuard) {
51
public static
CloseGuard
get() {
54
return new
CloseGuard
(m_get.invoke(null));
58
return new
CloseGuard
(null);
/libcore/dalvik/src/test/java/dalvik/system/
CloseGuardMonitor.java
18
import dalvik.system.
CloseGuard
.Reporter;
27
* Provides support for detecting issues found by {@link
CloseGuard
} from within tests.
29
* <p>This is a best effort as it relies on both {@link
CloseGuard
} being enabled and being able to
40
* The {@link Reporter} instance used to receive warnings from {@link
CloseGuard
}.
45
* The list of allocation sites that {@link
CloseGuard
} has reported as not being released.
56
System.logI("Creating
CloseGuard
monitor");
59
closeGuardReporter =
CloseGuard
.getReporter();
62
CloseGuard
.setReporter(new Reporter() {
72
* Check to see whether any resources monitored by {@link
CloseGuard
} were not released before
103
CloseGuard
.setReporter(closeGuardReporter)
[
all
...]
/libcore/dalvik/src/main/java/dalvik/system/
CloseGuard.java
20
*
CloseGuard
is a mechanism for flagging implicit finalizer cleanup of
27
* private final
CloseGuard
guard =
CloseGuard
.get();
55
* allocated after object construction,
CloseGuard
protection can
59
* private final
CloseGuard
guard =
CloseGuard
.get();
105
public final class
CloseGuard
{
108
* Instance used when
CloseGuard
is disabled to avoid allocation.
110
private static final
CloseGuard
NOOP = new
CloseGuard
();
[
all
...]
/frameworks/base/core/java/android/os/
StrictMode.java
38
import dalvik.system.
CloseGuard
;
800
// Sets up
CloseGuard
in Dalvik/libcore
802
if (!(
CloseGuard
.getReporter() instanceof AndroidCloseGuardReporter)) {
803
CloseGuard
.setReporter(new AndroidCloseGuardReporter());
805
CloseGuard
.setEnabled(enabled);
[
all
...]
Completed in 76 milliseconds