Example usage for android.os Parcel readInt

List of usage examples for android.os Parcel readInt

Introduction

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

Prototype

public final int readInt() 

Source Link

Document

Read an integer value from the parcel at the current dataPosition().

Usage

From source file:org.mozilla.mozstumbler.service.datahandling.StumblerBundle.java

private StumblerBundle(Parcel in) {
    mWifiData = new HashMap<String, ScanResult>();
    mCellData = new HashMap<String, CellInfo>();

    Bundle wifiBundle = in.readBundle(ScanResult.class.getClassLoader());
    Bundle cellBundle = in.readBundle(CellInfo.class.getClassLoader());

    Collection<String> scans = wifiBundle.keySet();
    for (String s : scans) {
        mWifiData.put(s, (ScanResult) wifiBundle.get(s));
    }/*from w ww.  j  a v a2  s .  c o  m*/

    Collection<String> cells = cellBundle.keySet();
    for (String c : cells) {
        mCellData.put(c, (CellInfo) cellBundle.get(c));
    }

    mGpsPosition = in.readParcelable(Location.class.getClassLoader());
    mPhoneType = in.readInt();
}

From source file:com.chuhan.privatecalc.fragment.os.BackStackState.java

public BackStackState(Parcel in) {
    mOps = in.createIntArray();//from w ww.j  a  v a 2  s.co m
    mTransition = in.readInt();
    mTransitionStyle = in.readInt();
    mName = in.readString();
    mIndex = in.readInt();
    mBreadCrumbTitleRes = in.readInt();
    mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
    mBreadCrumbShortTitleRes = in.readInt();
    mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
}

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

private ShoppinglistItem(Parcel in) {
    this.mId = in.readString();
    this.mErn = in.readString();
    this.mTick = in.readByte() != 0;
    this.mOfferId = in.readString();
    this.mCount = in.readInt();
    this.mDescription = in.readString();
    this.mCreator = in.readString();
    long tmpMModified = in.readLong();
    this.mModified = tmpMModified == -1 ? null : new Date(tmpMModified);
    this.mOffer = in.readParcelable(Offer.class.getClassLoader());
    this.mShoppinglistId = in.readString();
    this.mPrevId = in.readString();
    this.mMeta = in.readString();
    this.mUserId = in.readInt();
    this.mSyncState = in.readInt();
}

From source file:io.github.hidroh.materialistic.data.HackerNewsItem.java

@Synthetic
HackerNewsItem(Parcel source) {
    id = source.readLong();/*from  w w w  .  jav a2s  . c  om*/
    title = source.readString();
    time = source.readLong();
    by = source.readString();
    kids = source.createLongArray();
    url = source.readString();
    text = source.readString();
    type = source.readString();
    favorite = source.readInt() != 0;
    descendants = source.readInt();
    score = source.readInt();
    favorite = source.readInt() == 1;
    viewed = source.readInt() == 1;
    localRevision = source.readInt();
    level = source.readInt();
    dead = source.readInt() == 1;
    deleted = source.readInt() == 1;
    collapsed = source.readInt() == 1;
    contentExpanded = source.readInt() == 1;
    rank = source.readInt();
    lastKidCount = source.readInt();
    hasNewDescendants = source.readInt() == 1;
    parent = source.readLong();
    voted = source.readInt() == 1;
    pendingVoted = source.readInt() == 1;
    next = source.readLong();
    previous = source.readLong();
}

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

private Offer(Parcel in) {
    this.mErn = in.readString();
    this.mHeading = in.readString();
    this.mDescription = in.readString();
    this.mCatalogPage = in.readInt();
    this.mPricing = in.readParcelable(Pricing.class.getClassLoader());
    this.mQuantity = in.readParcelable(Quantity.class.getClassLoader());
    this.mImages = in.readParcelable(Images.class.getClassLoader());
    this.mLinks = in.readParcelable(Links.class.getClassLoader());
    long tmpMRunFrom = in.readLong();
    this.mRunFrom = tmpMRunFrom == -1 ? null : new Date(tmpMRunFrom);
    long tmpMRunTill = in.readLong();
    this.mRunTill = tmpMRunTill == -1 ? null : new Date(tmpMRunTill);
    this.mDealerUrl = in.readString();
    this.mDealerId = in.readString();
    this.mStoreUrl = in.readString();
    this.mStoreId = in.readString();
    this.mCatalogUrl = in.readString();
    this.mCatalogId = in.readString();
    this.mCatalog = in.readParcelable(Catalog.class.getClassLoader());
    this.mDealer = in.readParcelable(Dealer.class.getClassLoader());
    this.mStore = in.readParcelable(Store.class.getClassLoader());
}

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

