Java Code Examples for android.os.Parcel#createStringArray()

The following examples show how to use android.os.Parcel#createStringArray() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobParameters.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
private JobParameters(Parcel in) {
    jobId = in.readInt();
    extras = in.readPersistableBundle();
    transientExtras = in.readBundle();
    if (in.readInt() != 0) {
        clipData = ClipData.CREATOR.createFromParcel(in);
        clipGrantFlags = in.readInt();
    } else {
        clipData = null;
        clipGrantFlags = 0;
    }
    callback = in.readStrongBinder();
    overrideDeadlineExpired = in.readInt() == 1;
    mTriggeredContentUris = in.createTypedArray(Uri.CREATOR);
    mTriggeredContentAuthorities = in.createStringArray();
    if (in.readInt() != 0) {
        network = Network.CREATOR.createFromParcel(in);
    } else {
        network = null;
    }
    stopReason = in.readInt();
    debugStopReason = in.readString();
}
 
Example 2
Source File: UsageEvents.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
/**
 * Construct the iterator from a parcel.
 * {@hide}
 */
public UsageEvents(Parcel in) {
    byte[] bytes = in.readBlob();
    Parcel data = Parcel.obtain();
    data.unmarshall(bytes, 0, bytes.length);
    data.setDataPosition(0);
    mEventCount = data.readInt();
    mIndex = data.readInt();
    if (mEventCount > 0) {
        mStringPool = data.createStringArray();

        final int listByteLength = data.readInt();
        final int positionInParcel = data.readInt();
        mParcel = Parcel.obtain();
        mParcel.setDataPosition(0);
        mParcel.appendFrom(data, data.dataPosition(), listByteLength);
        mParcel.setDataSize(mParcel.dataPosition());
        mParcel.setDataPosition(positionInParcel);
    }
}
 
Example 3
Source File: GalleryInfo.java    From EhViewer with Apache License 2.0 6 votes vote down vote up
protected GalleryInfo(Parcel in) {
    this.gid = in.readLong();
    this.token = in.readString();
    this.title = in.readString();
    this.titleJpn = in.readString();
    this.thumb = in.readString();
    this.category = in.readInt();
    this.posted = in.readString();
    this.uploader = in.readString();
    this.rating = in.readFloat();
    this.rated = in.readByte() != 0;
    this.simpleLanguage = in.readString();
    this.simpleTags = in.createStringArray();
    this.thumbWidth = in.readInt();
    this.thumbHeight = in.readInt();
    this.spanSize = in.readInt();
    this.spanIndex = in.readInt();
    this.spanGroupIndex = in.readInt();
    this.favoriteSlot = in.readInt();
    this.favoriteName = in.readString();
}
 
Example 4
Source File: PackageInfoLite.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
private PackageInfoLite(Parcel source) {
    packageName = source.readString();
    splitNames = source.createStringArray();
    versionCode = source.readInt();
    versionCodeMajor = source.readInt();
    baseRevisionCode = source.readInt();
    splitRevisionCodes = source.createIntArray();
    recommendedInstallLocation = source.readInt();
    installLocation = source.readInt();
    multiArch = (source.readInt() != 0);

    final int verifiersLength = source.readInt();
    if (verifiersLength == 0) {
        verifiers = new VerifierInfo[0];
    } else {
        verifiers = new VerifierInfo[verifiersLength];
        source.readTypedArray(verifiers, VerifierInfo.CREATOR);
    }
}
 
Example 5
Source File: CharSequenceTransformation.java    From android_9.0.0_r45 with Apache License 2.0 6 votes vote down vote up
@Override
public CharSequenceTransformation createFromParcel(Parcel parcel) {
    final AutofillId[] ids = parcel.readParcelableArray(null, AutofillId.class);
    final Pattern[] regexs = (Pattern[]) parcel.readSerializable();
    final String[] substs = parcel.createStringArray();

    // Always go through the builder to ensure the data ingested by
    // the system obeys the contract of the builder to avoid attacks
    // using specially crafted parcels.
    final CharSequenceTransformation.Builder builder =
            new CharSequenceTransformation.Builder(ids[0], regexs[0], substs[0]);

    final int size = ids.length;
    for (int i = 1; i < size; i++) {
        builder.addField(ids[i], regexs[i], substs[i]);
    }
    return builder.build();
}
 
Example 6
Source File: Spinner.java    From SimpleDialogFragments with Apache License 2.0 5 votes vote down vote up
protected Spinner(Parcel in) {
    super(in);
    itemArrayRes = in.readInt();
    itemStringResArray = in.createIntArray();
    items = in.createStringArray();
    placeholder = in.readString();
    placeholderResourceId = in.readInt();
    position = in.readInt();
}
 
Example 7
Source File: GankItemData.java    From NiceRead with Apache License 2.0 5 votes vote down vote up
protected GankItemData(Parcel in) {
    this._id = in.readString();
    this.createdAt = in.readString();
    this.desc = in.readString();
    this.images = in.createStringArray();
    this.publishedAt = in.readString();
    this.source = in.readString();
    this.type = in.readString();
    this.url = in.readString();
    this.used = in.readByte() != 0;
    this.who = in.readString();
}
 
