public static class StrictMode.ViolationInfo extends Object
Modifier and Type | Field and Description |
---|---|
String |
broadcastIntentAction
The action of the Intent being broadcast to somebody's onReceive
on this thread right now, or null.
|
ApplicationErrorReport.CrashInfo |
crashInfo
Stack and other stuff info.
|
int |
durationMillis
The wall time duration of the violation, when known
|
String |
message |
int |
numAnimationsRunning
The number of animations currently running.
|
long |
numInstances
If this is a instance count violation, the number of instances in memory,
else -1.
|
int |
policy
The strict mode policy mask at the time of violation.
|
String[] |
tags
List of tags from active Span instances during this
violation, or null for none.
|
int |
violationNumThisLoop
Which violation number this was (1-based) since the last Looper loop,
from the perspective of the root caller (if it crossed any processes
via Binder calls).
|
long |
violationUptimeMillis
The time (in terms of SystemClock.uptimeMillis()) that the
violation occurred.
|
Constructor and Description |
---|
ViolationInfo()
Create an uninitialized instance of ViolationInfo
|
ViolationInfo(Parcel in)
Create an instance of ViolationInfo initialized from a Parcel.
|
ViolationInfo(Parcel in,
boolean unsetGatheringBit)
Create an instance of ViolationInfo initialized from a Parcel.
|
ViolationInfo(String message,
Throwable tr,
int policy)
Create an instance of ViolationInfo initialized from an exception.
|
ViolationInfo(Throwable tr,
int policy) |
Modifier and Type | Method and Description |
---|---|
void |
dump(Printer pw,
String prefix)
Dump a ViolationInfo instance to a Printer.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
writeToParcel(Parcel dest,
int flags)
Save a ViolationInfo instance to a parcel.
|
public String message
public final ApplicationErrorReport.CrashInfo crashInfo
public final int policy
public int durationMillis
public int numAnimationsRunning
public String[] tags
public int violationNumThisLoop
public long violationUptimeMillis
public String broadcastIntentAction
public long numInstances
public ViolationInfo()
public ViolationInfo(Throwable tr, int policy)
public ViolationInfo(String message, Throwable tr, int policy)
public ViolationInfo(Parcel in)
public ViolationInfo(Parcel in, boolean unsetGatheringBit)
unsetGatheringBit
- if true, the caller is the root caller
and the gathering penalty should be removed.public int hashCode()
Object
HashMap
.
The general contract of hashCode
is:
hashCode
method
must consistently return the same integer, provided no information
used in equals
comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode
method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public void writeToParcel(Parcel dest, int flags)