Example usage for android.os Parcel readLong

List of usage examples for android.os Parcel readLong

Introduction

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

Prototype

public final long readLong() 

Source Link

Document

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

Usage

From source file:saphion.batterycaster.providers.Alarm.java

Alarm(Parcel p) {
    id = p.readLong();
    enabled = p.readInt() == 1;//www .ja  v a  2 s. c  o  m
    battery = p.readInt();
    charge = p.readInt();
    daysOfWeek = new DaysOfWeek(p.readInt());
    vibrate = p.readInt() == 1;
    label = p.readString();
    alert = (Uri) p.readParcelable(null);
    deleteAfterUse = p.readInt() == 1;
}

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

protected HttpTask(Parcel in) {
    super(in);
    duration = in.readLong();
    dataConsumed = in.readLong();
}

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

protected HttpTask_original(Parcel in) {
    super(in);
    duration = in.readLong();
    dataConsumed = in.readLong();
}

From source file:istat.android.telephony.sms.Sms.java

protected Sms(Parcel in) {
    _id = in.readString();/*from  w  ww  .j a va  2  s  . c o m*/
    thread_id = in.readString();
    address = in.readString();
    person = in.readString();
    date = in.readLong();
    protocol = in.readString();
    read = in.readString();
    status = in.readString();
    type = in.readString();
    reply_path_present = in.readString();
    subject = in.readString();
    body = in.readString();
    service_center = in.readString();
    locked = in.readString();
}

From source file:com.codebutler.farebot.transit.suica.SuicaTrip.java

private SuicaTrip(Parcel parcel) {
    mBalance = parcel.readLong();

    mConsoleType = parcel.readInt();/*w w  w.  j a  v  a 2s .co m*/
    mProcessType = parcel.readInt();

    mIsProductSale = (parcel.readInt() == 1);
    mIsBus = (parcel.readInt() == 1);

    mIsCharge = (parcel.readInt() == 1);

    mFare = parcel.readLong();
    mTimestamp = new Date(parcel.readLong());
    mRegionCode = parcel.readInt();

    mRailEntranceLineCode = parcel.readInt();
    mRailEntranceStationCode = parcel.readInt();
    mRailExitLineCode = parcel.readInt();
    mRailExitStationCode = parcel.readInt();

    mBusLineCode = parcel.readInt();
    mBusStopCode = parcel.readInt();

    if (parcel.readInt() == 1) {
        mStartStation = parcel.readParcelable(Station.class.getClassLoader());
    }
    if (parcel.readInt() == 1) {
        mEndStation = parcel.readParcelable(Station.class.getClassLoader());
    }
}

From source file:fr.free.nrw.commons.contributions.Contribution.java

public Contribution(Parcel in) {
    super(in);// w  w  w .j av a  2 s .  c o  m
    contentUri = in.readParcelable(Uri.class.getClassLoader());
    source = in.readString();
    state = in.readInt();
    transferred = in.readLong();
    isMultiple = in.readInt() == 1;
}

From source file:jp.alessandro.android.iab.Item.java

protected Item(Parcel in) {
    mOriginalJson = in.readString();// w w w. j  a va  2 s  . c  o m
    mSku = in.readString();
    mType = in.readString();
    mTitle = in.readString();
    mDescription = in.readString();
    mCurrency = in.readString();
    mPrice = in.readString();
    mPriceMicros = in.readLong();
    mSubscriptionPeriod = in.readString();
    mFreeTrialPeriod = in.readString();
    mIntroductoryPrice = in.readString();
    mIntroductoryPriceAmountMicros = in.readLong();
    mIntroductoryPricePeriod = in.readString();
    mIntroductoryPriceCycles = in.readInt();
}

From source file:com.putlocker.upload.concurrency.PutlockerDownloadJob.java

private PutlockerDownloadJob(Parcel in) {
    super(PutlockerUpDownloadJob.DOWNLOAD_JOB);
    _id = in.readInt();/*from   ww  w. j av  a  2  s.  c  om*/
    _fileName = in.readString();
    url = in.readString();
    _fileSize = in.readLong();
    type = in.readInt() == PutlockerDownloadJob.DownloadType.DownloadTypeFile.ordinal()
            ? PutlockerDownloadJob.DownloadType.DownloadTypeFile
            : PutlockerDownloadJob.DownloadType.DownloadTypeStream;

    int numberOfCookies = in.readInt();
    cookies = new Vector<Cookie>();
    for (int i = 0; i < numberOfCookies; i++) {
        BasicClientCookie cookie = new BasicClientCookie(in.readString(), in.readString());
        cookie.setDomain(in.readString());
        cookies.add(cookie);
    }

    _fileLocation = in.readString();
    _originalFileLocation = in.readString();
}

From source file:com.fanfou.app.opensource.api.bean.User.java

public User(final Parcel in) {
    this.id = in.readString();
    this.ownerId = in.readString();
    this.createdAt = new Date(in.readLong());
    this.type = in.readInt();

    this.screenName = in.readString();
    this.location = in.readString();
    this.gender = in.readString();
    this.birthday = in.readString();

    this.description = in.readString();
    this.profileImageUrl = in.readString();
    this.url = in.readString();
    this.protect = in.readInt() == 0 ? false : true;

    this.followersCount = in.readInt();
    this.friendsCount = in.readInt();
    this.favouritesCount = in.readInt();
    this.statusesCount = in.readInt();

    this.following = in.readInt() == 0 ? false : true;
}

From source file:com.fanfou.app.opensource.api.bean.DirectMessage.java

public DirectMessage(final Parcel in) {
    this.id = in.readString();
    this.ownerId = in.readString();
    this.createdAt = new Date(in.readLong());
    this.type = in.readInt();

    this.senderId = in.readString();
    this.recipientId = in.readString();
    this.text = in.readString();

    this.senderScreenName = in.readString();
    this.recipientScreenName = in.readString();
    this.senderProfileImageUrl = in.readString();
    this.recipientProfileImageUrl = in.readString();

    this.threadUserId = in.readString();
    this.threadUserName = in.readString();

    this.isRead = in.readInt() == 0 ? false : true;
}