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

The following examples show how to use android.os.Parcel#readHashMap() . 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
Source Project: alpha-wallet-android   File: Token.java    License: MIT License 6 votes vote down vote up
protected Token(Parcel in) {
    tokenInfo = in.readParcelable(TokenInfo.class.getClassLoader());
    balance = new BigDecimal(in.readString());
    updateBlancaTime = in.readLong();
    int readType = in.readInt();
    shortNetworkName = in.readString();
    pendingBalance = new BigDecimal(in.readString());
    tokenWallet = in.readString();
    lastBlockCheck = in.readLong();
    lastTxCheck = in.readLong();
    lastTxUpdate = in.readLong();
    lastTxTime = in.readLong();
    hasTokenScript = in.readByte() == 1;
    nameWeight = in.readInt();
    ticker = in.readParcelable(TokenTicker.class.getClassLoader());
    functionAvailabilityMap = in.readHashMap(List.class.getClassLoader());

    balanceChanged = false;
    if (readType <= ContractType.CREATION.ordinal())
    {
        contractType = ContractType.values()[readType];
    }
}
 
Example 2
public Presence(Parcel source) {
    mStatus = source.readInt();
    mStatusText = source.readString();
    mAvatarData = source.createByteArray();
    mAvatarType = source.readString();
    mClientType = source.readInt();
    // TODO - what ClassLoader should be passed to readMap?
    // TODO - switch to Bundle
    mExtendedInfo = source.readHashMap(null);

    //this may not exist for older persisted presence data
    if (source.dataAvail() > 0)
        mResource = source.readString();

    if (source.dataAvail() > 0) {
        long timeLastSeen = source.readLong();
        if (timeLastSeen != -1)
            mLastSeen = new Date(timeLastSeen);
    }
}
 
Example 3
Source Project: spotify-web-api-android   File: TrackSimple.java    License: MIT License 6 votes vote down vote up
protected TrackSimple(Parcel in) {
    this.artists = in.createTypedArrayList(ArtistSimple.CREATOR);
    this.available_markets = in.createStringArrayList();
    this.is_playable = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.linked_from = in.readParcelable(LinkedTrack.class.getClassLoader());
    this.disc_number = in.readInt();
    this.duration_ms = in.readLong();
    this.explicit = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.external_urls = in.readHashMap(Map.class.getClassLoader());
    this.href = in.readString();
    this.id = in.readString();
    this.name = in.readString();
    this.preview_url = in.readString();
    this.track_number = in.readInt();
    this.type = in.readString();
    this.uri = in.readString();
}
 
Example 4
Source Project: spotify-web-api-android   File: AlbumSimple.java    License: MIT License 5 votes vote down vote up
protected AlbumSimple(Parcel in) {
    this.album_type = in.readString();
    this.available_markets = in.createStringArrayList();
    this.external_urls = in.readHashMap(ClassLoader.getSystemClassLoader());
    this.href = in.readString();
    this.id = in.readString();
    this.images = in.createTypedArrayList(Image.CREATOR);
    this.name = in.readString();
    this.type = in.readString();
    this.uri = in.readString();
}
 
Example 5
Source Project: CC   File: RemoteCC.java    License: Apache License 2.0 5 votes vote down vote up
protected RemoteCC(Parcel in) {
    componentName = in.readString();
    actionName = in.readString();
    callId = in.readString();
    isMainThreadSyncCall = in.readByte() != 0;
    params = in.readHashMap(getClass().getClassLoader());
}
 
Example 6
Source Project: px-android   File: CongratsResponse.java    License: MIT License 5 votes vote down vote up
PXBusinessTouchpoint(final Parcel in) {
    id = in.readString();
    type = in.readString();
    content = in.readHashMap(HashMap.class.getClassLoader());
    tracking = in.readHashMap(HashMap.class.getClassLoader());
    additionalEdgeInsets = in.readParcelable(AdditionalEdgeInsets.class.getClassLoader());
}
 
Example 7
protected FullTrigger(Parcel parcel) {
    this.id = parcel.readString();
    this.description = parcel.readString();
    this.tags = parcel.readHashMap(String.class.getClassLoader());
    this.type = parcel.readString();
    this.eventType = parcel.readString();
    this.autoEnable = Boolean.getBoolean(parcel.readString());
    this.autoDisable = Boolean.getBoolean(parcel.readString());
    this.enabled = parcel.readString().equals("true");
    this.severity = parcel.readString();
}
 
Example 8
Source Project: spotify-web-api-android   File: Album.java    License: MIT License 5 votes vote down vote up
protected Album(Parcel in) {
    super(in);
    this.artists = in.createTypedArrayList(ArtistSimple.CREATOR);
    this.copyrights = in.createTypedArrayList(Copyright.CREATOR);
    this.external_ids = in.readHashMap(ClassLoader.getSystemClassLoader());
    this.genres = in.createStringArrayList();
    this.popularity = (Integer) in.readValue(Integer.class.getClassLoader());
    this.release_date = in.readString();
    this.release_date_precision = in.readString();
    this.tracks = in.readParcelable(Pager.class.getClassLoader());
}
 