Example 8
Source File: ActivityManager.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public void readFromParcel(Parcel source) {
    stackId = source.readInt();
    bounds = new Rect(
            source.readInt(), source.readInt(), source.readInt(), source.readInt());
    taskIds = source.createIntArray();
    taskNames = source.createStringArray();
    final int boundsCount = source.readInt();
    if (boundsCount > 0) {
        taskBounds = new Rect[boundsCount];
        for (int i = 0; i < boundsCount; i++) {
            taskBounds[i] = new Rect();
            taskBounds[i].set(
                    source.readInt(), source.readInt(), source.readInt(), source.readInt());
        }
    } else {
        taskBounds = null;
    }
    taskUserIds = source.createIntArray();
    displayId = source.readInt();
    userId = source.readInt();
    visible = source.readInt() > 0;
    position = source.readInt();
    if (source.readInt() > 0) {
        topActivity = ComponentName.readFromParcel(source);
    }
    configuration.readFromParcel(source);
}
 
Example 9
Source File: InstantAppInfo.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
private InstantAppInfo(Parcel parcel) {
    mPackageName = parcel.readString();
    mLabelText = parcel.readCharSequence();
    mRequestedPermissions = parcel.readStringArray();
    mGrantedPermissions = parcel.createStringArray();
    mApplicationInfo = parcel.readParcelable(null);
}
 
Example 10
Source File: RecommendSceneItem.java    From NewXmPluginSDK with Apache License 2.0 5 votes vote down vote up
public void readFromParcel(Parcel parcel) {
    mDeviceModels = parcel.createStringArray();
    mConditionName = parcel.readString();
    int size = parcel.readInt();
    if(size != 0) {
        mKeys = new Key[size];
        for(int i=0; i<size; i++) {
            mKeys[i] = new Key();
            mKeys[i].readFromParcel(parcel);
        }
    }
    mProductId = parcel.readString();
    mAddAllDevice = (Boolean) parcel.readValue(ClassLoader.getSystemClassLoader());
    mSrc = parcel.readString();
}
 
Example 11
Source File: CTInboxStyleConfig.java    From clevertap-android-sdk with MIT License 5 votes vote down vote up
protected CTInboxStyleConfig(Parcel in) {
    navBarColor = in.readString();
    navBarTitle = in.readString();
    navBarTitleColor = in.readString();
    inboxBackgroundColor = in.readString();
    tabs = in.createStringArray();
    backButtonColor = in.readString();
    selectedTabColor = in.readString();
    unselectedTabColor = in.readString();
    selectedTabIndicatorColor = in.readString();
    tabBackgroundColor = in.readString();
}
 
Example 12
Source File: GalleryConfig.java    From KrGallery with GNU General Public License v2.0 5 votes vote down vote up
protected GalleryConfig(Parcel in) {
    this.filterMimeTypes = in.createStringArray();
    this.hintOfPick = in.readString();
    this.singlePhoto = in.readByte() != 0;
    this.limitPickPhoto = in.readInt();
    this.isSingleVedio = in.readByte() != 0;
    this.isNeedCrop = in.readByte() != 0;
    this.filePath = in.readString();
    this.type = in.readInt();
    this.requestCode = in.readInt();
    this.limitRecordTime = in.readInt();
    this.limitRecordSize = in.readInt();
}
 
Example 13
Source File: SelectItemQuiz.java    From android-topeka with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("unused")
public SelectItemQuiz(Parcel in) {
    super(in);
    String[] options = in.createStringArray();
    setOptions(options);
}
 
Example 14
Source File: Executable.java    From android-kernel-tweaker with GNU General Public License v3.0 4 votes vote down vote up
public Executable(Parcel parcel) {
    this.mCommandsArray = parcel.createStringArray();
    this.mStartTime = parcel.readLong();
    this.mStatus = Status.valueOf(parcel.readString());
    this.mFinishTime = parcel.readLong();
}
 
Example 15
Source File: VKApiUserFull.java    From cordova-social-vk with Apache License 2.0 4 votes vote down vote up
public VKApiUserFull(Parcel in) {
    super(in);
    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;
}
 
Example 16
Source File: IconStyleData.java    From Status with Apache License 2.0 4 votes vote down vote up
protected IconStyleData(Parcel in) {
    name = in.readString();
    resource = in.createIntArray();
    path = in.createStringArray();
    icons = new HashMap<>();
}
 
Example 17
Source File: FourQuarterQuiz.java    From android-topeka with Apache License 2.0 4 votes vote down vote up
public FourQuarterQuiz(Parcel in) {
    super(in);
    String options[] = in.createStringArray();
    setOptions(options);
}
 
Example 18
Source File: Statm.java    From AndroidProcesses with Apache License 2.0 4 votes vote down vote up
private Statm(Parcel in) {
  super(in);
  this.fields = in.createStringArray();
}
 
Example 19
Source File: Stat.java    From AndroidProcess with Apache License 2.0 4 votes vote down vote up
private Stat(Parcel in) {
  super(in);
  this.fields = in.createStringArray();
}
 
Example 20
Source File: Tool.java    From auid2 with Apache License 2.0 4 votes vote down vote up
private Tool(Parcel in) {
    this.mName = in.readString();
    this.mPrice = in.readString();
    this.mDetails = in.createStringArray();
    this.mDescription = in.readString();
}