Searched defs:job (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DJobLimiter.java48 public JobWrapper(Job<T> job, FutureListener<T> listener) { argument
49 mJob = job;
105 Job<T> job = null;
108 job = mJob;
112 result = job.run(jc);
114 Log.w(TAG, "error executing job: " + job, t);
136 public synchronized <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { argument
137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DLocaleUtils.java170 protected abstract T job(Resources res); method in class:LocaleUtils.RunInLocale
173 * Execute {@link #job(Resources)} method in specified system locale exclusively.
177 * @return the value returned from {@link #job(Resources)}.
188 return job(res);
/packages/apps/Gallery/src/com/android/camera/
H A DUtil.java377 public BackgroundJob(MonitoredActivity activity, Runnable job, argument
381 mJob = job;
415 String title, String message, Runnable job, Handler handler) {
420 new Thread(new BackgroundJob(activity, job, dialog, handler)).start();
414 startBackgroundJob(MonitoredActivity activity, String title, String message, Runnable job, Handler handler) argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
H A DThreadPool.java95 // Submit a job to the thread pool. The listener will be called when the
96 // job is finished (or cancelled).
97 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { argument
98 Worker<T> w = new Worker<T>(job, listener);
103 public <T> Future<T> submit(Job<T> job) { argument
104 return submit(job, null);
119 public Worker(Job<T> job, FutureListener<T> listener) { argument
120 mJob = job;
129 // A job is in CPU mode by default. setMode returns false
130 // if the job i
[all...]

Completed in 641 milliseconds