Java 类android.app.job.IJobService 实例源码

项目:VirtualHook    文件:StubJob.java   
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    clientJobService = IJobService.Stub.asInterface(service);
    if (clientJobService == null) {
        emptyCallback(clientCallback, jobId);
        stopSession();
        return;
    }
    try {
        clientJobService.startJob(jobParams);
    } catch (RemoteException e) {
        forceFinishJob();
        e.printStackTrace();
    }
}
项目:TPlayer    文件:StubJob.java   
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    clientJobService = IJobService.Stub.asInterface(service);
    if (clientJobService == null) {
        emptyCallback(clientCallback, jobId);
        stopSession();
        return;
    }
    try {
        clientJobService.startJob(jobParams);
    } catch (RemoteException e) {
        forceFinishJob();
        e.printStackTrace();
    }
}
项目:container    文件:StubJob.java   
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    clientJobService = IJobService.Stub.asInterface(service);
    if (clientJobService == null) {
        emptyCallback(clientCallback, jobId);
        stopSession();
        return;
    }
    try {
        clientJobService.startJob(jobParams);
    } catch (RemoteException e) {
        forceFinishJob();
        e.printStackTrace();
    }
}