Example #1
0
 public void setResults(OffloadableMethod arg0) {
   try {
     mServiceCallback.setResult(Utils.serialize2(arg0));
   } catch (RemoteException e) {
     e.printStackTrace();
   }
 }
Example #2
0
 @Override
 public void addTaskToQueue(byte[] offloadableMethodBytes, String apkPath)
     throws RemoteException {
   File dexFile = new File(apkPath);
   OffloadableMethod offloadableMethod =
       (OffloadableMethod) Utils.deserialize(offloadableMethodBytes, dexFile, dexOutputDir);
   taskQueue.enqueue(offloadableMethod);
 }