Java Code Examples for android.os.Parcel#createIntArray()
The following examples show how to use
android.os.Parcel#createIntArray() .
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: StreamInfo.java From Pocket-Plays-for-Twitch with GNU General Public License v3.0 | 6 votes |
public StreamInfo(Parcel in) { String[] stringsData = in.createStringArray(); int[] intData = in.createIntArray(); if (stringsData.length == 2) { this.game = stringsData[0]; this.title = stringsData[1]; } if (intData.length == 2) { this.currentViewers = intData[0]; this.priority = intData[1]; } this.startedAt = in.readLong(); this.previews =in.createStringArray(); this.channelInfo = in.readParcelable(StreamInfo.class.getClassLoader()); }
Example 2
Source File: PackageInfoLite.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
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 3
Source File: Input.java From SimpleDialogFragments with Apache License 2.0 | 6 votes |
private Input(Parcel in) { super(in); hint = in.readString(); hintResourceId = in.readInt(); text = in.readString(); textResourceId = in.readInt(); inputType = in.readInt(); maxLength = in.readInt(); minLength = in.readInt(); suggestionArrayRes = in.readInt(); suggestionStringResArray = in.createIntArray(); suggestions = in.createStringArray(); passwordToggleVisible = in.readByte() != 0; forceSuggestion = in.readByte() != 0; pattern = in.readString(); patternError = in.readString(); patternErrorId = in.readInt(); }
Example 4
Source File: BatchUpdates.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
@Override public BatchUpdates createFromParcel(Parcel parcel) { // 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 Builder builder = new Builder(); final int[] ids = parcel.createIntArray(); if (ids != null) { final InternalTransformation[] values = parcel.readParcelableArray(null, InternalTransformation.class); final int size = ids.length; for (int i = 0; i < size; i++) { builder.transformChild(ids[i], values[i]); } } final RemoteViews updates = parcel.readParcelable(null); if (updates != null) { builder.updateTemplate(updates); } return builder.build(); }
Example 5
Source File: Item.java From PhilHackerNews with MIT License | 5 votes |
protected Item(Parcel in) { id = in.readInt(); type = in.readString(); score = in.readInt(); title = in.readString(); author = in.readString(); url = in.readString(); text = in.readString(); comments = in.createIntArray(); parent = in.readInt(); deleted = in.readInt() == 1; }
Example 6
Source File: BackStackRecord.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
public BackStackState(Parcel in) { mOps = in.createIntArray(); mTransition = in.readInt(); mTransitionStyle = in.readInt(); mName = in.readString(); mIndex = in.readInt(); mBreadCrumbTitleRes = in.readInt(); mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mBreadCrumbShortTitleRes = in.readInt(); mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mSharedElementSourceNames = in.createStringArrayList(); mSharedElementTargetNames = in.createStringArrayList(); mReorderingAllowed = in.readInt() != 0; }
Example 7
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
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 8
Source File: PrimitiveArrayParcelable.java From android-parcelable-intellij-plugin with Apache License 2.0 | 5 votes |
protected PrimitiveArrayParcelable(Parcel in) { this.a = in.createIntArray(); this.b = in.createDoubleArray(); this.c = in.createStringArray(); this.e = in.createFloatArray(); this.f = in.createBooleanArray(); this.g = in.createByteArray(); }
Example 9
Source File: BackStackState.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public BackStackState(Parcel parcel) { a = parcel.createIntArray(); b = parcel.readInt(); c = parcel.readInt(); d = parcel.readString(); e = parcel.readInt(); f = parcel.readInt(); g = (CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); h = parcel.readInt(); i = (CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); }
Example 10
Source File: BackStackRecord.java From adt-leanback-support with Apache License 2.0 | 5 votes |
public BackStackState(Parcel in) { mOps = in.createIntArray(); mTransition = in.readInt(); mTransitionStyle = in.readInt(); mName = in.readString(); mIndex = in.readInt(); mBreadCrumbTitleRes = in.readInt(); mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mBreadCrumbShortTitleRes = in.readInt(); mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mSharedElementSourceNames = in.createStringArrayList(); mSharedElementTargetNames = in.createStringArrayList(); }
Example 11
Source File: BackStackRecord.java From V.FlyoutTest with MIT License | 5 votes |
public BackStackState(Parcel in) { mOps = in.createIntArray(); mTransition = in.readInt(); mTransitionStyle = in.readInt(); mName = in.readString(); mIndex = in.readInt(); mBreadCrumbTitleRes = in.readInt(); mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mBreadCrumbShortTitleRes = in.readInt(); mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); }
Example 12
Source File: ColorField.java From SimpleDialogFragments with Apache License 2.0 | 5 votes |
protected ColorField(Parcel in) { super(in); preset = in.readInt(); presetId = in.readInt(); colors = in.createIntArray(); allowCustom = in.readByte() != 0; outline = in.readInt(); }
Example 13
Source File: VKApiChat.java From cordova-social-vk with Apache License 2.0 | 5 votes |
/** * Creates a Chat instance from Parcel. */ public VKApiChat(Parcel in) { this.id = in.readInt(); this.type = in.readString(); this.title = in.readString(); this.admin_id = in.readInt(); this.users = in.createIntArray(); }
Example 14
Source File: BackStackRecord.java From android-recipes-app with Apache License 2.0 | 5 votes |
public BackStackState(Parcel in) { mOps = in.createIntArray(); mTransition = in.readInt(); mTransitionStyle = in.readInt(); mName = in.readString(); mIndex = in.readInt(); mBreadCrumbTitleRes = in.readInt(); mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mBreadCrumbShortTitleRes = in.readInt(); mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); }
Example 15
Source File: ViewInfosContainer.java From pandroid with Apache License 2.0 | 5 votes |
protected ViewInfosContainer(Parcel in) { viewClass = (Class<? extends View>) in.readSerializable(); viewId = in.readInt(); viewTagS = in.readSerializable(); viewTagP = in.readParcelable(getClass().getClassLoader()); backgroundColor = (Integer) in.readSerializable(); padding = in.createIntArray(); position = in.createFloatArray(); size = in.createIntArray(); textColor = in.readInt(); textSize = in.readFloat(); textGravity = in.readInt(); elevation = in.readFloat(); }
Example 16
Source File: FactoryPalette.java From color-picker with Apache License 2.0 | 4 votes |
public void readFromParcel(Parcel in) { mName = in.readString(); mValues = in.createIntArray(); mColumns = in.readInt(); }
Example 17
Source File: FragmentManager.java From guideshow with MIT License | 4 votes |
public FragmentManagerState(Parcel in) { mActive = in.createTypedArray(FragmentState.CREATOR); mAdded = in.createIntArray(); mBackStack = in.createTypedArray(BackStackState.CREATOR); }
Example 18
Source File: AppOpsState.java From AppOpsXposed with GNU General Public License v3.0 | 4 votes |
OpsTemplate(Parcel src) { ops = src.createIntArray(); showPerms = src.createBooleanArray(); }
Example 19
Source File: PackageInfo.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
private PackageInfo(Parcel source) { packageName = source.readString(); splitNames = source.createStringArray(); versionCode = source.readInt(); versionCodeMajor = source.readInt(); versionName = source.readString(); baseRevisionCode = source.readInt(); splitRevisionCodes = source.createIntArray(); sharedUserId = source.readString(); sharedUserLabel = source.readInt(); int hasApp = source.readInt(); if (hasApp != 0) { applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source); } firstInstallTime = source.readLong(); lastUpdateTime = source.readLong(); gids = source.createIntArray(); activities = source.createTypedArray(ActivityInfo.CREATOR); receivers = source.createTypedArray(ActivityInfo.CREATOR); services = source.createTypedArray(ServiceInfo.CREATOR); providers = source.createTypedArray(ProviderInfo.CREATOR); instrumentation = source.createTypedArray(InstrumentationInfo.CREATOR); permissions = source.createTypedArray(PermissionInfo.CREATOR); requestedPermissions = source.createStringArray(); requestedPermissionsFlags = source.createIntArray(); signatures = source.createTypedArray(Signature.CREATOR); configPreferences = source.createTypedArray(ConfigurationInfo.CREATOR); reqFeatures = source.createTypedArray(FeatureInfo.CREATOR); featureGroups = source.createTypedArray(FeatureGroupInfo.CREATOR); installLocation = source.readInt(); isStub = source.readInt() != 0; coreApp = source.readInt() != 0; requiredForAllUsers = source.readInt() != 0; restrictedAccountType = source.readString(); requiredAccountType = source.readString(); overlayTarget = source.readString(); overlayCategory = source.readString(); overlayPriority = source.readInt(); mOverlayIsStatic = source.readBoolean(); compileSdkVersion = source.readInt(); compileSdkVersionCodename = source.readString(); int hasSigningInfo = source.readInt(); if (hasSigningInfo != 0) { signingInfo = SigningInfo.CREATOR.createFromParcel(source); } // The component lists were flattened with the redundant ApplicationInfo // instances omitted. Distribute the canonical one here as appropriate. if (applicationInfo != null) { propagateApplicationInfo(applicationInfo, activities); propagateApplicationInfo(applicationInfo, receivers); propagateApplicationInfo(applicationInfo, services); propagateApplicationInfo(applicationInfo, providers); } }
Example 20
Source File: SparseRectFArray.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
public SparseRectFArray(final Parcel source) { mKeys = source.createIntArray(); mCoordinates = source.createFloatArray(); mFlagsArray = source.createIntArray(); }