Java Code Examples for android.os.Parcel#createBooleanArray()
The following examples show how to use
android.os.Parcel#createBooleanArray() .
These examples are extracted from open source projects.
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 Project: sana.mobile File: PatientInfo.java License: BSD 3-Clause "New" or "Revised" License | 6 votes |
private void readFromParcel(Parcel p) { Log.v(TAG, "readFromParcel"); try { boolean[] confirmedArray = p.createBooleanArray(); isConfirmed = confirmedArray[0]; patientIdentifier = p.readString(); patientFirstName = p.readString(); patientLastName = p.readString(); patientGender = p.readString(); patientBirthdate = new Date(p.readString()); } catch (Exception e) { Log.e(TAG, "While reading PatientInfo from Parcel, got exception: " + e.toString()); e.printStackTrace(); } }
Example 2
Source Project: Alarmio File: AlarmData.java License: Apache License 2.0 | 5 votes |
protected AlarmData(Parcel in) { id = in.readInt(); name = in.readString(); time = Calendar.getInstance(); time.setTimeInMillis(in.readLong()); isEnabled = in.readByte() != 0; days = in.createBooleanArray(); isVibrate = in.readByte() != 0; if (in.readByte() == 1) sound = SoundData.fromString(in.readString()); }
Example 3
Source Project: Sparkplug File: ParcelableMqttMessage.java License: Eclipse Public License 1.0 | 5 votes |
ParcelableMqttMessage(Parcel parcel) { super(parcel.createByteArray()); setQos(parcel.readInt()); boolean[] flags = parcel.createBooleanArray(); setRetained(flags[0]); setDuplicate(flags[1]); messageId = parcel.readString(); }
Example 4
Source Project: material-components-android File: BaseSlider.java License: Apache License 2.0 | 5 votes |
private SliderState(@NonNull Parcel source) { super(source); valueFrom = source.readFloat(); valueTo = source.readFloat(); values = new ArrayList<>(); source.readList(values, Float.class.getClassLoader()); stepSize = source.readFloat(); hasFocus = source.createBooleanArray()[0]; }
Example 5
Source Project: android-parcelable-intellij-plugin File: PrimitiveArrayParcelable.java License: 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 6
Source Project: android-chromium File: ParcelableErrorInfo.java License: BSD 2-Clause "Simplified" License | 5 votes |
/** * Creates a new ErrorInfo wrapper by reading data from a parcel. */ public ParcelableErrorInfo(Parcel in) { int reason = in.readInt(); boolean isTransient = in.createBooleanArray()[0]; String message = in.readString(); this.errorInfo = ErrorInfo.newInstance(reason, isTransient, message, null); }
Example 7
Source Project: android-chromium File: ParcelableInvalidation.java License: BSD 2-Clause "Simplified" License | 5 votes |
/** * Creates a new invalidation wrapper by reading data from a parcel. */ public ParcelableInvalidation(Parcel in) { // Read parcelable object id from parcel using the application class loader ParcelableObjectId objectId = in.readParcelable(getClass().getClassLoader()); long version = in.readLong(); boolean isTrickleRestart = in.createBooleanArray()[0]; boolean[] values = in.createBooleanArray(); byte[] payload = null; if (values[0]) { // hasPayload payload = in.createByteArray(); } this.invalidation = Invalidation.newInstance(objectId.objectId, version, payload, isTrickleRestart); this.includePayload = payload != null; }
Example 8
Source Project: android-chromium File: ParcelableErrorInfo.java License: BSD 2-Clause "Simplified" License | 5 votes |
/** * Creates a new ErrorInfo wrapper by reading data from a parcel. */ public ParcelableErrorInfo(Parcel in) { int reason = in.readInt(); boolean isTransient = in.createBooleanArray()[0]; String message = in.readString(); this.errorInfo = ErrorInfo.newInstance(reason, isTransient, message, null); }
Example 9
Source Project: android-chromium File: ParcelableInvalidation.java License: BSD 2-Clause "Simplified" License | 5 votes |
/** * Creates a new invalidation wrapper by reading data from a parcel. */ public ParcelableInvalidation(Parcel in) { // Read parcelable object id from parcel using the application class loader ParcelableObjectId objectId = in.readParcelable(getClass().getClassLoader()); long version = in.readLong(); boolean isTrickleRestart = in.createBooleanArray()[0]; boolean[] values = in.createBooleanArray(); byte[] payload = null; if (values[0]) { // hasPayload payload = in.createByteArray(); } this.invalidation = Invalidation.newInstance(objectId.objectId, version, payload, isTrickleRestart); this.includePayload = payload != null; }
Example 10
Source Project: android_9.0.0_r45 File: MultiCheckPreference.java License: Apache License 2.0 | 4 votes |
public SavedState(Parcel source) { super(source); values = source.createBooleanArray(); }
Example 11
Source Project: ExpandableRecyclerView File: SavedState.java License: Apache License 2.0 | 4 votes |
private SavedState(Parcel in) { mExpandableState = in.createBooleanArray(); mExpansionState = in.createBooleanArray(); }
Example 12
Source Project: expandable-recycler-view File: CheckedExpandableGroup.java License: MIT License | 4 votes |
protected CheckedExpandableGroup(Parcel in) { super(in); selectedChildren = in.createBooleanArray(); }
Example 13
Source Project: paperparcel File: StaticAdapters.java License: Apache License 2.0 | 4 votes |
@Nullable @Override public boolean[] readFromParcel(@NonNull Parcel source) { return source.createBooleanArray(); }
Example 14
Source Project: AlarmOn File: Week.java License: Apache License 2.0 | 4 votes |
public Week(Parcel source) { bitmask = source.createBooleanArray(); }
Example 15
Source Project: PreferenceFragment File: MultiCheckPreference.java License: Apache License 2.0 | 4 votes |
public SavedState(Parcel source) { super(source); values = source.createBooleanArray(); }
Example 16
Source Project: AppOpsXposed File: AppOpsState.java License: GNU General Public License v3.0 | 4 votes |
OpsTemplate(Parcel src) { ops = src.createIntArray(); showPerms = src.createBooleanArray(); }
Example 17
Source Project: parceler File: NonParcelRepository.java License: Apache License 2.0 | 4 votes |
@Override public Boolean nullSafeFromParcel(Parcel parcel) { return parcel.createBooleanArray()[0]; }