List of usage examples for android.os Parcel writeLongArray
public final void writeLongArray(long[] val)
From source file:io.github.hidroh.materialistic.data.HackerNewsItem.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(id);//from w w w . ja v a 2 s . c o m dest.writeString(title); dest.writeLong(time); dest.writeString(by); dest.writeLongArray(kids); dest.writeString(url); dest.writeString(text); dest.writeString(type); dest.writeInt(favorite ? 1 : 0); dest.writeInt(descendants); dest.writeInt(score); dest.writeInt(favorite ? 1 : 0); dest.writeInt(viewed ? 1 : 0); dest.writeInt(localRevision); dest.writeInt(level); dest.writeInt(dead ? 1 : 0); dest.writeInt(deleted ? 1 : 0); dest.writeInt(collapsed ? 1 : 0); dest.writeInt(contentExpanded ? 1 : 0); dest.writeInt(rank); dest.writeInt(lastKidCount); dest.writeInt(hasNewDescendants ? 1 : 0); dest.writeLong(parent); dest.writeInt(voted ? 1 : 0); dest.writeInt(pendingVoted ? 1 : 0); dest.writeLong(next); dest.writeLong(previous); }
From source file:com.rc.droid_stalker.components.NetworkStats.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(elapsedRealtime);//from w w w . ja va 2 s .c om dest.writeInt(size); dest.writeStringArray(iface); dest.writeIntArray(uid); dest.writeIntArray(set); dest.writeIntArray(tag); dest.writeLongArray(rxBytes); dest.writeLongArray(rxPackets); dest.writeLongArray(txBytes); dest.writeLongArray(txPackets); dest.writeLongArray(operations); }
From source file:android.app.Notification.java
/** * Flatten this notification from a parcel. *//*from ww w . j av a 2 s .co m*/ public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(1); parcel.writeLong(when); parcel.writeInt(icon); parcel.writeInt(number); if (contentIntent != null) { parcel.writeInt(1); contentIntent.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (deleteIntent != null) { parcel.writeInt(1); deleteIntent.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (tickerText != null) { parcel.writeInt(1); TextUtils.writeToParcel(tickerText, parcel, flags); } else { parcel.writeInt(0); } if (tickerView != null) { parcel.writeInt(1); tickerView.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (contentView != null) { parcel.writeInt(1); contentView.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } if (largeIcon != null) { parcel.writeInt(1); largeIcon.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeInt(defaults); parcel.writeInt(this.flags); if (sound != null) { parcel.writeInt(1); sound.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeInt(audioStreamType); parcel.writeLongArray(vibrate); parcel.writeInt(ledARGB); parcel.writeInt(ledOnMS); parcel.writeInt(ledOffMS); parcel.writeInt(iconLevel); if (fullScreenIntent != null) { parcel.writeInt(1); fullScreenIntent.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeInt(priority); parcel.writeStringArray(kind); // ok for null if (extras != null) { parcel.writeInt(1); extras.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } parcel.writeTypedArray(actions, 0); if (bigContentView != null) { parcel.writeInt(1); bigContentView.writeToParcel(parcel, 0); } else { parcel.writeInt(0); } }