当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.readByte方法代码示例

本文整理汇总了Java中android.os.Parcel.readByte方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readByte方法的具体用法?Java Parcel.readByte怎么用?Java Parcel.readByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.readByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Release

import android.os.Parcel; //导入方法依赖的package包/类
protected Release(Parcel in) {
    this.id = in.readString();
    this.tagName = in.readString();
    this.targetCommitish = in.readString();
    this.name = in.readString();
    this.body = in.readString();
    this.bodyHtml = in.readString();
    this.tarballUrl = in.readString();
    this.zipballUrl = in.readString();
    this.draft = in.readByte() != 0;
    this.preRelease = in.readByte() != 0;
    long tmpCreatedAt = in.readLong();
    this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
    long tmpPublishedAt = in.readLong();
    this.publishedAt = tmpPublishedAt == -1 ? null : new Date(tmpPublishedAt);
    this.author = in.readParcelable(User.class.getClassLoader());
    this.assets = in.createTypedArrayList(ReleaseAsset.CREATOR);
}
 
开发者ID:ThirtyDegreesRay,项目名称:OpenHub,代码行数:19,代码来源:Release.java

示例2: GitCommitModel

import android.os.Parcel; //导入方法依赖的package包/类
protected GitCommitModel(Parcel in) {
    this.sha = in.readString();
    this.url = in.readString();
    this.message = in.readString();
    this.author = in.readParcelable(User.class.getClassLoader());
    this.committer = in.readParcelable(User.class.getClassLoader());
    this.tree = in.readParcelable(User.class.getClassLoader());
    this.distincted = in.readByte() != 0;

    this.parents = new RealmList<>();
    ArrayList<GitCommitModel> list = in.createTypedArrayList(GitCommitModel.CREATOR);
    if (list != null && list.size() > 0) {
        parents.addAll(list);
    }

    this.commentCount = in.readInt();
}
 
开发者ID:duyp,项目名称:mvvm-template,代码行数:18,代码来源:GitCommitModel.java

示例3: MapLoadEvent

import android.os.Parcel; //导入方法依赖的package包/类
private MapLoadEvent(Parcel in) {
  event = in.readString();
  created = in.readString();
  userId = in.readString();
  model = in.readString();
  operatingSystem = in.readString();
  resolution = in.readByte() == 0x00 ? null : in.readFloat();
  accessibilityFontScale = in.readByte() == 0x00 ? null : in.readFloat();
  orientation = in.readString();
  batteryLevel = in.readByte() == 0x00 ? null : in.readInt();
  byte pluggedInVal = in.readByte();
  pluggedIn = pluggedInVal == 0x02 ? null : pluggedInVal != 0x00;
  carrier = in.readString();
  cellularNetworkType = in.readString();
  byte wifiVal = in.readByte();
  wifi = wifiVal == 0x02 ? null : wifiVal != 0x00;
}
 
开发者ID:mapbox,项目名称:mapbox-events-android,代码行数:18,代码来源:MapLoadEvent.java

示例4: PhotoAlbum

import android.os.Parcel; //导入方法依赖的package包/类
protected PhotoAlbum(Parcel in) {
    super(in);
    id = in.readInt();
    ownerId = in.readInt();
    size = in.readInt();
    title = in.readString();
    description = in.readString();
    canUpload = in.readByte() != 0;
    updatedTime = in.readLong();
    createdTime = in.readLong();
    sizes = in.readParcelable(PhotoSizes.class.getClassLoader());
    uploadByAdminsOnly = in.readByte() != 0;
    commentsDisabled = in.readByte() != 0;
    privacyView = in.readParcelable(SimplePrivacy.class.getClassLoader());
    privacyComment = in.readParcelable(SimplePrivacy.class.getClassLoader());
}
 
开发者ID:PhoenixDevTeam,项目名称:Phoenix-for-VK,代码行数:17,代码来源:PhotoAlbum.java

示例5: createFromParcel

import android.os.Parcel; //导入方法依赖的package包/类
public MeshModelMessageOpcode createFromParcel(Parcel in) {
	MeshModelMessageOpcode msgOp = new MeshModelMessageOpcode();

	msgOp.mOp0 = in.readByte();
	msgOp.mOp1 = in.readByte();
	msgOp.mOp2 = in.readByte();

	return msgOp;
}
 
开发者ID:blxble,项目名称:mesh-core-on-android,代码行数:10,代码来源:MeshModelMessageOpcode.java

示例6: Configuration

import android.os.Parcel; //导入方法依赖的package包/类
protected Configuration(Parcel in) {
    this.endpoints = in.createTypedArrayList(Endpoint.CREATOR);
    this.isWifiCollectionDisabled = in.readByte() != 0;
    this.isDeviceModelCollectionDisabled = in.readByte() != 0;
    this.isDeviceManufacturerCollectionDisabled = in.readByte() != 0;
    this.isOperatingSystemCollectionDisbaled = in.readByte() != 0;
    this.isChargingInfoCollectionDisabled = in.readByte() != 0;
    this.isCarrierNameCollectionDisabled = in.readByte() != 0;
    this.isConnectionTypeCollectionDisabled = in.readByte() != 0;
    this.isLocationMethodCollectionDisabled = in.readByte() != 0;
    this.isLocationContextCollectionDisabled = in.readByte() != 0;
}
 
开发者ID:OpenLocate,项目名称:openlocate-android,代码行数:13,代码来源:OpenLocate.java

示例7: AtPoint

import android.os.Parcel; //导入方法依赖的package包/类
protected AtPoint(Parcel in) {
    id_point = in.readInt();
    pos = in.readByte() == 0x00 ? null : in.readInt();
    name = in.readString();
    title = in.readString();
    description = in.readString();
    image = in.readString();
    lat = in.readDouble();
    lon = in.readDouble();
    status = in.readString();
    time_reached = in.readString();
}
 
