Home
last modified time | relevance | path

Searched refs:Runnable (Results 1 – 25 of 636) 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/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()
296 getDispatchThread().runJob(new Runnable() { in openCamera()
314 getDispatchThread().runJobSync(new Runnable() { in closeCamera()
321 getDispatchThread().runJob(new Runnable() { in closeCamera()
402 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/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/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/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/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/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/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/base/
DAsyncTaskPoolMonitorTest.java35 4, 4, 1, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
49 monitor.notifyWhenIdle(new Runnable() { in testIsIdle_onEmptyPool()
60 testThreadPool.submit(new Runnable() { in testIsIdle_withRunningTask()
75 monitor.notifyWhenIdle(new Runnable() { in testIsIdle_withRunningTask()
101 testThreadPool.submit(new Runnable() { in testIdleNotificationAndRestart()
115 monitor.notifyWhenIdle(new Runnable() { in testIdleNotificationAndRestart()
136 testThreadPool.submit(new Runnable() { in testIdleNotification_extraWork()
151 monitor.notifyWhenIdle(new Runnable() { in testIdleNotification_extraWork()
160 testThreadPool.submit(new Runnable() { in testIdleNotification_extraWork()
DUiControllerImplTest.java99 new LinkedBlockingQueue<Runnable>()); in setUp()
161 assertTrue(testThread.getHandler().post(new Runnable() { in testLoopMainThreadTillIdle_sendsMessageToRightHandler()
182 assertTrue(testThread.getHandler().post(new Runnable() { in testLoopForAtLeast()
185 testThread.getHandler().post(new Runnable() { in testLoopForAtLeast()
202 assertTrue(testThread.getHandler().post(new Runnable() { in testLoopMainThreadUntilIdle_fullQueue()
208 handler.post(new Runnable() { in testLoopMainThreadUntilIdle_fullQueue()
216 handler.post(new Runnable() { in testLoopMainThreadUntilIdle_fullQueue()
241 asyncPool.execute(new Runnable() { in testLoopMainThreadUntilIdle_fullQueueAndAsyncTasks()
257 assertTrue(testThread.getHandler().post(new Runnable() { in testLoopMainThreadUntilIdle_fullQueueAndAsyncTasks()
263 handler.post(new Runnable() { in testLoopMainThreadUntilIdle_fullQueueAndAsyncTasks()
[all …]
/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 …]
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()
603 public static void execute(Runnable runnable) { in execute()
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()
/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/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.java102 mQueue = new ConcurrentLinkedQueue<Runnable>(); in WebViewChromiumRunQueue()
105 public void addTask(Runnable task) { in addTask()
108 ThreadUtils.runOnUiThread(new Runnable() { in addTask()
122 Runnable task = mQueue.poll(); in drainQueue()
129 private Queue<Runnable> mQueue;
201 private void runVoidTaskOnUiThreadBlocking(Runnable r) { in runVoidTaskOnUiThreadBlocking()
261 mRunQueue.addTask(new Runnable() { in init()
357 ThreadUtils.postOnUiThread(new Runnable() {
370 mRunQueue.addTask(new Runnable() {
384 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/packages/Keyguard/src/com/android/keyguard/
DAppearAnimationUtils.java52 public void startAppearAnimation(View[][] objects, final Runnable finishListener) { in startAppearAnimation()
56 public void startAppearAnimation(View[] objects, final Runnable finishListener) { in startAppearAnimation()
60 public <T> void startAppearAnimation(T[][] objects, final Runnable finishListener, in startAppearAnimation()
66 public <T> void startAppearAnimation(T[] objects, final Runnable finishListener, in startAppearAnimation()
73 final Runnable finishListener, AppearAnimationCreator<T> creator) { in startAnimations()
81 Runnable endRunnable = null; in startAnimations()
91 final Runnable finishListener, AppearAnimationCreator<T> creator) { in startAnimations()
100 Runnable endRunnable = null; in startAnimations()
163 Interpolator interpolator, Runnable endRunnable) { in createAnimation()
/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/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/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/core/java/com/android/internal/os/
DBinderInternal.java34 static ArrayList<Runnable> sGcWatchers = new ArrayList<>();
35 static Runnable[] sTmpWatchers = new Runnable[1];
55 public static void addGcWatcher(Runnable watcher) { in addGcWatcher()
/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