SecurityLog.SecurityEvent
public
static
final
class
SecurityLog.SecurityEvent
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.app.admin.SecurityLog.SecurityEvent |
A class representing a security event log entry.
Summary
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<SecurityLog.SecurityEvent> |
CREATOR
|
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
Object
|
getData()
Returns the payload contained in this log entry or |
long
|
getId()
Returns the id of the event, where the id monotonically increases for each event. |
int
|
getLogLevel()
Returns severity level for the event. |
int
|
getTag()
Returns the tag of this log entry, which specifies entry's semantics. |
long
|
getTimeNanos()
Returns the timestamp in nano seconds when this event was logged. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
Fields
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(android.os.Parcel, int)
,
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR
bit.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
getData
public Object getData ()
Returns the payload contained in this log entry or null
if there is no payload.
Returns | |
---|---|
Object |
getId
public long getId ()
Returns the id of the event, where the id monotonically increases for each event. The id is reset when the device reboots, and when security logging is enabled.
Returns | |
---|---|
long |
getLogLevel
public int getLogLevel ()
Returns severity level for the event.
Returns | |
---|---|
int |
Value is SecurityLog.LEVEL_INFO , SecurityLog.LEVEL_WARNING , or SecurityLog.LEVEL_ERROR |
getTag
public int getTag ()
Returns the tag of this log entry, which specifies entry's semantics.
getTimeNanos
public long getTimeNanos ()
Returns the timestamp in nano seconds when this event was logged.
Returns | |
---|---|
long |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel : The Parcel in which the object should be written.
This value cannot be null . |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |