當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。