public VKApiCommunityFull(Parcel in) {
    super(in);//from  w w  w .  j  a v  a2s .c  o m
    this.city = in.readParcelable(VKApiCity.class.getClassLoader());
    this.country = in.readParcelable(VKApiCountry.class.getClassLoader());
    this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader());
    this.place = in.readParcelable(VKApiPlace.class.getClassLoader());
    this.description = in.readString();
    this.wiki_page = in.readString();
    this.members_count = in.readInt();
    this.counters = in.readParcelable(Counters.class.getClassLoader());
    this.start_date = in.readLong();
    this.end_date = in.readLong();
    this.can_post = in.readByte() != 0;
    this.can_see_all_posts = in.readByte() != 0;
    this.status = in.readString();
    this.contacts = in.readParcelable(VKList.class.getClassLoader());
    this.links = in.readParcelable(VKList.class.getClassLoader());
    this.fixed_post = in.readInt();
    this.verified = in.readByte() != 0;
    this.site = in.readString();
    this.blacklisted = in.readByte() != 0;
}

From source file:com.paranoid.gerrit.objects.JSONCommit.java

public JSONCommit(Parcel parcel) {
    mKind = parcel.readString();/*from  ww w .j av a2  s .  c o  m*/
    mId = parcel.readString();
    mProject = parcel.readString();
    mBranch = parcel.readString();
    mChangeId = parcel.readString();
    mSubject = parcel.readString();
    mStatus = Status.valueOf(parcel.readString());
    mCreatedDate = parcel.readString();
    mLastUpdatedDate = parcel.readString();
    mIsMergeable = parcel.readByte() == 1;
    mSortKey = parcel.readString();
    mCommitNumber = parcel.readInt();
    mCurrentRevision = parcel.readString();
    mOwnerObject = parcel.readParcelable(CommitterObject.class.getClassLoader());
    mPatchSet = parcel.readParcelable(CommitInfo.class.getClassLoader());
    mFileInfos = parcel.readParcelable(FileInfoList.class.getClassLoader());
    mWebAddress = parcel.readString();
    mReviewers = parcel.readParcelable(ReviewerList.class.getClassLoader());
    mPatchSetNumber = parcel.readInt();
    mMessagesList = parcel.readArrayList(CommitComment.class.getClassLoader());
}

From source file:de.mrapp.android.preference.activity.PreferenceHeader.java

/**
 * Creates a new navigation item, which categorizes multiple preferences.
 *
 * @param source//from  w w  w .  j a  va  2 s  . c o m
 *         The parcel, the navigation item should be created from, as an instance of the class
 *         {@link Parcel}. The parcel may not be null
 */
@SuppressWarnings("deprecation")
private PreferenceHeader(@NonNull final Parcel source) {
    setTitle(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source));
    setSummary(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source));
    setBreadCrumbTitle(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source));
    setBreadCrumbShortTitle(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source));
    setIcon(new BitmapDrawable((Bitmap) source.readParcelable(Bitmap.class.getClassLoader())));
    setFragment(source.readString());
    setExtras(source.readBundle(getClass().getClassLoader()));

    if (source.readInt() != 0) {
        setIntent(Intent.CREATOR.createFromParcel(source));
    }
}

From source file:com.orbar.pxdemo.Model.FiveZeroZeroImageBean.java

public FiveZeroZeroImageBean(Parcel source) {
    Log.v(TAG, "ParcelData(Parcel source): time to put back parcel data");

    id = source.readInt();
    userId = source.readInt();/*w  ww.j a v a 2  s  .co m*/
    name = source.readString();
    description = source.readString();
    camera = source.readString();
    lens = source.readString();
    focalLength = source.readString();
    iso = source.readString();
    shutterSpeed = source.readString();
    aperture = source.readString();
    timesViewed = source.readInt();
    rating = source.readFloat();
    status = source.readInt();
    createdAt = source.readString();
    category = source.readInt();
    location = source.readString();
    privacy = source.readByte() == 1;
    latitude = source.readString();
    longitude = source.readString();
    takenAt = source.readString();
    hiResUploaded = source.readInt();
    forSale = source.readByte() == 1;
    width = source.readInt();
    height = source.readInt();
    votesCount = source.readInt();
    favoritesCount = source.readInt();
    commentsCount = source.readInt();
    nsfw = source.readByte() == 1;
    salesCount = source.readInt();
    highestRating = source.readFloat();
    highestRatingDate = source.readString();
    licenseType = source.readInt();
    imageUrl = source.readString();
    storeDownload = source.readByte() == 1;
    storePrint = source.readByte() == 1;
    voted = source.readByte() == 1;
    favorited = source.readByte() == 1;
    purchased = source.readByte() == 1;

    userBean = (FiveZeroZeroUserBean) source.readParcelable(FiveZeroZeroUserBean.class.getClassLoader());
}

From source file:fr.free.nrw.commons.Media.java

@SuppressWarnings("unchecked")
public Media(Parcel in) {
    localUri = in.readParcelable(Uri.class.getClassLoader());
    thumbUrl = in.readString();/*from w  w  w  .j a  v  a 2s.co  m*/
    imageUrl = in.readString();
    filename = in.readString();
    description = in.readString();
    dataLength = in.readLong();
    dateCreated = (Date) in.readSerializable();
    dateUploaded = (Date) in.readSerializable();
    creator = in.readString();
    tags = (HashMap<String, Object>) in.readSerializable();
    width = in.readInt();
    height = in.readInt();
    license = in.readString();
    if (categories != null) {
        in.readStringList(categories);
    }
    descriptions = in.readHashMap(ClassLoader.getSystemClassLoader());
}