Methods Summary |
---|
protected void | setUp()
mParcel = Parcel.obtain();
|
protected void | tearDown()
mParcel.recycle();
mParcel = null;
|
public void | timeReadByte(int reps)
mParcel.setDataCapacity(reps);
for (int i = 0; i < reps; i++) {
mParcel.readByte();
}
|
public void | timeReadInt(int reps)
mParcel.setDataCapacity(reps << 2);
for (int i = 0; i < reps; i++) {
mParcel.readInt();
}
|
public void | timeReadLong(int reps)
mParcel.setDataCapacity(reps << 3);
for (int i = 0; i < reps; i++) {
mParcel.readLong();
}
|
public void | timeWriteByte(int reps)
final byte val = 0xF;
for (int i = 0; i < reps; i++) {
mParcel.writeByte(val);
}
|
public void | timeWriteInt(int reps)
final int val = 0xF;
for (int i = 0; i < reps; i++) {
mParcel.writeInt(val);
}
|
public void | timeWriteLong(int reps)
final long val = 0xF;
for (int i = 0; i < reps; i++) {
mParcel.writeLong(val);
}
|