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

The following examples show how to use android.os.Parcel#writeParcelableArray() . 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: Transaction.java    From alpha-wallet-android with MIT License 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
       dest.writeString(hash);
       dest.writeString(error);
       dest.writeString(blockNumber);
       dest.writeLong(timeStamp);
	dest.writeInt(nonce);
	dest.writeString(from);
	dest.writeString(to);
	dest.writeString(value);
	dest.writeString(gas);
	dest.writeString(gasPrice);
	dest.writeString(input);
	dest.writeString(gasUsed);
	dest.writeInt(chainId);
	dest.writeParcelableArray(operations, flags);
}
 
Example 2
Source File: Transaction.java    From ETHWallet with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(hash);
    dest.writeString(error);
    dest.writeString(blockNumber);
    dest.writeLong(timeStamp);
    dest.writeInt(nonce);
    dest.writeString(from);
    dest.writeString(to);
    dest.writeString(value);
    dest.writeString(gas);
    dest.writeString(gasPrice);
    dest.writeString(input);
    dest.writeString(gasUsed);
    dest.writeParcelableArray(operations, flags);
}
 
Example 3
Source File: GalleryDetail.java    From MHViewer with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(this.torrentCount);
    dest.writeString(this.torrentUrl);
    dest.writeString(this.archiveUrl);
    dest.writeString(this.parent);
    dest.writeString(this.visible);
    dest.writeString(this.language);
    dest.writeString(this.size);
    dest.writeString(this.intro);
    dest.writeInt(this.pages);
    dest.writeInt(this.favoriteCount);
    dest.writeByte(isFavorited ? (byte) 1 : (byte) 0);
    dest.writeInt(this.ratingCount);
    dest.writeLong(this.updateTime);
    dest.writeParcelableArray(this.chapters, 0);
    dest.writeParcelableArray(this.comments, 0);
    dest.writeInt(this.previewPages);
    dest.writeParcelable(previewSet, flags);
}
 
Example 4
Source File: RadioManager.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mId);
    dest.writeString(mServiceName);
    dest.writeInt(mClassId);
    dest.writeString(mImplementor);
    dest.writeString(mProduct);
    dest.writeString(mVersion);
    dest.writeString(mSerial);
    dest.writeInt(mNumTuners);
    dest.writeInt(mNumAudioSources);
    dest.writeInt(mIsInitializationRequired ? 1 : 0);
    dest.writeInt(mIsCaptureSupported ? 1 : 0);
    dest.writeParcelableArray(mBands, flags);
    dest.writeInt(mIsBgScanSupported ? 1 : 0);
    dest.writeIntArray(setToArray(mSupportedProgramTypes));
    dest.writeIntArray(setToArray(mSupportedIdentifierTypes));
    Utils.writeStringIntMap(dest, mDabFrequencyTable);
    Utils.writeStringMap(dest, mVendorInfo);
}
 
Example 5
Source File: Transaction.java    From trust-wallet-android-source with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
       dest.writeString(hash);
       dest.writeString(error);
       dest.writeString(blockNumber);
       dest.writeLong(timeStamp);
	dest.writeInt(nonce);
	dest.writeString(from);
	dest.writeString(to);
	dest.writeString(value);
	dest.writeString(gas);
	dest.writeString(gasPrice);
	dest.writeString(input);
	dest.writeString(gasUsed);
	dest.writeParcelableArray(operations, flags);
}
 
Example 6
Source File: CharSequenceTransformation.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int flags) {
    final int size = mFields.size();
    final AutofillId[] ids = new AutofillId[size];
    final Pattern[] regexs = new Pattern[size];
    final String[] substs = new String[size];
    Pair<Pattern, String> pair;
    int i = 0;
    for (Entry<AutofillId, Pair<Pattern, String>> entry : mFields.entrySet()) {
        ids[i] = entry.getKey();
        pair = entry.getValue();
        regexs[i] = pair.first;
        substs[i] = pair.second;
        i++;
    }

    parcel.writeParcelableArray(ids, flags);
    parcel.writeSerializable(regexs);
    parcel.writeStringArray(substs);
}
 
