Methods Summary |
---|
protected void | setUp()
mWriteParcel = Parcel.obtain();
mByteArray = new byte[mSize];
mIntArray = new int[mSize];
mLongArray = new long[mSize];
mByteParcel = Parcel.obtain();
mByteParcel.writeByteArray(mByteArray);
mIntParcel = Parcel.obtain();
mIntParcel.writeIntArray(mIntArray);
mLongParcel = Parcel.obtain();
mLongParcel.writeLongArray(mLongArray);
|
protected void | tearDown()
mWriteParcel.recycle();
mWriteParcel = null;
|
public void | timeCreateByteArray(int reps)
for (int i = 0; i < reps; i++) {
mByteParcel.setDataPosition(0);
mByteParcel.createByteArray();
}
|
public void | timeCreateIntArray(int reps)
for (int i = 0; i < reps; i++) {
mIntParcel.setDataPosition(0);
mIntParcel.createIntArray();
}
|
public void | timeCreateLongArray(int reps)
for (int i = 0; i < reps; i++) {
mLongParcel.setDataPosition(0);
mLongParcel.createLongArray();
}
|
public void | timeReadByteArray(int reps)
for (int i = 0; i < reps; i++) {
mByteParcel.setDataPosition(0);
mByteParcel.readByteArray(mByteArray);
}
|
public void | timeReadIntArray(int reps)
for (int i = 0; i < reps; i++) {
mIntParcel.setDataPosition(0);
mIntParcel.readIntArray(mIntArray);
}
|
public void | timeReadLongArray(int reps)
for (int i = 0; i < reps; i++) {
mLongParcel.setDataPosition(0);
mLongParcel.readLongArray(mLongArray);
}
|
public void | timeWriteByteArray(int reps)
for (int i = 0; i < reps; i++) {
mWriteParcel.setDataPosition(0);
mWriteParcel.writeByteArray(mByteArray);
}
|
public void | timeWriteIntArray(int reps)
for (int i = 0; i < reps; i++) {
mWriteParcel.setDataPosition(0);
mWriteParcel.writeIntArray(mIntArray);
}
|
public void | timeWriteLongArray(int reps)
for (int i = 0; i < reps; i++) {
mWriteParcel.setDataPosition(0);
mWriteParcel.writeLongArray(mLongArray);
}
|