Java Code Examples for android.os.Parcel.createTypedArray()

The following are Jave code examples for showing how to use createTypedArray() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: MAT-BBS_Discuz_Android   File: ForumDisplay.java   Source Code and License Vote up 6 votes
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);
}
 
Example 2
Project: Watermark   File: Configuration.java   Source Code and License Vote up 6 votes
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;
}
 
Example 3
Project: VirtualHook   File: PackageParserEx.java   Source Code and License Vote up 6 votes
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();
    }
}
 
Example 4
Project: TPlayer   File: PackageParserEx.java   Source Code and License Vote up 6 votes
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();
    }
}
 
Example 5
Project: FontProvider   File: BundledFontFamily.java   Source Code and License Vote up 5 votes
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);
    }
}
 
Example 6
Project: FontProvider   File: FontInfo.java   Source Code and License Vote up 5 votes
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);
}
 
Example 7
Project: MAT-BBS_Discuz_Android   File: ForumDisplay.java   Source Code and License Vote up 5 votes
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);
}
 
Example 8
Project: AppChooser   File: ActionConfig.java   Source Code and License Vote up 5 votes
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;
}
 
Example 9
Project: Exoplayer2Radio   File: DrmInitData.java   Source Code and License Vote up 4 votes
DrmInitData(Parcel in) {
  schemeDatas = in.createTypedArray(SchemeData.CREATOR);
  schemeDataCount = schemeDatas.length;
}
 
Example 10
Project: ExtraMapUtils   File: ExtraPolyline.java   Source Code and License Vote up 4 votes
protected ExtraPolyline(Parcel in) {
    this.points = in.createTypedArray(LatLng.CREATOR);
    this.uiOptions = in.readParcelable(UiOptions.class.getClassLoader());
}
 
Example 11
Project: mapbox-events-android   File: NavigationLocationData.java   Source Code and License Vote up 4 votes
private NavigationLocationData(Parcel in) {
  locationsBefore = in.createTypedArray(Location.CREATOR);
  locationsAfter = in.createTypedArray(Location.CREATOR);
}
 
Example 12
Project: letv   File: FragmentManagerState.java   Source Code and License Vote up 4 votes
public FragmentManagerState(Parcel in) {
    this.mActive = (FragmentState[]) in.createTypedArray(FragmentState.CREATOR);
    this.mAdded = in.createIntArray();
    this.mBackStack = (BackStackState[]) in.createTypedArray(BackStackState.CREATOR);
}
 
Example 13
Project: FontProvider   File: FontRequests.java   Source Code and License Vote up 4 votes
protected FontRequests(Parcel in) {
    this.weight = in.createIntArray();
    this.requests = in.createTypedArray(FontRequest.CREATOR);
}
 
Example 14
Project: FontProvider   File: FontFamily.java   Source Code and License Vote up 4 votes
protected FontFamily(Parcel in) {
    this.variant = in.readInt();
    this.language = in.readString();
    this.fonts = in.createTypedArray(Font.CREATOR);
}
 
Example 15
Project: MAT-BBS_Discuz_Android   File: ForumNav.java   Source Code and License Vote up 4 votes
protected ForumNav(Parcel in) {
    forums = in.createTypedArray(Forum.CREATOR);
}
 
Example 16
Project: Android-DFU-App   File: UartConfiguration.java   Source Code and License Vote up 4 votes
private UartConfiguration(final Parcel in) {
	id = in.readLong();
	name = in.readString();
	commands = in.createTypedArray(Command.CREATOR);
}
 
Example 17
Project: VirtualHook   File: ReceiverInfo.java   Source Code and License Vote up 4 votes
protected ReceiverInfo(Parcel in) {
	this.component = in.readParcelable(ComponentName.class.getClassLoader());
	this.filters = in.createTypedArray(IntentFilter.CREATOR);
	this.permission = in.readString();
}
 
Example 18
Project: Customerly-Android-SDK   File: IE_Survey.java   Source Code and License Vote up 4 votes
private IE_Survey(@NonNull Parcel in) {
    this.survey_id = in.readInt();
    this.limit_from = in.readInt();
    this.limit_to = in.readInt();
    this.step = in.readInt();
    this.seen = in.readInt() == 1;
    switch(in.readInt()) {
        case TYPE_END_SURVEY:
            this.type = TYPE_END_SURVEY;
            break;
        case TYPE_RADIO:
            this.type = TYPE_RADIO;
            break;
        case TYPE_LIST:
            this.type = TYPE_LIST;
            break;
        case TYPE_SCALE:
            this.type = TYPE_SCALE;
            break;
        case TYPE_STAR:
            this.type = TYPE_STAR;
            break;
        case TYPE_NUMBER:
            this.type = TYPE_NUMBER;
            break;
        case TYPE_TEXT_BOX:
            this.type = TYPE_TEXT_BOX;
            break;
        case TYPE_TEXT_AREA:
            this.type = TYPE_TEXT_AREA;
            break;
        case TYPE_BUTTON:
        default:
            this.type = TYPE_BUTTON;
            break;
    }
    this.title = in.readString();
    this.subtitle = in.readString();
    this.thank_you_text = in.readString();
    try {
        this.choices = in.createTypedArray(Choice.CREATOR);
    } catch (Exception ex) {
        this.choices = null;
    }
}
 
Example 19
Project: TPlayer   File: ReceiverInfo.java   Source Code and License Vote up 4 votes
protected ReceiverInfo(Parcel in) {
	this.component = in.readParcelable(ComponentName.class.getClassLoader());
	this.filters = in.createTypedArray(IntentFilter.CREATOR);
	this.permission = in.readString();
}
 
Example 20
Project: container   File: ReceiverInfo.java   Source Code and License Vote up 4 votes
protected ReceiverInfo(Parcel in) {
	this.component = in.readParcelable(ComponentName.class.getClassLoader());
	this.filters = in.createTypedArray(IntentFilter.CREATOR);
	this.permission = in.readString();
}