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.sdkweb.api.model.VKApiUserFull.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.activity);
    dest.writeParcelable(this.status_audio, flags);
    dest.writeString(this.bdate);
    dest.writeParcelable(this.city, flags);
    dest.writeParcelable(this.country, flags);
    dest.writeLong(this.last_seen);
    dest.writeParcelable(this.universities, flags);
    dest.writeParcelable(this.schools, flags);
    dest.writeInt(this.smoking);
    dest.writeInt(this.alcohol);
    dest.writeInt(this.political);
    dest.writeInt(this.life_main);
    dest.writeInt(this.people_main);
    dest.writeString(this.inspired_by);
    dest.writeStringArray(this.langs);
    dest.writeString(this.religion);
    dest.writeString(this.facebook);
    dest.writeString(this.facebook_name);
    dest.writeString(this.livejournal);
    dest.writeString(this.skype);
    dest.writeString(this.site);
    dest.writeString(this.twitter);
    dest.writeString(this.instagram);
    dest.writeString(this.mobile_phone);
    dest.writeString(this.home_phone);
    dest.writeString(this.screen_name);
    dest.writeString(this.activities);
    dest.writeString(this.interests);
    dest.writeString(this.movies);
    dest.writeString(this.tv);
    dest.writeString(this.books);
    dest.writeString(this.games);
    dest.writeString(this.about);
    dest.writeString(this.quotes);
    dest.writeByte(can_post ? (byte) 1 : (byte) 0);
    dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0);
    dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_comments ? (byte) 1 : (byte) 0);
    dest.writeByte(is_banned ? (byte) 1 : (byte) 0);
    dest.writeByte(is_deleted ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0);
    dest.writeByte(verified ? (byte) 1 : (byte) 0);
    dest.writeInt(this.sex);
    dest.writeParcelable(this.counters, flags);
    dest.writeInt(this.relation);
    dest.writeParcelable(this.relatives, flags);
    dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0);
}

From source file:com.baasbox.android.BaasFile.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    Util.writeOptString(dest, name);
    Util.writeOptString(dest, id);
    Util.writeOptString(dest, creationDate);
    Util.writeOptString(dest, author);
    Util.writeOptString(dest, mimeType);
    dest.writeParcelable(attachedData, flags);
    dest.writeParcelable(metaData, flags);
    dest.writeLong(contentLength);
    dest.writeLong(version);/*from  ww  w.  j  a v  a 2s  .c  om*/
    Util.writeBoolean(dest, isBound.get());
    Util.writeOptBytes(dest, data.get());
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.activity);
    dest.writeParcelable(this.status_audio, flags);
    dest.writeString(this.bdate);
    dest.writeParcelable(this.city, flags);
    dest.writeParcelable(this.country, flags);
    dest.writeLong(this.last_seen);
    dest.writeParcelable(this.universities, flags);
    dest.writeParcelable(this.schools, flags);
    dest.writeInt(this.smoking);
    dest.writeInt(this.alcohol);
    dest.writeInt(this.political);
    dest.writeInt(this.life_main);
    dest.writeInt(this.people_main);
    dest.writeString(this.inspired_by);
    dest.writeStringArray(this.langs);
    dest.writeString(this.religion);
    dest.writeString(this.facebook);
    dest.writeString(this.facebook_name);
    dest.writeString(this.livejournal);
    dest.writeString(this.skype);
    dest.writeString(this.site);
    dest.writeString(this.twitter);
    dest.writeString(this.instagram);
    dest.writeString(this.mobile_phone);
    dest.writeString(this.home_phone);
    dest.writeString(this.screen_name);
    dest.writeString(this.activities);
    dest.writeString(this.interests);
    dest.writeString(this.movies);
    dest.writeString(this.tv);
    dest.writeString(this.books);
    dest.writeString(this.games);
    dest.writeString(this.about);
    dest.writeString(this.quotes);
    dest.writeByte(can_post ? (byte) 1 : (byte) 0);
    dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0);
    dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_comments ? (byte) 1 : (byte) 0);
    dest.writeByte(is_banned ? (byte) 1 : (byte) 0);
    dest.writeByte(is_deleted ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0);
    dest.writeByte(verified ? (byte) 1 : (byte) 0);
    dest.writeInt(this.sex);
    dest.writeParcelable(this.counters, flags);
    dest.writeParcelable(this.occupation, flags);
    dest.writeInt(this.relation);
    dest.writeParcelable(this.relatives, flags);
    dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0);
}

From source file:org.y20k.transistor.core.Station.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(TITLE);//  ww  w  .  j a  v  a  2  s.  co  m
    dest.writeString(StreamURI);
    dest.writeBundle(mStationFetchResults);
    dest.writeByte((byte) (mPlayback ? 1 : 0)); // if mPlayback == true, byte == 1
    dest.writeLong(_ID);
    dest.writeString(UNIQUE_ID);
    dest.writeString(SUBTITLE);
    dest.writeString(IMAGE_PATH);
    dest.writeString(IMAGE_FILE_NAME);
    dest.writeString(SMALL_IMAGE_FILE_NAME);
    dest.writeString(CONTENT_TYPE);
    dest.writeString(DESCRIPTION);
    dest.writeInt(RATING);
    dest.writeString(COMMA_SEPARATED_TAGS);
    dest.writeString(CATEGORY);
    dest.writeString(MarkdownDescription);
    dest.writeString(SMALL_IMAGE_PATH);
    dest.writeInt(IS_FAVOURITE);
    dest.writeString(THUMP_UP_STATUS);
}

From source file:com.baasbox.android.BaasDocument.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(collection);//w  w w .  j av a2  s.co m
    Util.writeOptString(dest, id);
    dest.writeLong(version);
    Util.writeOptString(dest, author);
    Util.writeOptString(dest, creation_date);
    Util.writeOptString(dest, rid);
    dest.writeParcelable(data, 0);

}

From source file:net.phase.wallet.Currency.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(this.date);
    dest.writeLong(amount);
    dest.writeString(from);/*from w ww  .  j ava 2  s  .  co m*/
    dest.writeString(to);
    dest.writeLong(amountin);
    dest.writeLong(amountout);
}

From source file:com.mobilyzer.measurements.RRCTask.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeByte((byte) (stopFlag ? 1 : 0));
    dest.writeLong(duration);/*from w  ww .jav a 2s .co m*/
}

From source file:android.app.Notification.java

/**
 * Flatten this notification from a parcel.
 *//*  w w w.j  a  va 2 s .com*/
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);
    }
}