Java Code Examples for android.os.Parcel.writeFloat()

The following are Jave code examples for showing how to use writeFloat() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Nyris.IMX.Android   File: Offer.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(title);
    parcel.writeString(description);
    parcel.writeString(descriptionLong);
    parcel.writeString(language);
    parcel.writeString(brand);
    parcel.writeFloatArray(catalogNumbers);
    parcel.writeParcelable(customIds, i);
    parcel.writeStringArray(keywords);
    parcel.writeStringArray(categories);
    parcel.writeString(availability);
    parcel.writeString(groupId);
    parcel.writeString(price);
    parcel.writeString(salePrice);
    parcel.writeParcelable(links, i);
    parcel.writeStringArray(images);
    parcel.writeString(metadata);
    parcel.writeString(sku);
    parcel.writeFloat(score);
}
 
Example 2
Project: MDWechat   File: FloatingActionButton.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.mCurrentProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeInt((mProgressBarEnabled ? 1 : 0));
    out.writeFloat(this.mSpinSpeed);
    out.writeInt(this.mProgress);
    out.writeInt(this.mProgressWidth);
    out.writeInt(this.mProgressColor);
    out.writeInt(this.mProgressBackgroundColor);
    out.writeInt(this.mProgressBarVisibilityChanged ? 1 : 0);
    out.writeInt(this.mProgressIndeterminate ? 1 : 0);
    out.writeInt(this.mShouldProgressIndeterminate ? 1 : 0);
    out.writeInt(this.mShouldSetProgress ? 1 : 0);
    out.writeInt(this.mAnimateProgress ? 1 : 0);
    out.writeInt(this.mShowProgressBackground ? 1 : 0);
}
 
Example 3
Project: Toodoo   File: FloatingActionButton.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.mCurrentProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeInt((mProgressBarEnabled ? 1 : 0));
    out.writeFloat(this.mSpinSpeed);
    out.writeInt(this.mProgress);
    out.writeInt(this.mProgressWidth);
    out.writeInt(this.mProgressColor);
    out.writeInt(this.mProgressBackgroundColor);
    out.writeInt(this.mProgressBarVisibilityChanged ? 1 : 0);
    out.writeInt(this.mProgressIndeterminate ? 1 : 0);
    out.writeInt(this.mShouldProgressIndeterminate ? 1 : 0);
    out.writeInt(this.mShouldSetProgress ? 1 : 0);
    out.writeInt(this.mAnimateProgress ? 1 : 0);
    out.writeInt(this.mShowProgressBackground ? 1 : 0);
}
 
Example 4
Project: letv   File: d.java   Source Code and License Vote up 6 votes
public final void a(int i, long j, boolean z, float f, double d, String str) {
    int i2 = 1;
    Parcel obtain = Parcel.obtain();
    Parcel obtain2 = Parcel.obtain();
    try {
        obtain.writeInterfaceToken(z);
        obtain.writeInt(i);
        obtain.writeLong(j);
        if (!z) {
            i2 = 0;
        }
        obtain.writeInt(i2);
        obtain.writeFloat(f);
        obtain.writeDouble(d);
        obtain.writeString(str);
        this.a.transact(1, obtain, obtain2, 0);
        obtain2.readException();
    } finally {
        obtain2.recycle();
        obtain.recycle();
    }
}
 
Example 5
Project: Acg   File: CircleProgressView.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel out, int flags) {

    super.writeToParcel(out, flags);
    out.writeFloat(this.mProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeByte((byte) (isSpinning ? 1 : 0));
    out.writeFloat(this.spinSpeed);
    out.writeInt(this.barWidth);
    out.writeInt(this.barColor);
    out.writeInt(this.rimWidth);
    out.writeInt(this.rimColor);
    out.writeInt(this.circleRadius);
    out.writeByte((byte) (linearProgress ? 1 : 0));
    out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
Example 6
Project: Dispatch   File: UserParcel.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mUser.getCurrentTeam());
    dest.writeString(mUser.getUserID());
    dest.writeString(mUser.getCurrentRole());
    dest.writeString(mUser.getCurrentStatus());
    dest.writeString(mUser.getEmail());
    dest.writeString(mUser.getToken());
    dest.writeFloat(mUser.getLatitude());
    dest.writeFloat(mUser.getLongitude());
}
 
Example 7
Project: exciting-app   File: ProgressWheel.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.mProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeByte((byte) (isSpinning ? 1 : 0));
    out.writeFloat(this.spinSpeed);
    out.writeInt(this.barWidth);
    out.writeInt(this.barColor);
    out.writeInt(this.rimWidth);
    out.writeInt(this.rimColor);
    out.writeInt(this.circleRadius);
    out.writeByte((byte) (linearProgress ? 1 : 0));
    out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
Example 8
Project: GitHub   File: Viewport.java   Source Code and License Vote up 5 votes
/**
 * Write this viewport to the specified parcel. To restore a viewport from a parcel, use readFromParcel()
 *
 * @param out The parcel to write the viewport's coordinates into
 */
public void writeToParcel(Parcel out, int flags) {
    out.writeFloat(left);
    out.writeFloat(top);
    out.writeFloat(right);
    out.writeFloat(bottom);
}
 
Example 9
Project: boohee_v5.6   File: Mention.java   Source Code and License Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(this.is_times ? (byte) 1 : (byte) 0);
    dest.writeInt(this.id);
    dest.writeFloat(this.rate);
    dest.writeString(this.video_url);
    dest.writeParcelable(this.info, 0);
    dest.writeString(this.name);
    dest.writeInt(this.number);
    dest.writeInt(this.rest);
    dest.writeInt(this.group_count);
    dest.writeString(this.training_part);
    dest.writeString(this.audio_url);
    dest.writeString(this.thumbnail);
}
 
