本文整理汇总了Java中android.os.Parcel.createTypedArray方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.createTypedArray方法的具体用法?Java Parcel.createTypedArray怎么用?Java Parcel.createTypedArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.createTypedArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Thread
import android.os.Parcel; //导入方法依赖的package包/类
protected Thread(Parcel in) {
tid = in.readString();
typeid = in.readString();
readperm = in.readString();
price = in.readString();
author = in.readString();
authorid = in.readString();
subject = in.readString();
dateline = in.readString();
lastpost = in.readString();
lastposter = in.readString();
views = in.readString();
replies = in.readString();
displayorder = in.readString();
digest = in.readString();
special = in.readString();
attachment = in.readString();
recommend_add = in.readString();
replycredit = in.readString();
dbdateline = in.readString();
dblastpost = in.readString();
rushreply = in.readString();
reply = in.createTypedArray(Reply.CREATOR);
}
示例2: Configuration
import android.os.Parcel; //导入方法依赖的package包/类
protected Configuration(Parcel in) {
image = in.readByte() != 0;
selectedList = in.createTypedArrayList(MediaBean.CREATOR);
radio = in.readByte() != 0;
crop = in.readByte() != 0;
maxSize = in.readInt();
hideBottomControls = in.readByte() != 0;
compressionQuality = in.readInt();
gestures = in.createIntArray();
maxBitmapSize = in.readInt();
maxScaleMultiplier = in.readFloat();
aspectRatioX = in.readFloat();
aspectRatioY = in.readFloat();
selectedByDefault = in.readInt();
aspectRatio = in.createTypedArray(AspectRatio.CREATOR);
freestyleCropEnabled = in.readByte() != 0;
ovalDimmedLayer = in.readByte() != 0;
maxResultWidth = in.readInt();
maxResultHeight = in.readInt();
imageLoaderType = in.readInt();
imageConfig = in.readInt();
hideCamera = in.readByte() != 0;
isPlayGif = in.readByte() != 0;
hidePreview = in.readByte() != 0;
isVideoPreview = in.readByte() != 0;
}
示例3: readSignature
import android.os.Parcel; //导入方法依赖的package包/类
public static void readSignature(VPackage pkg) {
File signatureFile = VEnvironment.getSignatureFile(pkg.packageName);
if (!signatureFile.exists()) {
return;
}
Parcel p = Parcel.obtain();
try {
FileInputStream fis = new FileInputStream(signatureFile);
byte[] bytes = FileUtils.toByteArray(fis);
fis.close();
p.unmarshall(bytes, 0, bytes.length);
p.setDataPosition(0);
pkg.mSignatures = p.createTypedArray(Signature.CREATOR);
} catch (IOException e) {
e.printStackTrace();
} finally {
p.recycle();
}
}
示例4: BundledFontFamily
import android.os.Parcel; //导入方法依赖的package包/类
protected BundledFontFamily(Parcel in) {
this.families = in.createTypedArray(FontFamily.CREATOR);
int fdSize = in.readInt();
this.fd = new HashMap<>(fdSize);
for (int i = 0; i < fdSize; i++) {
String key = in.readString();
ParcelFileDescriptor value = in.readParcelable(ParcelFileDescriptor.class.getClassLoader());
this.fd.put(key, value);
}
}
示例5: FontInfo
import android.os.Parcel; //导入方法依赖的package包/类
private FontInfo(Parcel in) {
this.name = in.readString();
this.variant = in.readString();
this.language = in.createStringArray();
this.ttc_index = in.createIntArray();
this.size = in.readString();
this.preview_text = in.createStringArray();
this.url_prefix = in.readString();
this.style = in.createTypedArray(Style.CREATOR);
}
示例6: ForumDisplay
import android.os.Parcel; //导入方法依赖的package包/类
protected ForumDisplay(Parcel in) {
tpp = in.readString();
page = in.readString();
reward_unit = in.readString();
forum = in.readParcelable(Forum.class.getClassLoader());
forum_threadlist = in.createTypedArray(Thread.CREATOR);
}
示例7: ActionConfig
import android.os.Parcel; //导入方法依赖的package包/类
protected ActionConfig(Parcel in) {
this.actionName = in.readString();
this.pathname = in.readString();
this.requestCode = in.readInt();
this.excluded = in.createTypedArray(ComponentName.CREATOR);
this.mimeType = in.readString();
this.text = in.readString();
this.fromActivity = in.readByte() != 0;
}
示例8: DrmInitData
import android.os.Parcel; //导入方法依赖的package包/类
DrmInitData(Parcel in) {
schemeDatas = in.createTypedArray(SchemeData.CREATOR);
schemeDataCount = schemeDatas.length;
}
示例9: ExtraPolyline
import android.os.Parcel; //导入方法依赖的package包/类
protected ExtraPolyline(Parcel in) {
this.points = in.createTypedArray(LatLng.CREATOR);
this.uiOptions = in.readParcelable(UiOptions.class.getClassLoader());
}
示例10: NavigationLocationData
import android.os.Parcel; //导入方法依赖的package包/类
private NavigationLocationData(Parcel in) {
locationsBefore = in.createTypedArray(Location.CREATOR);
locationsAfter = in.createTypedArray(Location.CREATOR);
}
示例11: FragmentManagerState
import android.os.Parcel; //导入方法依赖的package包/类
public FragmentManagerState(Parcel in) {
this.mActive = (FragmentState[]) in.createTypedArray(FragmentState.CREATOR);
this.mAdded = in.createIntArray();
this.mBackStack = (BackStackState[]) in.createTypedArray(BackStackState.CREATOR);
}
示例12: FontRequests
import android.os.Parcel; //导入方法依赖的package包/类
protected FontRequests(Parcel in) {
this.weight = in.createIntArray();
this.requests = in.createTypedArray(FontRequest.CREATOR);
}
示例13: FontFamily
import android.os.Parcel; //导入方法依赖的package包/类
protected FontFamily(Parcel in) {
this.variant = in.readInt();
this.language = in.readString();
this.fonts = in.createTypedArray(Font.CREATOR);
}
示例14: ForumNav
import android.os.Parcel; //导入方法依赖的package包/类
protected ForumNav(Parcel in) {
forums = in.createTypedArray(Forum.CREATOR);
}
示例15: UartConfiguration
import android.os.Parcel; //导入方法依赖的package包/类
private UartConfiguration(final Parcel in) {
id = in.readLong();
name = in.readString();
commands = in.createTypedArray(Command.CREATOR);
}