Example 7
Source File: Session.java    From sana.mobile with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@Override
public void writeToParcel(Parcel arg0, int arg1) {
    arg0.writeString(mInstanceKey);
    arg0.writeString(mAuthKey);
    Uri[] result = new Uri[data.size()];
    arg0.writeParcelableArray(data.toArray(result), Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
    arg0.writeParcelable(concept, 0);
    arg0.writeParcelable(encounter, 0);
    arg0.writeParcelable(event, 0);
    arg0.writeParcelable(instruction, 0);
    arg0.writeParcelable(notification, 0);
    arg0.writeParcelable(observer, 0);
    arg0.writeParcelable(observation, 0);
    arg0.writeParcelable(procedure, 0);
    arg0.writeParcelable(subject, 0);
}
 
Example 8
Source File: PrintJobInfo.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeParcelable(mId, flags);
    parcel.writeString(mLabel);
    parcel.writeParcelable(mPrinterId, flags);
    parcel.writeString(mPrinterName);
    parcel.writeInt(mState);
    parcel.writeInt(mAppId);
    parcel.writeString(mTag);
    parcel.writeLong(mCreationTime);
    parcel.writeInt(mCopies);
    parcel.writeParcelableArray(mPageRanges, flags);
    parcel.writeParcelable(mAttributes, flags);
    parcel.writeParcelable(mDocumentInfo, 0);
    parcel.writeFloat(mProgress);
    parcel.writeCharSequence(mStatus);
    parcel.writeInt(mStatusRes);
    parcel.writeCharSequence(mStatusResAppPackageName);
    parcel.writeInt(mCanceling ? 1 : 0);
    parcel.writeBundle(mAdvancedOptions);
}
 
Example 9
Source File: ViewHolderState.java    From epoxy with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int flags) {
  int size = size();
  int[] keys = new int[size];
  Parcelable[] values = new Parcelable[size];
  for (int i = 0; i < size; ++i) {
    keys[i] = keyAt(i);
    values[i] = valueAt(i);
  }
  parcel.writeInt(size);
  parcel.writeIntArray(keys);
  parcel.writeParcelableArray(values, flags);
}
 
Example 10
Source File: LoginClient.java    From kognitivo with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelableArray(handlersToTry, flags);
    dest.writeInt(currentHandler);
    dest.writeParcelable(pendingRequest, flags);
    Utility.writeStringMapToParcel(dest, loggingExtras);
}
 
Example 11
Source File: EmojiconGridView.java    From emojicon with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeInt(this.type);
    out.writeParcelableArray(data, flags);
    out.writeInt(this.useSystemDefaults ? 1 : 0);
    out.writeInt(this.scrollX);
    out.writeInt(this.scrollY);
}
 
Example 12
Source File: RestrictionEntry.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mType);
    dest.writeString(mKey);
    dest.writeString(mTitle);
    dest.writeString(mDescription);
    dest.writeStringArray(mChoiceEntries);
    dest.writeStringArray(mChoiceValues);
    dest.writeString(mCurrentValue);
    dest.writeStringArray(mCurrentValues);
    dest.writeParcelableArray(mRestrictions, 0);
}
 
Example 13
Source File: UsbInterface.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public void writeToParcel(Parcel parcel, int flags) {
     parcel.writeInt(mId);
     parcel.writeInt(mAlternateSetting);
     parcel.writeString(mName);
     parcel.writeInt(mClass);
     parcel.writeInt(mSubclass);
     parcel.writeInt(mProtocol);
     parcel.writeParcelableArray(mEndpoints, 0);
}
 
Example 14
Source File: UsbConfiguration.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public void writeToParcel(Parcel parcel, int flags) {
     parcel.writeInt(mId);
     parcel.writeString(mName);
     parcel.writeInt(mAttributes);
     parcel.writeInt(mMaxPower);
     parcel.writeParcelableArray(mInterfaces, 0);
}
 
