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

The following examples show how to use android.os.Parcel#writeMap() . 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: ProvisionedMeshNode.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@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 File: Token.java    From alpha-wallet-android with 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 File: CTInAppNotificationButton.java    From clevertap-android-sdk with MIT License 6 votes vote down vote up
@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 4
Source File: BaseActivity.java    From FireFiles with 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
Source File: BaseActivity.java    From FireFiles with 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 6
Source File: PdfBitmap.java    From mupdf-android with GNU Affero General Public License v3.0 5 votes vote down vote up
@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 File: Track.java    From spotify-web-api-android with 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 File: PlaylistBase.java    From spotify-web-api-android with 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 File: ExpressMetadata.java    From px-android with 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
Source File: Presence.java    From Zom-Android-XMPP with GNU General Public License v3.0 5 votes vote down vote up
@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 File: ContrastSwatch.java    From brailleback with 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 File: RemoteCCResult.java    From CC with 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 File: Trigger.java    From hawkular-android-client with 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 File: AlbumSimple.java    From spotify-web-api-android with 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 File: DynamicsLink.java    From Easer with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeMap(link);
}
 
Example 16
Source File: AvailableMethod.java    From px-android with 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 17
Source File: SolidMap.java    From solid with MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeMap(map);
}
 
Example 18
Source File: PersistableBundle.java    From JobSchedulerCompat with MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeMap(map);
}
 
Example 19
Source File: ValueMap.java    From satellite with MIT License 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeMap(map);
}
 
Example 20
Source File: OperationMethod.java    From SoloPi with 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);
}