当前位置: 首页>>代码示例>>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;未经允许,请勿转载。