当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.createTypedArray方法代码示例

本文整理汇总了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);
}
 
开发者ID:Trumeet,项目名称:MAT-BBS_Discuz_Android,代码行数:25,代码来源:ForumDisplay.java

示例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;
}
 
开发者ID:Loofer,项目名称:Watermark,代码行数:27,代码来源:Configuration.java

示例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();
    }
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:20,代码来源:PackageParserEx.java

示例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);
    }
}
 
开发者ID:RikkaApps,项目名称:FontProvider,代码行数:11,代码来源:BundledFontFamily.java

示例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);
}
 
开发者ID:RikkaApps,项目名称:FontProvider,代码行数:11,代码来源:FontInfo.java

示例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);
}
 
开发者ID:Trumeet,项目名称:MAT-BBS_Discuz_Android,代码行数:8,代码来源:ForumDisplay.java

示例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;
}
 
开发者ID:JulianAndroid,项目名称:AppChooser,代码行数:10,代码来源:ActionConfig.java

示例8: DrmInitData

import android.os.Parcel; //导入方法依赖的package包/类
DrmInitData(Parcel in) {
  schemeDatas = in.createTypedArray(SchemeData.CREATOR);
  schemeDataCount = schemeDatas.length;
}
 
开发者ID:sanjaysingh1990,项目名称:Exoplayer2Radio,代码行数:5,代码来源:DrmInitData.java

示例9: ExtraPolyline

import android.os.Parcel; //导入方法依赖的package包/类
protected ExtraPolyline(Parcel in) {
    this.points = in.createTypedArray(LatLng.CREATOR);
    this.uiOptions = in.readParcelable(UiOptions.class.getClassLoader());
}
 
开发者ID:bkhezry,项目名称:ExtraMapUtils,代码行数:5,代码来源:ExtraPolyline.java

示例10: NavigationLocationData

import android.os.Parcel; //导入方法依赖的package包/类
private NavigationLocationData(Parcel in) {
  locationsBefore = in.createTypedArray(Location.CREATOR);
  locationsAfter = in.createTypedArray(Location.CREATOR);
}
 
开发者ID:mapbox,项目名称:mapbox-events-android,代码行数:5,代码来源:NavigationLocationData.java

示例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);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:6,代码来源:FragmentManagerState.java

示例12: FontRequests

import android.os.Parcel; //导入方法依赖的package包/类
protected FontRequests(Parcel in) {
    this.weight = in.createIntArray();
    this.requests = in.createTypedArray(FontRequest.CREATOR);
}
 
开发者ID:RikkaApps,项目名称:FontProvider,代码行数:5,代码来源:FontRequests.java

示例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);
}
 
开发者ID:RikkaApps,项目名称:FontProvider,代码行数:6,代码来源:FontFamily.java

示例14: ForumNav

import android.os.Parcel; //导入方法依赖的package包/类
protected ForumNav(Parcel in) {
    forums = in.createTypedArray(Forum.CREATOR);
}
 
开发者ID:Trumeet,项目名称:MAT-BBS_Discuz_Android,代码行数:4,代码来源:ForumNav.java

示例15: UartConfiguration

import android.os.Parcel; //导入方法依赖的package包/类
private UartConfiguration(final Parcel in) {
	id = in.readLong();
	name = in.readString();
	commands = in.createTypedArray(Command.CREATOR);
}
 
开发者ID:runtimeco,项目名称:Android-DFU-App,代码行数:6,代码来源:UartConfiguration.java


注:本文中的android.os.Parcel.createTypedArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。