Java Code Examples for android.os.Parcel#createBooleanArray()
The following examples show how to use
android.os.Parcel#createBooleanArray() .
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: PatientInfo.java From sana.mobile with 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 File: AlarmData.java From Alarmio with 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 File: ParcelableInvalidation.java From android-chromium with 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 4
Source File: ParcelableErrorInfo.java From android-chromium with 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 5
Source File: ParcelableInvalidation.java From android-chromium with 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 6
Source File: ParcelableErrorInfo.java From android-chromium with 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 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 8
Source File: BaseSlider.java From material-components-android with 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 9
Source File: ParcelableMqttMessage.java From Sparkplug with 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 10
Source File: Week.java From AlarmOn with Apache License 2.0 | 4 votes |
public Week(Parcel source) { bitmask = source.createBooleanArray(); }
Example 11
Source File: MultiCheckPreference.java From PreferenceFragment with Apache License 2.0 | 4 votes |
public SavedState(Parcel source) { super(source); values = source.createBooleanArray(); }
Example 12
Source File: StaticAdapters.java From paperparcel with Apache License 2.0 | 4 votes |
@Nullable @Override public boolean[] readFromParcel(@NonNull Parcel source) { return source.createBooleanArray(); }
Example 13
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 14
Source File: NonParcelRepository.java From parceler with Apache License 2.0 | 4 votes |
@Override public Boolean nullSafeFromParcel(Parcel parcel) { return parcel.createBooleanArray()[0]; }
Example 15
Source File: CheckedExpandableGroup.java From expandable-recycler-view with MIT License | 4 votes |
protected CheckedExpandableGroup(Parcel in) { super(in); selectedChildren = in.createBooleanArray(); }
Example 16
Source File: SavedState.java From ExpandableRecyclerView with Apache License 2.0 | 4 votes |
private SavedState(Parcel in) { mExpandableState = in.createBooleanArray(); mExpansionState = in.createBooleanArray(); }
Example 17
Source File: MultiCheckPreference.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
public SavedState(Parcel source) { super(source); values = source.createBooleanArray(); }