Java Code Examples for android.os.Parcel#writeSparseBooleanArray()
The following examples show how to use
android.os.Parcel#writeSparseBooleanArray() .
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: DefaultTrackSelector.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void writeToParcel(Parcel dest, int flags) { writeSelectionOverridesToParcel(dest, selectionOverrides); dest.writeSparseBooleanArray(rendererDisabledFlags); dest.writeString(preferredAudioLanguage); dest.writeString(preferredTextLanguage); Util.writeBoolean(dest, selectUndeterminedTextLanguage); dest.writeInt(disabledTextTrackSelectionFlags); Util.writeBoolean(dest, forceLowestBitrate); Util.writeBoolean(dest, allowMixedMimeAdaptiveness); Util.writeBoolean(dest, allowNonSeamlessAdaptiveness); dest.writeInt(maxVideoWidth); dest.writeInt(maxVideoHeight); dest.writeInt(maxVideoBitrate); Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary); Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary); dest.writeInt(viewportWidth); dest.writeInt(viewportHeight); Util.writeBoolean(dest, viewportOrientationMayChange); dest.writeInt(tunnelingAudioSessionId); }
Example 2
Source File: DefaultTrackSelector.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void writeToParcel(Parcel dest, int flags) { writeSelectionOverridesToParcel(dest, selectionOverrides); dest.writeSparseBooleanArray(rendererDisabledFlags); dest.writeString(preferredAudioLanguage); dest.writeString(preferredTextLanguage); Util.writeBoolean(dest, selectUndeterminedTextLanguage); dest.writeInt(disabledTextTrackSelectionFlags); Util.writeBoolean(dest, forceLowestBitrate); Util.writeBoolean(dest, allowMixedMimeAdaptiveness); Util.writeBoolean(dest, allowNonSeamlessAdaptiveness); dest.writeInt(maxVideoWidth); dest.writeInt(maxVideoHeight); dest.writeInt(maxVideoBitrate); Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary); Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary); dest.writeInt(viewportWidth); dest.writeInt(viewportHeight); Util.writeBoolean(dest, viewportOrientationMayChange); dest.writeInt(tunnelingAudioSessionId); }
Example 3
Source File: AbsHListView.java From Klyph with MIT License | 6 votes |
@Override public void writeToParcel( Parcel out, int flags ) { super.writeToParcel( out, flags ); out.writeLong( selectedId ); out.writeLong( firstId ); out.writeInt( viewLeft ); out.writeInt( position ); out.writeInt( width ); out.writeString( filter ); out.writeByte( (byte) ( inActionMode ? 1 : 0 ) ); out.writeInt( checkedItemCount ); out.writeSparseBooleanArray( checkState ); final int N = checkIdState != null ? checkIdState.size() : 0; out.writeInt( N ); for ( int i = 0; i < N; i++ ) { out.writeLong( checkIdState.keyAt( i ) ); out.writeInt( checkIdState.valueAt( i ) ); } }
Example 4
Source File: DefaultTrackSelector.java From MediaSDK with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); // Video dest.writeInt(maxVideoWidth); dest.writeInt(maxVideoHeight); dest.writeInt(maxVideoFrameRate); dest.writeInt(maxVideoBitrate); Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary); Util.writeBoolean(dest, allowVideoMixedMimeTypeAdaptiveness); Util.writeBoolean(dest, allowVideoNonSeamlessAdaptiveness); dest.writeInt(viewportWidth); dest.writeInt(viewportHeight); Util.writeBoolean(dest, viewportOrientationMayChange); // Audio dest.writeInt(maxAudioChannelCount); dest.writeInt(maxAudioBitrate); Util.writeBoolean(dest, exceedAudioConstraintsIfNecessary); Util.writeBoolean(dest, allowAudioMixedMimeTypeAdaptiveness); Util.writeBoolean(dest, allowAudioMixedSampleRateAdaptiveness); Util.writeBoolean(dest, allowAudioMixedChannelCountAdaptiveness); // General Util.writeBoolean(dest, forceLowestBitrate); Util.writeBoolean(dest, forceHighestSupportedBitrate); Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary); dest.writeInt(tunnelingAudioSessionId); // Overrides writeSelectionOverridesToParcel(dest, selectionOverrides); dest.writeSparseBooleanArray(rendererDisabledFlags); }
Example 5
Source File: ItemChoiceManager.java From Advanced_Android_Development with Apache License 2.0 | 5 votes |
public void onSaveInstanceState(Bundle outState) { Parcel outParcel = Parcel.obtain(); outParcel.writeSparseBooleanArray(mCheckStates); final int numStates = mCheckedIdStates.size(); outParcel.writeInt(numStates); for (int i=0; i<numStates; i++) { outParcel.writeLong(mCheckedIdStates.keyAt(i)); outParcel.writeInt(mCheckedIdStates.valueAt(i)); } byte[] states = outParcel.marshall(); outState.putByteArray(SELECTED_ITEMS_KEY, states); outParcel.recycle(); }
Example 6
Source File: DefaultTrackSelector.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); // Video dest.writeInt(maxVideoWidth); dest.writeInt(maxVideoHeight); dest.writeInt(maxVideoFrameRate); dest.writeInt(maxVideoBitrate); Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary); Util.writeBoolean(dest, allowVideoMixedMimeTypeAdaptiveness); Util.writeBoolean(dest, allowVideoNonSeamlessAdaptiveness); dest.writeInt(viewportWidth); dest.writeInt(viewportHeight); Util.writeBoolean(dest, viewportOrientationMayChange); // Audio dest.writeInt(maxAudioChannelCount); dest.writeInt(maxAudioBitrate); Util.writeBoolean(dest, exceedAudioConstraintsIfNecessary); Util.writeBoolean(dest, allowAudioMixedMimeTypeAdaptiveness); Util.writeBoolean(dest, allowAudioMixedSampleRateAdaptiveness); Util.writeBoolean(dest, allowAudioMixedChannelCountAdaptiveness); // General Util.writeBoolean(dest, forceLowestBitrate); Util.writeBoolean(dest, forceHighestSupportedBitrate); Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary); dest.writeInt(tunnelingAudioSessionId); // Overrides writeSelectionOverridesToParcel(dest, selectionOverrides); dest.writeSparseBooleanArray(rendererDisabledFlags); }
Example 7
Source File: DefaultTrackSelector.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); // Video dest.writeInt(maxVideoWidth); dest.writeInt(maxVideoHeight); dest.writeInt(maxVideoFrameRate); dest.writeInt(maxVideoBitrate); Util.writeBoolean(dest, exceedVideoConstraintsIfNecessary); Util.writeBoolean(dest, allowVideoMixedMimeTypeAdaptiveness); Util.writeBoolean(dest, allowVideoNonSeamlessAdaptiveness); dest.writeInt(viewportWidth); dest.writeInt(viewportHeight); Util.writeBoolean(dest, viewportOrientationMayChange); // Audio dest.writeInt(maxAudioChannelCount); dest.writeInt(maxAudioBitrate); Util.writeBoolean(dest, exceedAudioConstraintsIfNecessary); Util.writeBoolean(dest, allowAudioMixedMimeTypeAdaptiveness); Util.writeBoolean(dest, allowAudioMixedSampleRateAdaptiveness); Util.writeBoolean(dest, allowAudioMixedChannelCountAdaptiveness); // General Util.writeBoolean(dest, forceLowestBitrate); Util.writeBoolean(dest, forceHighestSupportedBitrate); Util.writeBoolean(dest, exceedRendererCapabilitiesIfNecessary); dest.writeInt(tunnelingAudioSessionId); // Overrides writeSelectionOverridesToParcel(dest, selectionOverrides); dest.writeSparseBooleanArray(rendererDisabledFlags); }
Example 8
Source File: ExpandableRecyclerView.java From Carbon with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(@NonNull Parcel out, int flags) { out.writeParcelable(superState, flags); out.writeSparseBooleanArray(this.stateToSave); }
Example 9
Source File: StaticAdapters.java From paperparcel with Apache License 2.0 | 4 votes |
@Override public void writeToParcel(@Nullable SparseBooleanArray value, @NonNull Parcel dest, int flags) { dest.writeSparseBooleanArray(value); }
Example 10
Source File: NonParcelRepository.java From parceler with Apache License 2.0 | 4 votes |
@Override public void nullSafeToParcel(SparseBooleanArray input, Parcel parcel) { parcel.writeSparseBooleanArray(input); }
Example 11
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); }