當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。