BasicWindowTransition implements WindowTransition { @Override public void writeToParcel(@NonNull final Parcel dest, final int flags) { dest.writeInt(startEnterAnimRes); dest.writeInt(startExitAnimRes); dest.writeInt(finishEnterAnimRes); dest.writeInt(finishExitAnimRes); dest.writeString(name); } BasicWindowTransition(@AnimRes final int enterAnim, @AnimRes final int exitAnim);  BasicWindowTransition(
			@AnimRes final int startEnterAnim,
			@AnimRes final int startExitAnim,
			@AnimRes final int finishEnterAnim,
			@AnimRes final int finishExitAnim
	);  BasicWindowTransition(
			@AnimRes final int startEnterAnim,
			@AnimRes final int startExitAnim,
			@AnimRes final int finishEnterAnim,
			@AnimRes final int finishExitAnim,
			@NonNull final String name
	); protected  BasicWindowTransition(@NonNull final Parcel source); @Override void writeToParcel(@NonNull final Parcel dest, final int flags); @Override int describeContents(); @Override @AnimRes int getStartEnterAnimation(); @Override @AnimRes int getStartExitAnimation(); @Override @AnimRes int getFinishEnterAnimation(); @Override @AnimRes int getFinishExitAnimation(); @Override @NonNull String getName(); @Override void overrideStart(@NonNull final Activity activity); @Override void overrideFinish(@NonNull final Activity activity); static final Creator<BasicWindowTransition> CREATOR; }
@Test public void testWriteToParcel() { final int startEnterAnimation = android.R.anim.fade_in; final int startExitAnimation = android.R.anim.fade_out; final int finishEnterAnimation = android.R.anim.slide_in_left; final int finishExitAnimation = android.R.anim.slide_out_right; final BasicWindowTransition transition = new BasicWindowTransition(startEnterAnimation, startExitAnimation, finishEnterAnimation, finishExitAnimation, "TEST_TRANSITION"); final Parcel parcel = Parcel.obtain(); transition.writeToParcel(parcel, 0); parcel.setDataPosition(0); assertThat(parcel.readInt(), is(startEnterAnimation)); assertThat(parcel.readInt(), is(startExitAnimation)); assertThat(parcel.readInt(), is(finishEnterAnimation)); assertThat(parcel.readInt(), is(finishExitAnimation)); assertThat(parcel.readString(), is("TEST_TRANSITION")); parcel.recycle(); }