Merge "Fixes possible issue with no-op creator." into pi-dev
am: f5411070a8
Change-Id: I29e126cdf7b4929a5ffd1fadafb3b93fc5ee8ca0
This commit is contained in:
@@ -65,11 +65,17 @@ public final class StatsLogEventWrapper implements Parcelable {
|
|||||||
public static final Parcelable.Creator<StatsLogEventWrapper> CREATOR = new
|
public static final Parcelable.Creator<StatsLogEventWrapper> CREATOR = new
|
||||||
Parcelable.Creator<StatsLogEventWrapper>() {
|
Parcelable.Creator<StatsLogEventWrapper>() {
|
||||||
public StatsLogEventWrapper createFromParcel(Parcel in) {
|
public StatsLogEventWrapper createFromParcel(Parcel in) {
|
||||||
return new StatsLogEventWrapper(in);
|
android.util.EventLog.writeEvent(0x534e4554, "112550251",
|
||||||
|
android.os.Binder.getCallingUid(), "");
|
||||||
|
// Purposefully leaving this method not implemented.
|
||||||
|
throw new RuntimeException("Not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsLogEventWrapper[] newArray(int size) {
|
public StatsLogEventWrapper[] newArray(int size) {
|
||||||
return new StatsLogEventWrapper[size];
|
android.util.EventLog.writeEvent(0x534e4554, "112550251",
|
||||||
|
android.os.Binder.getCallingUid(), "");
|
||||||
|
// Purposefully leaving this method not implemented.
|
||||||
|
throw new RuntimeException("Not implemented");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -120,10 +126,6 @@ public final class StatsLogEventWrapper implements Parcelable {
|
|||||||
mStorage.write(bytes, 0, bytes.length);
|
mStorage.write(bytes, 0, bytes.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
private StatsLogEventWrapper(Parcel in) {
|
|
||||||
readFromParcel(in);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes the stored fields to a byte array. Will first write a new-line character to denote
|
* Writes the stored fields to a byte array. Will first write a new-line character to denote
|
||||||
* END_LIST before writing contents to byte array.
|
* END_LIST before writing contents to byte array.
|
||||||
@@ -133,13 +135,6 @@ public final class StatsLogEventWrapper implements Parcelable {
|
|||||||
out.writeByteArray(mStorage.toByteArray());
|
out.writeByteArray(mStorage.toByteArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Not implemented.
|
|
||||||
*/
|
|
||||||
public void readFromParcel(Parcel in) {
|
|
||||||
// Not needed since this java class is for sending to statsd only.
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Boilerplate for Parcel.
|
* Boilerplate for Parcel.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user