Java Code Examples for android.os.Parcel#readByte()
The following examples show how to use
android.os.Parcel#readByte() .
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: Movie.java From Movie-Check with Apache License 2.0 | 6 votes |
protected Movie(Parcel in) { this.id = (Long) in.readValue(Long.class.getClassLoader()); this.title = in.readString(); long tmpReleaseDate = in.readLong(); this.releaseDate = tmpReleaseDate == -1 ? null : new Date(tmpReleaseDate); this.backdropUrl = in.readString(); this.posterUrl = in.readString(); this.overview = in.readString(); this.adult = in.readByte() != 0; this.voteAverage = in.readFloat(); this.voteCount = in.readLong(); this.genreId = new ArrayList<Long>(); in.readList(this.genreId, List.class.getClassLoader()); this.language = in.readString(); this.popularity = in.readDouble(); }
Example 2
Source File: XulClauseInfo.java From starcor.xul with GNU Lesser General Public License v3.0 | 6 votes |
protected XulClauseInfo(Parcel in) { target = in.readString(); func = in.readString(); verb = in.readInt(); int size = in.readInt(); if (size>0) { conditions = _initClauseInfoConditions(); for (int i = 0; i < size; i++) { Conditions condition = new Conditions(); condition.key = in.readString(); condition.cmp = XulDataService.getDataComparator(in.readInt()); condition.value = in.readString(); condition.values = in.createStringArray(); conditions.add(condition); } } ClassLoader classLoader = getClass().getClassLoader(); for (byte v = in.readByte(); v != 0; v = in.readByte()) { DataItem dataItem = new DataItem(in.readString(), in.readString()); dataItem.strVals = in.createStringArray(); dataItem.data = in.readValue(classLoader); addDataItem(dataItem); } }
Example 3
Source File: Article.java From CodePolitan with Apache License 2.0 | 6 votes |
protected Article(Parcel in) { id = in.readInt(); slug = in.readString(); title = in.readString(); excerpt = in.readString(); content = in.readString(); date = in.readString(); dateClear = in.readString(); link = in.readString(); thumbnailSmall = in.readString(); thumbnailMedium = in.readString(); bookmarked = in.readByte() != 0; readLater = in.readByte() != 0; big = in.readByte() != 0; postType = in.readString(); category = in.createTypedArrayList(Category.CREATOR); tags = in.createTypedArrayList(Tag.CREATOR); }
Example 4
Source File: Message.java From Faceless with GNU General Public License v3.0 | 6 votes |
private Message(Parcel in) { mID = in.readString(); mDegree = in.readInt(); mColor = in.readInt(); mPatternID = in.readInt(); mText = in.readString(); mTopic = in.readString(); mTime = in.readLong(); mFavorites = in.readInt(); mComments = in.readInt(); mCountryISO3 = in.readString(); mFavorited = in.readByte() == 1; mSubscribed = in.readByte() == 1; mType = in.readInt(); mLocation = (SimpleLocation.Point) in.<SimpleLocation.Point>readParcelable(SimpleLocation.Point.class.getClassLoader()); mReasonForBan = in.readByte() == 1; }
Example 5
Source File: Product.java From RetailStore with Apache License 2.0 | 5 votes |
protected Product(Parcel in) { id = in.readInt(); categoryId = in.readInt(); productId = in.readInt(); price = in.readString(); imageUrlOriginal = in.readString(); imageUrlThumb = in.readString(); imageUrlSmall = in.readString(); imageUrlMedium = in.readString(); name = in.readString(); isInCart = in.readByte() != 0; totalPrice = in.readDouble(); }
Example 6
Source File: CurrentUserCollection.java From DelegateAdapter with Apache License 2.0 | 5 votes |
protected CurrentUserCollection(Parcel in) { id = in.readInt(); title = in.readString(); curated = in.readByte() != 0; user = in.readParcelable(User.class.getClassLoader()); links = in.readParcelable(Links.class.getClassLoader()); }
Example 7
Source File: Article.java From Newslly with MIT License | 5 votes |
protected Article(Parcel in) { this.source = in.readParcelable(Source.class.getClassLoader()); this.author = in.readString(); this.title = in.readString(); this.description = in.readString(); this.url = in.readString(); this.urlToImage = in.readString(); this.publishedAt = in.readString(); long tmpDate = in.readLong(); this.date = tmpDate == -1 ? null : new Date(tmpDate); this.bookmark = in.readByte() != 0; }
Example 8
Source File: ProgressWheel.java From ProgressLayout with Apache License 2.0 | 5 votes |
private WheelSavedState(Parcel in) { super(in); this.mProgress = in.readFloat(); this.mTargetProgress = in.readFloat(); this.isSpinning = in.readByte() != 0; this.spinSpeed = in.readFloat(); this.barWidth = in.readInt(); this.barColor = in.readInt(); this.rimWidth = in.readInt(); this.rimColor = in.readInt(); this.circleRadius = in.readInt(); this.linearProgress = in.readByte() != 0; this.fillRadius = in.readByte() != 0; }
Example 9
Source File: NotificationStats.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
protected NotificationStats(Parcel in) { mSeen = in.readByte() != 0; mExpanded = in.readByte() != 0; mDirectReplied = in.readByte() != 0; mSnoozed = in.readByte() != 0; mViewedSettings = in.readByte() != 0; mInteracted = in.readByte() != 0; mDismissalSurface = in.readInt(); }
Example 10
Source File: PaletteColor.java From MaterialDesignColorPalette with Apache License 2.0 | 5 votes |
public PaletteColor createFromParcel(Parcel in) { final String colorSectionName = in.readString(); final int hex = in.readInt(); final String baseName = in.readString(); final boolean isActionbarPreviewColor = in.readByte() == 1 ? true : false; final boolean isPreviewColor = in.readByte() == 1 ? true : false; return new PaletteColor(colorSectionName, hex, baseName, isActionbarPreviewColor, isPreviewColor); }
Example 11
Source File: MapPoint.java From WhereYouGo with GNU General Public License v3.0 | 5 votes |
public MapPoint(Parcel p) { name = p.readString(); description = p.readString(); latitude = p.readDouble(); longitude = p.readDouble(); target = p.readByte() > 0; data = p.readString(); }
Example 12
Source File: Title.java From IslamicLibraryAndroid with GNU General Public License v3.0 | 5 votes |
protected Title(@NonNull Parcel in) { this.pageInfo = in.readParcelable(PageInfo.class.getClassLoader()); this.id = in.readInt(); this.parentId = in.readInt(); this.title = in.readString(); this.isParent = in.readByte() != 0; }
Example 13
Source File: ScoredNetwork.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private ScoredNetwork(Parcel in) { networkKey = NetworkKey.CREATOR.createFromParcel(in); if (in.readByte() == 1) { rssiCurve = RssiCurve.CREATOR.createFromParcel(in); } else { rssiCurve = null; } meteredHint = (in.readByte() == 1); attributes = in.readBundle(); }
Example 14
Source File: XpNavBarSetting.java From XposedNavigationBar with GNU General Public License v3.0 | 5 votes |
protected XpNavBarSetting(Parcel in) { mShortCutData = in.createTypedArrayList(ShortCut.CREATOR); mHomePointPosition = in.readInt(); mIconSize = in.readInt(); mRootDown = in.readByte() != 0; mClearMenLevel = in.readInt(); mChameleonNavbar = in.readByte() != 0; mNavbarHeight = in.readInt(); mVibrate = in.readByte() != 0; mNavbarHeightOpt = in.readByte() != 0; mGoHomeAfterClick = in.readByte() != 0; }
Example 15
Source File: ServiceResult.java From GreenBits with GNU General Public License v3.0 | 5 votes |
private byte[] readArrayFromParcel(Parcel src) { if (src.readByte() == (byte)1) { return null; } int arraySize = src.readInt(); byte[] result = new byte[arraySize]; src.readByteArray(result); return result; }
Example 16
Source File: UpgradeConfig.java From EasyAndroidUpgrade with Apache License 2.0 | 5 votes |
protected UpgradeConfig(Parcel in) { this.upgradeUrl = in.readString(); this.isAutoStartInstall = in.readByte() != 0; this.isQuietDownload = in.readByte() != 0; this.isCheckPackageName = in.readByte() != 0; this.isAboutChecking = in.readByte() != 0; this.delay = in.readLong(); }
Example 17
Source File: RadioManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private FmBandDescriptor(Parcel in) { super(in); mStereo = in.readByte() == 1; mRds = in.readByte() == 1; mTa = in.readByte() == 1; mAf = in.readByte() == 1; mEa = in.readByte() == 1; }
Example 18
Source File: HttpEntity.java From NoHttp with Apache License 2.0 | 4 votes |
protected HttpEntity(Parcel in) { mSucceed = in.readByte() != 0; mMessage = in.readString(); mData = in.readString(); }
Example 19
Source File: RadioManager.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
private AmBandDescriptor(Parcel in) { super(in); mStereo = in.readByte() == 1; }
Example 20
Source File: CropAreaRenderer.java From mollyim-android with GNU General Public License v3.0 | 4 votes |
@Override public @NonNull CropAreaRenderer createFromParcel(@NonNull Parcel in) { return new CropAreaRenderer(in.readInt(), in.readByte() == 1); }