Home
last modified time | relevance | path

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

12345678910>>...39

/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/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DTransitionRunner.java101 private final List<Runnable> mBeforeAlls;
102 private final List<Runnable> mBefores;
103 private final List<Runnable> mTransitions;
104 private final List<Runnable> mAfters;
105 private final List<Runnable> mAfterAlls;
144 mBeforeAlls.forEach(Runnable::run); in run()
146 mBefores.forEach(Runnable::run); in run()
148 mTransitions.forEach(Runnable::run); in run()
150 mAfters.forEach(Runnable::run); in run()
159 mAfterAlls.forEach(Runnable::run); in run()
[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/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/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayout.java80 void startAll(Runnable... endActions); in startAll()
140 abstract void onChildRemoved(View child, int index, Runnable finishRemoval); in onChildRemoved()
222 final Runnable runAllEndActions = () -> { in animationsForChildrenFromIndex()
223 for (Runnable action : endActions) { in animationsForChildrenFromIndex()
251 protected final HashMap<DynamicAnimation.ViewProperty, Runnable> mEndActionForProperty =
282 public void setEndActionForProperty(Runnable action, DynamicAnimation.ViewProperty property) {
291 Runnable action, DynamicAnimation.ViewProperty... properties) {
292 final Runnable checkIfAllFinished = () -> {
543 final Runnable callback = mEndActionForProperty.get(mProperty);
576 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/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/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/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/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/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/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/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/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/base/core/java/android/service/euicc/
DEuiccService.java311 public Thread newThread(Runnable r) { in onCreate()
553 mExecutor.execute(new Runnable() { in downloadSubscription()
582 mExecutor.execute(new Runnable() { in getEid()
598 mExecutor.execute(new Runnable() { in startOtaIfNecessary()
617 mExecutor.execute(new Runnable() { in getOtaStatus()
635 mExecutor.execute(new Runnable() { in getDownloadableSubscriptionMetadata()
653 mExecutor.execute(new Runnable() { in getDefaultDownloadableSubscriptionList()
670 mExecutor.execute(new Runnable() { in getEuiccProfileInfoList()
686 mExecutor.execute(new Runnable() { in getEuiccInfo()
703 mExecutor.execute(new Runnable() { in deleteSubscription()
[all …]
/frameworks/base/core/java/android/os/
DHandler.java402 public final boolean post(@NonNull Runnable r) { in post()
424 public final boolean postAtTime(@NonNull Runnable r, long uptimeMillis) { in postAtTime()
451 @NonNull Runnable r, @Nullable Object token, long uptimeMillis) { in postAtTime()
474 public final boolean postDelayed(@NonNull Runnable r, long delayMillis) { in postDelayed()
479 public final boolean postDelayed(Runnable r, int what, long delayMillis) { in postDelayed()
505 @NonNull Runnable r, @Nullable Object token, long delayMillis) { in postDelayed()
524 public final boolean postAtFrontOfQueue(@NonNull Runnable r) { in postAtFrontOfQueue()
568 public final boolean runWithScissors(@NonNull Runnable r, long timeout) { in runWithScissors()
588 public final void removeCallbacks(@NonNull Runnable r) { in removeCallbacks()
597 public final void removeCallbacks(@NonNull Runnable r, @Nullable Object token) { in removeCallbacks()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DSurfaceCallbackHelper.java24 Runnable mRunnable;
29 private Runnable mFinishDrawingRunnable = new Runnable() {
42 public SurfaceCallbackHelper(Runnable callbacksCollected) { in SurfaceCallbackHelper()
/frameworks/base/services/core/java/com/android/server/incident/
DRequestQueue.java66 public final Runnable runnable;
71 Rec(IBinder key, boolean value, Runnable runnable) { in Rec()
81 private final Runnable mWorker = new Runnable() {
130 public void enqueue(IBinder key, boolean value, Runnable runnable) { in enqueue()

12345678910>>...39