Java Code Examples for android.os.Parcel#writeTypedArray()
The following examples show how to use
android.os.Parcel#writeTypedArray() .
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: ContentProviderNative.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
@Override public int bulkInsert(String callingPkg, Uri url, ContentValues[] values) throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); try { data.writeInterfaceToken(IContentProvider.descriptor); data.writeString(callingPkg); url.writeToParcel(data, 0); data.writeTypedArray(values, 0); mRemote.transact(IContentProvider.BULK_INSERT_TRANSACTION, data, reply, 0); DatabaseUtils.readExceptionFromParcel(reply); int count = reply.readInt(); return count; } finally { data.recycle(); reply.recycle(); } }
Example 2
Source File: EuiccProfileInfo.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(mIccid); dest.writeString(mNickname); dest.writeString(mServiceProviderName); dest.writeString(mProfileName); dest.writeInt(mProfileClass); dest.writeInt(mState); if (mCarrierIdentifier != null) { dest.writeByte((byte) 1); mCarrierIdentifier.writeToParcel(dest, flags); } else { dest.writeByte((byte) 0); } dest.writeInt(mPolicyRules); dest.writeTypedArray(mAccessRules, flags); }
Example 3
Source File: ContextHubInfo.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void writeToParcel(Parcel out, int flags) { out.writeInt(mId); out.writeString(mName); out.writeString(mVendor); out.writeString(mToolchain); out.writeInt(mPlatformVersion); out.writeInt(mToolchainVersion); out.writeFloat(mPeakMips); out.writeFloat(mStoppedPowerDrawMw); out.writeFloat(mSleepPowerDrawMw); out.writeFloat(mPeakPowerDrawMw); out.writeInt(mMaxPacketLengthBytes); out.writeLong(mChrePlatformId); out.writeByte(mChreApiMajorVersion); out.writeByte(mChreApiMinorVersion); out.writeInt(mChrePatchVersion); out.writeInt(mSupportedSensors.length); out.writeIntArray(mSupportedSensors); out.writeTypedArray(mMemoryRegions, flags); }
Example 4
Source File: ExtendableSavedState.java From material-components-android with Apache License 2.0 | 6 votes |
@Override public void writeToParcel(@NonNull Parcel out, int flags) { super.writeToParcel(out, flags); int size = extendableStates.size(); out.writeInt(size); String[] keys = new String[size]; Bundle[] states = new Bundle[size]; for (int i = 0; i < size; i++) { keys[i] = extendableStates.keyAt(i); states[i] = extendableStates.valueAt(i); } out.writeStringArray(keys); out.writeTypedArray(states, 0); }
Example 5
Source File: FontInfo.java From FontProvider with MIT License | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.name); dest.writeString(this.variant); dest.writeStringArray(this.language); dest.writeIntArray(this.ttc_index); dest.writeString(this.size); dest.writeStringArray(this.preview_text); dest.writeString(this.url_prefix); dest.writeTypedArray(this.style, flags); }
Example 6
Source File: Contact.java From android with MIT License | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(id); dest.writeString(name); dest.writeString(phone); dest.writeString(photoURL); dest.writeString(party); dest.writeString(state); dest.writeString(reason); dest.writeString(area); dest.writeTypedArray(field_offices, PARCELABLE_WRITE_RETURN_VALUE); }
Example 7
Source File: BrailleDisplayProperties.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { out.writeInt(mNumTextCells); out.writeInt(mNumStatusCells); out.writeTypedArray(mKeyBindings, flags); out.writeInt(mFriendlyKeyNames.size()); for (Map.Entry<String, String> entry : mFriendlyKeyNames.entrySet()) { out.writeString(entry.getKey()); out.writeString(entry.getValue()); } }
Example 8
Source File: ContactEditText.java From material with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(@NonNull Parcel out, int flags) { super.writeToParcel(out, flags); int length = recipients == null ? 0 : recipients.length; out.writeInt(length); if(length > 0) out.writeTypedArray(recipients, flags); }
Example 9
Source File: BrailleDisplayProperties.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { out.writeInt(mNumTextCells); out.writeInt(mNumStatusCells); out.writeTypedArray(mKeyBindings, flags); out.writeInt(mFriendlyKeyNames.size()); for (Map.Entry<String, String> entry : mFriendlyKeyNames.entrySet()) { out.writeString(entry.getKey()); out.writeString(entry.getValue()); } }
Example 10
Source File: ProgramSelector.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(mProgramType); dest.writeTypedObject(mPrimaryId, 0); dest.writeTypedArray(mSecondaryIds, 0); dest.writeLongArray(mVendorIds); }
Example 11
Source File: SoundTrigger.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(uuid.toString()); if (vendorUuid == null) { dest.writeInt(-1); } else { dest.writeInt(vendorUuid.toString().length()); dest.writeString(vendorUuid.toString()); } dest.writeBlob(data); dest.writeTypedArray(keyphrases, flags); }
Example 12
Source File: CubeMapView.java From ShaderEditor with MIT License | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(savedSelectedFace); out.writeTypedArray(savedFaces, flags); }
Example 13
Source File: WebViewProviderInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { out.writeString(packageName); out.writeString(description); out.writeInt(availableByDefault ? 1 : 0); out.writeInt(isFallback ? 1 : 0); out.writeTypedArray(signatures, 0); }
Example 14
Source File: Insert.java From arca-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void writeToParcel(final Parcel dest, final int flags) { super.writeToParcel(dest, flags); dest.writeTypedArray(mValues, flags); }
Example 15
Source File: DrmInitData.java From MediaSDK with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(schemeType); dest.writeTypedArray(schemeDatas, 0); }
Example 16
Source File: FontFamily.java From FontProvider with MIT License | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.variant); dest.writeString(this.language); dest.writeTypedArray(this.fonts, flags); }
Example 17
Source File: FragmentManager.java From CodenameOne with GNU General Public License v2.0 | 4 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeTypedArray(mActive, flags); dest.writeIntArray(mAdded); dest.writeTypedArray(mBackStack, flags); }
Example 18
Source File: RemoteViews.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeInt(viewId); dest.writeTypedArray(remoteInputs, flags); }
Example 19
Source File: FragmentManager.java From adt-leanback-support with Apache License 2.0 | 4 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeTypedArray(mActive, flags); dest.writeIntArray(mAdded); dest.writeTypedArray(mBackStack, flags); }
Example 20
Source File: KeyAttestationApplicationId.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeTypedArray(mAttestationPackageInfos, flags); }