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

The following examples show how to use android.os.Parcel#writeMap() . 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 check out the related API usage on the sidebar.
Example 1
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(uuid);
    dest.writeByte((byte) (isConfigured ? 1 : 0));
    dest.writeString(nodeName);
    dest.writeList(mAddedNetKeys);
    dest.writeByteArray(mFlags);
    dest.writeInt(unicastAddress);
    dest.writeByteArray(deviceKey);
    dest.writeValue(ttl);
    dest.writeInt(sequenceNumber);
    dest.writeValue(companyIdentifier);
    dest.writeValue(productIdentifier);
    dest.writeValue(versionIdentifier);
    dest.writeValue(crpl);
    dest.writeValue(nodeFeatures);
    dest.writeMap(mElements);
    dest.writeList(mAddedAppKeys);
    dest.writeLong(mTimeStampInMillis);
    dest.writeParcelable(mSeqAuth, flags);
    dest.writeValue(secureNetworkBeaconSupported);
    dest.writeParcelable(networkTransmitSettings, flags);
    dest.writeParcelable(relaySettings, flags);
    dest.writeInt((blackListed ? 1 : 0));
}
 
Example 2
Source Project: alpha-wallet-android   File: Token.java    License: MIT License 6 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(tokenInfo, flags);
    dest.writeString(balance == null ? "0" : balance.toString());
    dest.writeLong(updateBlancaTime);
    dest.writeInt(contractType.ordinal());
    dest.writeString(shortNetworkName);
    dest.writeString(pendingBalance == null ? "0" : pendingBalance.toString());
    dest.writeString(tokenWallet);
    dest.writeLong(lastBlockCheck);
    dest.writeLong(lastTxCheck);
    dest.writeLong(lastTxUpdate);
    dest.writeLong(lastTxTime);
    dest.writeByte(hasTokenScript?(byte)1:(byte)0);
    dest.writeInt(nameWeight);
    dest.writeParcelable(ticker, flags);
    dest.writeMap(functionAvailabilityMap);
}
 
Example 3
Source Project: FireFiles   File: BaseActivity.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(action);
    out.writeInt(userMode);
    out.writeInt(acceptMimes.length);
    out.writeStringArray(acceptMimes);
    out.writeInt(userSortOrder);
    out.writeInt(allowMultiple ? 1 : 0);
    out.writeInt(showSize ? 1 : 0);
    out.writeInt(showFolderSize ? 1 : 0);
    out.writeInt(showThumbnail ? 1 : 0);
    out.writeInt(showHiddenFiles ? 1 : 0);
    out.writeInt(localOnly ? 1 : 0);
    out.writeInt(forceAdvanced ? 1 : 0);
    out.writeInt(showAdvanced ? 1 : 0);
    out.writeInt(rootMode ? 1 : 0);
    out.writeInt(stackTouched ? 1 : 0);
    out.writeInt(restored ? 1 : 0);
    DurableUtils.writeToParcel(out, stack);
    out.writeString(currentSearch);
    out.writeMap(dirState);
}
 
Example 4
Source Project: FireFiles   File: BaseActivity.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(action);
    out.writeInt(userMode);
    out.writeInt(acceptMimes.length);
    out.writeStringArray(acceptMimes);
    out.writeInt(userSortOrder);
    out.writeInt(allowMultiple ? 1 : 0);
    out.writeInt(showSize ? 1 : 0);
    out.writeInt(showFolderSize ? 1 : 0);
    out.writeInt(showThumbnail ? 1 : 0);
    out.writeInt(showHiddenFiles ? 1 : 0);
    out.writeInt(localOnly ? 1 : 0);
    out.writeInt(forceAdvanced ? 1 : 0);
    out.writeInt(showAdvanced ? 1 : 0);
    out.writeInt(rootMode ? 1 : 0);
    out.writeInt(stackTouched ? 1 : 0);
    out.writeInt(restored ? 1 : 0);
    DurableUtils.writeToParcel(out, stack);
    out.writeString(currentSearch);
    out.writeMap(dirState);
}
 
Example 5
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(text);
    dest.writeString(textColor);
    dest.writeString(backgroundColor);
    dest.writeString(actionUrl);
    dest.writeString(borderColor);
    dest.writeString(borderRadius);

    if (jsonDescription == null) {
        dest.writeByte((byte) (0x00));
    } else {
        dest.writeByte((byte) (0x01));
        dest.writeString(jsonDescription.toString());
    }
    dest.writeString(error);
    dest.writeMap(keyValues);
}
 
