Home
last modified time | relevance | path

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

12345678910>>...52

/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTestExecutorService.java45 private Runnable mRunnable;
57 CompletedFuture(Runnable task, long delayMs) { in CompletedFuture()
118 private Map<Long, Runnable> mScheduledRunnables = new HashMap<>();
119 private Map<Runnable, Long> mRepeatDuration = new HashMap<>();
126 public List<Runnable> shutdownNow() { in shutdownNow()
151 public <T> Future<T> submit(Runnable task, T result) { in submit()
156 public Future<?> submit(Runnable task) { in submit()
183 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule()
191 return new com.android.internal.telephony.TestExecutorService.CompletedFuture<Runnable>( in schedule()
201 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, in scheduleAtFixedRate()
[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 …]
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DTestShellExecutor.java28 final ArrayList<Runnable> mRunnables = new ArrayList<>();
31 public void execute(Runnable runnable) { in execute()
36 public void executeDelayed(Runnable r, long delayMillis) { in executeDelayed()
41 public void removeCallbacks(Runnable r) { in removeCallbacks()
46 public boolean hasCallback(Runnable r) { in hasCallback()
51 for (Runnable r : mRunnables) { in flushAll()
/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.java129 private Runnable mPendingSetupAction;
130 private Runnable mPendingCleanupAction;
131 private Runnable mPendingOnStartAction;
132 private Runnable mPendingOnEndAction;
163 private Runnable mAnimationStarter = new Runnable() {
221 private HashMap<Animator, Runnable> mAnimatorSetupMap;
222 private HashMap<Animator, Runnable> mAnimatorCleanupMap;
223 private HashMap<Animator, Runnable> mAnimatorOnStartMap;
224 private HashMap<Animator, Runnable> mAnimatorOnEndMap;
769 mPendingSetupAction= new Runnable() { in withLayer()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DShellExecutor.java36 void execute(Runnable runnable); in execute()
45 default void executeBlocking(Runnable runnable, int waitTimeout, TimeUnit waitTimeUnit) in executeBlocking()
61 default void executeBlocking(Runnable runnable) throws InterruptedException { in executeBlocking()
88 void executeDelayed(Runnable runnable, long delayMillis); in executeDelayed()
93 void removeCallbacks(Runnable runnable); in removeCallbacks()
98 boolean hasCallback(Runnable runnable); in hasCallback()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayout.java88 void startAll(Runnable... endActions); in startAll()
149 abstract void onChildRemoved(View child, int index, Runnable finishRemoval); in onChildRemoved()
231 final Runnable runAllEndActions = () -> { in animationsForChildrenFromIndex()
232 for (Runnable action : endActions) { in animationsForChildrenFromIndex()
261 Runnable action, DynamicAnimation.ViewProperty property) {
270 Runnable action, DynamicAnimation.ViewProperty... properties) {
271 final Runnable checkIfAllFinished = () -> {
298 protected final HashMap<DynamicAnimation.ViewProperty, Runnable> mEndActionForProperty =
609 final Runnable callback = mEndActionForProperty.get(mProperty);
642 private Map<DynamicAnimation.ViewProperty, Runnable[]> mEndActionsForProperty =
[all …]
/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/SettingsLib/tests/robotests/src/com/android/settingslib/users/
DEditUserInfoControllerTest.java136 Runnable cancelCallback = mock(Runnable.class); in cancelCallback_isCalled_whenCancelled()
152 Runnable cancelCallback = mock(Runnable.class); in cancelCallback_isCalled_whenNegativeClicked()
168 Runnable cancelCallback = mock(Runnable.class); in successCallback_isCalled_whenNothingChanged()
187 Runnable cancelCallback = mock(Runnable.class); in successCallback_calledWithNullIcon_whenOldIconIsNullAndNothingChanged()
205 Runnable cancelCallback = mock(Runnable.class); in successCallback_isCalled_whenLabelChanges()
226 Runnable cancelCallback = mock(Runnable.class); in successCallback_isCalled_whenPhotoChanges()
245 Runnable cancelCallback = mock(Runnable.class); in successCallback_isCalledWithChangedPhoto_whenOldIconIsNullAndPhotoChanges()
/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/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DSyncExecutor.java27 public void execute(Runnable runnable) { in execute()
32 public void executeDelayed(Runnable runnable, long delayMillis) { in executeDelayed()
37 public void removeCallbacks(Runnable runnable) { in removeCallbacks()
41 public boolean hasCallback(Runnable runnable) { in hasCallback()
/frameworks/base/core/java/android/app/
DQueuedWork.java76 private static final LinkedList<Runnable> sFinishers = new LinkedList<>();
84 private static LinkedList<Runnable> sWork = new LinkedList<>();
129 public static void addFinisher(Runnable finisher) { in addFinisher()
141 public static void removeFinisher(Runnable finisher) { in removeFinisher()
185 Runnable finisher; in waitToFinish()
222 public static void queue(Runnable work, boolean shouldDelay) { in queue()
253 LinkedList<Runnable> work; in processPendingWork()
264 for (Runnable w : work) { in processPendingWork()
/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()

12345678910>>...52