本文整理汇总了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());
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例8: EditedItem
import android.os.Parcel; //导入方法依赖的package包/类
EditedItem(Parcel in) {
tag = in.readString();
newValue = in.readString();
}
示例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);
}
}
示例10: StreamUrl
import android.os.Parcel; //导入方法依赖的package包/类
protected StreamUrl(Parcel in) {
display = in.readString();
tech = in.readString();
url = in.readString();
}
示例11: GamesBean
import android.os.Parcel; //导入方法依赖的package包/类
protected GamesBean(Parcel in) {
this.website = in.readString();
this.image = in.readString();
this.name = in.readString();
}
示例12: SavedState
import android.os.Parcel; //导入方法依赖的package包/类
private SavedState(Parcel in) {
super(in);
curTab = in.readString();
}
示例13: GenreModel
import android.os.Parcel; //导入方法依赖的package包/类
protected GenreModel(Parcel in) {
this.id = (Long) in.readValue(Long.class.getClassLoader());
this.name = in.readString();
}
示例14: readFromParcel
import android.os.Parcel; //导入方法依赖的package包/类
private void readFromParcel(Parcel parcel) {
id = parcel.readInt();
fact = parcel.readString();
author = parcel.readString();
}
示例15: Exit
import android.os.Parcel; //导入方法依赖的package包/类
protected Exit(Parcel in) {
this.exit = in.readString();
}