Example 6
@Override
public void writeToParcel(Parcel dest, int flags) {
       dest.writeParcelable(image, flags);
	dest.writeInt(height);
	dest.writeInt(width);
       dest.writeInt(pdfX);
       dest.writeInt(pdfY);
	dest.writeInt(pageNumber);
	dest.writeString(type.name());
	dest.writeByte((byte)(isRemovable ? 1 : 0));
	dest.writeMap(metadata);
}
 
Example 7
Source Project: spotify-web-api-android   File: Track.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeParcelable(this.album, 0);
    dest.writeMap(this.external_ids);
    dest.writeValue(this.popularity);
}
 
Example 8
Source Project: spotify-web-api-android   File: PlaylistBase.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.collaborative);
    dest.writeMap(this.external_urls);
    dest.writeValue(this.href);
    dest.writeValue(this.id);
    dest.writeTypedList(this.images);
    dest.writeValue(this.name);
    dest.writeParcelable(owner, flags);
    dest.writeValue(is_public);
    dest.writeValue(snapshot_id);
    dest.writeValue(type);
    dest.writeValue(uri);
}
 
Example 9
Source Project: px-android   File: ExpressMetadata.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(paymentMethodId);
    dest.writeString(paymentTypeId);
    dest.writeParcelable(card, flags);
    dest.writeParcelable(accountMoney, flags);
    dest.writeParcelable(consumerCredits, flags);
    dest.writeParcelable(newCard, flags);
    dest.writeParcelable(status, flags);
    dest.writeParcelable(offlineMethods, flags);
    dest.writeParcelable(benefits, flags);
    dest.writeParcelable(displayInfo, flags);
    dest.writeMap(behaviours);
}
 
Example 10
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mStatus);
    dest.writeString(mStatusText);
    dest.writeByteArray(mAvatarData);
    dest.writeString(mAvatarType);
    dest.writeInt(mClientType);
    dest.writeMap(mExtendedInfo);
    dest.writeString(mResource);

    if (mLastSeen != null)
        dest.writeLong(mLastSeen.getTime());
//    else
  //      dest.writeLong(-1);
}
 
Example 11
Source Project: brailleback   File: ContrastSwatch.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mName);
    dest.writeMap(mLuminanceMap);
    dest.writeMap(mLuminanceHistogram);
    dest.writeList(mBackgroundColors);
    dest.writeList(mForegroundColors);
    dest.writeDouble(mBackgroundLuminance);
    dest.writeDouble(mForegroundLuminance);
    dest.writeValue(mScreenBounds);
    dest.writeDouble(mContrastRatio);
}
 
Example 12
Source Project: CC   File: RemoteCCResult.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte((byte) (success ? 1 : 0));
    dest.writeString(errorMessage);
    dest.writeInt(code);
    dest.writeMap(data);
}
 
Example 13
Source Project: hawkular-android-client   File: Trigger.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeString(id);
    parcel.writeString(description);
    parcel.writeMap(tags);
    parcel.writeString(enabled ? "true" : "false");
}
 
Example 14
Source Project: spotify-web-api-android   File: AlbumSimple.java    License: MIT License 5 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.album_type);
    dest.writeStringList(this.available_markets);
    dest.writeMap(this.external_urls);
    dest.writeString(this.href);
    dest.writeString(this.id);
    dest.writeTypedList(images);
    dest.writeString(this.name);
    dest.writeString(this.type);
    dest.writeString(this.uri);
}
 
Example 15
Source Project: SoloPi   File: OperationMethod.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(actionEnum.getCode());
    dest.writeMap(operationParam);
    dest.writeInt(encrypt? 1: 0);
}
 
Example 16
Source Project: satellite   File: ValueMap.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeMap(map);
}
 
Example 17
Source Project: JobSchedulerCompat   File: PersistableBundle.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeMap(map);
}
 
Example 18
Source Project: solid   File: SolidMap.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeMap(map);
}
 
Example 19
Source Project: px-android   File: AvailableMethod.java    License: MIT License 4 votes vote down vote up
@Override
public void writeToParcel(final Parcel parcel, final int flags) {
    parcel.writeString(paymentMethodId);
    parcel.writeString(paymentMethodType);
    parcel.writeMap(extraInfo);
}
 
Example 20
Source Project: Easer   File: DynamicsLink.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeMap(link);
}