public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(id);
   ComponentName.writeToParcel(baseActivity, dest);
   ComponentName.writeToParcel(topActivity, dest);
   if (thumbnail != null) {
     dest.writeInt(1);
     thumbnail.writeToParcel(dest, 0);
   } else {
     dest.writeInt(0);
   }
   TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
   dest.writeInt(numActivities);
   dest.writeInt(numRunning);
 }
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(id);
   dest.writeInt(persistentId);
   if (baseIntent != null) {
     dest.writeInt(1);
     baseIntent.writeToParcel(dest, 0);
   } else {
     dest.writeInt(0);
   }
   ComponentName.writeToParcel(origActivity, dest);
   TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
 }
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(processName);
   dest.writeInt(pid);
   dest.writeInt(uid);
   dest.writeStringArray(pkgList);
   dest.writeInt(this.flags);
   dest.writeInt(importance);
   dest.writeInt(lru);
   dest.writeInt(importanceReasonCode);
   dest.writeInt(importanceReasonPid);
   ComponentName.writeToParcel(importanceReasonComponent, dest);
   dest.writeInt(importanceReasonImportance);
 }
 public final void bindApplication(
     String packageName,
     ApplicationInfo info,
     List<ProviderInfo> providers,
     ComponentName testName,
     String profileName,
     ParcelFileDescriptor profileFd,
     boolean autoStopProfiler,
     Bundle testArgs,
     IInstrumentationWatcher testWatcher,
     int debugMode,
     boolean restrictedBackupMode,
     boolean persistent,
     Configuration config,
     CompatibilityInfo compatInfo,
     Map<String, IBinder> services,
     Bundle coreSettings)
     throws RemoteException {
   Parcel data = Parcel.obtain();
   data.writeInterfaceToken(IApplicationThread.descriptor);
   data.writeString(packageName);
   info.writeToParcel(data, 0);
   data.writeTypedList(providers);
   if (testName == null) {
     data.writeInt(0);
   } else {
     data.writeInt(1);
     testName.writeToParcel(data, 0);
   }
   data.writeString(profileName);
   if (profileFd != null) {
     data.writeInt(1);
     profileFd.writeToParcel(data, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
   } else {
     data.writeInt(0);
   }
   data.writeInt(autoStopProfiler ? 1 : 0);
   data.writeBundle(testArgs);
   data.writeStrongInterface(testWatcher);
   data.writeInt(debugMode);
   data.writeInt(restrictedBackupMode ? 1 : 0);
   data.writeInt(persistent ? 1 : 0);
   config.writeToParcel(data, 0);
   compatInfo.writeToParcel(data, 0);
   data.writeMap(services);
   data.writeBundle(coreSettings);
   mRemote.transact(BIND_APPLICATION_TRANSACTION, data, null, IBinder.FLAG_ONEWAY);
   data.recycle();
 }
 public void writeToParcel(Parcel dest, int flags) {
   ComponentName.writeToParcel(service, dest);
   dest.writeInt(pid);
   dest.writeInt(uid);
   dest.writeString(process);
   dest.writeInt(foreground ? 1 : 0);
   dest.writeLong(activeSince);
   dest.writeInt(started ? 1 : 0);
   dest.writeInt(clientCount);
   dest.writeInt(crashCount);
   dest.writeLong(lastActivityTime);
   dest.writeLong(restarting);
   dest.writeInt(this.flags);
   dest.writeString(clientPackage);
   dest.writeInt(clientLabel);
 }