本文整理匯總了Java中android.os.Parcel.createLongArray方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.createLongArray方法的具體用法?Java Parcel.createLongArray怎麽用?Java Parcel.createLongArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.createLongArray方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: LiteAlarmCommand
import android.os.Parcel; //導入方法依賴的package包/類
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;
}
示例2: AlarmCommand
import android.os.Parcel; //導入方法依賴的package包/類
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;
}
示例3: VibrationCommand
import android.os.Parcel; //導入方法依賴的package包/類
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;
}
示例4: GifViewSavedState
import android.os.Parcel; //導入方法依賴的package包/類
private GifViewSavedState(Parcel in) {
super(in);
mStates = new long[in.readInt()][];
for (int i = 0; i < mStates.length; i++)
mStates[i] = in.createLongArray();
}
示例5: Metadata
import android.os.Parcel; //導入方法依賴的package包/類
protected Metadata(Parcel in) {
related = in.createLongArray();
remoteId = in.readString();
}