Java Code Examples for android.os.Parcel#readDouble()
The following examples show how to use
android.os.Parcel#readDouble() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaiduAddress.java From AssistantBySDK with Apache License 2.0 | 6 votes |
public BaiduAddress(Parcel s) { this.id = s.readLong(); this.address = s.readString(); this.city = s.readString(); this.created = new Date(s.readLong()); this.disable = s.readInt(); long t = s.readLong(); this.favoritedTime = t == 0 ? null : new Date(t); this.hasCaterDetails = s.readInt(); this.isPano = s.readInt(); this.latitude = s.readDouble(); this.longitude = s.readDouble(); this.name = s.readString(); this.searchKeyWord = s.readString(); this.phoneNum = s.readString(); this.postCode = s.readString(); this.type = s.readInt(); this.uid = s.readString(); this.remark = s.readString(); this.sid = s.readString(); this.timestamp = s.readLong(); this.recyle = s.readInt(); this.synced = s.readInt() == 1; }
Example 2
Source File: ParcelablePOI.java From AndroidApp with Mozilla Public License 2.0 | 6 votes |
private ParcelablePOI(Parcel source) { poiName = source.readString(); fullName = source.readString(); osmType = source.readString(); poiClassName = source.readString(); poiClassType = source.readString(); id = source.readLong(); lat = source.readDouble(); lon = source.readDouble(); //read tags Map final int N = source.readInt(); for (int i = 0; i < N; i++) { String key = source.readString(); String value = source.readString(); tags.put(key, value); } }
Example 3
Source File: MashProfile.java From biermacht with Apache License 2.0 | 6 votes |
public MashProfile(Parcel p) { name = p.readString(); version = p.readInt(); grainTemp = p.readDouble(); mashSteps = new ArrayList<MashStep>(); p.readTypedList(mashSteps, MashStep.CREATOR); // Beer XML 1.0 Optional Fields =================================== // ================================================================ tunTemp = p.readDouble(); spargeTemp = p.readDouble(); pH = p.readDouble(); tunWeight = p.readDouble(); tunSpecificHeat = p.readDouble(); notes = p.readString(); equipAdj = (p.readInt() > 0 ? true : false); // Custom Fields ================================================== // ================================================================ id = p.readLong(); ownerId = p.readLong(); mashType = p.readString(); spargeType = p.readString(); // Don't read recipe because it recurses. }
Example 4
Source File: Movie.java From leanback-assistant with Apache License 2.0 | 6 votes |
private Movie(Parcel in) { id = in.readInt(); title = in.readString(); description = in.readString(); cardImage = in.readString(); backgroundImage = in.readString(); videoUrl = in.readString(); contentType = in.readString(); live = in.readInt() == 1; width = in.readInt(); height = in.readInt(); audioChannelConfig = in.readString(); purchasePrice = in.readString(); rentalPrice = in.readString(); ratingStyle = in.readInt(); ratingScore = in.readDouble(); productionYear = in.readInt(); duration = in.readInt(); }
Example 5
Source File: PaymentServices.java From aptoide-client with GNU General Public License v2.0 | 5 votes |
private PaymentServices(Parcel in) { id = in.readInt(); short_name = in.readString(); name = in.readString(); if(types==null) types = new ArrayList<PaymentType>(); in.readList(types, PaymentType.class.getClassLoader()); price = in.readDouble(); currency=in.readString(); taxRate=in.readDouble(); sign= in.readString(); service_id= in.readString(); inapp_secret= in.readString(); }
Example 6
Source File: AddressData.java From mollyim-android with GNU General Public License v3.0 | 5 votes |
@Override public AddressData createFromParcel(Parcel in) { //noinspection ConstantConditions return new AddressData(in.readDouble(), in.readDouble(), in.readString()); }
Example 7
Source File: Draft.java From Simpler with Apache License 2.0 | 5 votes |
protected Draft(Parcel in) { this.id = in.readInt(); this.uid = in.readString(); this.content = in.readString(); this.photoList = new ArrayList<Photo>(); in.readList(this.photoList, Photo.class.getClassLoader()); this.latitude = in.readDouble(); this.longitude = in.readDouble(); this.isEnableGeo = in.readByte() != 0; this.isLocation = in.readByte() != 0; this.addrStr = in.readString(); this.menuId = in.readInt(); this.groupId = in.readString(); this.groupName = in.readString(); }
Example 8
Source File: VKApiPlace.java From cordova-social-vk with Apache License 2.0 | 5 votes |
/** * Creates a Place instance from Parcel. */ public VKApiPlace(Parcel in) { this.id = in.readInt(); this.title = in.readString(); this.latitude = in.readDouble(); this.longitude = in.readDouble(); this.created = in.readLong(); this.checkins = in.readInt(); this.updated = in.readLong(); this.country_id = in.readInt(); this.city_id = in.readInt(); this.address = in.readString(); }
Example 9
Source File: Movie.java From AndroidSchool with Apache License 2.0 | 5 votes |
public Movie(Parcel in) { mId = in.readInt(); mPosterPath = in.readString(); mOverview = in.readString(); mTitle = in.readString(); mReleasedDate = in.readString(); mVoteAverage = in.readDouble(); boolean[] values = new boolean[1]; in.readBooleanArray(values); mIsFavourite = values[0]; }
Example 10
Source File: LatLong.java From Easer with GNU General Public License v3.0 | 4 votes |
protected LatLong(Parcel in) { latitude = in.readDouble(); longitude = in.readDouble(); }
Example 11
Source File: VisionObjectDetectionEvent.java From mapbox-events-android with MIT License | 4 votes |
private static Double readDoubleIfNotNull(Parcel parcel) { return parcel.readByte() == 0 ? null : parcel.readDouble(); }
Example 12
Source File: NiboSelectedPlace.java From Nibo with MIT License | 4 votes |
protected NiboSelectedPlace(Parcel in) { latitude = in.readDouble(); longitude = in.readDouble(); placeId = in.readString(); placeAddress = in.readString(); }
Example 13
Source File: EasyWayLocation.java From EasyWayLocation with Apache License 2.0 | 4 votes |
private Point(Parcel in) { latitude = in.readDouble(); longitude = in.readDouble(); }
Example 14
Source File: LabelledGeoPoint.java From osmdroid with Apache License 2.0 | 4 votes |
private LabelledGeoPoint(final Parcel in) { super(in.readDouble(), in.readDouble(), in.readDouble()); this.setLabel(in.readString()); }
Example 15
Source File: Vector2D.java From microMathematics with GNU General Public License v3.0 | 4 votes |
public void readFromParcel(Parcel in) { x = in.readDouble(); y = in.readDouble(); }
Example 16
Source File: SimpleLocation.java From Android-SimpleLocation with Apache License 2.0 | 4 votes |
private Point(Parcel in) { latitude = in.readDouble(); longitude = in.readDouble(); }
Example 17
Source File: PitchDifference.java From cythara with GNU General Public License v3.0 | 4 votes |
private PitchDifference(Parcel in) { Tuning tuning = MainActivity.getCurrentTuning(); closest = tuning.findNote(in.readString()); deviation = in.readDouble(); }
Example 18
Source File: StaggeredGridView.java From UltimateAndroid with Apache License 2.0 | 4 votes |
/** * Constructor called from {@link #CREATOR} */ private GridItemRecord(Parcel in) { column = in.readInt(); heightRatio = in.readDouble(); isHeaderFooter = in.readByte() == 1; }
Example 19
Source File: DoubleParcelableAdapter.java From postman with MIT License | 4 votes |
@Override public DoubleParcelableAdapter createFromParcel(Parcel source) { return new DoubleParcelableAdapter(source.readDouble()); }
Example 20
Source File: Waypoint.java From GoogleDirectionLibrary with Apache License 2.0 | 4 votes |
protected Waypoint(Parcel in) { location = in.readParcelable(Coordination.class.getClassLoader()); index = in.readInt(); interpolation = in.readDouble(); }