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

The following examples show how to use android.os.Parcel#writeParcelableArray() . 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
@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 2
Source Project: android_9.0.0_r45   File: PrintJobInfo.java    License: 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 3
@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 4
@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 5
Source Project: alpha-wallet-android   File: Transaction.java    License: 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 6
Source Project: android_9.0.0_r45   File: RadioManager.java    License: 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 7
Source Project: MHViewer   File: GalleryDetail.java    License: 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 8
@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 9
@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 10
Source Project: epoxy   File: ViewHolderState.java    License: 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 11
Source Project: kognitivo   File: LoginClient.java    License: 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 12
Source Project: emojicon   File: EmojiconGridView.java    License: 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 13
Source Project: android_9.0.0_r45   File: UsbInterface.java    License: 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
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
@Override
public final void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelableArray(ParcelableAdapters.toParcelableArray(value), flags);
}
 
Example 16
Source Project: android_9.0.0_r45   File: ShortcutInfo.java    License: 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 17
@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 18
Source Project: Mobilyzer   File: ParallelTask.java    License: 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 Project: Mobilyzer   File: SequentialTask.java    License: 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 20
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(timeSinceGestureStart);
    dest.writeParcelableArray(touchPoints, flags);
}