本文整理匯總了Java中android.os.Parcel.writeLongArray方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.writeLongArray方法的具體用法?Java Parcel.writeLongArray怎麽用?Java Parcel.writeLongArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeLongArray方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.text);
dest.writeLongArray(this.vibrationPattern);
dest.writeInt(this.snoozeDuration);
dest.writeByte(this.doNotVibrateInTheater ? (byte) 1 : (byte) 0);
dest.writeByte(this.doNotVibrateOnCharger ? (byte) 1 : (byte) 0);
// DataLayer API will only send different items, so if two same alarms are triggered,
// only one will be triggered. Workaround is to add timestamp to always send changed packet.
dest.writeLong(System.currentTimeMillis());
}
示例2: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.text);
dest.writeLongArray(this.vibrationPattern);
dest.writeByteArray(this.backgroundBitmap);
dest.writeByteArray(this.icon);
dest.writeInt(this.snoozeDuration);
dest.writeByte(this.doNotVibrateInTheater ? (byte) 1 : (byte) 0);
dest.writeByte(this.doNotVibrateOnCharger ? (byte) 1 : (byte) 0);
}
示例3: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLongArray(this.pattern);
dest.writeByte(this.doNotVibrateInTheater ? (byte) 1 : (byte) 0);
dest.writeByte(this.doNotVibrateOnCharger ? (byte) 1 : (byte) 0);
dest.writeByte(this.forceTurnScreenOn ? (byte) 1 : (byte) 0);
}
示例4: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel parcel, int i) {
long[] keys = new long[size()];
boolean[] values = new boolean[size()];
for (int k = 0; k < size(); k++){
keys[k] = keyAt(k);
values[k] = valueAt(k);
}
parcel.writeInt(size());
parcel.writeLongArray(keys);
parcel.writeBooleanArray(values);
}
示例5: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(mStates.length);
for (long[] mState : mStates)
dest.writeLongArray(mState);
}
示例6: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
int[] statesArray = new int[]{taggingStates[0].ordinal(), taggingStates[1].ordinal()};
dest.writeIntArray(statesArray);
dest.writeLongArray(startTimes);
dest.writeLong(transitionStartTime);
}
示例7: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLongArray(related);
dest.writeString(remoteId);
}
示例8: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(final Parcel dest, final int flags) {
dest.writeInt(mSize);
dest.writeInt(mItems.length);
dest.writeLongArray(mItems);
}