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

The following examples show how to use android.os.Parcel#createTypedArrayList() . 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
Source Project: VirtualAPK   File: BookManagerImpl.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public List<Book> getBookList() throws RemoteException {
    Parcel data = Parcel.obtain();
    Parcel reply = Parcel.obtain();
    List<Book> result;
    try {
        data.writeInterfaceToken(DESCRIPTOR);
        mRemote.transact(TRANSACTION_getBookList, data, reply, 0);
        reply.readException();
        result = reply.createTypedArrayList(Book.CREATOR);
    } finally {
        reply.recycle();
        data.recycle();
    }
    return result;
}
 
Example 2
Source Project: mobikul-standalone-pos   File: Product.java    License: MIT License 6 votes vote down vote up
protected Product(Parcel in) {
    pId = in.readInt();
    productName = in.readString();
    productShortDes = in.readString();
    sku = in.readString();
    isEnabled = in.readByte() != 0;
    price = in.readString();
    formattedPrice = in.readString();
    specialPrice = in.readString();
    formattedSpecialPrice = in.readString();
    isTaxableGoodsApplied = in.readByte() != 0;
    trackInventory = in.readByte() != 0;
    quantity = in.readString();
    stock = in.readByte() != 0;
    image = in.readString();
    weight = in.readString();
    barCode = in.readString();
    productCategories = in.createTypedArrayList(ProductCategoryModel.CREATOR);
    cartQty = in.readString();
    cartProductSubtotal = in.readString();
    displayError = in.readByte() != 0;
}
 
Example 3
protected Profile(Parcel in) {
    name = in.readString();
    description = in.readString();
    creationdate = in.readString();
    modifieddate = in.readString();
    color = in.readString();
    mapView = in.readString();
    active = in.readByte() != 0;
    sdcardPath = in.readString();
    profileTags = in.readParcelable(ProfileTags.class.getClassLoader());
    profileProject = in.readParcelable(ProfileProjects.class.getClassLoader());
    basemapsList = in.createTypedArrayList(ProfileBasemaps.CREATOR);
    spatialiteList = in.createTypedArrayList(ProfileSpatialitemaps.CREATOR);
    otherFilesList = in.createTypedArrayList(ProfileOtherfiles.CREATOR);
    vendorAttributes = in.readHashMap(HashMap.class.getClassLoader());
}
 
Example 4
Source Project: data-mediator   File: HistoryData.java    License: Apache License 2.0 6 votes vote down vote up
protected HistoryData(Parcel in) {
    this.age = in.readInt();
    this.id = in.readLong();
    this.testShort = (short) in.readInt();
    this.testByte = in.readByte();
    this.testBoolean = in.readByte() != 0;
    this.testFloat = in.readFloat();
    this.testDouble = in.readDouble();
    this.testChar = (char) in.readInt();
    this.testLONG = (Long) in.readValue(Long.class.getClassLoader());
    this.testDOUBLE = (Double) in.readValue(Double.class.getClassLoader());
    this.testCharacter = (Character) in.readSerializable();
    this.testBOOLEAN = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.testSHORT = (Short) in.readValue(Short.class.getClassLoader());
    this.name = in.readString();
    this.data = in.readParcelable(ResultData.class.getClassLoader());
    this.datas = in.createTypedArrayList(ResultData.CREATOR);
    this.testArrayResultData = in.createTypedArray(ResultData.CREATOR);
    this.testArrayInt = in.createIntArray();
    this.testArrayInteger = (Integer[]) in.readArray(Integer[].class.getClassLoader());
}
 
Example 5
@Override
public FlowParameters createFromParcel(Parcel in) {
    String appName = in.readString();
    List<IdpConfig> providerInfo = in.createTypedArrayList(IdpConfig.CREATOR);
    int themeId = in.readInt();
    int logoId = in.readInt();
    String termsOfServiceUrl = in.readString();
    String privacyPolicyUrl = in.readString();
    boolean enableCredentials = in.readInt() != 0;
    boolean enableHints = in.readInt() != 0;
    boolean enableAnonymousUpgrade = in.readInt() != 0;
    boolean alwaysShowProviderChoice = in.readInt() != 0;
    String emailLink = in.readString();
    AuthMethodPickerLayout customLayout = in.readParcelable(AuthMethodPickerLayout.class.getClassLoader());

    return new FlowParameters(
            appName,
            providerInfo,
            themeId,
            logoId,
            termsOfServiceUrl,
            privacyPolicyUrl,
            enableCredentials,
            enableHints,
            enableAnonymousUpgrade,
            alwaysShowProviderChoice,
            emailLink,
            customLayout);
}
 
Example 6
Source Project: letv   File: IMediaSession.java    License: Apache License 2.0 5 votes vote down vote up
public List<QueueItem> getQueue() throws RemoteException {
    Parcel _data = Parcel.obtain();
    Parcel _reply = Parcel.obtain();
    try {
        _data.writeInterfaceToken(Stub.DESCRIPTOR);
        this.mRemote.transact(29, _data, _reply, 0);
        _reply.readException();
        List<QueueItem> _result = _reply.createTypedArrayList(QueueItem.CREATOR);
        return _result;
    } finally {
        _reply.recycle();
        _data.recycle();
    }
}
 
Example 7
Source Project: px-android   File: CongratsResponse.java    License: MIT License 5 votes vote down vote up
Discount(final Parcel in) {
    title = in.readString();
    subtitle = in.readString();
    action = in.readParcelable(Action.class.getClassLoader());
    actionDownload = in.readParcelable(DownloadApp.class.getClassLoader());
    touchpoint = in.readParcelable(PXBusinessTouchpoint.class.getClassLoader());
    items = in.createTypedArrayList(Item.CREATOR);
}
 
