@Override
 public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags)
     throws android.os.RemoteException {
   switch (code) {
     case INTERFACE_TRANSACTION:
       {
         reply.writeString(DESCRIPTOR);
         return true;
       }
     case TRANSACTION_attachEngine:
       {
         data.enforceInterface(DESCRIPTOR);
         android.service.wallpaper.IWallpaperEngine _arg0;
         _arg0 =
             android.service.wallpaper.IWallpaperEngine.Stub.asInterface(
                 data.readStrongBinder());
         this.attachEngine(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_engineShown:
       {
         data.enforceInterface(DESCRIPTOR);
         android.service.wallpaper.IWallpaperEngine _arg0;
         _arg0 =
             android.service.wallpaper.IWallpaperEngine.Stub.asInterface(
                 data.readStrongBinder());
         this.engineShown(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_setWallpaper:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         android.os.ParcelFileDescriptor _result = this.setWallpaper(_arg0);
         reply.writeNoException();
         if ((_result != null)) {
           reply.writeInt(1);
           _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
         } else {
           reply.writeInt(0);
         }
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
 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 dumpHeap(boolean managed, String path, ParcelFileDescriptor fd)
     throws RemoteException {
   Parcel data = Parcel.obtain();
   data.writeInterfaceToken(IApplicationThread.descriptor);
   data.writeInt(managed ? 1 : 0);
   data.writeString(path);
   if (fd != null) {
     data.writeInt(1);
     fd.writeToParcel(data, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
   } else {
     data.writeInt(0);
   }
   mRemote.transact(DUMP_HEAP_TRANSACTION, data, null, IBinder.FLAG_ONEWAY);
   data.recycle();
 }
Пример #4
0
 // from Parcelable
 @Override
 public void writeToParcel(Parcel out, int flags) {
   if (mRelroFd >= 0) {
     out.writeLong(mLoadAddress);
     out.writeLong(mLoadSize);
     out.writeLong(mRelroStart);
     out.writeLong(mRelroSize);
     try {
       ParcelFileDescriptor fd = ParcelFileDescriptor.fromFd(mRelroFd);
       fd.writeToParcel(out, 0);
       fd.close();
     } catch (java.io.IOException e) {
       Log.e(TAG, "Cant' write LibInfo file descriptor to parcel", e);
     }
   }
 }
 public void profilerControl(boolean start, String path, ParcelFileDescriptor fd, int profileType)
     throws RemoteException {
   Parcel data = Parcel.obtain();
   data.writeInterfaceToken(IApplicationThread.descriptor);
   data.writeInt(start ? 1 : 0);
   data.writeInt(profileType);
   data.writeString(path);
   if (fd != null) {
     data.writeInt(1);
     fd.writeToParcel(data, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
   } else {
     data.writeInt(0);
   }
   mRemote.transact(PROFILER_CONTROL_TRANSACTION, data, null, IBinder.FLAG_ONEWAY);
   data.recycle();
 }
        public void a(ParcelFileDescriptor parcelfiledescriptor, int i)
            throws RemoteException
        {
            Parcel parcel = Parcel.obtain();
            parcel.writeInterfaceToken("com.google.android.gms.games.internal.IRoomServiceCallbacks");
            if (parcelfiledescriptor == null)
            {
                break MISSING_BLOCK_LABEL_51;
            }
            parcel.writeInt(1);
            parcelfiledescriptor.writeToParcel(parcel, 0);
_L1:
            parcel.writeInt(i);
            kq.transact(1024, parcel, null, 1);
            parcel.recycle();
            return;
            parcel.writeInt(0);
              goto _L1
 public final void scheduleLaunchActivity(
     Intent intent,
     IBinder token,
     int ident,
     ActivityInfo info,
     Configuration curConfig,
     CompatibilityInfo compatInfo,
     Bundle state,
     List<ResultInfo> pendingResults,
     List<Intent> pendingNewIntents,
     boolean notResumed,
     boolean isForward,
     String profileName,
     ParcelFileDescriptor profileFd,
     boolean autoStopProfiler)
     throws RemoteException {
   Parcel data = Parcel.obtain();
   data.writeInterfaceToken(IApplicationThread.descriptor);
   intent.writeToParcel(data, 0);
   data.writeStrongBinder(token);
   data.writeInt(ident);
   info.writeToParcel(data, 0);
   curConfig.writeToParcel(data, 0);
   compatInfo.writeToParcel(data, 0);
   data.writeBundle(state);
   data.writeTypedList(pendingResults);
   data.writeTypedList(pendingNewIntents);
   data.writeInt(notResumed ? 1 : 0);
   data.writeInt(isForward ? 1 : 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);
   mRemote.transact(SCHEDULE_LAUNCH_ACTIVITY_TRANSACTION, data, null, IBinder.FLAG_ONEWAY);
   data.recycle();
 }