Example 10
Project: Watermark   File: Configuration.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeByte((byte) (image ? 1 : 0));
    parcel.writeTypedList(selectedList);
    parcel.writeByte((byte) (radio ? 1 : 0));
    parcel.writeByte((byte) (crop ? 1 : 0));
    parcel.writeInt(maxSize);
    parcel.writeByte((byte) (hideBottomControls ? 1 : 0));
    parcel.writeInt(compressionQuality);
    parcel.writeIntArray(gestures);
    parcel.writeInt(maxBitmapSize);
    parcel.writeFloat(maxScaleMultiplier);
    parcel.writeFloat(aspectRatioX);
    parcel.writeFloat(aspectRatioY);
    parcel.writeInt(selectedByDefault);
    parcel.writeTypedArray(aspectRatio, i);
    parcel.writeByte((byte) (freestyleCropEnabled ? 1 : 0));
    parcel.writeByte((byte) (ovalDimmedLayer ? 1 : 0));
    parcel.writeInt(maxResultWidth);
    parcel.writeInt(maxResultHeight);
    parcel.writeInt(imageLoaderType);
    parcel.writeInt(imageConfig);
    parcel.writeByte((byte) (hideCamera ? 1 : 0));
    parcel.writeByte((byte) (isPlayGif ? 1 : 0));
    parcel.writeByte((byte) (hidePreview ? 1 : 0));
    parcel.writeByte((byte) (isVideoPreview ? 1 : 0));
}
 
Example 11
Project: WatchIt   File: Movie.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(movieId);
    dest.writeInt(movieVoteCount);
    dest.writeFloat(movieVoteAverage);
    dest.writeString(movieTitle);
    dest.writeString(movieOverview);
    dest.writeString(posterPath);
    dest.writeString(releaseDate);
    dest.writeString(backdropPath);
    dest.writeFloat(moviePopularity);
    dest.writeByte((byte) (isWatchLater ? 0 : 1));
    dest.writeByte((byte) (isNotified ? 0 : 1));
}
 
Example 12
Project: boohee_v5.6   File: RecordSport.java   Source Code and License Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.record_on);
    dest.writeFloat(this.duration);
    dest.writeInt(this.activity_id);
    dest.writeString(this.activity_name);
    dest.writeFloat(this.calory);
    dest.writeString(this.thumb_img_url);
    dest.writeString(this.unit_name);
    dest.writeFloat(this.mets);
    dest.writeByte(this.isChecked ? (byte) 1 : (byte) 0);
}
 
Example 13
Project: boohee_v5.6   File: PlaybackStateCompat.java   Source Code and License Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mState);
    dest.writeLong(this.mPosition);
    dest.writeFloat(this.mSpeed);
    dest.writeLong(this.mUpdateTime);
    dest.writeLong(this.mBufferedPosition);
    dest.writeLong(this.mActions);
    TextUtils.writeToParcel(this.mErrorMessage, dest, flags);
    dest.writeTypedList(this.mCustomActions);
    dest.writeLong(this.mActiveItemId);
    dest.writeBundle(this.mExtras);
}
 
Example 14
Project: MNProgressHUD   File: MProgressWheel.java   Source Code and License Vote up 5 votes
@Override public void writeToParcel(Parcel out, int flags) {
  super.writeToParcel(out, flags);
  out.writeFloat(this.mProgress);
  out.writeFloat(this.mTargetProgress);
  out.writeByte((byte) (isSpinning ? 1 : 0));
  out.writeFloat(this.spinSpeed);
  out.writeInt(this.barWidth);
  out.writeInt(this.barColor);
  out.writeInt(this.rimWidth);
  out.writeInt(this.rimColor);
  out.writeInt(this.circleRadius);
  out.writeByte((byte) (linearProgress ? 1 : 0));
  out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
Example 15
Project: BookReader-master   File: LoadingView.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloat(this.strokeInset);
    dest.writeFloat(this.strokeWidth);
    dest.writeFloat(this.ringCenterRadius);
    dest.writeFloat(this.start);
    dest.writeFloat(this.end);
    dest.writeFloat(this.sweep);
    dest.writeFloat(this.sweeping);
    dest.writeFloat(this.starting);
    dest.writeFloat(this.ending);
    dest.writeInt(this.color);
}
 
Example 16
Project: UsuraKnob   File: KnobState.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
	dest.writeFloat(minAngle);
	dest.writeFloat(maxAngle);
	dest.writeFloat(startingAngle);
	dest.writeFloat(currentAngle);
}
 
Example 17
Project: LadderLayoutManager   File: LadderLayoutManager.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(scrollOffset);
    dest.writeInt(childLayoutOffsetInput);
    dest.writeInt(orientation);
    dest.writeFloat(itemHeightWidthRatio);
    dest.writeFloat(scale);
    dest.writeFloat(elevation);
    dest.writeFloat(vanishOffset);
    dest.writeInt(reverse ? 1 : 0);
}
 
Example 18
Project: letv   File: RatingCompat.java   Source Code and License Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mRatingStyle);
    dest.writeFloat(this.mRatingValue);
}
 
Example 19
Project: Watermark   File: ImageCropBean.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(cropPath);
    dest.writeFloat(aspectRatio);
}
 
Example 20
Project: sign-android   File: CircleMenu.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.stateToSave);
}