Home
last modified time | relevance | path

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

12345678910>>...28

/packages/apps/Launcher2/src/com/android/launcher2/
DDeferredHandler.java35 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>();
41 Pair<Runnable, Integer> p; in handleMessage()
42 Runnable r; in handleMessage()
62 private class IdleRunnable implements Runnable {
63 Runnable mRunnable;
65 IdleRunnable(Runnable r) { in IdleRunnable()
78 public void post(Runnable runnable) { in post()
81 public void post(Runnable runnable, int type) { in post()
83 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); in post()
91 public void postIdle(final Runnable runnable) { in postIdle()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DDelayedOperationsTests.java40 mDelayedOperations.post(new Runnable() { in brokentestEnueue()
46 mDelayedOperations.post(new Runnable() { in brokentestEnueue()
73 Runnable r; in brokentestCancel()
74 mDelayedOperations.post(r = new Runnable() { in brokentestCancel()
81 mDelayedOperations.post(new Runnable() { in brokentestCancel()
107 mDelayedOperations.post(new Runnable() { in brokentestCancelAll()
113 mDelayedOperations.post(new Runnable() { in brokentestCancelAll()
140 public final ArrayList<Runnable> mPostedToHandler = new ArrayList<Runnable>();
148 void postRunnable(Runnable r) { in postRunnable()
154 void cancelRunnable(Runnable r) { in cancelRunnable()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeferredHandler.java36 @Thunk LinkedList<Runnable> mQueue = new LinkedList<>();
42 Runnable r; in handleMessage()
61 private class IdleRunnable implements Runnable {
62 Runnable mRunnable;
64 IdleRunnable(Runnable r) { in IdleRunnable()
77 public void post(Runnable runnable) { in post()
87 public void postIdle(final Runnable runnable) { in postIdle()
99 LinkedList<Runnable> queue = new LinkedList<>(); in flush()
104 for (Runnable r : queue) { in flush()
111 Runnable peek = mQueue.getFirst(); in scheduleNextLocked()
DLauncherClings.java104 Runnable dismissCb = new Runnable() { in dismissMigrationCling()
106 Runnable cb = new Runnable() { in dismissMigrationCling()
179 Runnable dismissCb = new Runnable() { in dismissLongPressCling()
189 @Thunk void dismissCling(final View cling, final Runnable postAnimationCb, in dismissCling()
194 final Runnable cleanUpClingCb = new Runnable() { in dismissCling()
DLauncherModel.java127 static final ArrayList<Runnable> mDeferredBindRunnables = new ArrayList<Runnable>();
133 static final ArrayList<Runnable> mBindCompleteRunnables = new ArrayList<Runnable>();
247 @Thunk void runOnMainThread(Runnable r) { in runOnMainThread()
258 @Thunk static void runOnWorkerThread(Runnable r) { in runOnWorkerThread()
272 Runnable updateRunnable = new Runnable() { in setPackageState()
310 Runnable r = new Runnable() { in setPackageState()
330 Runnable updateRunnable = new Runnable() { in updateSessionDisplayInfo()
360 Runnable r = new Runnable() { in updateSessionDisplayInfo()
388 Runnable r = new Runnable() { in addAppsToAllApps()
390 runOnMainThread(new Runnable() { in addAppsToAllApps()
[all …]
DLauncherAppWidgetHost.java38 private final ArrayList<Runnable> mProviderChangeListeners = new ArrayList<Runnable>();
91 public void addProviderChangeListener(Runnable callback) {
95 public void removeProviderChangeListener(Runnable callback) {
101 for (Runnable callback : new ArrayList<>(mProviderChangeListeners)) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java165 private void asyncExecuteTaskWithWriteLock(final Runnable task) { in asyncExecuteTaskWithWriteLock()
169 private static void asyncExecuteTaskWithLock(final Lock lock, final Runnable task) { in asyncExecuteTaskWithLock()
170 ExecutorUtils.getBackgroundExecutor(ExecutorUtils.KEYBOARD).execute(new Runnable() { in asyncExecuteTaskWithLock()
200 asyncExecuteTaskWithWriteLock(new Runnable() { in close()
221 asyncExecuteTaskWithWriteLock(new Runnable() { in removeBinaryDictionary()
249 asyncExecuteTaskWithWriteLock(new Runnable() { in clear()
262 asyncExecuteTaskWithWriteLock(new Runnable() { in runGCIfRequired()
279 private void updateDictionaryWithWriteLock(@Nonnull final Runnable updateTask) { in updateDictionaryWithWriteLock()
281 final Runnable task = new Runnable() { in updateDictionaryWithWriteLock()
299 updateDictionaryWithWriteLock(new Runnable() { in addUnigramEntry()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DExecutorUtils.java54 public Thread newThread(final Runnable runnable) { in newThread()
122 public static Runnable chain(final Runnable... runnables) { in chain()
127 public static class RunnableChain implements Runnable {
128 private final Runnable[] mRunnables;
130 private RunnableChain(final Runnable... runnables) { in RunnableChain()
138 public Runnable[] getRunnables() { in getRunnables()
144 for (Runnable runnable : mRunnables) { in run()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DDelayedOperations.java36 private class QueuedOperation implements Runnable {
37 private final Runnable mActualRannable;
39 public QueuedOperation(Runnable actualRannable) { in QueuedOperation()
62 public void post(Runnable r) { in post()
73 public void removeCallbacks(Runnable r) { in removeCallbacks()
98 void postRunnable(Runnable r) { in postRunnable()
103 void cancelRunnable(Runnable r) { in cancelRunnable()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java230 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testMustUsePackageUriWithoutFullPermission()
237 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testMustUsePackageUriWithoutFullPermission()
244 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testMustUsePackageUriWithoutFullPermission()
251 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testMustUsePackageUriWithoutFullPermission()
272 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testPermissions_InsertAndQuery()
286 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testPermissions_InsertAndQuery()
309 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testPermissions_UpdateAndDelete()
315 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testPermissions_UpdateAndDelete()
426 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in checkHasNoReadAccessToUri()
432 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in checkHasNoReadAccessToUri()
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManagerImpl.java70 mMainHandler.execute(new Runnable() { in notifyTaskQueued()
88 mMainHandler.execute(new Runnable() { in notifyTaskDone()
108 mMainHandler.execute(new Runnable() { in notifyTaskFailed()
123 mMainHandler.execute(new Runnable() { in notifyTaskCanceled()
142 mMainHandler.execute(new Runnable() { in notifyTaskProgress()
160 mMainHandler.execute(new Runnable() { in notifyTaskProgressText()
178 mMainHandler.execute(new Runnable() { in notifySessionUpdated()
201 mMainHandler.execute(new Runnable() { in notifySessionCaptureIndicatorAvailable()
215 mMainHandler.execute(new Runnable() { in notifySessionThumbnailAvailable()
230 mMainHandler.execute(new Runnable() { in notifySessionPictureDataAvailable()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DImageGetter.java100 private class ImageGetterRunnable implements Runnable {
102 private Runnable callback(final int position, final int offset, in callback()
106 return new Runnable() { in callback()
119 private Runnable completedCallback(final int requestSerial) {
120 return new Runnable() {
180 Runnable cb = callback(mCurrentPosition, offset,
216 Runnable cb = callback(mCurrentPosition, offset,
293 ((Runnable) message.obj).run();
298 public void postGetterCallback(Runnable callback) {
302 public void postDelayedGetterCallback(Runnable callback, long delay) {
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java59 runTestOnUiThread(new Runnable() { in setUp()
92 runTestOnUiThread(new Runnable() { in testAddAndRemoveEmergencyContact()
108 runTestOnUiThread(new Runnable() { in testAddAndRemoveEmergencyContact()
137 runTestOnUiThread(new Runnable() { in testReloadFromPreference()
152 runTestOnUiThread(new Runnable() { in testReloadFromPreference()
179 runTestOnUiThread(new Runnable() { in testWidgetClick_positiveButton()
196 runTestOnUiThread(new Runnable() { in testWidgetClick_positiveButton()
207 runTestOnUiThread(new Runnable() { in testWidgetClick_positiveButton()
228 runTestOnUiThread(new Runnable() { in testWidgetClick_negativeButton()
245 runTestOnUiThread(new Runnable() { in testWidgetClick_negativeButton()
[all …]
DNameAutoCompletePreferenceTest.java50 runTestOnUiThread(new Runnable() { in setUp()
96 runTestOnUiThread(new Runnable() { in testReloadFromPreference()
108 runTestOnUiThread(new Runnable() { in testSetText()
128 runTestOnUiThread(new Runnable() { in testDialogShowAndDismiss_positiveButton()
136 runTestOnUiThread(new Runnable() { in testDialogShowAndDismiss_positiveButton()
148 runTestOnUiThread(new Runnable() { in testDialogShowAndDismiss_negativeButton()
156 runTestOnUiThread(new Runnable() { in testDialogShowAndDismiss_negativeButton()
/packages/services/Telecomm/src/com/android/server/telecom/
DRunnable.java23 public abstract class Runnable { class
28 private final java.lang.Runnable mRunnable = new java.lang.Runnable() {
45 public Runnable(String subsessionName) { in Runnable() method in Runnable
53 public final java.lang.Runnable getRunnableToCancel() { in getRunnableToCancel()
63 public java.lang.Runnable prepare() { in prepare()
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
DProviderPerfActivity.java105 setButtonAction(R.id.file_read_button, new Runnable() { in onCreate()
111 setButtonAction(R.id.file_write_button, new Runnable() { in onCreate()
117 setButtonAction(R.id.settings_read_button, new Runnable() { in onCreate()
123 setButtonAction(R.id.settings_sleep_button, new Runnable() { in onCreate()
129 setButtonAction(R.id.settings_write_button, new Runnable() { in onCreate()
135 setButtonAction(R.id.settings_writedup_button, new Runnable() { in onCreate()
141 setButtonAction(R.id.dummy_lookup_button, new Runnable() { in onCreate()
147 setButtonAction(R.id.dummy_local_lookup_button, new Runnable() { in onCreate()
154 setButtonAction(R.id.localsocket_button, new Runnable() { in onCreate()
160 setButtonAction(R.id.service_button, new Runnable() { in onCreate()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEventLoader.java66 public Runnable uiCallback;
76 final Runnable uiCallback) in LoadEventDaysRequest()
130 public Runnable successCallback;
131 public Runnable cancelCallback;
134 final Runnable successCallback, final Runnable cancelCallback) { in LoadEventsRequest()
240 int startDay, final Runnable successCallback, final Runnable cancelCallback) { in loadEventsInBackground()
272 final Runnable uiCallback) in loadEventDaysInBackground()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java72 public static void runOnMain(Runnable action) { in runOnMain()
81 public static void runOnLooper(Looper looper, Runnable action) { in runOnLooper()
92 public static void runOnMainSync(Runnable action) { in runOnMainSync()
103 public static void runOnLooperSync(Looper looper, Runnable action) { in runOnLooperSync()
115 private static final class SyncRunnable implements Runnable {
116 private final Runnable mTarget;
119 public SyncRunnable(Runnable target) { in SyncRunnable()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java353 Optional.<Runnable> absent()); in receiveImage()
377 Optional<Runnable> runnableWhenDone) in receiveImage()
426 Optional<Runnable> runnableWhenDone) in receiveImage()
524 final Optional<Runnable> runnableOptional; in receiveImage()
527 Runnable unregisterRunnable = new Runnable() { in receiveImage()
535 runnableOptional = Optional.<Runnable> absent(); in receiveImage()
587 Optional<Runnable> runnableWhenDone) { in initializeTaskDone()
760 Runnable closeTask = new Runnable() { in closeImageExecutorSafe()
804 private class TaskDoneWrapper implements Runnable {
833 Runnable doneRunnable = mImageShadowTask.getRunnableWhenDone(); in run()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DPopupTransitionAnimation.java72 private Runnable mOnStartCallback;
73 private Runnable mOnStopCallback;
112 private final Runnable mCleanupRunnable = new Runnable() {
129 final Runnable startAnimation = new Runnable() { in startAfterLayoutComplete()
171 public PopupTransitionAnimation setOnStartCallback(final Runnable onStart) { in setOnStartCallback()
176 public PopupTransitionAnimation setOnStopCallback(final Runnable onStop) { in setOnStopCallback()
210 ThreadUtil.getMainThreadHandler().post(new Runnable() { in dismiss()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DPictureCallbackAdapter.java47 mMainExecutor.execute(new Runnable() { in provideQuickExposeUpdatable()
60 mMainExecutor.execute(new Runnable() {
73 mMainExecutor.execute(new Runnable() {
86 mMainExecutor.execute(new Runnable() {
100 mMainExecutor.execute(new Runnable() {
114 mMainExecutor.execute(new Runnable() {
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusController.java49 mMainThread.execute(new Runnable() { in showPassiveFocusAtCenter()
68 mMainThread.execute(new Runnable() { in showPassiveFocusAt()
87 mMainThread.execute(new Runnable() { in showActiveFocusAt()
104 mMainThread.execute(new Runnable() { in clearFocusIndicator()
119 mMainThread.execute(new Runnable() { in configurePreviewDimensions()
133 mMainThread.execute(new Runnable() { in setFocusRatio()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java148 runTestOnUiThread(new Runnable() { in testRecipientsRefReplyAllCustomFromReplyTo()
185 runTestOnUiThread(new Runnable() { in testRecipientsRefReplyAllOnlyAccount()
226 runTestOnUiThread(new Runnable() { in testRecipientsRefReplyAllOnlyCustomFrom()
253 runTestOnUiThread(new Runnable() { in testReply()
276 runTestOnUiThread(new Runnable() { in testReplyWithReplyTo()
301 runTestOnUiThread(new Runnable() { in testReplyToSelf()
326 runTestOnUiThread(new Runnable() { in testReplyAllToSelf()
353 runTestOnUiThread(new Runnable() { in testReplyAllToSelfWithCc()
379 runTestOnUiThread(new Runnable() { in testReplyAll()
403 runTestOnUiThread(new Runnable() { in testReplyAllWithReplyTo()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DFilteredNumberAsyncQueryHandlerTest.java88 runTestOnUiThread(new Runnable() { in testHasBlockedNumbers_Disabled()
101 runTestOnUiThread(new Runnable() { in testHasBlockedNumbers_NoResults()
114 runTestOnUiThread(new Runnable() { in testHasBlockedNumbers()
137 runTestOnUiThread(new Runnable() { in testIsBlockedNumber_Disabled()
152 runTestOnUiThread(new Runnable() { in testIsBlockedNumber_NoResults()
170 runTestOnUiThread(new Runnable() { in testIsBlockedNumber()
189 runTestOnUiThread(new Runnable() { in testIsBlockedNumber_MultipleResults()
213 runTestOnUiThread(new Runnable() { in testBlockNumber_Disabled()
228 runTestOnUiThread(new Runnable() { in testBlockNumber()
243 runTestOnUiThread(new Runnable() { in testBlockNumber_NullNormalizedNumber()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DUiHandler.java44 public void post(final Runnable r) { in post()
47 mHandler.post(new Runnable() { in post()
59 public void postDelayed(final Runnable r, long delayMillis) { in postDelayed()
62 mHandler.postDelayed(new Runnable() { in postDelayed()
74 public void removeCallbacks(Runnable r) { in removeCallbacks()

12345678910>>...28