List of usage examples for android.os Parcel readInt
public final int readInt()
From source file:br.ufrj.ppgi.jemf.mobile.bean.AffectedOrganization.java
/** * AffectedOrganization Parcelable Constructor. * Parcelable to get passed among activities through Intent (similar to Serialization). * Attention to class members order an this use FIFO method. *//*from w w w . j a v a 2 s .c o m*/ private AffectedOrganization(Parcel in) { setId(in.readInt()); setName(in.readString()); setDescription(in.readString()); setLevelString(in.readString()); setStatusString(in.readString()); }
From source file:com.artemchep.horario.models.Subject.java
public Subject(Parcel source) { key = source.readString();/*from ww w. ja va 2 s . c om*/ name = source.readString(); abbreviation = source.readString(); info = source.readString(); color = source.readInt(); }
From source file:ca.frozen.rpicameraviewer.classes.Source.java
private void readFromParcel(Parcel in) { connectionType = intToConType(in.readInt()); address = in.readString();/*w w w.ja v a2 s .c o m*/ port = in.readInt(); width = in.readInt(); height = in.readInt(); fps = in.readInt(); bps = in.readInt(); }
From source file:com.artemchep.horario.database.models.SubjectInfo.java
public SubjectInfo(Parcel source) { key = source.readString();//from www . j a v a 2 s. co m name = source.readString(); info = source.readString(); abbreviation = source.readString(); color = source.readInt(); }
From source file:ca.frozen.curlingtv.classes.Camera.java
private void readFromParcel(Parcel in) { network = in.readString(); name = in.readString(); address = in.readString(); port = in.readInt(); }
From source file:edu.umich.flowfence.common.CallParam.java
public void readFromParcel(Parcel p) { int startPos = p.dataPosition(); header = p.readInt(); switch (getType()) { case TYPE_NULL: // NULL: no need to write any data payload = null;//from www . j a v a 2 s . c o m break; case TYPE_DATA: // DATA: write parceled data as byte[], so it can be skipped // without running untrusted code payload = ParceledPayload.fromParcel(p); break; case TYPE_HANDLE: payload = p.readStrongBinder(); break; default: throw new IllegalArgumentException(String.format("Unknown CallParam type 0x%02x", header & MASK_TYPE)); } //Log.d(TAG, String.format("Read (%d bytes @0x%x) %s", p.dataPosition() - startPos, startPos, this)); }
From source file:com.artemchep.horario.models.Timetable.java
public Timetable(Parcel source) { key = source.readString();/* w ww . j a v a2 s .c o m*/ name = source.readString(); privateKey = source.readString(); publicAddress = source.readString(); isCopy = source.readInt() != 0; }
From source file:com.oasisfeng.nevo.StatusBarNotificationEvo.java
private StatusBarNotificationEvo(final Parcel in) { super(in.readString(), null, in.readInt(), in.readInt() != 0 ? in.readString() : null, in.readInt(), 0, 0, NULL_NOTIFICATION, UserHandle.readFromParcel(in), in.readLong()); holder = INotification.Stub.asInterface(in.readStrongBinder()); }
From source file:com.nextgis.maplib.datasource.ngw.ResourceGroup.java
protected ResourceGroup(Parcel in) { super(in);/*from www .j ava2 s . co m*/ mChildrenLoaded = in.readByte() == 1; int count = in.readInt(); mChildren = new ArrayList<>(); for (int i = 0; i < count; i++) { int type = in.readInt(); switch (type) { case Connection.NGWResourceTypeResourceGroup: ResourceGroup resourceGroup = in.readParcelable(ResourceGroup.class.getClassLoader()); resourceGroup.setParent(this); mChildren.add(resourceGroup); break; case Connection.NGWResourceTypePostgisLayer: case Connection.NGWResourceTypeRasterLayer: case Connection.NGWResourceTypeVectorLayer: LayerWithStyles layer = in.readParcelable(LayerWithStyles.class.getClassLoader()); layer.setParent(this); mChildren.add(layer); break; } } }
From source file:com.v2soft.dnremote.dao.Server.java
public Server(Parcel in) { this(UUID.fromString(in.readString()), in.readString(), in.readString(), in.readInt(), in.readByte() == 1, readIPAddr(in)); }