public class KeyCharacteristics extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<KeyCharacteristics> |
CREATOR |
KeymasterArguments |
hwEnforced |
KeymasterArguments |
swEnforced |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
KeyCharacteristics() |
protected |
KeyCharacteristics(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
boolean |
getBoolean(int tag)
Returns
true if the provided boolean tag is present, false if absent. |
Date |
getDate(int tag)
Returns the value of the specified date tag or
null if the tag is not present. |
Integer |
getEnum(int tag)
Returns the value of the specified enum tag or
defaultValue if the tag is not
present. |
List<Integer> |
getEnums(int tag)
Returns all values of the specified repeating enum tag.
|
long |
getUnsignedInt(int tag,
long defaultValue)
Returns the value of the specified unsigned 32-bit int tag or
defaultValue if the tag
is not present. |
List<BigInteger> |
getUnsignedLongs(int tag)
Returns all values of the specified repeating unsigned 64-bit long tag.
|
void |
readFromParcel(Parcel in) |
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public KeymasterArguments swEnforced
public KeymasterArguments hwEnforced
public static final Parcelable.Creator<KeyCharacteristics> CREATOR
public KeyCharacteristics()
protected KeyCharacteristics(Parcel in)
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public void readFromParcel(Parcel in)
public Integer getEnum(int tag)
defaultValue
if the tag is not
present.IllegalArgumentException
- if tag
is not an enum tag.public List<Integer> getEnums(int tag)
tag
is not a repeating enum tag.public long getUnsignedInt(int tag, long defaultValue)
defaultValue
if the tag
is not present.IllegalArgumentException
- if tag
is not an unsigned 32-bit int tag.public List<BigInteger> getUnsignedLongs(int tag)
IllegalArgumentException
- if tag
is not a repeating unsigned 64-bit long tag.public Date getDate(int tag)
null
if the tag is not present.IllegalArgumentException
- if tag
is not a date tag or if the tag's value
represents a time instant which is after 2^63 - 1
milliseconds since Unix
epoch.public boolean getBoolean(int tag)
true
if the provided boolean tag is present, false
if absent.IllegalArgumentException
- if tag
is not a boolean tag.