本文整理汇总了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);
}