當前位置: 首頁>>代碼示例>>Java>>正文


Java Parcel.readString方法代碼示例

本文整理匯總了Java中android.os.Parcel.readString方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.readString方法的具體用法?Java Parcel.readString怎麽用?Java Parcel.readString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.readString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TrackedBeacon

import android.os.Parcel; //導入方法依賴的package包/類
protected TrackedBeacon(Parcel in) {
    id = in.readString();
    uuid = in.readString();
    lastSeenTime = in.readLong();
    major = in.readString();
    minor = in.readString();
    txPower = in.readInt();
    rssi = in.readInt();
    distance = in.readDouble();
    bleName = in.readString();
    bleAddress = in.readString();
    type = in.readInt();
    urlEddystone = in.readString();
    this.actions = new ArrayList<>();
    in.readList(actions, getClass().getClassLoader());
}
 
開發者ID:mobillium,項目名稱:omnicrow-android,代碼行數:17,代碼來源:TrackedBeacon.java

示例2: Card

import android.os.Parcel; //導入方法依賴的package包/類
private Card(Parcel in) {
    url = in.readString();
    title = in.readString();
    description = in.readString();
    image = in.readString();
    type = in.readString();
    width = in.readInt();
    height = in.readInt();
}
 
開發者ID:Vavassor,項目名稱:Tusky,代碼行數:10,代碼來源:Card.java

示例3: PullRequestStatusModel

import android.os.Parcel; //導入方法依賴的package包/類
private PullRequestStatusModel(Parcel in) {
    int tmpState = in.readInt();
    this.state = tmpState == -1 ? null : StatusStateType.values()[tmpState];
    this.sha = in.readString();
    this.totalCount = in.readInt();
    this.statuses = in.createTypedArrayList(StatusesModel.CREATOR);
    this.commitUrl = in.readString();
    this.url = in.readString();
    this.mergable = in.readByte() != 0;
    long tmpCreatedAt = in.readLong();
    this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
}
 
開發者ID:duyp,項目名稱:mvvm-template,代碼行數:13,代碼來源:PullRequestStatusModel.java

示例4: SessionParams

import android.os.Parcel; //導入方法依賴的package包/類
protected SessionParams(Parcel in) {
    this.mode = in.readInt();
    this.installFlags = in.readInt();
    this.installLocation = in.readInt();
    this.sizeBytes = in.readLong();
    this.appPackageName = in.readString();
    this.appIcon = in.readParcelable(Bitmap.class.getClassLoader());
    this.appLabel = in.readString();
    this.appIconLastModified = in.readLong();
    this.originatingUri = in.readParcelable(Uri.class.getClassLoader());
    this.referrerUri = in.readParcelable(Uri.class.getClassLoader());
    this.abiOverride = in.readString();
    this.volumeUuid = in.readString();
    this.grantedRuntimePermissions = in.createStringArray();
}
 
開發者ID:7763sea,項目名稱:VirtualHook,代碼行數:16,代碼來源:SessionParams.java

示例5: User

import android.os.Parcel; //導入方法依賴的package包/類
public User(Parcel in) {
    id = in.readInt();
    username = in.readString();
    password = in.readString();
    name = in.readString();
    intro = in.readString();
    starRoutes = in.readString();
    makeRoutes = in.readString();
}
 
開發者ID:yuhodev,項目名稱:login,代碼行數:10,代碼來源:User.java

示例6: PendingResultData

import android.os.Parcel; //導入方法依賴的package包/類
protected PendingResultData(Parcel in) {
    this.mType = in.readInt();
    this.mOrderedHint = in.readByte() != 0;
    this.mInitialStickyHint = in.readByte() != 0;
    this.mToken = in.readStrongBinder();
    this.mSendingUser = in.readInt();
    this.mFlags = in.readInt();
    this.mResultCode = in.readInt();
    this.mResultData = in.readString();
    this.mResultExtras = in.readBundle();
    this.mAbortBroadcast = in.readByte() != 0;
    this.mFinished = in.readByte() != 0;
}
 
開發者ID:codehz,項目名稱:container,代碼行數:14,代碼來源:PendingResultData.java

示例7: AccountInfo

import android.os.Parcel; //導入方法依賴的package包/類
protected AccountInfo(Parcel in) {
    this.firstName = in.readString();
    this.lastName = in.readString();
    this.companyName = in.readString();
    this.businessAccount = in.readByte() != 0;
}
 
開發者ID:Datatellit,項目名稱:xlight_android_native,代碼行數:7,代碼來源:AccountInfo.java

示例8: EditedItem

import android.os.Parcel; //導入方法依賴的package包/類
EditedItem(Parcel in) {
    tag = in.readString();
    newValue = in.readString();
}
 
開發者ID:kollerlukas,項目名稱:Camera-Roll-Android-App,代碼行數:5,代碼來源:ExifEditorActivity.java

