Methods Summary |
---|
public int | describeContents()
return 0;
|
public GpsClock | getClock()
return mClock;
|
public java.util.Collection | getMeasurements()Gets a read-only collection of measurements associated with the current event.
return mReadOnlyMeasurements;
|
public java.lang.String | toString()
StringBuilder builder = new StringBuilder("[ GpsMeasurementsEvent:\n\n");
builder.append(mClock.toString());
builder.append("\n");
for (GpsMeasurement measurement : mReadOnlyMeasurements) {
builder.append(measurement.toString());
builder.append("\n");
}
builder.append("]");
return builder.toString();
|
public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeParcelable(mClock, flags);
int measurementsCount = mReadOnlyMeasurements.size();
GpsMeasurement[] measurementsArray =
mReadOnlyMeasurements.toArray(new GpsMeasurement[measurementsCount]);
parcel.writeInt(measurementsArray.length);
parcel.writeTypedArray(measurementsArray, flags);
|