本文整理汇总了Java中android.os.Parcel.writeFloat方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeFloat方法的具体用法?Java Parcel.writeFloat怎么用?Java Parcel.writeFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeFloat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例3: a
import android.os.Parcel; //导入方法依赖的package包/类
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();
}
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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));
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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());
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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));
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
/**
* 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);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
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);
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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));
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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));
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
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);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
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);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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));
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeFloat(minAngle);
dest.writeFloat(maxAngle);
dest.writeFloat(startingAngle);
dest.writeFloat(currentAngle);
}