本文整理汇总了Java中android.os.Parcel.writeByte方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeByte方法的具体用法?Java Parcel.writeByte怎么用?Java Parcel.writeByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.productUom);
dest.writeDouble(this.priceUnit);
dest.writeDouble(this.discount);
dest.writeDouble(this.returnAmount);
dest.writeDouble(this.deliveredQty);
dest.writeDouble(this.priceSubtotal);
dest.writeInt(this.productID);
dest.writeDouble(this.tallyingAmount);
dest.writeInt(this.saleOrderProductID);
dest.writeString(this.stockType);
dest.writeString(this.category);
dest.writeDouble(this.settleAmount);
dest.writeDouble(this.productUomQty);
dest.writeStringList(this.lotIDs);
dest.writeTypedList(this.lotList);
dest.writeByte(this.isChanged ? (byte) 1 : (byte) 0);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(id);
dest.writeString(firstName);
dest.writeString(lastName);
dest.writeByte((byte) (online ? 1 : 0));
dest.writeByte((byte) (onlineMobile ? 1 : 0));
dest.writeInt(onlineApp);
dest.writeString(photo50);
dest.writeString(photo100);
dest.writeString(photo200);
dest.writeLong(lastSeen);
dest.writeInt(platform);
dest.writeString(status);
dest.writeInt(sex);
dest.writeString(domain);
dest.writeByte((byte) (friend ? 1 : 0));
dest.writeInt(friendStatus);
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.area);
dest.writeInt(this.arealimit);
dest.writeInt(this.attention);
dest.writeString(this.badge);
dest.writeInt(this.bangumi_id);
dest.writeString(this.bgmcount);
dest.writeString(this.cover);
dest.writeInt(this.danmaku_count);
dest.writeInt(this.ep_id);
dest.writeInt(this.favorites);
dest.writeInt(this.is_finish);
dest.writeInt(this.lastupdate);
dest.writeString(this.lastupdate_at);
dest.writeByte(this.newest ? (byte) 1 : (byte) 0);
dest.writeInt(this.play_count);
dest.writeString(this.pub_time);
dest.writeInt(this.season_id);
dest.writeInt(this.season_status);
dest.writeInt(this.spid);
dest.writeString(this.square_cover);
dest.writeString(this.title);
dest.writeInt(this.viewRank);
dest.writeInt(this.weekday);
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.sessionId);
dest.writeString(this.installerPackageName);
dest.writeString(this.resolvedBaseCodePath);
dest.writeFloat(this.progress);
dest.writeByte(this.sealed ? (byte) 1 : (byte) 0);
dest.writeByte(this.active ? (byte) 1 : (byte) 0);
dest.writeInt(this.mode);
dest.writeLong(this.sizeBytes);
dest.writeString(this.appPackageName);
dest.writeParcelable(this.appIcon, flags);
if (appLabel != null) {
dest.writeString(appLabel.toString());
}
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.topic);
dest.writeString(this.payload);
dest.writeInt(this.QoS);
dest.writeByte(this.isRetained ? (byte) 1 : (byte) 0);
dest.writeString(this.time);
}
示例6: callMethod
import android.os.Parcel; //导入方法依赖的package包/类
public void callMethod(final String className, final String serviceName,
final String methodName, final Object... paramsAndListener) {
Parcel data = Parcel.obtain();
data.writeInterfaceToken(className);
for (int i = 0; i < paramsAndListener.length - 1; i++) {
Object p = paramsAndListener[i];
if (p instanceof Byte)
data.writeByte((Byte) p);
else if (p instanceof Integer)
data.writeInt((Integer) p);
else if (p instanceof Long)
data.writeLong((Long) p);
else if (p instanceof String)
data.writeString((String) p);
else if (p instanceof Bundle)
data.writeBundle((Bundle) p);
else if (p instanceof Float)
data.writeFloat((Float) p);
else if (p instanceof FileDescriptor)
data.writeFileDescriptor((FileDescriptor) p);
else if (p instanceof List)
data.writeList((List) p);
else if (p instanceof Exception)
data.writeException((Exception) p);
else if (p instanceof IBinder)
data.writeStrongBinder((IBinder) p);
else if (p instanceof Double)
data.writeDouble((Double) p);
else if (p instanceof Map)
data.writeMap((Map) p);
else if (p instanceof boolean[])
data.writeBooleanArray((boolean[]) p);
else if (p instanceof byte[])
data.writeByteArray((byte[]) p);
else if (p instanceof char[])
data.writeCharArray((char[]) p);
else if (p instanceof int[])
data.writeIntArray((int[]) p);
else if (p instanceof IBinder[])
data.writeBinderArray((IBinder[]) p);
else if (p instanceof double[])
data.writeDoubleArray((double[]) p);
else if (p instanceof Object[])
data.writeArray((Object[]) p);
else data.writeValue(p);
}
Object lastParam = paramsAndListener[paramsAndListener.length - 1];
CallMethodResultListener listener = lastParam == null ? null :
(CallMethodResultListener) lastParam;
callMethod(className, serviceName, methodName, data, listener);
data.recycle();
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(this.id);
dest.writeString(this.name);
dest.writeString(this.path);
dest.writeByte(this.isSelected ? (byte) 1 : (byte) 0);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel( Parcel dest, int flags ){
dest.writeString( this.status );
dest.writeString( this.message );
dest.writeByte( this.nextOrderAvailable ? (byte) 1 : (byte) 0 );
dest.writeInt( this.nextOrderIndex );
dest.writeTypedList( this.orders );
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
//since we inherit from FarmaciasCsvBean that implements parcelable, we override its writeToParcel
//method if we want this object to also be parcelable
//the first thing is to write to parcel member variables of super class
super.writeToParcel(dest,flags);
dest.writeValue(this.distance);
dest.writeString(this.hours);
dest.writeValue(this.isOpen);
dest.writeString(this.order);
dest.writeString(this.phoneFormatted);
dest.writeString(this.addressFormatted);
dest.writeParcelable(this.markerImage, flags);
dest.writeByte(this.isFavorite ? (byte) 1 : (byte) 0);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this._id);
dest.writeString(this.createdAt);
dest.writeString(this.desc);
dest.writeString(this.publishedAt);
dest.writeString(this.source);
dest.writeString(this.type);
dest.writeString(this.url);
dest.writeByte(this.used ? (byte) 1 : (byte) 0);
dest.writeString(this.who);
dest.writeStringList(this.images);
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(id.toString());
dest.writeString(name);
dest.writeByte((byte) (selected ? 1 : 0));
dest.writeByte((byte) (visible ? 1 : 0));
dest.writeInt(opacity);
dest.writeFloat(x);
dest.writeFloat(y);
dest.writeFloat(width);
dest.writeFloat(height);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.id);
dest.writeString(this.url);
dest.writeString(this.path);
dest.writeByte(this.pathAsDirectory ? (byte) 1 : (byte) 0);
dest.writeString(this.filename);
dest.writeByte(this.status);
dest.writeLong(this.soFar.get());
dest.writeLong(this.total);
dest.writeString(this.errMsg);
dest.writeString(this.eTag);
dest.writeInt(this.connectionCount);
dest.writeByte(this.isLargeFile ? (byte) 1 : (byte) 0);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(this.id);
dest.writeString(this.idstr);
dest.writeString(this.screen_name);
dest.writeString(this.name);
dest.writeInt(this.province);
dest.writeInt(this.city);
dest.writeString(this.location);
dest.writeString(this.description);
dest.writeString(this.url);
dest.writeString(this.profile_image_url);
dest.writeString(this.profile_url);
dest.writeString(this.domain);
dest.writeString(this.weihao);
dest.writeString(this.gender);
dest.writeInt(this.followers_count);
dest.writeInt(this.friends_count);
dest.writeInt(this.statuses_count);
dest.writeInt(this.favourites_count);
dest.writeString(this.created_at);
dest.writeByte(this.following ? (byte) 1 : (byte) 0);
dest.writeByte(this.allow_all_act_msg ? (byte) 1 : (byte) 0);
dest.writeByte(this.geo_enabled ? (byte) 1 : (byte) 0);
dest.writeByte(this.verified ? (byte) 1 : (byte) 0);
dest.writeInt(this.verified_type);
dest.writeString(this.remark);
dest.writeByte(this.allow_all_comment ? (byte) 1 : (byte) 0);
dest.writeString(this.avatar_large);
dest.writeString(this.avatar_hd);
dest.writeString(this.verified_reason);
dest.writeByte(this.follow_me ? (byte) 1 : (byte) 0);
dest.writeInt(this.online_status);
dest.writeInt(this.bi_followers_count);
dest.writeString(this.lang);
dest.writeString(this.star);
dest.writeString(this.mbtype);
dest.writeString(this.mbrank);
dest.writeString(this.block_word);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(code);
parcel.writeByte((byte) (open ? 1 : 0));
parcel.writeInt(page);
parcel.writeInt(postion);
parcel.writeString(iconPath);
parcel.writeString(shellStr);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.id);
dest.writeString(this.name);
dest.writeInt(this.numOfSongs);
dest.writeByte(this.favorite ? (byte) 1 : (byte) 0);
dest.writeLong(this.createdAt != null ? this.createdAt.getTime() : -1);
dest.writeLong(this.updatedAt != null ? this.updatedAt.getTime() : -1);
dest.writeTypedList(this.songs);
dest.writeInt(this.playingIndex);
dest.writeInt(this.playMode == null ? -1 : this.playMode.ordinal());
}