开发者ID:stefanonicolai,项目名称:AstronomyTourPadova,代码行数:13,代码来源:AtPoint.java

示例8: BeerProductItem

import android.os.Parcel; //导入方法依赖的package包/类
protected BeerProductItem( Parcel in ){
    super( in );
    this.id = in.readString();
    this.alcohol = in.readString();
    this.image = in.readString();
    this.name = in.readString();
    this.price = in.readInt();
    this.volume = in.readString();
    this.amount = in.readInt();
    this.isAdded = in.readByte() != 0;
}
 
开发者ID:TheKhaeng,项目名称:nongbeer-mvp-android-demo,代码行数:12,代码来源:BeerProductItem.java

示例9: readSparseBooleanArrayInternal

import android.os.Parcel; //导入方法依赖的package包/类
private void readSparseBooleanArrayInternal(
		SparseArrayCompat<Boolean> outVal, Parcel in, int N) {
	while (N > 0) {
		int key = in.readInt();
		boolean value = in.readByte() == 1;
		if (LOG_ENABLED) {
			Log.i(TAG, "Unmarshalling key=" + key + " value=" + value);
		}
		outVal.append(key, value);
		N--;
	}
}
 
开发者ID:junchenChow,项目名称:exciting-app,代码行数:13,代码来源:AbsHListView.java

示例10: LocalSearch

import android.os.Parcel; //导入方法依赖的package包/类
public LocalSearch(Parcel in) {
    mName = in.readString();
    mPredefined = (in.readByte() == 1);
    mManualSearch = (in.readByte() == 1);
    mAccountUuids.addAll(in.createStringArrayList());
    mConditions = in.readParcelable(LocalSearch.class.getClassLoader());
    mLeafSet = (mConditions == null) ? null : mConditions.getLeafSet();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:9,代码来源:LocalSearch.java

示例11: ConnectedMessageSnapshot

import android.os.Parcel; //导入方法依赖的package包/类
ConnectedMessageSnapshot(Parcel in) {
    super(in);
    this.resuming = in.readByte() != 0;
    this.totalBytes = in.readLong();
    this.etag = in.readString();
    this.fileName = in.readString();
}
 
开发者ID:angcyo,项目名称:RLibrary,代码行数:8,代码来源:LargeMessageSnapshot.java

示例12: WXContent

import android.os.Parcel; //导入方法依赖的package包/类
protected WXContent(Parcel in) {
    super(in);
    this.title = in.readString();
    this.thumb = in.readParcelable(Bitmap.class.getClassLoader());
    this.description = in.readString();
    this.text = in.readString();
    this.image = in.readParcelable(Bitmap.class.getClassLoader());
    this.link = in.readString();
    this.timeline = in.readByte() != 0;
}
 
开发者ID:szitguy,项目名称:Allshare,代码行数:11,代码来源:WXContent.java

示例13: ArticleListBean

import android.os.Parcel; //导入方法依赖的package包/类
protected ArticleListBean(Parcel in) {
    this.articleTags = in.readString();
    this.digest = in.readString();
    this.docid = in.readString();
    this.fromTopicSource = in.readByte() != 0;
    this.gameName = in.readString();
    this.id = in.readInt();
    this.largeLogoUrl = in.readString();
    this.lmodify = in.readString();
    this.nickname = in.readString();
    this.penName = in.readString();
    this.photosetId = in.readString();
    this.photosetImgNum = in.readInt();
    this.priority = in.readInt();
    this.ptime = in.readString();
    this.readSeconds = in.readInt();
    this.replyCount = in.readInt();
    this.role = in.readString();
    this.showType = in.readInt();
    this.source = in.readString();
    this.specialId = in.readString();
    this.subtitle = in.readString();
    this.title = in.readString();
    this.topicName = in.readString();
    this.url = in.readString();
    this.userId = in.readInt();
    this.userOrder = in.readByte() != 0;
    this.imgsrc = in.createStringArrayList();
    this.editor = new ArrayList<Editor>();
    in.readList(this.editor, Editor.class.getClassLoader());
    this.fidIconUrl = in.readString();
    this.tid = in.readString();
    this.topicId = in.readString();
    this.docId = in.readString();
    this.imgUrl = in.readString();
    this.isLooked = in.readByte() != 0;
}
 
开发者ID:Jay-Ping,项目名称:newIPlay,代码行数:38,代码来源:ArticleListBean.java

示例14: DialogSettings

import android.os.Parcel; //导入方法依赖的package包/类
protected DialogSettings(Parcel in) {
    this.versionName = in.readString();
    this.titleResId = in.readInt();
    this.textPositiveResId = in.readInt();
    this.textNeutralResId = in.readInt();
    this.showNeutralButton = in.readByte() != 0;
    this.showPositiveButton = in.readByte() != 0;
    this.showTitle = in.readByte() != 0;
    this.cancelable = in.readByte() != 0;
    this.titleText = in.readString();
    this.positiveText = in.readString();
    this.neutralText = in.readString();
}
 
开发者ID:nonzeroapps,项目名称:whatisnewdialog,代码行数:14,代码来源:DialogSettings.java

示例15: ProfileDataModel

import android.os.Parcel; //导入方法依赖的package包/类
protected ProfileDataModel(Parcel in) {
    success = in.readByte() != 0;
    name = in.readString();
    rollno = in.readString();
    photo = in.readString();
    email = in.readString();
    msg = in.readString();
}
 
开发者ID:appteam-nith,项目名称:Hillffair17,代码行数:9,代码来源:ProfileDataModel.java


注:本文中的android.os.Parcel.readByte方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。