Java Code Examples for android.os.Parcel#writeSparseArray()
The following examples show how to use
android.os.Parcel#writeSparseArray() .
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: InstrumentationInfo.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void writeToParcel(Parcel dest, int parcelableFlags) { super.writeToParcel(dest, parcelableFlags); dest.writeString(targetPackage); dest.writeString(targetProcesses); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitNames); dest.writeStringArray(splitSourceDirs); dest.writeStringArray(splitPublicSourceDirs); dest.writeSparseArray((SparseArray) splitDependencies); dest.writeString(dataDir); dest.writeString(deviceProtectedDataDir); dest.writeString(credentialProtectedDataDir); dest.writeString(primaryCpuAbi); dest.writeString(secondaryCpuAbi); dest.writeString(nativeLibraryDir); dest.writeString(secondaryNativeLibraryDir); dest.writeInt((handleProfiling == false) ? 0 : 1); dest.writeInt((functionalTest == false) ? 0 : 1); }
Example 2
Source File: StaggeredGridView.java From UltimateAndroid with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(columnCount); out.writeIntArray(columnTops); out.writeSparseArray(positionData); }
Example 3
Source File: StaggeredGridView.java From UltimateAndroid with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(columnCount); out.writeIntArray(columnTops); out.writeSparseArray(positionData); }
Example 4
Source File: ParcelledState.java From simple-stack with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(parcelableKey, flags); // noinspection unchecked SparseArray<Object> sparseArray = (SparseArray) viewHierarchyState; dest.writeSparseArray(sparseArray); dest.writeByte(bundle != null ? (byte) 0x01 : 0x00); if(bundle != null) { dest.writeParcelable(bundle, 0); } dest.writeByte(viewBundle != null ? (byte) 0x01 : 0x00); if(viewBundle != null) { dest.writeParcelable(viewBundle, 0); } }
Example 5
Source File: FloatingNavigationView.java From Floating-Navigation-View with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(@NonNull Parcel dest, int flags) { super.writeToParcel(dest, flags); //noinspection unchecked dest.writeSparseArray(navigationViewState); dest.writeValue(opened); }
Example 6
Source File: ParcelableContainer.java From ChipsLayoutManager with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel parcel, int i) { anchorViewState.writeToParcel(parcel, i); parcel.writeSparseArray(orientationCacheMap); parcel.writeSparseArray(cacheNormalizationPositionMap); parcel.writeInt(orientation); }
Example 7
Source File: CreditCardEntry.java From CreditCardEntry with MIT License | 4 votes |
@SuppressWarnings("unchecked") @Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeSparseArray(childrenStates); }
Example 8
Source File: ApplicationInfo.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") public void writeToParcel(Parcel dest, int parcelableFlags) { super.writeToParcel(dest, parcelableFlags); dest.writeString(taskAffinity); dest.writeString(permission); dest.writeString(processName); dest.writeString(className); dest.writeInt(theme); dest.writeInt(flags); dest.writeInt(privateFlags); dest.writeInt(requiresSmallestWidthDp); dest.writeInt(compatibleWidthLimitDp); dest.writeInt(largestWidthLimitDp); if (storageUuid != null) { dest.writeInt(1); dest.writeLong(storageUuid.getMostSignificantBits()); dest.writeLong(storageUuid.getLeastSignificantBits()); } else { dest.writeInt(0); } dest.writeString(scanSourceDir); dest.writeString(scanPublicSourceDir); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitNames); dest.writeStringArray(splitSourceDirs); dest.writeStringArray(splitPublicSourceDirs); dest.writeSparseArray((SparseArray) splitDependencies); dest.writeString(nativeLibraryDir); dest.writeString(secondaryNativeLibraryDir); dest.writeString(nativeLibraryRootDir); dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); dest.writeString(primaryCpuAbi); dest.writeString(secondaryCpuAbi); dest.writeStringArray(resourceDirs); dest.writeString(seInfo); dest.writeString(seInfoUser); dest.writeStringArray(sharedLibraryFiles); dest.writeString(dataDir); dest.writeString(deviceProtectedDataDir); dest.writeString(credentialProtectedDataDir); dest.writeInt(uid); dest.writeInt(minSdkVersion); dest.writeInt(targetSdkVersion); dest.writeInt(versionCode); dest.writeInt(enabled ? 1 : 0); dest.writeInt(enabledSetting); dest.writeInt(installLocation); dest.writeString(manageSpaceActivityName); dest.writeString(backupAgentName); dest.writeInt(descriptionRes); dest.writeInt(uiOptions); dest.writeInt(fullBackupContent); dest.writeInt(networkSecurityConfigRes); dest.writeInt(category); dest.writeInt(targetSandboxVersion); }
Example 9
Source File: SparseParcelable.java From android-parcelable-intellij-plugin with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeSparseArray((SparseArray) this.sampleSparseArray); dest.writeSparseBooleanArray(this.sparseBooleanArray); }
Example 10
Source File: MyCustomLayout.java From ViewStateSaveDemo with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeSparseArray(childrenStates); }
Example 11
Source File: ParcelableSparseIntArray.java From Lay-s with MIT License | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeSparseArray(toSparseArray()); }
Example 12
Source File: PersistentSearchView.java From PersistentSearchView with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeSparseArray(childrenStates); out.writeInt(mCurrentSearchViewState.toInt()); }
Example 13
Source File: CreditCardForm.java From CreditCardEntry with MIT License | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeSparseArray(childrenStates); }
Example 14
Source File: ParcelableSparseIntArray.java From SimplifyReader with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeSparseArray(toSparseArray()); }
Example 15
Source File: NiboPlacesAutoCompleteSearchView.java From Nibo with MIT License | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeSparseArray(childrenStates); out.writeInt(mCurrentSearchViewState.toInt()); }
Example 16
Source File: IsolatedLayoutSaveState.java From QNotified with GNU General Public License v3.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeSparseArray(childStates); }
Example 17
Source File: ApplicationInfo.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") public void writeToParcel(Parcel dest, int parcelableFlags) { super.writeToParcel(dest, parcelableFlags); dest.writeString(taskAffinity); dest.writeString(permission); dest.writeString(processName); dest.writeString(className); dest.writeInt(theme); dest.writeInt(flags); dest.writeInt(privateFlags); dest.writeInt(requiresSmallestWidthDp); dest.writeInt(compatibleWidthLimitDp); dest.writeInt(largestWidthLimitDp); if (storageUuid != null) { dest.writeInt(1); dest.writeLong(storageUuid.getMostSignificantBits()); dest.writeLong(storageUuid.getLeastSignificantBits()); } else { dest.writeInt(0); } dest.writeString(scanSourceDir); dest.writeString(scanPublicSourceDir); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitNames); dest.writeStringArray(splitSourceDirs); dest.writeStringArray(splitPublicSourceDirs); dest.writeSparseArray((SparseArray) splitDependencies); dest.writeString(nativeLibraryDir); dest.writeString(secondaryNativeLibraryDir); dest.writeString(nativeLibraryRootDir); dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); dest.writeString(primaryCpuAbi); dest.writeString(secondaryCpuAbi); dest.writeStringArray(resourceDirs); dest.writeString(seInfo); dest.writeString(seInfoUser); dest.writeStringArray(sharedLibraryFiles); dest.writeString(dataDir); dest.writeString(deviceProtectedDataDir); dest.writeString(credentialProtectedDataDir); dest.writeInt(uid); dest.writeInt(minSdkVersion); dest.writeInt(targetSdkVersion); dest.writeLong(longVersionCode); dest.writeInt(enabled ? 1 : 0); dest.writeInt(enabledSetting); dest.writeInt(installLocation); dest.writeString(manageSpaceActivityName); dest.writeString(backupAgentName); dest.writeInt(descriptionRes); dest.writeInt(uiOptions); dest.writeInt(fullBackupContent); dest.writeInt(networkSecurityConfigRes); dest.writeInt(category); dest.writeInt(targetSandboxVersion); dest.writeString(classLoaderName); dest.writeStringArray(splitClassLoaderNames); dest.writeInt(compileSdkVersion); dest.writeString(compileSdkVersionCodename); dest.writeString(appComponentFactory); dest.writeInt(mHiddenApiPolicy); dest.writeInt(hiddenUntilInstalled ? 1 : 0); }
Example 18
Source File: ApplicationInfo.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") public void writeToParcel(Parcel dest, int parcelableFlags) { super.writeToParcel(dest, parcelableFlags); dest.writeString(taskAffinity); dest.writeString(permission); dest.writeString(processName); dest.writeString(className); dest.writeInt(theme); dest.writeInt(flags); dest.writeInt(privateFlags); dest.writeInt(requiresSmallestWidthDp); dest.writeInt(compatibleWidthLimitDp); dest.writeInt(largestWidthLimitDp); if (storageUuid != null) { dest.writeInt(1); dest.writeLong(storageUuid.getMostSignificantBits()); dest.writeLong(storageUuid.getLeastSignificantBits()); } else { dest.writeInt(0); } dest.writeString(scanSourceDir); dest.writeString(scanPublicSourceDir); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitNames); dest.writeStringArray(splitSourceDirs); dest.writeStringArray(splitPublicSourceDirs); dest.writeSparseArray((SparseArray) splitDependencies); dest.writeString(nativeLibraryDir); dest.writeString(secondaryNativeLibraryDir); dest.writeString(nativeLibraryRootDir); dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); dest.writeString(primaryCpuAbi); dest.writeString(secondaryCpuAbi); dest.writeStringArray(resourceDirs); dest.writeString(seInfo); dest.writeString(seInfoUser); dest.writeStringArray(sharedLibraryFiles); dest.writeTypedList(sharedLibraryInfos); dest.writeString(dataDir); dest.writeString(deviceProtectedDataDir); dest.writeString(credentialProtectedDataDir); dest.writeInt(uid); dest.writeInt(minSdkVersion); dest.writeInt(targetSdkVersion); dest.writeLong(longVersionCode); dest.writeInt(enabled ? 1 : 0); dest.writeInt(enabledSetting); dest.writeInt(installLocation); dest.writeString(manageSpaceActivityName); dest.writeString(backupAgentName); dest.writeInt(descriptionRes); dest.writeInt(uiOptions); dest.writeInt(fullBackupContent); dest.writeInt(networkSecurityConfigRes); dest.writeInt(category); dest.writeInt(targetSandboxVersion); dest.writeString(classLoaderName); dest.writeStringArray(splitClassLoaderNames); dest.writeInt(compileSdkVersion); dest.writeString(compileSdkVersionCodename); dest.writeString(appComponentFactory); dest.writeInt(iconRes); dest.writeInt(roundIconRes); dest.writeInt(mHiddenApiPolicy); dest.writeInt(hiddenUntilInstalled ? 1 : 0); dest.writeString(zygotePreloadName); }
Example 19
Source File: ApplicationInfo.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") public void writeToParcel(Parcel dest, int parcelableFlags) { super.writeToParcel(dest, parcelableFlags); dest.writeString(taskAffinity); dest.writeString(permission); dest.writeString(processName); dest.writeString(className); dest.writeInt(theme); dest.writeInt(flags); dest.writeInt(privateFlags); dest.writeInt(requiresSmallestWidthDp); dest.writeInt(compatibleWidthLimitDp); dest.writeInt(largestWidthLimitDp); if (storageUuid != null) { dest.writeInt(1); dest.writeLong(storageUuid.getMostSignificantBits()); dest.writeLong(storageUuid.getLeastSignificantBits()); } else { dest.writeInt(0); } dest.writeString(scanSourceDir); dest.writeString(scanPublicSourceDir); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitNames); dest.writeStringArray(splitSourceDirs); dest.writeStringArray(splitPublicSourceDirs); dest.writeSparseArray((SparseArray) splitDependencies); dest.writeString(nativeLibraryDir); dest.writeString(secondaryNativeLibraryDir); dest.writeString(nativeLibraryRootDir); dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); dest.writeString(primaryCpuAbi); dest.writeString(secondaryCpuAbi); dest.writeStringArray(resourceDirs); dest.writeString(seInfo); dest.writeString(seInfoUser); dest.writeStringArray(sharedLibraryFiles); dest.writeString(dataDir); dest.writeString(deviceProtectedDataDir); dest.writeString(credentialProtectedDataDir); dest.writeInt(uid); dest.writeInt(minSdkVersion); dest.writeInt(targetSdkVersion); dest.writeInt(versionCode); dest.writeInt(enabled ? 1 : 0); dest.writeInt(enabledSetting); dest.writeInt(installLocation); dest.writeString(manageSpaceActivityName); dest.writeString(backupAgentName); dest.writeInt(descriptionRes); dest.writeInt(uiOptions); dest.writeInt(fullBackupContent); dest.writeInt(networkSecurityConfigRes); dest.writeInt(category); dest.writeInt(targetSandboxVersion); dest.writeString(classLoaderName); dest.writeStringArray(splitClassLoaderNames); }
Example 20
Source File: ApplicationInfo.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") public void writeToParcel(Parcel dest, int parcelableFlags) { super.writeToParcel(dest, parcelableFlags); dest.writeString(taskAffinity); dest.writeString(permission); dest.writeString(processName); dest.writeString(className); dest.writeInt(theme); dest.writeInt(flags); dest.writeInt(privateFlags); dest.writeInt(requiresSmallestWidthDp); dest.writeInt(compatibleWidthLimitDp); dest.writeInt(largestWidthLimitDp); if (storageUuid != null) { dest.writeInt(1); dest.writeLong(storageUuid.getMostSignificantBits()); dest.writeLong(storageUuid.getLeastSignificantBits()); } else { dest.writeInt(0); } dest.writeString(scanSourceDir); dest.writeString(scanPublicSourceDir); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitNames); dest.writeStringArray(splitSourceDirs); dest.writeStringArray(splitPublicSourceDirs); dest.writeSparseArray((SparseArray) splitDependencies); dest.writeString(nativeLibraryDir); dest.writeString(secondaryNativeLibraryDir); dest.writeString(nativeLibraryRootDir); dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); dest.writeString(primaryCpuAbi); dest.writeString(secondaryCpuAbi); dest.writeStringArray(resourceDirs); dest.writeString(seInfo); dest.writeString(seInfoUser); dest.writeStringArray(sharedLibraryFiles); dest.writeString(dataDir); dest.writeString(deviceProtectedDataDir); dest.writeString(credentialProtectedDataDir); dest.writeInt(uid); dest.writeInt(minSdkVersion); dest.writeInt(targetSdkVersion); dest.writeLong(longVersionCode); dest.writeInt(enabled ? 1 : 0); dest.writeInt(enabledSetting); dest.writeInt(installLocation); dest.writeString(manageSpaceActivityName); dest.writeString(backupAgentName); dest.writeInt(descriptionRes); dest.writeInt(uiOptions); dest.writeInt(fullBackupContent); dest.writeInt(networkSecurityConfigRes); dest.writeInt(category); dest.writeInt(targetSandboxVersion); dest.writeString(classLoaderName); dest.writeStringArray(splitClassLoaderNames); dest.writeInt(compileSdkVersion); dest.writeString(compileSdkVersionCodename); dest.writeString(appComponentFactory); dest.writeInt(mHiddenApiPolicy); }