Example usage for android.os Parcel writeInt

List of usage examples for android.os Parcel writeInt

Introduction

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

Prototype

public final void writeInt(int val) 

Source Link

Document

Write an 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.owncloud.android.datamodel.OCFile.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(mId);/*from  ww w  . ja v  a 2s  .  c o  m*/
    dest.writeLong(mParentId);
    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.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);//from  ww  w  .jav  a2s  . c  o 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:fiskinfoo.no.sintef.fiskinfoo.Baseclasses.ToolEntry.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(id);/*w ww . jav  a2  s  . c om*/
    dest.writeList(coordinates);
    dest.writeString(geometry.toString());
    dest.writeString(IMO);
    dest.writeString(IRCS);
    dest.writeString(MMSI);
    dest.writeString(RegNum);
    dest.writeString(VesselName);
    dest.writeString(VesselPhone);
    dest.writeString(VesselEmail);
    dest.writeString(ContactPersonEmail);
    dest.writeString(ContactPersonPhone);
    dest.writeString(ContactPersonName);
    dest.writeString(ToolTypeCode.toString());
    dest.writeString(Source);
    dest.writeString(Comment);
    dest.writeString(ShortComment);
    dest.writeString(RemovedTime);
    dest.writeString(SetupDateTime);
    dest.writeString(ToolId);
    dest.writeString(LastChangedDateTime);
    dest.writeString(LastChangedBySource);
    dest.writeString(toolStatus.toString());
    dest.writeInt(toolLogId);
}

From source file:android.app.Notification.java

/**
 * Flatten this notification from a parcel.
 *///w ww.  jav 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);
    }
}

From source file:android.app.FragmentState.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mClassName);//from  w ww . java2 s .  co  m
    dest.writeInt(mIndex);
    dest.writeInt(mFromLayout ? 1 : 0);
    dest.writeInt(mFragmentId);
    dest.writeInt(mContainerId);
    dest.writeString(mTag);
    dest.writeInt(mRetainInstance ? 1 : 0);
    dest.writeInt(mDetached ? 1 : 0);
    dest.writeBundle(mArguments);
    dest.writeBundle(mSavedFragmentState);
}