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

The following examples show how to use android.os.Parcel#createTypedArrayList() . 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 check out the related API usage on the sidebar.
Example 1
Source File: BookManagerImpl.java    From VirtualAPK with Apache License 2.0 7 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 File: HistoryData.java    From data-mediator with 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 3
Source File: Profile.java    From geopaparazzi with GNU General Public License v3.0 6 votes vote down vote up
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 File: Product.java    From mobikul-standalone-pos with 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 5
Source File: CongratsResponse.java    From px-android with 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 6
Source File: Aya.java    From QuranAndroid with 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 7
Source File: ActivityRelaunchItem.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/** 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 8
Source File: Contact.java    From deltachat-android with GNU General Public License v3.0 5 votes vote down vote up
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 9
Source File: Currency.java    From CountryCurrencyPicker with 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 10
Source File: IMediaSession.java    From letv with 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 11
Source File: FlowParameters.java    From FirebaseUI-Android with Apache License 2.0 5 votes vote down vote up
@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 12
Source File: ResponseMessages.java    From accept-sdk-android with MIT License 4 votes vote down vote up
public void readFromParcel(Parcel in) {
  mResultCode = in.readString();
  mMessageList = in.createTypedArrayList(Message.CREATOR);
}
 
Example 13
Source File: Recommendations.java    From spotify-web-api-android with MIT License 4 votes vote down vote up
protected Recommendations(Parcel in) {
    seeds = in.createTypedArrayList(Seed.CREATOR);
    tracks = in.createTypedArrayList(Track.CREATOR);
}
 
Example 14
Source File: GetAlbumInfoResp.java    From SweetMusicPlayer with Apache License 2.0 4 votes vote down vote up
protected GetAlbumInfoResp(Parcel in) {
    this.albumInfo = in.readParcelable(AlbumInfo.class.getClassLoader());
    this.songlist = in.createTypedArrayList(SongInfo.CREATOR);
}
 
Example 15
Source File: BookShelfBean.java    From HaoReader with GNU General Public License v3.0 4 votes vote down vote up
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 16
Source File: Group.java    From SwipeRecyclerView with 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;
}
 
Example 17
Source File: NestedParcelable.java    From android-parcelable-intellij-plugin with Apache License 2.0 4 votes vote down vote up
protected NestedParcelable(Parcel in) {
    this.bitmap = in.readParcelable(Bitmap.class.getClassLoader());
    this.bitmapList = in.createTypedArrayList(Bitmap.CREATOR);
}
 
Example 18
Source File: PluginPackageInfo.java    From Neptune with Apache License 2.0 4 votes vote down vote up
protected IntentInfo(Parcel in) {
    mFilter = in.createTypedArrayList(IntentFilter.CREATOR);
}
 
Example 19
Source File: Batch.java    From arca-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public Batch(final Parcel in) {
	super(in);
       mOperations = in.createTypedArrayList(ContentProviderOperation.CREATOR);
}
 
Example 20
Source File: User.java    From Mysplash with GNU Lesser General Public License v3.0 4 votes vote down vote up
protected UserTags(Parcel in) {
    this.custom = in.createTypedArrayList(Tag.CREATOR);
    this.aggregated = in.createTypedArrayList(Tag.CREATOR);
}