當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。