Example usage for android.os Parcel readString

List of usage examples for android.os Parcel readString

Introduction

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

Prototype

public final String readString() 

Source Link

Document

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

Usage

From source file:io.bunnyblue.noticedog.app.notifications.Notification.java

public Notification(Parcel in) {
    this.expandedInboxText = new ArrayList();
    this.people = new ArrayList();
    this.actions = new ArrayList();
    this.packageName = in.readString();
    this.id = in.readInt();
    this.tag = in.readString();
    this.key = in.readString();
    this.when = in.readLong();
    this.smallIcon = in.readInt();
    this.largeIcon = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.tickerText = in.readString();
    this.contentTitle = in.readString();
    this.contentText = in.readString();
    this.contentInfoText = in.readString();
    this.expandedLargeIconBig = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.expandedContentTitle = in.readString();
    this.expandedContentText = in.readString();
    in.readStringList(this.expandedInboxText);
    in.readList(this.people, Uri.class.getClassLoader());
    this.picture = (Bitmap) in.readParcelable(Bitmap.class.getClassLoader());
    this.priority = in.readInt();
    this.pendingLaunchIntent = (PendingIntent) in.readParcelable(PendingIntent.class.getClassLoader());
    in.readList(this.actions, Action.class.getClassLoader());
}

From source file:com.android.mail.providers.Attachment.java

