Beispiel #1
0
 public void setResults(OffloadableMethod arg0) {
   try {
     mServiceCallback.setResult(Utils.serialize2(arg0));
   } catch (RemoteException e) {
     e.printStackTrace();
   }
 }
Beispiel #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);
 }