Example usage for android.os Parcel createStringArray

List of usage examples for android.os Parcel createStringArray

Introduction

In this page you can find the example usage for android.os Parcel createStringArray.

Prototype

public final String[] createStringArray() 

Source Link

Usage

From source file:com.aknowledge.v1.automation.PytoDevice.java

public PytoDevice createFromParcel(Parcel source) {
    PytoDevice mDevice = new PytoDevice();
    mDevice.devID = source.readString();
    mDevice.devCommands = source.createStringArray();
    mDevice.devName = source.readString();
    mDevice.devState = source.readString();
    mDevice.devType = source.readString();
    return mDevice;
}

From source file:com.rc.droid_stalker.components.NetworkStats.java

public NetworkStats(Parcel parcel) {
    elapsedRealtime = parcel.readLong();
    size = parcel.readInt();//from   w  ww .jav  a 2  s.c o m
    iface = parcel.createStringArray();
    uid = parcel.createIntArray();
    set = parcel.createIntArray();
    tag = parcel.createIntArray();
    rxBytes = parcel.createLongArray();
    rxPackets = parcel.createLongArray();
    txBytes = parcel.createLongArray();
    txPackets = parcel.createLongArray();
    operations = parcel.createLongArray();
}

From source file:org.jorge.lolin1.func.champs.models.Champion.java

public Champion(Parcel in) {
    Field[] declaredFields = Champion.class.getDeclaredFields();
    try {/*from   w  w w .  ja  v  a 2 s .  c  o  m*/
        for (Field x : declaredFields) {
            Class<?> thisType = x.getType();
            if (thisType == String.class) {
                x.setAccessible(Boolean.TRUE);
                x.set(this, in.readString());
                x.setAccessible(Boolean.FALSE);
            }
        }
    } catch (IllegalAccessException e) {
        Crashlytics.logException(e);
    }
    tags = in.createStringArray();
    skins = in.createStringArray();
    passive = in.readParcelable(PassiveSpell.class.getClassLoader());
    Parcelable[] parcelableSpells = in.readParcelableArray(ActiveSpell.class.getClassLoader());
    spells = new ActiveSpell[parcelableSpells.length];
    for (int i = 0; i < spells.length; i++) {
        spells[i] = (ActiveSpell) parcelableSpells[i];
    }
}

From source file:com.vk.sdkweb.api.model.VKApiUserFull.java

public VKApiUserFull(Parcel in) {
    super(in);/* w  ww. j a va 2  s.  c  o  m*/
    this.activity = in.readString();
    this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader());
    this.bdate = in.readString();
    this.city = in.readParcelable(VKApiCity.class.getClassLoader());
    this.country = in.readParcelable(VKApiCountry.class.getClassLoader());
    this.last_seen = in.readLong();
    this.universities = in.readParcelable(VKList.class.getClassLoader());
    this.schools = in.readParcelable(VKList.class.getClassLoader());
    this.smoking = in.readInt();
    this.alcohol = in.readInt();
    this.political = in.readInt();
    this.life_main = in.readInt();
    this.people_main = in.readInt();
    this.inspired_by = in.readString();
    this.langs = in.createStringArray();
    this.religion = in.readString();
    this.facebook = in.readString();
    this.facebook_name = in.readString();
    this.livejournal = in.readString();
    this.skype = in.readString();
    this.site = in.readString();
    this.twitter = in.readString();
    this.instagram = in.readString();
    this.mobile_phone = in.readString();
    this.home_phone = in.readString();
    this.screen_name = in.readString();
    this.activities = in.readString();
    this.interests = in.readString();
    this.movies = in.readString();
    this.tv = in.readString();
    this.books = in.readString();
    this.games = in.readString();
    this.about = in.readString();
    this.quotes = in.readString();
    this.can_post = in.readByte() != 0;
    this.can_see_all_posts = in.readByte() != 0;
    this.can_write_private_message = in.readByte() != 0;
    this.wall_comments = in.readByte() != 0;
    this.is_banned = in.readByte() != 0;
    this.is_deleted = in.readByte() != 0;
    this.wall_default_owner = in.readByte() != 0;
    this.verified = in.readByte() != 0;
    this.sex = in.readInt();
    this.counters = in.readParcelable(Counters.class.getClassLoader());
    this.relation = in.readInt();
    this.relatives = in.readParcelable(VKList.class.getClassLoader());
    this.blacklisted_by_me = in.readByte() != 0;
}

