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.
|
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 |
---|
StrictMode.ViolationInfo()
Create an uninitialized instance of ViolationInfo
|
StrictMode.ViolationInfo(Parcel in)
Create an instance of ViolationInfo initialized from a Parcel.
|
StrictMode.ViolationInfo(Parcel in,
boolean unsetGatheringBit)
Create an instance of ViolationInfo initialized from a Parcel.
|
StrictMode.ViolationInfo(Throwable tr,
int policy)
Create an instance of ViolationInfo initialized from an exception.
|
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 StrictMode.ViolationInfo()
public StrictMode.ViolationInfo(Throwable tr, int policy)
public StrictMode.ViolationInfo(Parcel in)
public StrictMode.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
Object.equals(java.lang.Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode
method
if you intend implementing your own hashCode
method.
hashCode
in class Object
Object.equals(java.lang.Object)
public void writeToParcel(Parcel dest, int flags)