android.os.Parcel#readHashMap ( )源码实例Demo

下面列出了android.os.Parcel#readHashMap ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: alpha-wallet-android   文件: Token.java
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];
    }
}
 
源代码2 项目: Zom-Android-XMPP   文件: Presence.java
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);
    }
}
 
源代码3 项目: spotify-web-api-android   文件: TrackSimple.java
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();
}
 
源代码4 项目: spotify-web-api-android   文件: AlbumSimple.java
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();
}
 
源代码5 项目: CC   文件: RemoteCC.java
protected RemoteCC(Parcel in) {
    componentName = in.readString();
    actionName = in.readString();
    callId = in.readString();
    isMainThreadSyncCall = in.readByte() != 0;
    params = in.readHashMap(getClass().getClassLoader());
}
 
源代码6 项目: px-android   文件: CongratsResponse.java
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());
}
 
源代码7 项目: hawkular-android-client   文件: FullTrigger.java
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();
}
 
源代码8 项目: spotify-web-api-android   文件: Album.java
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());
}
 
源代码9 项目: spotify-web-api-android   文件: LinkedTrack.java
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();
}
 
源代码10 项目: spotify-web-api-android   文件: ArtistSimple.java
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();
}
 
源代码11 项目: spotify-web-api-android   文件: PlaylistBase.java
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());
}
 
源代码12 项目: SoloPi   文件: OperationMethod.java
private OperationMethod(Parcel in) {
    actionEnum = PerformActionEnum.getActionEnumByCode(in.readString());
    operationParam = in.readHashMap(ClassLoader.getSystemClassLoader());
    encrypt = in.readInt() == 1;
}
 
源代码13 项目: android_9.0.0_r45   文件: ContentValues.java
@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);
}
 
源代码14 项目: JobSchedulerCompat   文件: PersistableBundle.java
@SuppressWarnings("unchecked")
PersistableBundle(Parcel in) {
    this.map = (HashMap<String, Object>) in.readHashMap(PersistableBundle.class.getClassLoader());
}
 
源代码15 项目: CC   文件: RemoteParamUtil.java
MapParam(Parcel in) {
    super(in);
    params = in.readHashMap(getClass().getClassLoader());
}
 
源代码16 项目: CC   文件: RemoteCCResult.java
private RemoteCCResult(Parcel in) {
    success = in.readByte() != 0;
    errorMessage = in.readString();
    code = in.readInt();
    data = in.readHashMap(getClass().getClassLoader());
}
 
源代码17 项目: hawkular-android-client   文件: Trigger.java
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");
}
 
源代码18 项目: FileDownloader   文件: FileDownloadHeader.java
protected FileDownloadHeader(Parcel in) {
    //noinspection unchecked
    this.mHeaderMap = in.readHashMap(String.class.getClassLoader());
}
 
源代码19 项目: spotify-web-api-android   文件: Track.java
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());
}
 
源代码20 项目: ToDay   文件: AppDataManager.java
public AppDataManager(Parcel in) {
    dataMap = in.readHashMap(getClass().getClassLoader());

}
 
 方法所在类
 同类方法