List of usage examples for android.os Parcel readLong
public final long readLong()
From source file:Main.java
public static Location readLocation(Parcel in) { Location loc = new Location(in.readString()); loc.setTime(in.readLong()); loc.setLatitude(in.readDouble());// www . j av a2s.c om loc.setLongitude(in.readDouble()); loc.setAltitude(in.readDouble()); loc.setAccuracy(in.readFloat()); loc.setBearing(in.readFloat()); loc.setSpeed(in.readFloat()); return loc; }
From source file:com.philliphsu.clock2.alarms.Alarm.java
private static Alarm create(Parcel in) { Alarm alarm = Alarm.builder().hour(in.readInt()).minutes(in.readInt()).label(in.readString()) .ringtone(in.readString()).vibrates(in.readInt() != 0).build(); alarm.setId(in.readLong()); alarm.snoozingUntilMillis = in.readLong(); alarm.enabled = in.readInt() != 0;/*from w ww. j av a 2 s. c o m*/ in.readBooleanArray(alarm.recurringDays); alarm.ignoreUpcomingRingTime = in.readInt() != 0; return alarm; }
From source file:com.clover.sdk.v3.JsonParcelHelper.java
private static Object readValue(Parcel in) { int type = in.readInt(); switch (type) { case VAL_NULL: return JSONObject.NULL; case VAL_STRING: return in.readString(); case VAL_INTEGER: return in.readInt(); case VAL_MAP: return ObjectWrapper.CREATOR.createFromParcel(in).unwrap(); case VAL_LONG: return in.readLong(); case VAL_FLOAT: return in.readFloat(); case VAL_DOUBLE: return in.readDouble(); case VAL_BOOLEAN: return in.readInt() != 0; case VAL_OBJECTARRAY: return ArrayWrapper.CREATOR.createFromParcel(in).unwrap(); default://from w ww .j a v a 2s .c o m int off = in.dataPosition() - 4; throw new IllegalArgumentException( "Json: unmarshalling unknown type code " + type + " at offset " + off); } }
From source file:org.opendatakit.database.queries.BindArgs.java
private static Object unmarshallObject(Parcel in) { int dataType = in.readInt(); switch (dataType) { case 0:/*from ww w. j a v a 2 s.co m*/ return null; case 1: return in.readString(); case 2: return in.readInt(); case 3: return Boolean.TRUE; case 4: return Boolean.FALSE; case 5: return in.readDouble(); case 6: return in.readFloat(); case 7: return in.readLong(); default: throw new IllegalStateException("should have been prevented in constructor"); } }
From source file:com.liferay.alerts.model.User.java
private User(Parcel parcel) { _id = parcel.readLong(); _uuid = parcel.readString(); _fullName = parcel.readString(); _portraitId = parcel.readLong(); }
From source file:us.dustinj.locationstore.Export.java
public Export(Parcel in) { SetStartTime(in.readLong()); SetDuration(in.readLong()); SetExportID(in.readString()); }
From source file:com.nestapi.lib.API.AccessToken.java
private AccessToken(Parcel in) { mToken = in.readString(); mExpiresIn = in.readLong(); }
From source file:com.artemchep.horario.database.models.SubjectTaskService.java
public SubjectTaskService(Parcel source) { key = source.readString(); timestamp = source.readLong(); timestampEdited = source.readLong(); }
From source file:com.nestlabs.sdk.NestToken.java
private NestToken(Parcel in) { mToken = in.readString(); mExpiresInSecs = in.readLong(); }
From source file:com.github.leonardoxh.temporeal.app.model.User.java
/** * Este construtor vai resgatar o usuario de um parcelable para nos * @param parcel o parcelable para resgatarmos os valores *///from w ww .j a v a2 s . c o m public User(Parcel parcel) { setId(parcel.readLong()); setServerId(parcel.readLong()); setPlusId(parcel.readString()); setDisplayName(parcel.readString()); setProfileUrl(parcel.readString()); setProfileImage(parcel.readString()); }