Searched defs:work (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DScanPackageAction.java47 work(client);
61 work(ret.client);
70 private void work(Client c) { method in class:ScanPackageAction
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DSimpleJobIntentService.java38 * Convenience method for enqueuing work in to this service.
40 static void enqueueWork(Context context, Intent work) { argument
41 enqueueWork(context, SimpleJobIntentService.class, JOB_ID, work);
46 // We have received work to do. The system or framework is already
48 Log.i("SimpleJobIntentService", "Executing work: " + intent);
68 toast("All work complete");
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DSimpleJobIntentService.java38 * Convenience method for enqueuing work in to this service.
40 static void enqueueWork(Context context, Intent work) { argument
41 enqueueWork(context, SimpleJobIntentService.class, JOB_ID, work);
46 // We have received work to do. The system or framework is already
48 Log.i("SimpleJobIntentService", "Executing work: " + intent);
68 toast("All work complete");
/frameworks/base/core/java/android/app/
H A DJobSchedulerImpl.java51 public int enqueue(JobInfo job, JobWorkItem work) { argument
53 return mBinder.enqueue(job, work);
H A DQueuedWork.java33 * Internal utility class to keep track of process-global work that's outstanding and hasn't been
36 * New work will be {@link #queue queued}.
39 * This is used to make sure the work has been finished.
45 * The queued asynchronous work is performed on a separate, dedicated thread.
63 * Used to make sure that only one thread is processing work items at a time. This means that
66 * This is separate from {@link #sLock} as this is held the whole time while work is processed
83 /** If new work can be delayed or not */
87 /** Time (and number of instances) waited for work to get processed */
102 HandlerThread handlerThread = new HandlerThread("queued-work-looper",
113 * Add a finisher-runnable to wait for {@link #queue asynchronously processed work}
215 queue(Runnable work, boolean shouldDelay) argument
[all...]
/frameworks/base/core/java/android/app/job/
H A DJobScheduler.java93 * Similar to {@link #schedule}, but allows you to enqueue work for a new <em>or existing</em>
95 * new {@link JobInfo}, but any previously enqueued work will remain and be dispatched the
96 * next time it runs. If a job with the same ID is already running, the new work will be
99 * <p>The work you enqueue is later retrieved through
101 * about how to process work; the act of enqueueing work changes how you should handle the
104 * <p>It is strongly encouraged that you use the same {@link JobInfo} for all work you
105 * enqueue. This will allow the system to optimally schedule work along with any pending
106 * and/or currently running work. If the JobInfo changes from the last time the job was
109 * previous work t
127 enqueue(@onNull JobInfo job, @NonNull JobWorkItem work) argument
[all...]
H A DJobParameters.java175 * currently running job. Calling this method when there is no more work available and all
176 * previously dequeued work has been completed will result in the system taking care of
183 * executing the work. The job will not be finished until all dequeued work has been
184 * completed. You do not, however, have to complete each returned work item before deqeueing
186 * previous work if you want to process work in parallel, and you can complete the work
189 * <p>If the job runs to the end of its available time period before all work has been
192 * doing so any pending as well as remaining uncompleted work wil
230 completeWork(@onNull JobWorkItem work) argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DRankingReconsideration.java21 * Represents future work required to extract signals from notifications for ranking.
55 work();
89 public abstract void work(); method in class:RankingReconsideration
H A DValidateNotificationPeople.java168 // Perform the heavy work on a background thread so we can abort when we hit the
174 prr.work();
271 if (DEBUG) Slog.d(TAG, "Pending: future work scheduled for: " + key);
444 public void work() { method in class:ValidateNotificationPeople.PeopleRankingReconsideration
/frameworks/support/compat/tests/java/android/support/v4/app/
H A DJobIntentServiceTest.java206 static void finishServiceExecution(ArrayList<Intent> work, String errorMsg) { argument
209 sFinishedWork = work;
265 Log.i(TAG, "Handling work: " + intent);
266 updateServiceState("Handling work: " + intent);
321 fail("Didn't receive any expected work.");
339 fail("Received more than " + expected.length + " work items, first extra is "
353 fail("Received only " + received.size() + " work items, but expected "
359 * Test simple case of enqueueing one piece of work.
380 * Test case of enqueueing multiple pieces of work.
404 * Test case of enqueueing multiple pieces of work
[all...]
/frameworks/support/compat/java/android/support/v4/app/
H A DJobIntentService.java41 * Helper for processing work that has been enqueued for a job/service. When running on
42 * {@link android.os.Build.VERSION_CODES#O Android O} or later, the work will be dispatched
51 * <p>Use {@link #enqueueWork(Context, Class, int, Intent)} to enqueue new work to be
58 * you enqueue work until the job has been dispatched and while it is running). When running
67 * <li><p>When running as a pre-O service, the act of enqueueing work will generally start
108 * Base class for the target service we can deliver work to and the implementation of
109 * how to deliver that work.
131 abstract void enqueueWork(Intent work); argument
177 void enqueueWork(Intent work) { argument
178 Intent intent = new Intent(work);
340 enqueueWork(Intent work) argument
498 enqueueWork(@onNull Context context, @NonNull Class cls, int jobId, @NonNull Intent work) argument
514 enqueueWork(@onNull Context context, @NonNull ComponentName component, int jobId, @NonNull Intent work) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp83 ActivityWork work; local
84 work.cmd = cmd;
85 work.arg1 = arg1;
86 work.arg2 = arg2;
93 int res = write(fd, &work, sizeof(work));
98 if (res == sizeof(work)) return;
100 if (res < 0) ALOGW("Failed writing to work fd: %s", strerror(errno));
101 else ALOGW("Truncated writing to work fd: %d", res);
109 if (res < 0) ALOGW("Failed reading work f
224 ActivityWork work; local
[all...]
/frameworks/base/services/core/java/com/android/server/job/
H A DJobSchedulerService.java96 * Responsible for taking jobs representing work to be performed by a client app, and determining
280 * running some work early. This (and thus the other min counts) is now set to 1, to
324 * giving up on it, for jobs that are executing work.
655 public int scheduleAsPackage(JobInfo job, JobWorkItem work, int uId, String packageName, argument
669 if (work != null && toCancel != null) {
670 // Fast path: we are adding work to an existing job, and the JobInfo is not
671 // changing. We can just directly enqueue this work in to the job.
673 toCancel.enqueueWorkLocked(ActivityManager.getService(), work);
695 if (work != null) {
696 // If work ha
1942 enqueue(JobInfo job, JobWorkItem work) argument
[all...]
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DJobStatus.java172 // If non-null, this is work that has been enqueued for the job.
175 // If non-null, this is work that is currently being executed.
377 public void enqueueWorkLocked(IActivityManager am, JobWorkItem work) { argument
381 work.setWorkId(nextPendingWorkId);
383 if (work.getIntent() != null
384 && GrantedUriPermissions.checkGrantFlags(work.getIntent().getFlags())) {
385 work.setGrants(GrantedUriPermissions.createFromIntent(am, work.getIntent(), sourceUid,
388 pendingWork.add(work);
393 JobWorkItem work
414 ungrantWorkItem(IActivityManager am, JobWorkItem work) argument
957 dumpJobWorkItem(PrintWriter pw, String prefix, JobWorkItem work, int index) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 391 milliseconds