List of usage examples for android.os Parcel readFloat
public final float readFloat()
From source file:org.onepf.opfmaps.osmdroid.model.BitmapDescriptor.java
private BitmapDescriptor(@NonNull final Parcel parcel) { this.source = BitmapSource.valueOf(parcel.readString()); this.image = parcel.readParcelable(Bitmap.class.getClassLoader()); this.path = parcel.readString(); this.hue = parcel.readFloat(); this.resourceId = parcel.readInt(); }
From source file:com.richtodd.android.quiltdesign.block.Quilt.java
public Quilt(Parcel in) { m_new = in.readInt() == 0 ? false : true; m_rowCount = in.readInt();/*ww w .jav a 2 s. c om*/ m_columnCount = in.readInt(); m_width = in.readFloat(); m_height = in.readFloat(); m_rows = new ArrayList<ArrayList<QuiltBlock>>(); for (int row = 0; row < m_rowCount; ++row) { for (int column = 0; column < m_columnCount; ++column) { QuiltBlock quiltBlock = (QuiltBlock) in.readParcelable(QuiltBlock.class.getClassLoader()); setQuiltBlock(row, column, quiltBlock); } } }
From source file:com.facebook.notifications.internal.configuration.ActionsConfiguration.java
private ActionsConfiguration(Parcel source) { ClassLoader loader = getClass().getClassLoader(); style = source.readParcelable(loader); layoutStyle = source.readParcelable(loader); background = source.readParcelable(loader); topInset = source.readFloat(); contentInset = source.readFloat();//from www . j a v a 2s. c om cornerRadius = source.readFloat(); actions = source.createTypedArray(ActionConfiguration.CREATOR); height = source.readFloat(); }
From source file:com.marianhello.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt());/* w ww. j a v a 2s.co m*/ setDesiredAccuracy(in.readInt()); setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setLocationProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setStopOnStillActivity((Boolean) in.readValue(null)); setUrl(in.readString()); setSyncUrl(in.readString()); setSyncThreshold(in.readInt()); setMaxLocations(in.readInt()); Bundle bundle = in.readBundle(); setHttpHeaders((HashMap<String, String>) bundle.getSerializable("httpHeaders")); }
From source file:com.kevinquan.android.location.SimpleRecordedLocation.java
public SimpleRecordedLocation(Parcel in) { this();/* www. j ava 2 s . c o m*/ mLatitude = in.readDouble(); mLongitude = in.readDouble(); mAccuracy = in.readFloat(); mAltitude = in.readDouble(); mBearing = in.readFloat(); mSpeed = in.readFloat(); mRecordedAt = in.readLong(); mProvider = LocationProviderType.fromValue(in.readString()); }
From source file:com.marianhello.cordova.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt());// www . ja v a2 s . c om setDesiredAccuracy(in.readInt()); setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setServiceProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setUrl(in.readString()); setMethod(in.readString()); setHeaders((HashMap<String, String>) in.readSerializable()); setParams((HashMap<String, String>) in.readSerializable()); }
From source file:com.google.android.apps.flexbox.FlexItem.java
protected FlexItem(Parcel in) { this.index = in.readInt(); this.width = in.readInt(); this.height = in.readInt(); this.topMargin = in.readInt(); this.startMargin = in.readInt(); this.endMargin = in.readInt(); this.bottomMargin = in.readInt(); this.paddingTop = in.readInt(); this.paddingStart = in.readInt(); this.paddingEnd = in.readInt(); this.paddingBottom = in.readInt(); this.order = in.readInt(); this.flexGrow = in.readFloat(); this.flexShrink = in.readFloat(); this.alignSelf = in.readInt(); this.flexBasisPercent = in.readFloat(); this.minWidth = in.readInt(); this.minHeight = in.readInt(); this.maxWidth = in.readInt(); this.maxHeight = in.readInt(); this.wrapBefore = in.readByte() != 0; }
From source file:com.orbar.pxdemo.Model.FiveZeroZeroImageBean.java
public FiveZeroZeroImageBean(Parcel source) { Log.v(TAG, "ParcelData(Parcel source): time to put back parcel data"); id = source.readInt();/*ww w .j a v a 2 s. c o m*/ userId = source.readInt(); name = source.readString(); description = source.readString(); camera = source.readString(); lens = source.readString(); focalLength = source.readString(); iso = source.readString(); shutterSpeed = source.readString(); aperture = source.readString(); timesViewed = source.readInt(); rating = source.readFloat(); status = source.readInt(); createdAt = source.readString(); category = source.readInt(); location = source.readString(); privacy = source.readByte() == 1; latitude = source.readString(); longitude = source.readString(); takenAt = source.readString(); hiResUploaded = source.readInt(); forSale = source.readByte() == 1; width = source.readInt(); height = source.readInt(); votesCount = source.readInt(); favoritesCount = source.readInt(); commentsCount = source.readInt(); nsfw = source.readByte() == 1; salesCount = source.readInt(); highestRating = source.readFloat(); highestRatingDate = source.readString(); licenseType = source.readInt(); imageUrl = source.readString(); storeDownload = source.readByte() == 1; storePrint = source.readByte() == 1; voted = source.readByte() == 1; favorited = source.readByte() == 1; purchased = source.readByte() == 1; userBean = (FiveZeroZeroUserBean) source.readParcelable(FiveZeroZeroUserBean.class.getClassLoader()); }