Example 9
Source Project: spotify-web-api-android   File: LinkedTrack.java    License: MIT License 5 votes vote down vote up
protected LinkedTrack(Parcel in) {
    this.external_urls = in.readHashMap(ClassLoader.getSystemClassLoader());
    this.href = in.readString();
    this.id = in.readString();
    this.type = in.readString();
    this.uri = in.readString();
}
 
Example 10
Source Project: spotify-web-api-android   File: ArtistSimple.java    License: MIT License 5 votes vote down vote up
protected ArtistSimple(Parcel in) {
    this.external_urls = in.readHashMap(Map.class.getClassLoader());
    this.href = in.readString();
    this.id = in.readString();
    this.name = in.readString();
    this.type = in.readString();
    this.uri = in.readString();
}
 
Example 11
Source Project: spotify-web-api-android   File: PlaylistBase.java    License: MIT License 5 votes vote down vote up
protected PlaylistBase(Parcel in) {
    this.collaborative = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.external_urls = in.readHashMap(Map.class.getClassLoader());
    this.href = (String) in.readValue(String.class.getClassLoader());
    this.id = (String) in.readValue(String.class.getClassLoader());
    this.images = in.createTypedArrayList(Image.CREATOR);
    this.name = (String) in.readValue(String.class.getClassLoader());
    this.owner = in.readParcelable(UserPublic.class.getClassLoader());
    this.is_public = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.snapshot_id = (String) in.readValue(String.class.getClassLoader());
    this.type = (String) in.readValue(String.class.getClassLoader());
    this.uri = (String) in.readValue(String.class.getClassLoader());
}
 
Example 12
Source Project: SoloPi   File: OperationMethod.java    License: Apache License 2.0 4 votes vote down vote up
private OperationMethod(Parcel in) {
    actionEnum = PerformActionEnum.getActionEnumByCode(in.readString());
    operationParam = in.readHashMap(ClassLoader.getSystemClassLoader());
    encrypt = in.readInt() == 1;
}
 
Example 13
Source Project: android_9.0.0_r45   File: ContentValues.java    License: Apache License 2.0 4 votes vote down vote up
@SuppressWarnings({"deprecation", "unchecked"})
public ContentValues createFromParcel(Parcel in) {
    // TODO - what ClassLoader should be passed to readHashMap?
    HashMap<String, Object> values = in.readHashMap(null);
    return new ContentValues(values);
}
 
Example 14
Source Project: JobSchedulerCompat   File: PersistableBundle.java    License: MIT License 4 votes vote down vote up
@SuppressWarnings("unchecked")
PersistableBundle(Parcel in) {
    this.map = (HashMap<String, Object>) in.readHashMap(PersistableBundle.class.getClassLoader());
}
 
Example 15
Source Project: CC   File: RemoteParamUtil.java    License: Apache License 2.0 4 votes vote down vote up
MapParam(Parcel in) {
    super(in);
    params = in.readHashMap(getClass().getClassLoader());
}
 
Example 16
Source Project: CC   File: RemoteCCResult.java    License: Apache License 2.0 4 votes vote down vote up
private RemoteCCResult(Parcel in) {
    success = in.readByte() != 0;
    errorMessage = in.readString();
    code = in.readInt();
    data = in.readHashMap(getClass().getClassLoader());
}
 
Example 17
Source Project: hawkular-android-client   File: Trigger.java    License: Apache License 2.0 4 votes vote down vote up
protected Trigger(Parcel parcel) {
    this.id = parcel.readString();
    this.description = parcel.readString();
    this.tags = parcel.readHashMap(String.class.getClassLoader());
    this.enabled = parcel.readString().equals("true");
}
 
Example 18
protected FileDownloadHeader(Parcel in) {
    //noinspection unchecked
    this.mHeaderMap = in.readHashMap(String.class.getClassLoader());
}
 
Example 19
Source Project: spotify-web-api-android   File: Track.java    License: MIT License 4 votes vote down vote up
protected Track(Parcel in) {
    super(in);
    this.album = in.readParcelable(AlbumSimple.class.getClassLoader());
    this.external_ids = in.readHashMap(Map.class.getClassLoader());
    this.popularity = (Integer) in.readValue(Integer.class.getClassLoader());
}
 
Example 20
Source Project: ToDay   File: AppDataManager.java    License: MIT License 2 votes vote down vote up
public AppDataManager(Parcel in) {
    dataMap = in.readHashMap(getClass().getClassLoader());

}