Example 8
Source Project: CountryCurrencyPicker   File: Currency.java    License: Apache License 2.0 5 votes vote down vote up
private Currency(Parcel in) {
    this.code = in.readString();
    this.name = in.readString();
    this.symbol = in.readString();
    this.flagId = (Integer) in.readValue(Integer.class.getClassLoader());
    this.countries = in.createTypedArrayList(Country.CREATOR);
    this.countriesNames = in.createStringArrayList();
}
 
Example 9
private Contact(Parcel in) {
  this(in.readParcelable(Name.class.getClassLoader()),
       in.readString(),
       in.createTypedArrayList(Phone.CREATOR),
       in.createTypedArrayList(Email.CREATOR),
       in.createTypedArrayList(PostalAddress.CREATOR),
       in.readParcelable(Avatar.class.getClassLoader()));
}
 
Example 10
/** Read from Parcel. */
private ActivityRelaunchItem(Parcel in) {
    mPendingResults = in.createTypedArrayList(ResultInfo.CREATOR);
    mPendingNewIntents = in.createTypedArrayList(ReferrerIntent.CREATOR);
    mConfigChanges = in.readInt();
    mConfig = in.readTypedObject(MergedConfiguration.CREATOR);
    mPreserveWindow = in.readBoolean();
}
 
Example 11
Source Project: QuranAndroid   File: Aya.java    License: GNU General Public License v3.0 5 votes vote down vote up
protected Aya(Parcel in) {
    text = in.readString();
    name = in.readString();
    nameEnglish = in.readString();
    pageNumber = in.readInt();
    ayaID = in.readInt();
    suraID = in.readInt();
    ayaRects = in.createTypedArrayList(RectF.CREATOR);
}
 
Example 12
protected Recommendations(Parcel in) {
    seeds = in.createTypedArrayList(Seed.CREATOR);
    tracks = in.createTypedArrayList(Track.CREATOR);
}
 
Example 13
protected UserTags(Parcel in) {
    this.custom = in.createTypedArrayList(Tag.CREATOR);
    this.aggregated = in.createTypedArrayList(Tag.CREATOR);
}
 
Example 14
public Batch(final Parcel in) {
	super(in);
       mOperations = in.createTypedArrayList(ContentProviderOperation.CREATOR);
}
 
Example 15
Source Project: Neptune   File: PluginPackageInfo.java    License: Apache License 2.0 4 votes vote down vote up
protected IntentInfo(Parcel in) {
    mFilter = in.createTypedArrayList(IntentFilter.CREATOR);
}
 
Example 16
protected NestedParcelable(Parcel in) {
    this.bitmap = in.readParcelable(Bitmap.class.getClassLoader());
    this.bitmapList = in.createTypedArrayList(Bitmap.CREATOR);
}
 
Example 17
Source Project: accept-sdk-android   File: ResponseMessages.java    License: MIT License 4 votes vote down vote up
public void readFromParcel(Parcel in) {
  mResultCode = in.readString();
  mMessageList = in.createTypedArrayList(Message.CREATOR);
}
 
Example 18
protected GetAlbumInfoResp(Parcel in) {
    this.albumInfo = in.readParcelable(AlbumInfo.class.getClassLoader());
    this.songlist = in.createTypedArrayList(SongInfo.CREATOR);
}
 
Example 19
protected BookShelfBean(Parcel in) {
    noteUrl = in.readString();
    if (in.readByte() == 0) {
        durChapter = null;
    } else {
        durChapter = in.readInt();
    }
    if (in.readByte() == 0) {
        durChapterPage = null;
    } else {
        durChapterPage = in.readInt();
    }
    if (in.readByte() == 0) {
        finalDate = null;
    } else {
        finalDate = in.readLong();
    }
    byte tmpHasUpdate = in.readByte();
    hasUpdate = tmpHasUpdate == 0 ? null : tmpHasUpdate == 1;
    if (in.readByte() == 0) {
        newChapters = null;
    } else {
        newChapters = in.readInt();
    }
    tag = in.readString();
    if (in.readByte() == 0) {
        serialNumber = null;
    } else {
        serialNumber = in.readInt();
    }
    if (in.readByte() == 0) {
        finalRefreshData = null;
    } else {
        finalRefreshData = in.readLong();
    }
    if (in.readByte() == 0) {
        group = null;
    } else {
        group = in.readInt();
    }
    durChapterName = in.readString();
    lastChapterName = in.readString();
    if (in.readByte() == 0) {
        chapterListSize = null;
    } else {
        chapterListSize = in.readInt();
    }
    byte tmpUpdateOff = in.readByte();
    updateOff = tmpUpdateOff == 0 ? null : tmpUpdateOff == 1;
    variableString = in.readString();
    bookInfoBean = in.readParcelable(BookInfoBean.class.getClassLoader());
    chapterList = in.createTypedArrayList(ChapterBean.CREATOR);
    bookmarkList = in.createTypedArrayList(BookmarkBean.CREATOR);
}
 
Example 20
Source Project: SwipeRecyclerView   File: Group.java    License: Apache License 2.0 4 votes vote down vote up
protected Group(Parcel in) {
    name = in.readString();
    mMemberList = in.createTypedArrayList(GroupMember.CREATOR);
    isExpanded = in.readByte() != 0;
}