Java Code Examples for android.os.Parcel.createLongArray()

The following are Jave code examples for showing how to use createLongArray() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: WearVibrationCenter   File: LiteAlarmCommand.java   View Source Code Vote up 5 votes
protected LiteAlarmCommand(Parcel in) {
    this.text = in.readString();
    this.vibrationPattern = in.createLongArray();
    this.snoozeDuration = in.readInt();
    this.doNotVibrateInTheater = in.readByte() != 0;
    this.doNotVibrateOnCharger = in.readByte() != 0;
}
 
Example 2
Project: WearVibrationCenter   File: AlarmCommand.java   View Source Code Vote up 5 votes
protected AlarmCommand(Parcel in) {
    this.text = in.readString();
    this.vibrationPattern = in.createLongArray();
    this.backgroundBitmap = in.createByteArray();
    this.icon = in.createByteArray();
    this.snoozeDuration = in.readInt();
    this.doNotVibrateInTheater = in.readByte() != 0;
    this.doNotVibrateOnCharger = in.readByte() != 0;
}
 
Example 3
Project: WearVibrationCenter   File: VibrationCommand.java   View Source Code Vote up 5 votes
protected VibrationCommand(Parcel in) {
    this.pattern = in.createLongArray();
    this.doNotVibrateInTheater = in.readByte() != 0;
    this.doNotVibrateOnCharger = in.readByte() != 0;

    // Fields from here can be missing from parcel, but Android seems to handle this gracefully
    // and returns 0 after parcel ends.
    this.forceTurnScreenOn = in.readByte() != 0;
}
 
Example 4
Project: PaoMovie   File: GifViewSavedState.java   View Source Code Vote up 4 votes
private GifViewSavedState(Parcel in) {
	super(in);
	mStates = new long[in.readInt()][];
	for (int i = 0; i < mStates.length; i++)
		mStates[i] = in.createLongArray();
}
 
Example 5
Project: PaoMovie   File: GifViewSavedState.java   View Source Code Vote up 4 votes
private GifViewSavedState(Parcel in) {
	super(in);
	mStates = new long[in.readInt()][];
	for (int i = 0; i < mStates.length; i++)
		mStates[i] = in.createLongArray();
}
 
Example 6
Project: chaosflix   File: Metadata.java   View Source Code Vote up 4 votes
protected Metadata(Parcel in) {
	related = in.createLongArray();
	remoteId = in.readString();
}