Java Code Examples for android.os.Parcel#readArrayList()

The following examples show how to use android.os.Parcel#readArrayList() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
SavedState(Parcel in) {
    mAnchorPosition = in.readInt();
    mVisibleAnchorPosition = in.readInt();
    mSpanOffsetsSize = in.readInt();
    if (mSpanOffsetsSize > 0) {
        mSpanOffsets = new int[mSpanOffsetsSize];
        in.readIntArray(mSpanOffsets);
    }

    mSpanLookupSize = in.readInt();
    if (mSpanLookupSize > 0) {
        mSpanLookup = new int[mSpanLookupSize];
        in.readIntArray(mSpanLookup);
    }
    mReverseLayout = in.readInt() == 1;
    mAnchorLayoutFromEnd = in.readInt() == 1;
    mLastLayoutRTL = in.readInt() == 1;
    @SuppressWarnings("unchecked")
    List<LazySpanLookup.FullSpanItem> fullSpanItems =
            in.readArrayList(LazySpanLookup.FullSpanItem.class.getClassLoader());
    mFullSpanItems = fullSpanItems;
}
 
Example 2
protected MultiReddit(Parcel in) {
    path = in.readString();
    displayName = in.readString();
    name = in.readString();
    description = in.readString();
    copiedFrom = in.readString();
    iconUrl = in.readString();
    visibility = in.readString();
    owner = in.readString();
    nSubscribers = in.readInt();
    createdUTC = in.readLong();
    over18 = in.readByte() != 0;
    isSubscriber = in.readByte() != 0;
    isFavorite = in.readByte() != 0;
    subreddits = in.readArrayList(MultiReddit.class.getClassLoader());
}
 
Example 3
Source Project: xmrwallet   File: TransactionInfo.java    License: Apache License 2.0 6 votes vote down vote up
private TransactionInfo(Parcel in) {
    direction = Direction.fromInteger(in.readInt());
    isPending = in.readByte() != 0;
    isFailed = in.readByte() != 0;
    amount = in.readLong();
    fee = in.readLong();
    blockheight = in.readLong();
    hash = in.readString();
    timestamp = in.readLong();
    paymentId = in.readString();
    account = in.readInt();
    subaddress = in.readInt();
    confirmations = in.readLong();
    subaddressLabel = in.readString();
    transfers = in.readArrayList(Transfer.class.getClassLoader());
    txKey = in.readString();
    notes = in.readString();
    address = in.readString();
}
 
Example 4
Source Project: SoloPi   File: OperationNode.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Parcel生成
 * @param in
 */
private OperationNode(Parcel in) {
    className = in.readString();
    packageName = in.readString();
    text = in.readString();
    resourceId = in.readString();
    description = in.readString();
    xpath = in.readString();
    id = in.readString();
    depth = in.readInt();
    nodeBound = in.readParcelable(Rect.class.getClassLoader());
    assistantNodes = in.readArrayList(AssistantNode.class.getClassLoader());
    extra = in.readHashMap(String.class.getClassLoader());
    nodeType = in.readString();
}
 
Example 5
Source Project: spotify-web-api-android   File: CursorPager.java    License: MIT License 5 votes vote down vote up
protected CursorPager(Parcel in) {
    this.href = in.readString();
    this.items = in.readArrayList(ArrayList.class.getClassLoader());
    this.limit = in.readInt();
    this.next = in.readString();
    this.cursors = in.readParcelable(Cursor.class.getClassLoader());
    this.total = in.readInt();
}
 
Example 6
Source Project: geopaparazzi   File: Road.java    License: GNU General Public License v3.0 5 votes vote down vote up
private Road(Parcel in) {
    mStatus = in.readInt();
    mLength = in.readDouble();
    mDuration = in.readDouble();
    mNodes = in.readArrayList(RoadNode.class.getClassLoader());
    mLegs = in.readArrayList(RoadLeg.class.getClassLoader());
    mRouteHigh = in.readArrayList(GeoPoint.class.getClassLoader());
    mBoundingBox = in.readParcelable(BoundingBox.class.getClassLoader());
}
 
Example 7
Source Project: alltv   File: ChannelData.java    License: MIT License 5 votes vote down vote up
@SuppressWarnings("unchecked")
protected ChannelData(Parcel in) {
    this.mSiteType = in.readInt();
    this.mQualityType = in.readInt();
    this.mAuthKey = in.readString();
    this.mId = in.readString();
    this.mCategoryId = in.readInt();
    this.mTitle = in.readString();
    this.mProgramName = in.readString();
    this.mStillImageUrl = in.readString();
    this.mAudioChannel = (in.readByte() != 0);
    this.mFavorite = in.readInt();
    this.mItemIndex = in.readInt();
    this.mEPG = in.readArrayList(EPGData.class.getClassLoader());
}
 