public Attachment(Parcel in) {
    name = in.readString();
    size = in.readInt();/*from w w w. j  a v a  2s .  c  om*/
    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.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.nestlabs.sdk.Camera.java

protected Camera(Parcel in) {
    super(in);/*  www .  ja  v  a  2s  .  com*/
    mActivityZones = new ArrayList<>();
    mIsStreaming = Utils.readBoolean(in);
    mIsAudioInputEnabled = Utils.readBoolean(in);
    mLastIsOnlineChange = in.readString();
    mIsVideoHistoryEnabled = Utils.readBoolean(in);
    mWebUrl = in.readString();
    mAppUrl = in.readString();
    mIsPublicShareEnabled = Utils.readBoolean(in);
    in.readTypedList(mActivityZones, ActivityZone.CREATOR);
    mPublicShareUrl = in.readString();
    mSnapshotUrl = in.readString();
    mLastEvent = LastEvent.CREATOR.createFromParcel(in);
}

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

private Shoppinglist(Parcel in) {
    this.mErn = in.readString();
    this.mName = in.readString();
    this.mAccess = in.readString();
    long tmpMModified = in.readLong();
    this.mModified = tmpMModified == -1 ? null : new Date(tmpMModified);
    this.mPrevId = in.readString();
    this.mType = in.readString();
    this.mMeta = in.readString();
    this.mShares = (HashMap<String, Share>) in.readSerializable();
    this.mUserId = in.readInt();
    this.mSyncState = in.readInt();
}

From source file:com.nestapi.lib.API.Thermostat.java

private Thermostat(Parcel in) {
    super(in);//  www.j ava 2  s.  co m
    mCanCool = readBoolean(in);
    mCanHeat = readBoolean(in);
    mIsUsingEmergencyHeat = readBoolean(in);
    mHasFan = readBoolean(in);
    mFanTimerTimeout = in.readString();
    mHasLeaf = readBoolean(in);
    mTemperatureScale = in.readString();
    mAwayTemperatureHighF = in.readLong();
    mAwayTemperatureHighC = in.readDouble();
    mAwayTemperatureLowF = in.readLong();
    mAwayTemperatureLowC = in.readDouble();
    mAmbientTemperatureF = in.readLong();
    mAmbientTemperatureC = in.readDouble();

    mFanTimerActive = readBoolean(in);
    mTargetTemperatureF = in.readLong();
    mTargetTemperatureC = in.readDouble();
    mTargetTemperatureHighF = in.readLong();
    mTargetTemperatureHighC = in.readDouble();
    mTargetTemperatureLowF = in.readLong();
    mTargetTemperatureLowC = in.readDouble();
    mHVACmode = (HVACMode) in.readSerializable();
}

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:com.tdispatch.passenger.model.BookingData.java

private BookingData(Parcel in) {
    setLocalId(in.readLong());/*  w  w  w.jav a2 s.com*/
    setPk(in.readString());
    setBookingKey(in.readString());
    setDriverPk(in.readString());
    setPickupDate(in.readString());
    setPickupLocation((LocationData) in.readParcelable(LocationData.class.getClassLoader()));
    setDropoffLocation((LocationData) in.readParcelable(LocationData.class.getClassLoader()));
    setPassengerCount(in.readInt());
    setLuggageCount(in.readInt());
    setFlightNumber(in.readString());
    setDistanceKm(in.readDouble());
    setDistanceMiles(in.readDouble());
    setCustomerName(in.readString());
    setCustomerPhone(in.readString());
    setExtraInfo(in.readString());
    setPaymentStatus(in.readString());
    setPaymentMethod(in.readInt());
    setPrepaid((in.readByte() == 1));
    setCost(in.readString());
    setTotalCost(in.readString());
    setCabOfficeName(in.readString());
    setCabOfficeSlug(in.readString());
    setType(in.readInt());
    setReceiptUrl(in.readString());

    setJson(in.readString());

    int wpCount = in.readInt();
    for (int i = 0; i < wpCount; i++) {
        LocationData ld = (LocationData) in.readParcelable(LocationData.class.getClassLoader());
        mWayPoints.add(ld);
    }
}

From source file:tv.yatse.plugin.avreceiver.api.PluginCustomCommand.java

private void readFromParcel(Parcel in) {
    int version = in.readInt();
    if (version >= 1) {
        mId = in.readLong();/*from  w ww.  ja  va 2  s. c o  m*/
        mColor = in.readInt();
        mDescription = in.readString();
        mDisplayOrder = in.readInt();
        mIcon = in.readString();
        mParam1 = in.readString();
        mParam2 = in.readString();
        mParam3 = in.readString();
        mParam4 = in.readString();
        mParam5 = in.readString();
        mReadOnly = in.readInt() == 1;
        mSource = in.readString();
        mTitle = in.readString();
        mType = in.readInt();
        mUniqueId = in.readString();
    }
}

From source file:com.google.android.apps.dashclock.api.ExtensionData.java

private ExtensionData(Parcel in) {
    int parcelableVersion = in.readInt();
    int parcelableSize = in.readInt();
    int startPosition = in.dataPosition();
    if (parcelableVersion >= 1) {
        this.mVisible = (in.readInt() != 0);
        this.mIcon = in.readInt();
        this.mStatus = in.readString();
        if (TextUtils.isEmpty(this.mStatus)) {
            this.mStatus = null;
        }//w w w.j a  v a  2s .  co m
        this.mExpandedTitle = in.readString();
        if (TextUtils.isEmpty(this.mExpandedTitle)) {
            this.mExpandedTitle = null;
        }
        this.mExpandedBody = in.readString();
        if (TextUtils.isEmpty(this.mExpandedBody)) {
            this.mExpandedBody = null;
        }
        try {
            this.mClickIntent = Intent.parseUri(in.readString(), 0);
        } catch (URISyntaxException ignored) {
        }
    }
    if (parcelableVersion >= 2) {
        this.mContentDescription = in.readString();
        if (TextUtils.isEmpty(this.mContentDescription)) {
            this.mContentDescription = null;
        }
        String iconUriString = in.readString();
        this.mIconUri = TextUtils.isEmpty(iconUriString) ? null : Uri.parse(iconUriString);
    }
    // Only advance the data position if the parcelable version is >= 2. In v1 of the
    // parcelable, there was an awful bug where the parcelableSize was complete nonsense.
    if (parcelableVersion >= 2) {
        in.setDataPosition(startPosition + parcelableSize);
    }
}