当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.writeInt方法代码示例

本文整理汇总了Java中android.os.Parcel.writeInt方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeInt方法的具体用法?Java Parcel.writeInt怎么用?Java Parcel.writeInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.writeInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: scanDevices

import android.os.Parcel; //导入方法依赖的package包/类
public void scanDevices(PendingIntent resultIntent) throws RemoteException {
    Parcel _data = Parcel.obtain();
    Parcel _reply = Parcel.obtain();
    try {
        _data.writeInterfaceToken(Stub.DESCRIPTOR);
        if (resultIntent != null) {
            _data.writeInt(1);
            resultIntent.writeToParcel(_data, 0);
        } else {
            _data.writeInt(0);
        }
        this.mRemote.transact(1, _data, _reply, 0);
        ExceptionUtils.readExceptionFromParcel(_reply);
    } finally {
        _reply.recycle();
        _data.recycle();
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:19,代码来源:RemoteDeviceManager.java

示例2: a

import android.os.Parcel; //导入方法依赖的package包/类
public final int a(String str, int i) {
    Parcel obtain = Parcel.obtain();
    Parcel obtain2 = Parcel.obtain();
    try {
        obtain.writeInterfaceToken(z);
        obtain.writeString(str);
        obtain.writeInt(i);
        this.a.transact(2, obtain, obtain2, 0);
        obtain2.readException();
        int readInt = obtain2.readInt();
        return readInt;
    } finally {
        obtain2.recycle();
        obtain.recycle();
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:17,代码来源:d.java

示例3: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.mProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeByte((byte) (isSpinning ? 1 : 0));
    out.writeFloat(this.spinSpeed);
    out.writeInt(this.barWidth);
    out.writeInt(this.barColor);
    out.writeInt(this.rimWidth);
    out.writeInt(this.rimColor);
    out.writeInt(this.circleRadius);
    out.writeByte((byte) (linearProgress ? 1 : 0));
    out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
开发者ID:teisun,项目名称:SunmiUI,代码行数:16,代码来源:ProgressWheel.java

示例4: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeSerializable(amount);

    final byte[] program = script.getProgram();
    dest.writeInt(program.length);
    dest.writeByteArray(program);
}
 
开发者ID:guodroid,项目名称:okwallet,代码行数:9,代码来源:PaymentIntent.java

示例5: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.name);
    dest.writeInt(this.weight);
    dest.writeByte(this.italic ? (byte) 1 : (byte) 0);
    dest.writeString(this.ttc);
    dest.writeStringArray(this.ttf);
}
 
开发者ID:RikkaApps,项目名称:FontProvider,代码行数:9,代码来源:FontInfo.java

示例6: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(this.mIndex);
    dest.writeString(this.mTitle);
    dest.writeSerializable(this.mStartDate);
    dest.writeInt(this.mPeriod);
    dest.writeTypedList(this.mItems);
    dest.writeSerializable(this.mCreateTime);
    dest.writeByte(this.mIsNew ? (byte) 1 : (byte) 0);
}
 
开发者ID:mainh,项目名称:MainCalendar,代码行数:11,代码来源:ShiftsWorkRecord.java

示例7: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeString(query);
    out.writeInt(isSearchOpen ? 1 : 0);
    out.writeList(searchFiltersStates);
}
 
开发者ID:sega4revenge,项目名称:Sega,代码行数:8,代码来源:SearchView.java

示例8: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeLong(this._id);
    parcel.writeLong(this.id);
    parcel.writeString(this.name);
    parcel.writeInt(this.count);
    parcel.writeInt(this.type);
}
 
开发者ID:fiepi,项目名称:moebooru-android,代码行数:9,代码来源:TagBean.java

示例9: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(requestCode);
    dest.writeInt(resultCode);
    if (data != null) {
        dest.writeInt(1);
        data.writeToParcel(dest, flags);
    } else {
        dest.writeInt(0);
    }
}
 
开发者ID:TeamBrainStorm,项目名称:SimpleUILauncher,代码行数:12,代码来源:ActivityResultInfo.java

示例10: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    if (target != null) {
        dest.writeInt(HAS_DATA);
        dest.writeString(target.getClass().getName());
        target.writeToParcel(dest);
    } else {
        dest.writeInt(NO_DATA);
    }
}
 
开发者ID:AlbieLiang,项目名称:IPCInvoker,代码行数:11,代码来源:XParcelableWrapper.java

示例11: onMetadataChanged

import android.os.Parcel; //导入方法依赖的package包/类
public void onMetadataChanged(MediaMetadataCompat metadata) throws RemoteException {
    Parcel _data = Parcel.obtain();
    try {
        _data.writeInterfaceToken(Stub.DESCRIPTOR);
        if (metadata != null) {
            _data.writeInt(1);
            metadata.writeToParcel(_data, 0);
        } else {
            _data.writeInt(0);
        }
        this.mRemote.transact(4, _data, null, 1);
    } finally {
        _data.recycle();
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:16,代码来源:IMediaControllerCallback.java

示例12: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(this.sofarBytes);
    dest.writeInt(this.totalBytes);
}
 
开发者ID:yannanzheng,项目名称:FileDownloader-master,代码行数:7,代码来源:SmallMessageSnapshot.java

示例13: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(this.mFlags);
    this.mDescription.writeToParcel(out, flags);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:5,代码来源:MediaBrowserCompat.java

示例14: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeInt(currentPage);
}
 
开发者ID:TeamBrainStorm,项目名称:SimpleUILauncher,代码行数:6,代码来源:PagedView.java

示例15: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.name);
    dest.writeString(this.path);
    dest.writeInt(this.count);
}
 
开发者ID:lijunyandev,项目名称:MeetMusic,代码行数:7,代码来源:FolderInfo.java


注:本文中的android.os.Parcel.writeInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。