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