Java Code Examples for android.os.Parcel#readString()
The following examples show how to use
android.os.Parcel#readString() .
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: android_9.0.0_r45 File: NotificationChannelGroup.java License: Apache License 2.0 | 6 votes |
/** * @hide */ protected NotificationChannelGroup(Parcel in) { if (in.readByte() != 0) { mId = in.readString(); } else { mId = null; } mName = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); if (in.readByte() != 0) { mDescription = in.readString(); } else { mDescription = null; } in.readParcelableList(mChannels, NotificationChannel.class.getClassLoader()); mBlocked = in.readBoolean(); }
Example 2
Source Project: adt-leanback-support File: BackStackRecord.java License: Apache License 2.0 | 5 votes |
public BackStackState(Parcel in) { mOps = in.createIntArray(); mTransition = in.readInt(); mTransitionStyle = in.readInt(); mName = in.readString(); mIndex = in.readInt(); mBreadCrumbTitleRes = in.readInt(); mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mBreadCrumbShortTitleRes = in.readInt(); mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mSharedElementSourceNames = in.createStringArrayList(); mSharedElementTargetNames = in.createStringArrayList(); }
Example 3
Source Project: android_9.0.0_r45 File: SdpMnsRecord.java License: Apache License 2.0 | 5 votes |
public SdpMnsRecord(Parcel in) { mRfcommChannelNumber = in.readInt(); mL2capPsm = in.readInt(); mServiceName = in.readString(); mSupportedFeatures = in.readInt(); mProfileVersion = in.readInt(); }
Example 4
Source Project: BmapLite File: BusRouteModel.java License: Apache License 2.0 | 5 votes |
protected BusRouteModel(Parcel in) { this.duration = in.readInt(); this.distance = in.readInt(); this.price = in.readDouble(); this.name = in.readString(); this.isTexi = in.readByte() != 0; this.isSameCity = in.readByte() != 0; this.line = in.readParcelable(MassTransitRouteLine.class.getClassLoader()); this.destinationCity = in.readString(); this.originCity = in.readString(); }
Example 5
Source Project: nono-android File: NoteAllArray.java License: GNU General Public License v3.0 | 5 votes |
protected NoteAllArray(Parcel in) { this.title = in.readString(); this.content = in.readString(); this.group = in.readString(); this.date = in.readString(); this.time = in.readString(); this.sdfId = in.readLong(); this.isOnCloud = in.readString(); this.uuid = in.readString(); }
Example 6
Source Project: Flora File: Response.java License: MIT License | 5 votes |
protected Response(Parcel in) { this.is_history = in.readByte() != 0; this.counts = in.readInt(); this.message = in.readString(); this.more = in.readByte() != 0; this.result = in.readString(); this.feedList = in.createTypedArrayList(Feed.CREATOR); }
Example 7
Source Project: SweetMusicPlayer File: Artist.java License: Apache License 2.0 | 5 votes |
protected Artist(Parcel in) { this.artist_id = in.readString(); this.author = in.readString(); this.ting_uid = in.readString(); this.avatar_middle = in.readString(); this.album_num = in.readInt(); this.song_num = in.readInt(); this.country = in.readString(); this.artist_desc = in.readString(); this.artist_source = in.readString(); }
Example 8
Source Project: TelePlus-Android File: Format.java License: GNU General Public License v2.0 | 5 votes |
@SuppressWarnings("ResourceType") /* package */ Format(Parcel in) { id = in.readString(); label = in.readString(); containerMimeType = in.readString(); sampleMimeType = in.readString(); codecs = in.readString(); bitrate = in.readInt(); maxInputSize = in.readInt(); width = in.readInt(); height = in.readInt(); frameRate = in.readFloat(); rotationDegrees = in.readInt(); pixelWidthHeightRatio = in.readFloat(); boolean hasProjectionData = Util.readBoolean(in); projectionData = hasProjectionData ? in.createByteArray() : null; stereoMode = in.readInt(); colorInfo = in.readParcelable(ColorInfo.class.getClassLoader()); channelCount = in.readInt(); sampleRate = in.readInt(); pcmEncoding = in.readInt(); encoderDelay = in.readInt(); encoderPadding = in.readInt(); selectionFlags = in.readInt(); language = in.readString(); accessibilityChannel = in.readInt(); subsampleOffsetUs = in.readLong(); int initializationDataSize = in.readInt(); initializationData = new ArrayList<>(initializationDataSize); for (int i = 0; i < initializationDataSize; i++) { initializationData.add(in.createByteArray()); } drmInitData = in.readParcelable(DrmInitData.class.getClassLoader()); metadata = in.readParcelable(Metadata.class.getClassLoader()); }
Example 9
Source Project: letv File: ShareModel.java License: Apache License 2.0 | 5 votes |
public ShareModel a(Parcel parcel) { ShareModel shareModel = new ShareModel(); shareModel.a = parcel.readString(); shareModel.b = parcel.readString(); shareModel.c = parcel.readString(); shareModel.d = parcel.readString(); return shareModel; }
Example 10
Source Project: auid2 File: Tool.java License: Apache License 2.0 | 5 votes |
private Tool(Parcel in) { mName = in.readString(); mPrice = in.readString(); mDetails = in.createStringArray(); mDescription = in.readString(); mImageResourceId = in.readInt(); mThumbnailResourceId = in.readInt(); }
Example 11
Source Project: materialistic File: UserItem.java License: Apache License 2.0 | 5 votes |
@Synthetic UserItem(Parcel source) { id = source.readString(); delay = source.readLong(); created = source.readLong(); karma = source.readLong(); about = source.readString(); submitted = source.createIntArray(); submittedItems = source.createTypedArray(HackerNewsItem.CREATOR); }
Example 12
Source Project: android_9.0.0_r45 File: PeriodicSync.java License: Apache License 2.0 | 5 votes |
private PeriodicSync(Parcel in) { this.account = in.readParcelable(null); this.authority = in.readString(); this.extras = in.readBundle(); this.period = in.readLong(); this.flexTime = in.readLong(); }
Example 13
Source Project: star-zone-android File: ImageInfo.java License: Apache License 2.0 | 5 votes |
protected ImageInfo(Parcel in) { imagePath = in.readString(); thumbnailPath = in.readString(); albumName = in.readString(); time = in.readLong(); orientation = in.readInt(); }
Example 14
Source Project: Klyph File: Media.java License: MIT License | 5 votes |
private Media(Parcel in) { alt = in.readString(); href = in.readString(); photo= in.readParcelable(Photo.class.getClassLoader()); src= in.readString(); swf = in.readParcelable(Swf.class.getClassLoader()); type = in.readString(); video = in.readParcelable(Video.class.getClassLoader()); }
Example 15
Source Project: sealrtc-android File: RoomKickOffMessage.java License: MIT License | 4 votes |
public RoomKickOffMessage(Parcel parcel) { userId = parcel.readString(); }
Example 16
Source Project: hawkular-android-client File: MetricData.java License: Apache License 2.0 | 4 votes |
private MetricData(Parcel parcel) { this.value = parcel.readString(); this.timestamp = parcel.readLong(); }
Example 17
Source Project: FamilyChat File: ProfileUpdateEventBean.java License: Apache License 2.0 | 4 votes |
protected ProfileUpdateEventBean(Parcel in) { this.userBean = in.readParcelable(UserBean.class.getClassLoader()); this.phone = in.readString(); this.flag = in.readInt(); }
Example 18
Source Project: bridgefy-android-samples File: Alert.java License: MIT License | 4 votes |
protected Alert(Parcel in) { this.id = in.readString(); this.count = in.readInt(); this.name = in.readString(); this.date = in.readLong(); }
Example 19
Source Project: letv File: DownloadVideo.java License: Apache License 2.0 | 4 votes |
private DownloadVideo(Parcel in) { boolean z; boolean z2 = true; this.vid = 0; this.isNew = true; this.isWatch = false; this.state = 0; this.mDownloader = null; this.isVideoNormal = true; this.isVipDownload = false; this.hasSubtitle = false; this.isMultipleAudio = false; this.aid = in.readLong(); this.cid = in.readLong(); this.ord = in.readInt(); this.type = in.readInt(); this.vid = in.readLong(); this.name = in.readString(); this.picUrl = in.readString(); this.totalsize = in.readLong(); this.length = in.readLong(); this.videoTypeKey = in.readString(); this.filePath = in.readString(); this.streamType = in.readInt(); this.isNew = in.readByte() != (byte) 0; this.btime = in.readLong(); this.etime = in.readLong(); if (in.readByte() != (byte) 0) { z = true; } else { z = false; } this.isWatch = z; this.duration = in.readLong(); this.downloadUrl = in.readString(); this.downloaded = in.readLong(); this.threadNum = in.readInt(); this.state = in.readInt(); this.mmsid = in.readString(); this.pcode = in.readString(); this.version = in.readString(); this.mDownloadAlbum = (DownloadAlbum) in.readParcelable(DownloadAlbum.class.getClassLoader()); this.rowID = in.readLong(); this.timestamp = in.readLong(); this.speed = in.readString(); this.pid = in.readLong(); this.isVideoNormal = in.readByte() != (byte) 0; if (in.readByte() != (byte) 0) { z = true; } else { z = false; } this.isVipDownload = z; if (in.readByte() == (byte) 0) { z2 = false; } this.hasSubtitle = z2; this.subtitleUrl = in.readString(); }
Example 20
Source Project: Easer File: SmsOperationData.java License: GNU General Public License v3.0 | 4 votes |
private SmsOperationData(Parcel in) { destination = in.readString(); content = in.readString(); }