Loading core/java/android/os/Parcel.java +29 −22 Original line number Diff line number Diff line Loading @@ -233,6 +233,7 @@ public final class Parcel { private static final int VAL_PERSISTABLEBUNDLE = 25; private static final int VAL_SIZE = 26; private static final int VAL_SIZEF = 27; private static final int VAL_DOUBLEARRAY = 28; // The initial int32 in a Binder call's reply Parcel header: private static final int EX_SECURITY = -1; Loading Loading @@ -1429,6 +1430,9 @@ public final class Parcel { } else if (v instanceof SizeF) { writeInt(VAL_SIZEF); writeSizeF((SizeF) v); } else if (v instanceof double[]) { writeInt(VAL_DOUBLEARRAY); writeDoubleArray((double[]) v); } else { Class<?> clazz = v.getClass(); if (clazz.isArray() && clazz.getComponentType() == Object.class) { Loading Loading @@ -2396,6 +2400,9 @@ public final class Parcel { case VAL_SIZEF: return readSizeF(); case VAL_DOUBLEARRAY: return createDoubleArray(); default: int off = dataPosition() - 4; throw new RuntimeException( Loading Loading
core/java/android/os/Parcel.java +29 −22 Original line number Diff line number Diff line Loading @@ -233,6 +233,7 @@ public final class Parcel { private static final int VAL_PERSISTABLEBUNDLE = 25; private static final int VAL_SIZE = 26; private static final int VAL_SIZEF = 27; private static final int VAL_DOUBLEARRAY = 28; // The initial int32 in a Binder call's reply Parcel header: private static final int EX_SECURITY = -1; Loading Loading @@ -1429,6 +1430,9 @@ public final class Parcel { } else if (v instanceof SizeF) { writeInt(VAL_SIZEF); writeSizeF((SizeF) v); } else if (v instanceof double[]) { writeInt(VAL_DOUBLEARRAY); writeDoubleArray((double[]) v); } else { Class<?> clazz = v.getClass(); if (clazz.isArray() && clazz.getComponentType() == Object.class) { Loading Loading @@ -2396,6 +2400,9 @@ public final class Parcel { case VAL_SIZEF: return readSizeF(); case VAL_DOUBLEARRAY: return createDoubleArray(); default: int off = dataPosition() - 4; throw new RuntimeException( Loading