Home
last modified time | relevance | path

Searched refs:Runnable (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DReferenceCountedTrigger.java33 ArrayList<Runnable> mFirstIncRunnables = new ArrayList<Runnable>();
34 ArrayList<Runnable> mLastDecRunnables = new ArrayList<Runnable>();
35 Runnable mErrorRunnable;
38 Runnable mIncrementRunnable = new Runnable() {
44 Runnable mDecrementRunnable = new Runnable() {
51 public ReferenceCountedTrigger(Context context, Runnable firstIncRunnable, in ReferenceCountedTrigger()
52 Runnable lastDecRunnable, Runnable errorRunanable) { in ReferenceCountedTrigger()
71 public Runnable incrementAsRunnable() { in incrementAsRunnable()
76 public void addLastDecrementRunnable(Runnable r) { in addLastDecrementRunnable()
104 public Runnable decrementAsRunnable() { in decrementAsRunnable()
DDozeTrigger.java32 Runnable mSleepRunnable;
35 Runnable mDozeRunnable = new Runnable() {
44 public DozeTrigger(int dozeDurationSeconds, Runnable sleepRunnable) { in DozeTrigger()
/frameworks/base/docs/html/training/multiple-threads/
Ddefine-runnable.jd12 <li><a href="#ExtendClass">Define a Class that Implements Runnable</a></li>
33 This lesson shows you how to implement a {@link java.lang.Runnable} class, which runs the code
34 in its {@link java.lang.Runnable#run Runnable.run()} method on a separate thread. You can also
35 pass a {@link java.lang.Runnable} to another object that can then attach it to a thread and
36 run it. One or more {@link java.lang.Runnable} objects that perform a particular operation are
40 {@link java.lang.Thread} and {@link java.lang.Runnable} are basic classes that, on their own,
43 {@link android.app.IntentService}. {@link java.lang.Thread} and {@link java.lang.Runnable} are
47 <h2 id="ExtendClass">Define a Class that Implements Runnable</h2>
49 Implementing a class that implements {@link java.lang.Runnable} is straightforward. For example:
52 public class PhotoDecodeRunnable implements Runnable {
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraAgent.java71 mHandler.post(new Runnable() { in onPreviewStarted()
113 mHandler.post(new Runnable() { in onCameraOpened()
122 mHandler.post(new Runnable() { in onCameraDisabled()
131 mHandler.post(new Runnable() { in onDeviceOpenFailure()
140 mHandler.post(new Runnable() { in onDeviceOpenedAlready()
149 mHandler.post(new Runnable() { in onReconnectionFailure()
289 getDispatchThread().runJob(new Runnable() { in openCamera()
316 getDispatchThread().runJobSync(new Runnable() { in closeCamera()
323 getDispatchThread().runJob(new Runnable() { in closeCamera()
422 getDispatchThread().runJob(new Runnable() { in reconnect()
[all …]
DDispatchThread.java32 private final Queue<Runnable> mJobQueue;
39 mJobQueue = new LinkedList<Runnable>(); in DispatchThread()
50 public void runJob(Runnable job) { in runJob()
73 public void runJobSync(final Runnable job, Object waitLock, long timeoutMs, String jobMsg) { in runJobSync()
112 Runnable job = null; in run()
138 mCameraHandler.post(new Runnable() { in run()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionListenerProxy.java39 private void proxy(Runnable runnable) { in proxy()
49 proxy(new Runnable() { in onCalling()
65 proxy(new Runnable() { in onRinging()
80 proxy(new Runnable() { in onRingingBack()
96 proxy(new Runnable() { in onCallEstablished()
111 proxy(new Runnable() { in onCallEnded()
127 proxy(new Runnable() { in onCallTransferring()
142 proxy(new Runnable() { in onCallBusy()
158 proxy(new Runnable() { in onCallChangeFailed()
174 proxy(new Runnable() { in onError()
[all …]
/frameworks/base/core/tests/coretests/src/android/animation/
DEventsTest.java65 protected static class Canceler implements Runnable {
93 static class Ender implements Runnable {
114 static class Pauser implements Runnable {
135 static class Resumer implements Runnable {
172 handler.postDelayed(new Runnable() { in FutureReleaseListener()
183 handler.postDelayed(new Runnable() { in onAnimationEnd()
273 getActivity().runOnUiThread(new Runnable() { in testStartCancel()
296 getActivity().runOnUiThread(new Runnable() { in testStartEnd()
319 getActivity().runOnUiThread(new Runnable() { in testStartDelayedCancel()
342 getActivity().runOnUiThread(new Runnable() { in testStartDelayedEnd()
[all …]
DViewPropertyAnimatorTest.java64 protected static class Canceler implements Runnable {
108 handler.postDelayed(new Runnable() { in FutureReleaseListener()
119 handler.postDelayed(new Runnable() { in onAnimationEnd()
206 getActivity().runOnUiThread(new Runnable() { in testStartCancel()
229 getActivity().runOnUiThread(new Runnable() { in testStartDelayedCancel()
251 getActivity().runOnUiThread(new Runnable() { in testPlayingCancel()
275 getActivity().runOnUiThread(new Runnable() { in testPlayingDelayedCancel()
298 getActivity().runOnUiThread(new Runnable() { in testPlayingDelayedCancelMidDelay()
326 getActivity().runOnUiThread(new Runnable() { in testStartDoubleCancel()
350 getActivity().runOnUiThread(new Runnable() { in testStartDelayedDoubleCancel()
/frameworks/base/core/java/android/app/
DQueuedWork.java38 private static final ConcurrentLinkedQueue<Runnable> sPendingWorkFinishers =
39 new ConcurrentLinkedQueue<Runnable>();
69 public static void add(Runnable finisher) { in add()
73 public static void remove(Runnable finisher) { in remove()
86 Runnable toFinish; in waitToFinish()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java214 private final Runnable mLongPressCheck = new Runnable() {
231 private final Runnable mUpdateStatus = new Runnable() {
253 private final Runnable mUpdateNetwork = new Runnable() {
266 private final Runnable mUpdateWifi = new Runnable() {
291 private final Runnable mUpdateMobile = new Runnable() {
306 private final Runnable mUpdateBattery = new Runnable() {
319 private final Runnable mUpdateClock = new Runnable() {
330 private final Runnable mUpdateBarMode = new Runnable() {
/frameworks/base/core/java/android/os/
DHandler.java324 public final boolean post(Runnable r) in post()
347 public final boolean postAtTime(Runnable r, long uptimeMillis) in postAtTime()
372 public final boolean postAtTime(Runnable r, Object token, long uptimeMillis) in postAtTime()
396 public final boolean postDelayed(Runnable r, long delayMillis) in postDelayed()
416 public final boolean postAtFrontOfQueue(Runnable r) in postAtFrontOfQueue()
461 public final boolean runWithScissors(final Runnable r, long timeout) { in runWithScissors()
481 public final void removeCallbacks(Runnable r) in removeCallbacks()
491 public final void removeCallbacks(Runnable r, Object token) in removeCallbacks()
682 public final boolean hasCallbacks(Runnable r) { in hasCallbacks()
725 private static Message getPostMessage(Runnable r) { in getPostMessage()
[all …]
DSystemProperties.java33 private static final ArrayList<Runnable> sChangeCallbacks = new ArrayList<Runnable>();
133 public static void addChangeCallback(Runnable callback) { in addChangeCallback()
148 ArrayList<Runnable> callbacks = new ArrayList<Runnable>(sChangeCallbacks); in callChangeCallbacks()
DAsyncTask.java188 public Thread newThread(Runnable r) {
193 private static final BlockingQueue<Runnable> sPoolWorkQueue =
194 new LinkedBlockingQueue<Runnable>(128);
224 final ArrayDeque<Runnable> mTasks = new ArrayDeque<Runnable>();
225 Runnable mActive;
227 public synchronized void execute(final Runnable r) { in execute()
228 mTasks.offer(new Runnable() { in execute()
607 public static void execute(Runnable runnable) { in execute()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java92 Runnable r1 = getMountRunnable(); in testMountAndPullSdCard()
93 Runnable r2 = getDestroyRunnable(); in testMountAndPullSdCard()
103 public Runnable getMountRunnable() { in getMountRunnable()
104 Runnable r = new Runnable () { in getMountRunnable()
121 public Runnable getDestroyRunnable() { in getDestroyRunnable()
122 Runnable r = new Runnable () { in getDestroyRunnable()
/frameworks/base/core/java/android/view/
DViewPropertyAnimator.java133 private Runnable mPendingSetupAction;
134 private Runnable mPendingCleanupAction;
135 private Runnable mPendingOnStartAction;
136 private Runnable mPendingOnEndAction;
167 private Runnable mAnimationStarter = new Runnable() {
225 private HashMap<Animator, Runnable> mAnimatorSetupMap;
226 private HashMap<Animator, Runnable> mAnimatorCleanupMap;
227 private HashMap<Animator, Runnable> mAnimatorOnStartMap;
228 private HashMap<Animator, Runnable> mAnimatorOnEndMap;
776 mPendingSetupAction= new Runnable() { in withLayer()
[all …]
/frameworks/webview/chromium/java/com/android/webview/chromium/
DWebViewChromium.java101 mQueue = new ConcurrentLinkedQueue<Runnable>(); in WebViewChromiumRunQueue()
104 public void addTask(Runnable task) { in addTask()
107 ThreadUtils.runOnUiThread(new Runnable() { in addTask()
121 Runnable task = mQueue.poll(); in drainQueue()
128 private Queue<Runnable> mQueue;
199 private void runVoidTaskOnUiThreadBlocking(Runnable r) { in runVoidTaskOnUiThreadBlocking()
260 mRunQueue.addTask(new Runnable() { in init()
356 ThreadUtils.postOnUiThread(new Runnable() {
369 mRunQueue.addTask(new Runnable() {
383 mRunQueue.addTask(new Runnable() {
[all …]
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
DCamera2CaptureCallbackForwarder.java43 mHandler.post(new Runnable() { in onCaptureCompleted()
53 mHandler.post(new Runnable() { in onCaptureFailed()
64 mHandler.post(new Runnable() { in onCaptureProgressed()
73 mHandler.post(new Runnable() { in onCaptureSequenceAborted()
83 mHandler.post(new Runnable() { in onCaptureSequenceCompleted()
93 mHandler.post(new Runnable() { in onCaptureStarted()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DStatusBarTest.java190 mHandler.postDelayed(new Runnable() {
199 mHandler.postDelayed(new Runnable() {
208 mHandler.postDelayed(new Runnable() {
243 mHandler.postDelayed(new Runnable() {
257 mHandler.postDelayed(new Runnable() {
266 mHandler.postDelayed(new Runnable() {
280 mHandler.postDelayed(new Runnable() {
294 mHandler.postDelayed(new Runnable() {
308 mHandler.postDelayed(new Runnable() {
317 mHandler.postDelayed(new Runnable() {
/frameworks/volley/src/com/android/volley/
DExecutorDelivery.java38 public void execute(Runnable command) { in ExecutorDelivery()
59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse()
77 private class ResponseDeliveryRunnable implements Runnable {
80 private final Runnable mRunnable;
82 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { in ResponseDeliveryRunnable()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceState.java179 mCurrentHandler.post(new Runnable() { in setCaptureResult()
186 mCurrentHandler.post(new Runnable() { in setCaptureResult()
226 mCurrentHandler.post(new Runnable() { in doStateTransition()
239 mCurrentHandler.post(new Runnable() { in doStateTransition()
257 mCurrentHandler.post(new Runnable() { in doStateTransition()
280 mCurrentHandler.post(new Runnable() { in doStateTransition()
299 mCurrentHandler.post(new Runnable() { in doStateTransition()
306 mCurrentHandler.post(new Runnable() { in doStateTransition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeScrimController.java146 Interpolator interpolator, long delay, final Runnable endRunnable) { in startScrimAnimation()
218 private final Runnable mPulseIn = new Runnable() {
237 private final Runnable mPulseInFinished = new Runnable() {
246 private final Runnable mPulseOut = new Runnable() {
256 private final Runnable mPulseOutFinished = new Runnable() {
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DAppearAnimationUtils.java56 public void startAnimation(View[][] objects, final Runnable finishListener) { in startAnimation()
60 public void startAnimation(View[] objects, final Runnable finishListener) { in startAnimation()
64 public <T> void startAnimation(T[][] objects, final Runnable finishListener, in startAnimation()
70 public <T> void startAnimation(T[] objects, final Runnable finishListener, in startAnimation()
77 final Runnable finishListener, AppearAnimationCreator<T> creator) { in startAnimations()
85 Runnable endRunnable = null; in startAnimations()
95 final Runnable finishListener, AppearAnimationCreator<T> creator) { in startAnimations()
108 Runnable endRunnable = null; in startAnimations()
172 boolean appearing, Interpolator interpolator, Runnable endRunnable) { in createAnimation()
/frameworks/base/tests/WebViewTests/src/com/android/webviewtests/
DJavaBridgeBasicsTest.java100 runTestOnUiThread(new Runnable() { in injectObjectAndReload()
127 runTestOnUiThread(new Runnable() { in testAdditionNotReflectedUntilReload()
134 runTestOnUiThread(new Runnable() { in testAdditionNotReflectedUntilReload()
147 runTestOnUiThread(new Runnable() { in testRemovalNotReflectedUntilReload()
154 runTestOnUiThread(new Runnable() { in testRemovalNotReflectedUntilReload()
165 runTestOnUiThread(new Runnable() { in testRemoveObjectNotAdded()
269 runTestOnUiThread(new Runnable() { in testObjectPersistsAcrossPageLoads()
285 runTestOnUiThread(new Runnable() { in testSameObjectInjectedMultipleTimes()
323 runTestOnUiThread(new Runnable() { in testReturnedObjectInjectedElsewhere()
347 runTestOnUiThread(new Runnable() { in testMethodInvokedOnBackgroundThread()
/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java59 runTestOnUiThread(new Runnable() { in testPopupSetListSelection()
122 runTestOnUiThread(new Runnable() { in testPopupClearListSelection()
155 runTestOnUiThread(new Runnable() { in testPopupNavigateNoAdapter()
188 runTestOnUiThread(new Runnable() { in testPopupShow()
199 runTestOnUiThread(new Runnable() { in testPopupShow()
210 runTestOnUiThread(new Runnable() { in testPopupShow()
254 runTestOnUiThread(new Runnable() { in clearText()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DProviderExecutor.java54 private final LinkedBlockingQueue<Runnable> mQueue = new LinkedBlockingQueue<Runnable>();
89 public void execute(Runnable command) {
96 public void execute(Runnable command) { in execute()
106 final Runnable command = mQueue.take(); in run()

12345678910>>...26