Home
last modified time | relevance | path

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

12345678910>>...41

/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java54 Runnable r = mock(Runnable.class); in testMessageExecuted()
65 Runnable r = mock(Runnable.class); in testMessageCallback()
84 Runnable r = mock(Runnable.class); in testProcessNumberOfMessages()
97 Runnable r = mock(Runnable.class); in testProcessAllMessages()
98 Runnable poster = () -> h.post(r); in testProcessAllMessages()
108 Runnable r = mock(Runnable.class); in test3Chain()
109 Runnable poster = () -> h.post(r); in test3Chain()
110 Runnable poster2 = () -> h.post(poster); in test3Chain()
120 Runnable r = mock(Runnable.class); in testProcessAllMessages_2Messages()
121 Runnable r2 = mock(Runnable.class); in testProcessAllMessages_2Messages()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/
DReferenceCountedTrigger.java31 ArrayList<Runnable> mFirstIncRunnables = new ArrayList<>();
32 ArrayList<Runnable> mLastDecRunnables = new ArrayList<>();
33 Runnable mErrorRunnable;
36 Runnable mIncrementRunnable = new Runnable() {
42 Runnable mDecrementRunnable = new Runnable() {
53 public ReferenceCountedTrigger(Runnable firstIncRunnable, Runnable lastDecRunnable, in ReferenceCountedTrigger()
54 Runnable errorRunanable) { in ReferenceCountedTrigger()
72 public Runnable incrementAsRunnable() { in incrementAsRunnable()
77 public void addLastDecrementRunnable(Runnable r) { in addLastDecrementRunnable()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/test/widgets/
DHookWidget.java29 private static final Runnable NOP_RUNNABLE = () -> {};
30 private static Runnable sOnPreDrawHook = NOP_RUNNABLE;
31 private static Runnable sOnPreMeasure = NOP_RUNNABLE;
32 private static Runnable sOnPreLayout = NOP_RUNNABLE;
33 private static Runnable sOnPostDrawHook = NOP_RUNNABLE;
34 private static Runnable sOnPostMeasure = NOP_RUNNABLE;
35 private static Runnable sOnPostLayout = NOP_RUNNABLE;
37 public static void setOnPreDrawHook(Runnable runnable) { in setOnPreDrawHook()
41 public static void setOnPreMeasure(Runnable runnable) { in setOnPreMeasure()
45 public static void setOnPreLayout(Runnable runnable) { in setOnPreLayout()
[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/
DValueAnimatorTests.java90 mActivityRule.runOnUiThread(new Runnable() { in testStartDelay()
104 mActivityRule.runOnUiThread(new Runnable() { in testStartDelay()
113 mActivityRule.runOnUiThread(new Runnable() { in testStartDelay()
136 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
148 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
159 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
174 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
200 mActivityRule.runOnUiThread(new Runnable() { in testIsStarted()
214 mActivityRule.runOnUiThread(new Runnable() { in testIsStarted()
225 mActivityRule.runOnUiThread(new Runnable() { in testIsStarted()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DWindowManagerProxy.java63 private final Runnable mResizeRunnable = new Runnable() {
86 private final Runnable mDismissRunnable = new Runnable() {
97 private final Runnable mMaximizeRunnable = new Runnable() {
108 private final Runnable mDimLayerRunnable = new Runnable() {
120 private final Runnable mSetTouchableRegionRunnable = new Runnable() {
179 mExecutor.execute(new Runnable() { in setResizing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayout.java87 void startAll(Runnable... endActions); in startAll()
147 abstract void onChildRemoved(View child, int index, Runnable finishRemoval); in onChildRemoved()
229 final Runnable runAllEndActions = () -> { in animationsForChildrenFromIndex()
230 for (Runnable action : endActions) { in animationsForChildrenFromIndex()
259 Runnable action, DynamicAnimation.ViewProperty property) {
268 Runnable action, DynamicAnimation.ViewProperty... properties) {
269 final Runnable checkIfAllFinished = () -> {
296 protected final HashMap<DynamicAnimation.ViewProperty, Runnable> mEndActionForProperty =
585 final Runnable callback = mEndActionForProperty.get(mProperty);
618 private Map<DynamicAnimation.ViewProperty, Runnable[]> mEndActionsForProperty =
[all …]
/frameworks/base/telecomm/java/android/telecom/Logging/
DRunnable.java26 public abstract class Runnable { class
31 private final java.lang.Runnable mRunnable = new java.lang.Runnable() {
54 public Runnable(String subsessionName, Object lock) { in Runnable() method in Runnable
67 public final java.lang.Runnable getRunnableToCancel() { in getRunnableToCancel()
77 public java.lang.Runnable prepare() { in prepare()
/frameworks/base/telephony/java/com/android/internal/telephony/
DExponentialBackoff.java32 private final Runnable mRunnable;
40 public boolean postDelayed(Runnable runnable, long delayMillis) {
45 public void removeCallbacks(Runnable runnable) {
54 boolean postDelayed(Runnable runnable, long delayMillis); in postDelayed()
55 void removeCallbacks(Runnable runnable); in removeCallbacks()
63 @NonNull Runnable runnable) { in ExponentialBackoff()
72 @NonNull Runnable runnable) { in ExponentialBackoff()
/frameworks/base/core/java/android/view/
DHandlerActionQueue.java32 public void post(Runnable action) { in post()
36 public void postDelayed(Runnable action, long delayMillis) { in postDelayed()
48 public void removeCallbacks(Runnable action) { in removeCallbacks()
97 public Runnable getRunnable(int index) { in getRunnable()
112 final Runnable action;
115 public HandlerAction(Runnable action, long delay) { in HandlerAction()
120 public boolean matches(Runnable otherAction) { in matches()
DViewPropertyAnimator.java128 private Runnable mPendingSetupAction;
129 private Runnable mPendingCleanupAction;
130 private Runnable mPendingOnStartAction;
131 private Runnable mPendingOnEndAction;
162 private Runnable mAnimationStarter = new Runnable() {
220 private HashMap<Animator, Runnable> mAnimatorSetupMap;
221 private HashMap<Animator, Runnable> mAnimatorCleanupMap;
222 private HashMap<Animator, Runnable> mAnimatorOnStartMap;
223 private HashMap<Animator, Runnable> mAnimatorOnEndMap;
768 mPendingSetupAction= new Runnable() { in withLayer()
[all …]
/frameworks/av/services/oboeservice/
DAAudioThread.h30 class Runnable {
32 Runnable() {}; in Runnable() function
33 virtual ~Runnable() = default;
54 aaudio_result_t start(Runnable *runnable = nullptr);
74 Runnable *mRunnable = nullptr;
/frameworks/base/core/java/android/app/
DQueuedWork.java75 private static final LinkedList<Runnable> sFinishers = new LinkedList<>();
83 private static final LinkedList<Runnable> sWork = new LinkedList<>();
128 public static void addFinisher(Runnable finisher) { in addFinisher()
140 public static void removeFinisher(Runnable finisher) { in removeFinisher()
184 Runnable finisher; in waitToFinish()
221 public static void queue(Runnable work, boolean shouldDelay) { in queue()
252 LinkedList<Runnable> work; in processPendingWork()
255 work = (LinkedList<Runnable>) sWork.clone(); in processPendingWork()
263 for (Runnable w : work) { in processPendingWork()
/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/hardware/camera2/legacy/
DCameraDeviceState.java182 mCurrentHandler.post(new Runnable() { in setCaptureResult()
189 mCurrentHandler.post(new Runnable() { in setCaptureResult()
215 mCurrentHandler.post(new Runnable() { in setRepeatingRequestError()
229 mCurrentHandler.post(new Runnable() { in setRequestQueueEmpty()
266 mCurrentHandler.post(new Runnable() { in doStateTransition()
279 mCurrentHandler.post(new Runnable() { in doStateTransition()
297 mCurrentHandler.post(new Runnable() { in doStateTransition()
320 mCurrentHandler.post(new Runnable() { in doStateTransition()
339 mCurrentHandler.post(new Runnable() { in doStateTransition()
346 mCurrentHandler.post(new Runnable() { in doStateTransition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDejankUtils.java34 private static final ArrayList<Runnable> sPendingRunnables = new ArrayList<>();
41 private static final Runnable sAnimationCallbackRunnable = new Runnable() {
58 public static void postAfterTraversal(Runnable r) { in postAfterTraversal()
73 public static void removeCallbacks(Runnable r) { in removeCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java51 Runnable wrap(Runnable r); in wrap()
70 static Runnable wrapImpl(WakeLock w, Runnable r) { in wrapImpl()
114 public Runnable wrap(Runnable runnable) {
/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/core/java/android/os/
DHandler.java422 public final boolean post(@NonNull Runnable r) { in post()
444 public final boolean postAtTime(@NonNull Runnable r, long uptimeMillis) { in postAtTime()
471 @NonNull Runnable r, @Nullable Object token, long uptimeMillis) { in postAtTime()
494 public final boolean postDelayed(@NonNull Runnable r, long delayMillis) { in postDelayed()
499 public final boolean postDelayed(Runnable r, int what, long delayMillis) { in postDelayed()
525 @NonNull Runnable r, @Nullable Object token, long delayMillis) { in postDelayed()
544 public final boolean postAtFrontOfQueue(@NonNull Runnable r) { in postAtFrontOfQueue()
588 public final boolean runWithScissors(@NonNull Runnable r, long timeout) { in runWithScissors()
608 public final void removeCallbacks(@NonNull Runnable r) { in removeCallbacks()
617 public final void removeCallbacks(@NonNull Runnable r, @Nullable Object token) { in removeCallbacks()
[all …]
DAsyncTask.java219 public Thread newThread(Runnable r) {
227 private static LinkedBlockingQueue<Runnable> sBackupExecutorQueue;
231 public void rejectedExecution(Runnable r, ThreadPoolExecutor e) {
237 sBackupExecutorQueue = new LinkedBlockingQueue<Runnable>();
262 new SynchronousQueue<Runnable>(), sThreadFactory);
298 final ArrayDeque<Runnable> mTasks = new ArrayDeque<Runnable>();
299 Runnable mActive;
301 public synchronized void execute(final Runnable r) { in execute()
302 mTasks.offer(new Runnable() { in execute()
741 public static void execute(Runnable runnable) { in execute()
/frameworks/base/telephony/java/android/service/euicc/
DEuiccService.java392 public Thread newThread(Runnable r) { in onCreate()
662 mExecutor.execute(new Runnable() { in downloadSubscription()
691 mExecutor.execute(new Runnable() { in getEid()
707 mExecutor.execute(new Runnable() { in startOtaIfNecessary()
726 mExecutor.execute(new Runnable() { in getOtaStatus()
744 mExecutor.execute(new Runnable() { in getDownloadableSubscriptionMetadata()
762 mExecutor.execute(new Runnable() { in getDefaultDownloadableSubscriptionList()
779 mExecutor.execute(new Runnable() { in getEuiccProfileInfoList()
795 mExecutor.execute(new Runnable() { in getEuiccInfo()
812 mExecutor.execute(new Runnable() { in deleteSubscription()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DStatusBarTest.java189 mHandler.postDelayed(new Runnable() {
198 mHandler.postDelayed(new Runnable() {
207 mHandler.postDelayed(new Runnable() {
242 mHandler.postDelayed(new Runnable() {
256 mHandler.postDelayed(new Runnable() {
265 mHandler.postDelayed(new Runnable() {
279 mHandler.postDelayed(new Runnable() {
293 mHandler.postDelayed(new Runnable() {
307 mHandler.postDelayed(new Runnable() {
316 mHandler.postDelayed(new Runnable() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DExpandedAnimationControllerTest.java81 Runnable afterExpand = Mockito.mock(Runnable.class); in testExpansionAndCollapse()
88 Runnable afterCollapse = Mockito.mock(Runnable.class); in testExpansionAndCollapse()
165 final Runnable after = Mockito.mock(Runnable.class); in testMagnetToDismiss_dismiss()
179 final Runnable afterDismiss = Mockito.mock(Runnable.class); in testMagnetToDismiss_dismiss()
195 final Runnable after = Mockito.mock(Runnable.class); in testMagnetToDismiss_demagnetizeThenDrag()
235 mExpandedController.expandFromStack(Mockito.mock(Runnable.class)); in expand()

12345678910>>...41