Example usage for android.os Parcel writeLong

List of usage examples for android.os Parcel writeLong

Introduction

In this page you can find the example usage for android.os Parcel writeLong.

Prototype

public final void writeLong(long val) 

Source Link

Document

Write a long integer value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

From source file:com.vk.sdk.api.model.VKApiWikiPage.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.group_id);
    dest.writeInt(this.creator_id);
    dest.writeString(this.title);
    dest.writeString(this.source);
    dest.writeByte(current_user_can_edit ? (byte) 1 : (byte) 0);
    dest.writeByte(current_user_can_edit_access ? (byte) 1 : (byte) 0);
    dest.writeInt(this.who_can_view);
    dest.writeInt(this.who_can_edit);
    dest.writeInt(this.editor_id);
    dest.writeLong(this.edited);
    dest.writeLong(this.created);
    dest.writeString(this.parent);
    dest.writeString(this.parent2);
}

From source file:tv.yatse.plugin.avreceiver.api.PluginCustomCommand.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(PARCELABLE_VERSION);//from w  w  w . ja v  a 2 s .com
    dest.writeLong(mId);
    dest.writeInt(mColor);
    dest.writeString(mDescription);
    dest.writeInt(mDisplayOrder);
    dest.writeString(mIcon);
    dest.writeString(mParam1);
    dest.writeString(mParam2);
    dest.writeString(mParam3);
    dest.writeString(mParam4);
    dest.writeString(mParam5);
    dest.writeInt(mReadOnly ? 1 : 0);
    dest.writeString(mSource);
    dest.writeString(mTitle);
    dest.writeInt(mType);
    dest.writeString(mUniqueId);
}

From source file:io.bunnyblue.noticedog.app.notifications.Notification.java

public void writeToParcel(Parcel out, int flags) {
    out.writeString(this.packageName);
    out.writeInt(this.id);
    out.writeString(this.tag);
    out.writeString(this.key);
    out.writeLong(this.when);
    out.writeInt(this.smallIcon);
    out.writeParcelable(this.largeIcon, 0);
    out.writeString(this.tickerText);
    out.writeString(this.contentTitle);
    out.writeString(this.contentText);
    out.writeString(this.contentInfoText);
    out.writeParcelable(this.expandedLargeIconBig, 0);
    out.writeString(this.expandedContentTitle);
    out.writeString(this.expandedContentText);
    out.writeStringList(this.expandedInboxText);
    out.writeList(this.people);
    out.writeParcelable(this.picture, 0);
    out.writeInt(this.priority);
    out.writeParcelable(this.pendingLaunchIntent, 0);
    out.writeList(this.actions);
    logParcelSize(out);/*from  ww w. j a v a 2s  .  com*/
}

From source file:com.tdispatch.passenger.model.BookingData.java

@Override
public void writeToParcel(Parcel out, int flags) {

    out.writeLong(getLocalId());
    out.writeString(getPk());/*from  w w w . java  2 s .c  o  m*/
    out.writeString(getBookingKey());
    out.writeString(getDriverPk());
    out.writeString(getPickupDateString());
    out.writeParcelable(getPickupLocation(), 0);
    out.writeParcelable(getDropoffLocation(), 0);
    out.writeInt(getPassengerCount());
    out.writeInt(getLuggageCount());
    out.writeString(getFlightNumber());
    out.writeDouble(getDistanceKm());
    out.writeDouble(getDistanceMiles());
    out.writeString(getCustomerName());
    out.writeString(getCustomerPhone());
    out.writeString(getExtraInfo());
    out.writeString(getPaymentStatus());
    out.writeInt(getPaymentMethod());
    out.writeByte((byte) (isPrepaid() ? 1 : 0));
    out.writeString(getCost());
    out.writeString(getTotalCost());
    out.writeString(getCabOfficeName());
    out.writeString(getCabOfficeSlug());
    out.writeInt(getType());
    out.writeString(getReceiptUrl());

    out.writeString(getJson().toString());

    out.writeInt(mWayPoints.size());
    for (LocationData item : mWayPoints) {
        out.writeParcelable(item, 0);
    }
}

From source file:com.rc.droid_stalker.components.NetworkStats.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(elapsedRealtime);
    dest.writeInt(size);//from www.  j a  v a 2  s.c  om
    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:fr.free.nrw.commons.Media.java

