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:jp.alessandro.android.iab.Item.java

protected Item(Parcel in) {
    mOriginalJson = in.readString();/*from   ww w  .  jav  a 2s.  c om*/
    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.android.mail.providers.Attachment.java

public Attachment(Parcel in) {
    name = in.readString();/*from w  w  w  .  j av a2  s.  c o m*/
    size = in.readInt();
    uri = in.readParcelable(null);
    contentType = in.readString();
    state = in.readInt();
    destination = in.readInt();
    downloadedSize = in.readInt();
    contentUri = in.readParcelable(null);
    thumbnailUri = in.readParcelable(null);
    previewIntentUri = in.readParcelable(null);
    providerData = in.readString();
    supportsDownloadAgain = in.readInt() == 1;
    type = in.readInt();
    flags = in.readInt();
}

From source file:com.codebutler.farebot.transit.SuicaTransitData.java

public SuicaTransitData(Parcel parcel) {
    mTrips = new SuicaTrip[parcel.readInt()];
    parcel.readTypedArray(mTrips, SuicaTrip.CREATOR);
}

From source file:com.aokyu.dev.pocket.content.Page.java

private Page(Parcel in) {
    super(in.readString());
    mResolvedId = in.readString();//  ww w.  j a va 2 s  .  c om
    mGivenUrl = in.readString();
    mResolvedUrl = in.readString();
    mGivenTitle = in.readString();
    mResolvedTitle = in.readString();
    mIsFavorited = (in.readInt() == 1);
    mState = PageState.valueOf(in.readInt());
    mExcerpt = in.readString();
    mIsArticle = (in.readInt() == 1);
    mImageState = ImageState.valueOf(in.readInt());
    mVideoState = VideoState.valueOf(in.readInt());
    mWordCount = in.readInt();
    in.readStringArray(mTags);
    in.readStringArray(mAuthors);
    mImages = (Image[]) in.readParcelableArray(Image.class.getClassLoader());
    mVideos = (Video[]) in.readParcelableArray(Video.class.getClassLoader());
}

From source file:com.amossys.hooker.common.InterceptEvent.java

/**
 * Constructor which will be used to read in the Parcel.
 * @param in/*from   w  ww .ja  v  a2 s .  c o m*/
 */
private InterceptEvent(Parcel in) {
    idEvent = UUID.fromString(in.readString());
    IDXP = in.readString();
    timestamp = in.readLong();
    relativeTimestamp = in.readLong();
    hookerName = in.readString();
    intrusiveLevel = in.readInt();
    instanceID = in.readInt();
    packageName = in.readString();
    className = in.readString();
    methodName = in.readString();

    readParametersList(in);
    readReturnsEntry(in);
    readDataMap(in);
}

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

public NetworkStats(Parcel parcel) {
    elapsedRealtime = parcel.readLong();
    size = parcel.readInt();
    iface = parcel.createStringArray();//from   www. java  2 s . c o m
    uid = parcel.createIntArray();
    set = parcel.createIntArray();
    tag = parcel.createIntArray();
    rxBytes = parcel.createLongArray();
    rxPackets = parcel.createLongArray();
    txBytes = parcel.createLongArray();
    txPackets = parcel.createLongArray();
    operations = parcel.createLongArray();
}

From source file:com.wootric.androidsdk.objects.Settings.java

private Settings(Parcel in) {
    this.firstSurvey = (Long) in.readValue(Long.class.getClassLoader());
    this.userID = (Long) in.readValue(Long.class.getClassLoader());
    this.accountID = (Long) in.readValue(Long.class.getClassLoader());
    this.adminPanelTimeDelay = in.readInt();
    this.localizedTexts = in.readParcelable(LocalizedTexts.class.getClassLoader());
    this.adminPanelCustomMessage = in.readParcelable(WootricCustomMessage.class.getClassLoader());
    this.localCustomMessage = in.readParcelable(WootricCustomMessage.class.getClassLoader());
    this.timeDelay = in.readInt();
    this.surveyImmediately = in.readByte() != 0;
    this.dailyResponseCap = (Integer) in.readValue(Integer.class.getClassLoader());
    this.registeredPercent = (Integer) in.readValue(Integer.class.getClassLoader());
    this.visitorPercent = (Integer) in.readValue(Integer.class.getClassLoader());
    this.resurveyThrottle = (Integer) in.readValue(Integer.class.getClassLoader());
    this.declineResurveyThrottle = (Integer) in.readValue(Integer.class.getClassLoader());
    this.languageCode = in.readString();
    this.productName = in.readString();
    this.recommendTarget = in.readString();
    this.facebookPageId = in.readString();
    this.twitterPage = in.readString();
    this.customThankYou = in.readParcelable(WootricCustomThankYou.class.getClassLoader());
}

From source file:org.droid2droid.internal.AbstractRemoteAndroidImpl.java

protected final void updateData(Parcel data) // TODO: a placer plutot cot serveur
{
    if (UPDATE_PARCEL) {
        int v = VERSION.SDK_INT;
        data.setDataPosition(0);/*from  w  w w.  jav  a  2 s  .  c  o m*/
        if (v >= 10) // Gingerbread_MR1+
        {
            data.readInt();
        }
        String enforceInterfaceName = data.readString(); // Read the interface name (see Parcel.cpp)
        assert (enforceInterfaceName != null);
        byte[] bufDatas = data.marshall(); // Return all the buffer (with the specific enforceInterface
        int startDatas = data.dataPosition(); // Position after the first string

        // Create a new one with interface name + buffers
        Parcel p = Parcel.obtain();
        p.setDataPosition(0);
        p.writeString(enforceInterfaceName);
        int sizeInterface = p.dataPosition();
        byte[] bufInterface = p.marshall(); // Part of buffer only for the string
        p.recycle();

        // Extract the rest of the buffer
        byte[] result = new byte[sizeInterface + bufDatas.length - startDatas];
        System.arraycopy(bufInterface, 0, result, 0, sizeInterface);
        System.arraycopy(bufDatas, startDatas, result, sizeInterface, bufDatas.length - startDatas);
        data.unmarshall(result, 0, result.length);
    }
}

From source file:com.citrus.sdk.TransactionResponse.java

private TransactionResponse(Parcel in) {
    this.balanceAmount = in.readParcelable(Amount.class.getClassLoader());
    this.transactionAmount = in.readParcelable(Amount.class.getClassLoader());
    this.message = in.readString();
    this.responseCode = in.readString();
    int tmpTransactionStatus = in.readInt();
    this.transactionStatus = tmpTransactionStatus == -1 ? null
            : TransactionStatus.values()[tmpTransactionStatus];
    this.transactionDetails = in.readParcelable(TransactionDetails.class.getClassLoader());
    this.citrusUser = in.readParcelable(CitrusUser.class.getClassLoader());
    int tmpPaymentMode = in.readInt();
    this.paymentMode = tmpPaymentMode == -1 ? null : PaymentMode.values()[tmpPaymentMode];
    this.issuerCode = in.readString();
    this.impsMobileNumber = in.readString();
    this.impsMmid = in.readString();
    this.authIdCode = in.readString();
    this.signature = in.readString();
    this.maskedCardNumber = in.readString();
    this.COD = in.readByte() != 0;
    this.customParamsMap = in.readHashMap(String.class.getClassLoader());
    this.jsonResponse = in.readString();
}

From source file:com.jecelyin.editor.v2.core.text.TextUtils.java

private static void readSpan(Parcel p, Spannable sp, Object o) {
    sp.setSpan(o, p.readInt(), p.readInt(), p.readInt());
}