Example 15
Source File: ElementProperties.java    From android-periodic-table with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);

    dest.writeString(block);
    dest.writeString(electronConfiguration);
    dest.writeString(wikipediaLink);
    dest.writeString(appearance);
    dest.writeString(phase);
    dest.writeString(density);
    dest.writeString(liquidDensityAtMeltingPoint);
    dest.writeString(liquidDensityAtBoilingPoint);
    dest.writeString(meltingPoint);
    dest.writeString(sublimationPoint);
    dest.writeString(boilingPoint);
    dest.writeString(triplePoint);
    dest.writeString(criticalPoint);
    dest.writeString(heatOfFusion);
    dest.writeString(heatOfVaporization);
    dest.writeString(molarHeatCapacity);
    dest.writeString(oxidationStates);
    dest.writeString(electronegativity);
    dest.writeString(molarIonizationEnergies);
    dest.writeString(atomicRadius);
    dest.writeString(covalentRadius);
    dest.writeString(vanDerWaalsRadius);
    dest.writeString(crystalStructure);
    dest.writeString(magneticOrdering);
    dest.writeString(thermalConductivity);
    dest.writeString(thermalExpansion);
    dest.writeString(speedOfSound);
    dest.writeString(youngsModulus);
    dest.writeString(shearModulus);
    dest.writeString(bulkModulus);
    dest.writeString(mohsHardness);
    dest.writeString(brinellHardness);
    dest.writeString(electronsPerShell);
    dest.writeString(thermalDiffusivity);
    dest.writeString(electricalResistivity);
    dest.writeString(bandGap);
    dest.writeString(curiePoint);
    dest.writeString(tensileStrength);
    dest.writeString(poissonRatio);
    dest.writeString(vickersHardness);
    dest.writeString(casNumber);
    dest.writeString(imageUrl);
    dest.writeParcelableArray(isotopes, 0);
}
 
Example 16
Source File: ParallelTask.java    From Mobilyzer with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  super.writeToParcel(dest, flags);
  dest.writeParcelableArray(tasks.toArray(new MeasurementTask[tasks.size()]), flags);
}
 
Example 17
Source File: ShortcutInfo.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mUserId);
    dest.writeString(mId);
    dest.writeString(mPackageName);
    dest.writeParcelable(mActivity, flags);
    dest.writeInt(mFlags);
    dest.writeInt(mIconResId);
    dest.writeLong(mLastChangedTimestamp);
    dest.writeInt(mDisabledReason);

    if (hasKeyFieldsOnly()) {
        dest.writeInt(0);
        return;
    }
    dest.writeInt(1);

    dest.writeParcelable(mIcon, flags);
    dest.writeCharSequence(mTitle);
    dest.writeInt(mTitleResId);
    dest.writeCharSequence(mText);
    dest.writeInt(mTextResId);
    dest.writeCharSequence(mDisabledMessage);
    dest.writeInt(mDisabledMessageResId);

    dest.writeParcelableArray(mIntents, flags);
    dest.writeParcelableArray(mIntentPersistableExtrases, flags);
    dest.writeInt(mRank);
    dest.writeParcelable(mExtras, flags);
    dest.writeString(mBitmapPath);

    dest.writeString(mIconResName);
    dest.writeString(mTitleResName);
    dest.writeString(mTextResName);
    dest.writeString(mDisabledMessageResName);

    if (mCategories != null) {
        final int N = mCategories.size();
        dest.writeInt(N);
        for (int i = 0; i < N; i++) {
            dest.writeString(mCategories.valueAt(i));
        }
    } else {
        dest.writeInt(0);
    }
}
 
Example 18
Source File: SequentialTask.java    From Mobilyzer with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
  super.writeToParcel(dest, flags);
  dest.writeParcelableArray(tasks.toArray(new MeasurementTask[tasks.size()]), flags);
}
 
Example 19
Source File: GestureDescription.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(timeSinceGestureStart);
    dest.writeParcelableArray(touchPoints, flags);
}
 
Example 20
Source File: AbstractCollectionParcelableAdapter.java    From postman with MIT License 4 votes vote down vote up
@Override
public final void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelableArray(ParcelableAdapters.toParcelableArray(value), flags);
}