@Override public Object call(Object who, Method method, Object... args) throws Throwable { return VJobScheduler.get().getAllPendingJobs(); } }
@TargetApi(Build.VERSION_CODES.O) public int enqueue(JobInfo job, Object workItem) { if (workItem == null) { return -1; } try { return getRemote().enqueue(job, (JobWorkItem) workItem); } catch (RemoteException e) { return (Integer) VirtualRuntime.crash(e); } } }
public Object call(Object who, Method method, Object... args) throws Throwable { return VJobScheduler.get().getPendingJob((Integer) args[0]); } public String getMethodName() {
public IJobScheduler getRemote() { if (mRemote == null || (!mRemote.asBinder().pingBinder() && !VirtualCore.get().isVAppProcess())) { synchronized (this) { Object remote = getRemoteInterface(); mRemote = LocalProxyUtils.genProxy(IJobScheduler.class, remote); } } return mRemote; }
public JobInfo getPendingJob(int jobId) { try { return getRemote().getPendingJob(jobId); } catch (RemoteException e) { return (JobInfo) VirtualRuntime.crash(e); } }
public IJobScheduler getRemote() { if (mRemote == null || (!mRemote.asBinder().pingBinder() && !VirtualCore.get().isVAppProcess())) { synchronized (this) { Object remote = getRemoteInterface(); mRemote = LocalProxyUtils.genProxy(IJobScheduler.class, remote); } } return mRemote; }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { return VJobScheduler.get().getAllPendingJobs(); } }
public void cancelAll() { try { getRemote().cancelAll(); } catch (RemoteException e) { e.printStackTrace(); } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { return VJobScheduler.get().getAllPendingJobs(); } }
public List<JobInfo> getAllPendingJobs() { try { return getRemote().getAllPendingJobs(); } catch (RemoteException e) { return VirtualRuntime.crash(e); } }