示例9: onTransact

import android.os.Parcel; //導入方法依賴的package包/類
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
    ICustomTabsCallback _arg0;
    Bundle _arg1;
    boolean _result;
    Bundle _result2;
    switch (code) {
        case 2:
            data.enforceInterface("android.support.customtabs.ICustomTabsService");
            long _arg02 = data.readLong();
            _result = this.warmup(_arg02);
            reply.writeNoException();
            reply.writeInt(_result ? 1 : 0);
            return true;
        case 3:
            data.enforceInterface("android.support.customtabs.ICustomTabsService");
            _arg0 = ICustomTabsCallback.Stub.asInterface(data.readStrongBinder());
            boolean _arg12 = this.newSession(_arg0);
            reply.writeNoException();
            reply.writeInt(_arg12 ? 1 : 0);
            return true;
        case 4:
            data.enforceInterface("android.support.customtabs.ICustomTabsService");
            _arg0 = ICustomTabsCallback.Stub.asInterface(data.readStrongBinder());
            Uri _arg11;
            if (0 != data.readInt()) {
                _arg11 = Uri.CREATOR.createFromParcel(data);
            } else {
                _arg11 = null;
            }

            if (0 != data.readInt()) {
                _result2 = Bundle.CREATOR.createFromParcel(data);
            } else {
                _result2 = null;
            }

            ArrayList _arg3 = data.createTypedArrayList(Bundle.CREATOR);
            boolean _result1 = this.mayLaunchUrl(_arg0, _arg11, _result2, _arg3);
            reply.writeNoException();
            reply.writeInt(_result1 ? 1 : 0);
            return true;
        case 5:
            data.enforceInterface("android.support.customtabs.ICustomTabsService");
            String _arg01 = data.readString();
            if (0 != data.readInt()) {
                _arg1 = Bundle.CREATOR.createFromParcel(data);
            } else {
                _arg1 = null;
            }

            _result2 = this.extraCommand(_arg01, _arg1);
            reply.writeNoException();
            if (_result2 != null) {
                reply.writeInt(1);
                _result2.writeToParcel(reply, 1);
            } else {
                reply.writeInt(0);
            }

            return true;
        case 6:
            data.enforceInterface("android.support.customtabs.ICustomTabsService");
            _arg0 = ICustomTabsCallback.Stub.asInterface(data.readStrongBinder());
            if (0 != data.readInt()) {
                _arg1 = Bundle.CREATOR.createFromParcel(data);
            } else {
                _arg1 = null;
            }

            _result = this.updateVisuals(_arg0, _arg1);
            reply.writeNoException();
            reply.writeInt(_result ? 1 : 0);
            return true;
        case 1598968902:
            reply.writeString("android.support.customtabs.ICustomTabsService");
            return true;
        default:
            return super.onTransact(code, data, reply, flags);
    }
}
 
開發者ID:MLNO,項目名稱:airgram,代碼行數:81,代碼來源:ICustomTabsService.java

示例10: StreamUrl

import android.os.Parcel; //導入方法依賴的package包/類
protected StreamUrl(Parcel in) {
	display = in.readString();
	tech = in.readString();
	url = in.readString();
}
 
開發者ID:NiciDieNase,項目名稱:chaosflix,代碼行數:6,代碼來源:StreamUrl.java

示例11: GamesBean

import android.os.Parcel; //導入方法依賴的package包/類
protected GamesBean(Parcel in) {

        this.website = in.readString();
        this.image = in.readString();
        this.name = in.readString();
      }
 
開發者ID:MUFCRyan,項目名稱:BilibiliClient,代碼行數:7,代碼來源:UserPlayGameInfo.java

示例12: SavedState

import android.os.Parcel; //導入方法依賴的package包/類
private SavedState(Parcel in) {
    super(in);
    curTab = in.readString();
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:5,代碼來源:FragmentTabHost.java

示例13: GenreModel

import android.os.Parcel; //導入方法依賴的package包/類
protected GenreModel(Parcel in) {
    this.id = (Long) in.readValue(Long.class.getClassLoader());
    this.name = in.readString();
}
 
開發者ID:tgbMedia,項目名稱:Android-app,代碼行數:5,代碼來源:GenreModel.java

示例14: readFromParcel

import android.os.Parcel; //導入方法依賴的package包/類
private void readFromParcel(Parcel parcel) {
	id = parcel.readInt();
	fact = parcel.readString();
	author = parcel.readString();
}
 
開發者ID:sdrausty,項目名稱:buildAPKsApps,代碼行數:6,代碼來源:Fact.java

示例15: Exit

import android.os.Parcel; //導入方法依賴的package包/類
protected Exit(Parcel in) {
    this.exit = in.readString();
}
 
開發者ID:ChristopherAbram,項目名稱:Book-Shelf,代碼行數:4,代碼來源:Exit.java


注:本文中的android.os.Parcel.readString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。