From source file:com.vk.sdk.api.model.VKApiUserFull.java

public VKApiUserFull(Parcel in) {
    super(in);//from ww w.j  a va 2  s  . c o  m
    this.activity = in.readString();
    this.status_audio = in.readParcelable(VKApiAudio.class.getClassLoader());
    this.bdate = in.readString();
    this.city = in.readParcelable(VKApiCity.class.getClassLoader());
    this.country = in.readParcelable(VKApiCountry.class.getClassLoader());
    this.last_seen = in.readLong();
    this.universities = in.readParcelable(VKList.class.getClassLoader());
    this.schools = in.readParcelable(VKList.class.getClassLoader());
    this.smoking = in.readInt();
    this.alcohol = in.readInt();
    this.political = in.readInt();
    this.life_main = in.readInt();
    this.people_main = in.readInt();
    this.inspired_by = in.readString();
    this.langs = in.createStringArray();
    this.religion = in.readString();
    this.facebook = in.readString();
    this.facebook_name = in.readString();
    this.livejournal = in.readString();
    this.skype = in.readString();
    this.site = in.readString();
    this.twitter = in.readString();
    this.instagram = in.readString();
    this.mobile_phone = in.readString();
    this.home_phone = in.readString();
    this.screen_name = in.readString();
    this.activities = in.readString();
    this.interests = in.readString();
    this.movies = in.readString();
    this.tv = in.readString();
    this.books = in.readString();
    this.games = in.readString();
    this.about = in.readString();
    this.quotes = in.readString();
    this.can_post = in.readByte() != 0;
    this.can_see_all_posts = in.readByte() != 0;
    this.can_write_private_message = in.readByte() != 0;
    this.wall_comments = in.readByte() != 0;
    this.is_banned = in.readByte() != 0;
    this.is_deleted = in.readByte() != 0;
    this.wall_default_owner = in.readByte() != 0;
    this.verified = in.readByte() != 0;
    this.sex = in.readInt();
    this.counters = in.readParcelable(Counters.class.getClassLoader());
    this.occupation = in.readParcelable(Occupation.class.getClassLoader());
    this.relation = in.readInt();
    this.relatives = in.readParcelable(VKList.class.getClassLoader());
    this.blacklisted_by_me = in.readByte() != 0;
}

From source file:android.app.Notification.java

/**
 * Unflatten the notification from a parcel.
 *//*from  w w  w. j  a v a2  s.com*/
public Notification(Parcel parcel) {
    int version = parcel.readInt();

    when = parcel.readLong();
    icon = parcel.readInt();
    number = parcel.readInt();
    if (parcel.readInt() != 0) {
        contentIntent = PendingIntent.CREATOR.createFromParcel(parcel);
    }
    if (parcel.readInt() != 0) {
        deleteIntent = PendingIntent.CREATOR.createFromParcel(parcel);
    }
    if (parcel.readInt() != 0) {
        tickerText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
    }
    if (parcel.readInt() != 0) {
        tickerView = RemoteViews.CREATOR.createFromParcel(parcel);
    }
    if (parcel.readInt() != 0) {
        contentView = RemoteViews.CREATOR.createFromParcel(parcel);
    }
    if (parcel.readInt() != 0) {
        largeIcon = Bitmap.CREATOR.createFromParcel(parcel);
    }
    defaults = parcel.readInt();
    flags = parcel.readInt();
    if (parcel.readInt() != 0) {
        sound = Uri.CREATOR.createFromParcel(parcel);
    }

    audioStreamType = parcel.readInt();
    vibrate = parcel.createLongArray();
    ledARGB = parcel.readInt();
    ledOnMS = parcel.readInt();
    ledOffMS = parcel.readInt();
    iconLevel = parcel.readInt();

    if (parcel.readInt() != 0) {
        fullScreenIntent = PendingIntent.CREATOR.createFromParcel(parcel);
    }

    priority = parcel.readInt();

    kind = parcel.createStringArray(); // may set kind to null

    if (parcel.readInt() != 0) {
        extras = parcel.readBundle();
    }

    actions = parcel.createTypedArray(Action.CREATOR);
    if (parcel.readInt() != 0) {
        bigContentView = RemoteViews.CREATOR.createFromParcel(parcel);
    }
}