Example 8
Source Project: PaintView   File: SavedState.java    License: MIT License 5 votes vote down vote up
private SavedState(Parcel in) {
    super(in);

    try {
        mDrawShapes = in.readArrayList(DrawShape.class.getClassLoader());

        mLastDimensionW = in.readInt();
        mLastDimensionH = in.readInt();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
 
Example 9
private Contact(Parcel in) {
    id = in.readLong();
    lookupKey = in.readString();
    rawId = in.readLong();
    dataAnniversaryId = in.readLong();
    name = in.readString();
    imageThumbnailUri = in.readParcelable(Uri.class.getClassLoader());
    imageUri = in.readParcelable(Uri.class.getClassLoader());
    setBirthday((DateUnknownYear) in.readParcelable(DateUnknownYear.class.getClassLoader()));
    phoneNumbers = in.readArrayList(PhoneNumber.class.getClassLoader());
}
 
Example 10
@Override
public FileTraversal createFromParcel(Parcel source) {
    FileTraversal ft = new FileTraversal();
    ft.filename = source.readString();
    ft.filecontent = source.readArrayList(FileTraversal.class.getClassLoader());

    return ft;
}
 
Example 11
private SavedState(Parcel in) {
    super(in);
    mHour = in.readInt();
    mMinute = in.readInt();
    mIs24HourMode = (in.readInt() == 1);
    mInKbMode = (in.readInt() == 1);
    mTypedTimes = in.readArrayList(getClass().getClassLoader());
    mCurrentItemShowing = in.readInt();
}
 
Example 12
Source Project: letv   File: AdElementMime.java    License: Apache License 2.0 5 votes vote down vote up
private AdElementMime(Parcel source) {
    boolean z = true;
    this.errCode = -1;
    this.hadExposed = false;
    this.hadComplete = false;
    this.vastTag = source.readInt();
    this.adTag = source.readInt();
    this.adReqType = source.readInt();
    this.adZoneType = source.readInt();
    this.cuePointType = source.readInt();
    this.dspType = source.readInt();
    this.hasProgressTracking = source.readInt();
    this.commonType = source.readInt();
    this.mediaFileUrl = source.readString();
    this.mediaFileType = source.readInt();
    this.duration = source.readInt();
    this.clickShowType = source.readInt();
    this.text = source.readString();
    this.textEx = source.readString();
    this.isRequestOffline = source.readInt();
    this.vid = source.readString();
    this.pid = source.readString();
    this.sid = source.readString();
    this.streamURL = source.readString();
    this.index = source.readInt();
    if (source.readInt() != 1) {
        z = false;
    }
    this.hadExposed = z;
    this.adAliList = source.readArrayList(AdAli.class.getClassLoader());
}
 
Example 13
Source Project: SublimePicker   File: SublimeTimePicker.java    License: Apache License 2.0 5 votes vote down vote up
private SavedState(Parcel in) {
    super(in);
    mHour = in.readInt();
    mMinute = in.readInt();
    mIs24HourMode = (in.readInt() == 1);
    mInKbMode = (in.readInt() == 1);
    //noinspection unchecked
    mTypedTimes = in.readArrayList(getClass().getClassLoader());
    mCurrentItemShowing = in.readInt();
}
 
Example 14
@Override
public FileTraversal createFromParcel(Parcel source) {
    FileTraversal ft = new FileTraversal();
    ft.filename = source.readString();
    ft.filecontent = source.readArrayList(FileTraversal.class.getClassLoader());

    return ft;
}
 
Example 15
/**
 * Unmarshalls a list of {@link Parcelable}.
 * Workaround for bug: https://code.google.com/p/android/issues/detail?id=6822
 */
@SuppressWarnings("unchecked")
public static <T extends Parcelable> ArrayList<T> unmarshallParcelableList(byte[] bytes,
    ClassLoader classLoader) {
  Parcel parcel = Parcel.obtain();
  parcel.unmarshall(bytes, 0, bytes.length);
  parcel.setDataPosition(0);
  return parcel.readArrayList(classLoader);
}
 
Example 16
Source Project: spotify-web-api-android   File: Pager.java    License: MIT License 5 votes vote down vote up
protected Pager(Parcel in) {
    this.href = in.readString();
    this.items = in.readArrayList(ArrayList.class.getClassLoader());
    this.limit = in.readInt();
    this.next = in.readString();
    this.offset = in.readInt();
    this.previous = in.readString();
    this.total = in.readInt();
}
 
Example 17
private PageStateSavedState(Parcel source) {
    super(source);
    mLoading = source.readInt();
    mError = source.readInt();
    mEmpty = source.readInt();
    mLoadingColors = source.readArrayList(Integer.class.getClassLoader());
    mEmptyRippleColor = source.readInt();
    mEmptyImage = source.readInt();
    mEmptyPromt = source.readString();
    mErrorRippleColor = source.readInt();
    mErrorImage = source.readInt();
    mErrorPromt = source.readString();
}
 
Example 18
Source Project: Patio   File: Patio.java    License: MIT License 4 votes vote down vote up
public SavedState(Parcel in) {
    super(in);
    mThumbnailsPaths = in.readArrayList(String.class.getClassLoader());
    mTakePictureFilePath = in.readString();
}
 
Example 19
public MapPointPack(Parcel p) {
    isPolygon = p.readInt() == 1;
    resource = p.readInt();
    points = p.readArrayList(getClass().getClassLoader());
}
 
Example 20
Source Project: sealrtc-android   File: MediaType.java    License: MIT License 4 votes vote down vote up
protected MediaType(Parcel in) {
    mimeType = in.readString();
    colorFormats = in.readArrayList(ColorFormat.class.getClassLoader());
}