71 lines
3.3 KiB
Java
71 lines
3.3 KiB
Java
/*
|
|
* This file is auto-generated. DO NOT MODIFY.
|
|
* Using: out/host/linux-x86/bin/aidl --lang=java -Weverything -Wno-missing-permission-annotation -t --min_sdk_version platform_apis -pout/soong/.intermediates/system/hardware/interfaces/keystore2/aidl/android.system.keystore2_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/system/security/keystore2/aidl/android.security.metrics-java-source/gen/android/security/metrics/KeystoreAtom.java.d -o out/soong/.intermediates/system/security/keystore2/aidl/android.security.metrics-java-source/gen -Nsystem/security/keystore2/aidl system/security/keystore2/aidl/android/security/metrics/KeystoreAtom.aidl
|
|
*/
|
|
package android.security.metrics;
|
|
/**
|
|
* Encapsulates a particular atom object of type KeystoreAtomPayload its count. Note that
|
|
* the field: count is only relevant for the atom types that are stored in the
|
|
* in-memory metrics store. E.g. count field is not relevant for the atom types such as StorageStats
|
|
* that are not stored in the metrics store.
|
|
* @hide
|
|
*/
|
|
public class KeystoreAtom implements android.os.Parcelable
|
|
{
|
|
public android.security.metrics.KeystoreAtomPayload payload;
|
|
public int count = 0;
|
|
public static final android.os.Parcelable.Creator<KeystoreAtom> CREATOR = new android.os.Parcelable.Creator<KeystoreAtom>() {
|
|
@Override
|
|
public KeystoreAtom createFromParcel(android.os.Parcel _aidl_source) {
|
|
KeystoreAtom _aidl_out = new KeystoreAtom();
|
|
_aidl_out.readFromParcel(_aidl_source);
|
|
return _aidl_out;
|
|
}
|
|
@Override
|
|
public KeystoreAtom[] newArray(int _aidl_size) {
|
|
return new KeystoreAtom[_aidl_size];
|
|
}
|
|
};
|
|
@Override public final void writeToParcel(android.os.Parcel _aidl_parcel, int _aidl_flag)
|
|
{
|
|
int _aidl_start_pos = _aidl_parcel.dataPosition();
|
|
_aidl_parcel.writeInt(0);
|
|
_aidl_parcel.writeTypedObject(payload, _aidl_flag);
|
|
_aidl_parcel.writeInt(count);
|
|
int _aidl_end_pos = _aidl_parcel.dataPosition();
|
|
_aidl_parcel.setDataPosition(_aidl_start_pos);
|
|
_aidl_parcel.writeInt(_aidl_end_pos - _aidl_start_pos);
|
|
_aidl_parcel.setDataPosition(_aidl_end_pos);
|
|
}
|
|
public final void readFromParcel(android.os.Parcel _aidl_parcel)
|
|
{
|
|
int _aidl_start_pos = _aidl_parcel.dataPosition();
|
|
int _aidl_parcelable_size = _aidl_parcel.readInt();
|
|
try {
|
|
if (_aidl_parcelable_size < 4) throw new android.os.BadParcelableException("Parcelable too small");;
|
|
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
|
|
payload = _aidl_parcel.readTypedObject(android.security.metrics.KeystoreAtomPayload.CREATOR);
|
|
if (_aidl_parcel.dataPosition() - _aidl_start_pos >= _aidl_parcelable_size) return;
|
|
count = _aidl_parcel.readInt();
|
|
} finally {
|
|
if (_aidl_start_pos > (Integer.MAX_VALUE - _aidl_parcelable_size)) {
|
|
throw new android.os.BadParcelableException("Overflow in the size of parcelable");
|
|
}
|
|
_aidl_parcel.setDataPosition(_aidl_start_pos + _aidl_parcelable_size);
|
|
}
|
|
}
|
|
@Override
|
|
public int describeContents() {
|
|
int _mask = 0;
|
|
_mask |= describeContents(payload);
|
|
return _mask;
|
|
}
|
|
private int describeContents(Object _v) {
|
|
if (_v == null) return 0;
|
|
if (_v instanceof android.os.Parcelable) {
|
|
return ((android.os.Parcelable) _v).describeContents();
|
|
}
|
|
return 0;
|
|
}
|
|
}
|