use of android.telephony.CallQuality in project android_frameworks_opt_telephony by LineageOS.
the class CallAttributesTest method testParcelUnparcelCallQuality.
@SmallTest
public void testParcelUnparcelCallQuality() {
CallQuality quality = new CallQuality();
PreciseCallState pcs = new PreciseCallState();
CallAttributes data = new CallAttributes(pcs, 10, quality);
Parcel parcel = Parcel.obtain();
data.writeToParcel(parcel, 0);
parcel.setDataPosition(0);
CallAttributes unparceledData = CallAttributes.CREATOR.createFromParcel(parcel);
parcel.recycle();
assertEquals("CallQuality is not equal after parceled/unparceled", data.getCallQuality(), unparceledData.getCallQuality());
}
Aggregations