Home
last modified time | relevance | path

Searched refs:work (Results 1 – 3 of 3) sorted by relevance

/core/core/src/main/java/androidx/core/app/
DJobIntentService.java137 abstract void enqueueWork(Intent work); in enqueueWork() argument
183 void enqueueWork(Intent work) { in enqueueWork() argument
184 Intent intent = new Intent(work); in enqueueWork()
186 if (DEBUG) Log.d(TAG, "Starting service for work: " + work); in enqueueWork()
315 JobWorkItem work; in dequeueWork() local
320 work = mParams.dequeueWork(); in dequeueWork()
322 if (work != null) { in dequeueWork()
323 work.getIntent().setExtrasClassLoader(mService.getClassLoader()); in dequeueWork()
324 return new WrapperWorkItem(work); in dequeueWork()
346 void enqueueWork(Intent work) { in enqueueWork() argument
[all …]
/core/core/src/main/java/androidx/core/view/
DVelocityTrackerFallback.java145 float work = 0; in getCurrentVelocity() local
161 float vPrev = kineticEnergyToVelocity(work); in getCurrentVelocity()
165 work += (vCurr - vPrev) * Math.abs(vCurr); in getCurrentVelocity()
171 work = work * 0.5f; in getCurrentVelocity()
175 return kineticEnergyToVelocity(work); in getCurrentVelocity()
179 private static float kineticEnergyToVelocity(float work) { in kineticEnergyToVelocity() argument
180 return (work < 0 ? -1.0f : 1.0f) * (float) Math.sqrt(2f * Math.abs(work)); in kineticEnergyToVelocity()
/core/core/src/androidTest/java/androidx/core/app/
DJobIntentServiceTest.java211 static void finishServiceExecution(ArrayList<Intent> work, String errorMsg) { in finishServiceExecution() argument
214 sFinishedWork = work; in finishServiceExecution()