Home
last modified time | relevance | path

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

12345678910>>...46

/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/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/packages/SystemUI/src/com/android/systemui/util/concurrency/
DDelayableExecutor.java33 default Runnable executeDelayed(Runnable r, long delayMillis) { in executeDelayed()
44 Runnable executeDelayed(Runnable r, long delay, TimeUnit unit); in executeDelayed()
53 default Runnable executeAtTime(Runnable r, long uptime) { in executeAtTime()
64 Runnable executeAtTime(Runnable r, long uptimeMillis, TimeUnit unit); in executeAtTime()
DExecutorImpl.java37 public void execute(Runnable command) { in execute()
44 public Runnable executeDelayed(Runnable r, long delay, TimeUnit unit) { in executeDelayed()
53 public Runnable executeAtTime(Runnable r, long uptimeMillis, TimeUnit unit) { in executeAtTime()
71 private class ExecutionToken implements Runnable {
72 public final Runnable runnable;
74 private ExecutionToken(Runnable runnable) { in ExecutionToken()
DRepeatableExecutorImpl.java33 public void execute(Runnable command) { in execute()
38 public Runnable executeRepeatedly(Runnable r, long initDelay, long delay, TimeUnit unit) { in executeRepeatedly()
44 private class ExecutionToken implements Runnable {
45 private final Runnable mCommand;
49 private Runnable mCancel;
51 ExecutionToken(Runnable r, long delay, TimeUnit unit) { in ExecutionToken()
DRepeatableExecutor.java40 default Runnable executeRepeatedly(Runnable r, long initialDelayMillis, long delayMillis) { in executeRepeatedly()
53 Runnable executeRepeatedly(Runnable r, long initialDelay, long delay, TimeUnit unit); in executeRepeatedly()
/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/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/services/tests/servicestests/src/com/android/server/people/data/
DMockScheduledExecutorService.java43 private final List<Runnable> mExecutes = new ArrayList<>();
67 List<Runnable> getExecutes() { in getExecutes()
84 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule()
97 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, in scheduleAtFixedRate()
103 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, in scheduleWithFixedDelay()
114 public List<Runnable> shutdownNow() { in shutdownNow()
145 public <T> Future<T> submit(Runnable task, T result) { in submit()
150 public Future<?> submit(Runnable runnable) { in submit()
183 public void execute(Runnable command) { in execute()
190 private final Runnable mRunnable;
[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/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/tests/coretests/src/android/view/
DScrollCaptureClientTest.java88 Runnable action = Mockito.mock(Runnable.class); in testDelayedAction()
105 Runnable action = Mockito.mock(Runnable.class); in testDelayedAction_cancel()
127 Runnable action = Mockito.mock(Runnable.class); in testDelayedAction_timeoutNow()
162 Runnable r = invocation.getArgument(arg); in runRunnable()
184 .onScrollCaptureStart(any(ScrollCaptureSession.class), any(Runnable.class));
189 .onScrollCaptureStart(any(ScrollCaptureSession.class), any(Runnable.class));
203 verify(mCallback1, times(1)).onScrollCaptureEnd(any(Runnable.class));
208 .onScrollCaptureStart(any(ScrollCaptureSession.class), any(Runnable.class));
259 verify(mCallback1, times(1)).onScrollCaptureEnd(any(Runnable.class));
272 .onScrollCaptureEnd(any(Runnable.class));
[all …]
/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 =
593 final Runnable callback = mEndActionForProperty.get(mProperty);
626 private Map<DynamicAnimation.ViewProperty, Runnable[]> mEndActionsForProperty =
[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/tests/src/com/android/systemui/util/concurrency/
DFakeExecutor.java142 public Runnable executeDelayed(Runnable r, long delay, TimeUnit unit) { in executeDelayed()
150 public Runnable executeAtTime(Runnable r, long uptime, TimeUnit unit) { in executeAtTime()
161 public void execute(Runnable command) { in execute()
190 Runnable mRunnable;
194 private QueuedRunnable(Runnable r, long when) { in QueuedRunnable()
/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/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/testing/
DQueuingNonAutomaticExecutorService.java32 private List<Runnable> mWaitingJobs = new ArrayList<>();
42 public List<Runnable> shutdownNow() { in shutdownNow()
43 List<Runnable> queuedJobs = mWaitingJobs; in shutdownNow()
61 for (Runnable job : mWaitingJobs) { in awaitTermination()
72 public void execute(Runnable command) { in execute()
/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/telephony/java/android/service/euicc/
DEuiccService.java393 public Thread newThread(Runnable r) { in onCreate()
663 mExecutor.execute(new Runnable() { in downloadSubscription()
692 mExecutor.execute(new Runnable() { in getEid()
708 mExecutor.execute(new Runnable() { in startOtaIfNecessary()
727 mExecutor.execute(new Runnable() { in getOtaStatus()
745 mExecutor.execute(new Runnable() { in getDownloadableSubscriptionMetadata()
763 mExecutor.execute(new Runnable() { in getDefaultDownloadableSubscriptionList()
780 mExecutor.execute(new Runnable() { in getEuiccProfileInfoList()
796 mExecutor.execute(new Runnable() { in getEuiccInfo()
813 mExecutor.execute(new Runnable() { in deleteSubscription()
[all …]

12345678910>>...46