/**
 * Creates a way to transfer information between two or more
 * activities.//from  w w  w  . j  av a  2 s . c om
 * @param parcel Instance of Parcel
 * @param flags Parcel flag
 */
@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeParcelable(localUri, flags);
    parcel.writeString(thumbUrl);
    parcel.writeString(imageUrl);
    parcel.writeString(filename);
    parcel.writeString(description);
    parcel.writeLong(dataLength);
    parcel.writeSerializable(dateCreated);
    parcel.writeSerializable(dateUploaded);
    parcel.writeString(creator);
    parcel.writeSerializable(tags);
    parcel.writeInt(width);
    parcel.writeInt(height);
    parcel.writeString(license);
    parcel.writeStringList(categories);
    parcel.writeMap(descriptions);
}

From source file:com.oasisfeng.nevo.StatusBarNotificationEvo.java

/** Write all fields except the Notification which is passed as IPC holder */
@Override/*from w w  w  .  ja va2s .  c o m*/
public void writeToParcel(final Parcel out, final int flags) {
    if ((flags & FLAG_WRITE_AS_ORIGINAL) != 0) {
        super.writeToParcel(out, flags & ~FLAG_WRITE_AS_ORIGINAL);
        return;
    }
    out.writeInt(PARCEL_MAGIC);
    out.writeString(getPackageName());
    out.writeInt(getId());
    if (getTag() != null) {
        out.writeInt(1);
        out.writeString(getTag());
    } else
        out.writeInt(0);
    out.writeInt(getUid(this));
    getUser().writeToParcel(out, flags);
    out.writeLong(getPostTime());
    out.writeStrongInterface(notification == null ? holder : new NotificationHolder(notification)); // The local copy of notification is "dirty" (possibly modified), hence needs to be updated.
}

From source file:com.owncloud.android.datamodel.OCFile.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(mId);
    dest.writeLong(mParentId);// ww w. ja  v  a  2s . c  o  m
    dest.writeLong(mLength);
    dest.writeLong(mCreationTimestamp);
    dest.writeLong(mModifiedTimestamp);
    dest.writeLong(mModifiedTimestampAtLastSyncForData);
    dest.writeString(mRemotePath);
    dest.writeString(mLocalPath);
    dest.writeString(mMimeType);
    dest.writeString(mAvailableOfflineStatus.name());
    dest.writeLong(mLastSyncDateForProperties);
    dest.writeLong(mLastSyncDateForData);
    dest.writeString(mEtag);
    dest.writeString(mTreeEtag);
    dest.writeInt(mSharedByLink ? 1 : 0);
    dest.writeString(mPermissions);
    dest.writeString(mRemoteId);
    dest.writeInt(mNeedsUpdateThumbnail ? 1 : 0);
    dest.writeInt(mIsDownloading ? 1 : 0);
    dest.writeString(mEtagInConflict);
    dest.writeInt(mSharedWithSharee ? 1 : 0);
    dest.writeString(mPrivateLink);
}

From source file:com.philliphsu.clock2.alarms.Alarm.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(hour());/*from   w  w w.j a va 2  s .com*/
    dest.writeInt(minutes());
    dest.writeString(label());
    dest.writeString(ringtone());
    dest.writeInt(vibrates() ? 1 : 0);
    // Mutable fields must be written after the immutable fields,
    // because when we recreate the object, we can't initialize
    // those mutable fields until after we call build(). Values
    // in the parcel are read in the order they were written.
    dest.writeLong(getId());
    dest.writeLong(snoozingUntilMillis);
    dest.writeInt(enabled ? 1 : 0);
    dest.writeBooleanArray(recurringDays);
    dest.writeInt(ignoreUpcomingRingTime ? 1 : 0);
}

From source file:com.eTilbudsavis.etasdk.model.Shoppinglist.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mErn);
    dest.writeString(this.mName);
    dest.writeString(this.mAccess);
    dest.writeLong(mModified != null ? mModified.getTime() : -1);
    dest.writeString(this.mPrevId);
    dest.writeString(this.mType);
    dest.writeString(this.mMeta);
    dest.writeSerializable(this.mShares);
    dest.writeInt(this.mUserId);
    dest.writeInt(this.mSyncState);
}