Home
last modified time | relevance | path

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

12345678910>>...57

/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/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 …]
/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 …]
DEventsTest.java65 protected static class Canceler implements Runnable {
93 static class Ender implements Runnable {
114 static class Pauser implements Runnable {
135 static class Resumer implements Runnable {
172 handler.postDelayed(new Runnable() { in FutureReleaseListener()
183 handler.postDelayed(new Runnable() { in onAnimationEnd()
273 getActivity().runOnUiThread(new Runnable() { in testStartCancel()
296 getActivity().runOnUiThread(new Runnable() { in testStartEnd()
319 getActivity().runOnUiThread(new Runnable() { in testStartDelayedCancel()
342 getActivity().runOnUiThread(new Runnable() { in testStartDelayedEnd()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTwoWayBindingAdapterTest.java48 initBinder(new Runnable() { in setUp()
61 runTestOnUiThread(new Runnable() { in testListViewSelectedItemPosition()
74 runTestOnUiThread(new Runnable() { in testListViewSelectedItemPosition()
87 runTestOnUiThread(new Runnable() { in clickView()
143 runTestOnUiThread(new Runnable() { in testCalendarViewDate()
157 runTestOnUiThread(new Runnable() { in testCalendarViewDate()
189 runTestOnUiThread(new Runnable() { in testCheckBoxChecked()
203 runTestOnUiThread(new Runnable() { in testCheckBoxChecked()
213 runTestOnUiThread(new Runnable() { in focusOn()
222 runTestOnUiThread(new Runnable() { in focusOn()
[all …]
DCallbackTest.java66 mBindingRule.runOnUiThread(new Runnable() { in setup()
77 mBindingRule.runOnUiThread(new Runnable() { in testRegularClick()
91 mBindingRule.runOnUiThread(new Runnable() { in testClickWithCallbackArg()
105 mBindingRule.runOnUiThread(new Runnable() { in testClickWithAnotherVariableAsArg()
119 mBindingRule.runOnUiThread(new Runnable() { in testClickWithViewAndAnotherVariableAsArgs()
135 mBindingRule.runOnUiThread(new Runnable() { in nullObjectInCallback()
156 mBindingRule.runOnUiThread(new Runnable() { in testRegularLongClick()
172 mBindingRule.runOnUiThread(new Runnable() { in testLongClickWithCallbackArg()
188 mBindingRule.runOnUiThread(new Runnable() { in testLongClickWithAnotherVariableAsArg()
204 mBindingRule.runOnUiThread(new Runnable() { in testLongClickWithViewAndAnotherVariableAsArgs()
[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/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/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
DAppCompatBaseAutoSizeTest.java94 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setMaxLines()
111 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setMaxLines()
123 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setMaxLines()
137 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setMaxLines()
149 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setMaxLines()
171 mActivityTestRule.runOnUiThread(new Runnable() { in testAutoSizeUniform_autoSizeCalledWhenTypeChanged()
179 mActivityTestRule.runOnUiThread(new Runnable() { in testAutoSizeUniform_autoSizeCalledWhenTypeChanged()
201 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setText()
217 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setText()
231 mActivity.runOnUiThread(new Runnable() { in testAutoSizeCallers_setText()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java33 Runnable wrap(Runnable r); in wrap()
45 static Runnable wrapImpl(WakeLock w, Runnable r) { in wrapImpl()
69 public Runnable wrap(Runnable runnable) {
/frameworks/support/webkit/src/androidTest/java/androidx/webkit/
DWebViewOnUiThread.java61 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in WebViewOnUiThread()
76 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in cleanUp()
113 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in setWebViewClient()
131 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
140 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
155 callAndWait(new Runnable() {
164 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
182 callAndWait(new Runnable() {
193 callAndWait(new Runnable() {
255 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
[all …]
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
DFragmentTestUtil.java39 private static final Runnable DO_NOTHING = new Runnable() {
59 Runnable r) { in runOnUiThreadRethrow()
80 runOnUiThreadRethrow(rule, new Runnable() { in executePendingTransactions()
92 instrumentation.runOnMainSync(new Runnable() { in popBackStackImmediate()
105 instrumentation.runOnMainSync(new Runnable() { in popBackStackImmediate()
119 instrumentation.runOnMainSync(new Runnable() { in popBackStackImmediate()
132 instrumentation.runOnMainSync(new Runnable() { in setContentView()
154 runOnUiThreadRethrow(rule, new Runnable() { in createController()
168 runOnUiThreadRethrow(rule, new Runnable() { in resume()
190 runOnUiThreadRethrow(rule, new Runnable() { in destroy()
[all …]
/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.java132 private Runnable mPendingSetupAction;
133 private Runnable mPendingCleanupAction;
134 private Runnable mPendingOnStartAction;
135 private Runnable mPendingOnEndAction;
166 private Runnable mAnimationStarter = new Runnable() {
224 private HashMap<Animator, Runnable> mAnimatorSetupMap;
225 private HashMap<Animator, Runnable> mAnimatorCleanupMap;
226 private HashMap<Animator, Runnable> mAnimatorOnStartMap;
227 private HashMap<Animator, Runnable> mAnimatorOnEndMap;
775 mPendingSetupAction= new Runnable() { in withLayer()
[all …]
/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/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/support/leanback/src/androidTest/java/androidx/leanback/widget/picker/
DTimePickerTest.java94 mActivityTestRule.runOnUiThread(new Runnable() { in initActivity()
111 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn24hFormat()
121 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn24hFormat()
131 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn24hFormat()
141 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn24hFormat()
151 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn24hFormat()
168 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn12hFormat()
178 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn12hFormat()
188 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn12hFormat()
198 mActivityTestRule.runOnUiThread(new Runnable() { in testSetHourIn12hFormat()
[all …]
/frameworks/support/app-toolkit/core-testing/src/main/java/androidx/arch/core/executor/
DTaskExecutorWithFakeMainThread.java49 public Thread newThread(@NonNull final Runnable r) {
59 public Thread newThread(@NonNull Runnable r) { in TaskExecutorWithFakeMainThread()
66 public void executeOnDiskIO(Runnable runnable) { in executeOnDiskIO()
71 public void postToMainThread(Runnable runnable) { in postToMainThread()
108 executeOnDiskIO(new Runnable() { in drainTasks()
122 postToMainThread(new Runnable() { in drainTasks()
141 LoggingThread(final Runnable target) { in LoggingThread()
142 super(new Runnable() { in LoggingThread()
/frameworks/support/compat/src/androidTest/java/androidx/core/view/
DViewPropertyAnimatorCompatTest.java55 mActivityTestRule.runOnUiThread(new Runnable() { in testWithEndAction()
58 ViewCompat.animate(mView).alpha(0).setDuration(100).withEndAction(new Runnable() { in testWithEndAction()
71 mActivityTestRule.runOnUiThread(new Runnable() { in testWithEndAction()
74 ViewCompat.animate(mView).alpha(0).setDuration(50).withEndAction(new Runnable() { in testWithEndAction()
91 mActivityTestRule.runOnUiThread(new Runnable() { in testWithStartAction()
94 ViewCompat.animate(mView).alpha(0).setDuration(100).withStartAction(new Runnable() { in testWithStartAction()
107 mActivityTestRule.runOnUiThread(new Runnable() { in testWithStartAction()
110 ViewCompat.animate(mView).alpha(0).setDuration(50).withStartAction(new Runnable() { in testWithStartAction()
/frameworks/base/core/java/android/app/
DQueuedWork.java73 private static final LinkedList<Runnable> sFinishers = new LinkedList<>();
81 private static final LinkedList<Runnable> sWork = new LinkedList<>();
124 public static void addFinisher(Runnable finisher) { in addFinisher()
135 public static void removeFinisher(Runnable finisher) { in removeFinisher()
179 Runnable finisher; in waitToFinish()
215 public static void queue(Runnable work, boolean shouldDelay) { in queue()
246 LinkedList<Runnable> work; in processPendingWork()
249 work = (LinkedList<Runnable>) sWork.clone(); in processPendingWork()
257 for (Runnable w : work) { in processPendingWork()
/frameworks/base/core/java/android/service/euicc/
DEuiccService.java192 public Thread newThread(Runnable r) { in onCreate()
406 mExecutor.execute(new Runnable() { in downloadSubscription()
422 mExecutor.execute(new Runnable() { in getEid()
438 mExecutor.execute(new Runnable() { in startOtaIfNecessary()
457 mExecutor.execute(new Runnable() { in getOtaStatus()
475 mExecutor.execute(new Runnable() { in getDownloadableSubscriptionMetadata()
493 mExecutor.execute(new Runnable() { in getDefaultDownloadableSubscriptionList()
510 mExecutor.execute(new Runnable() { in getEuiccProfileInfoList()
526 mExecutor.execute(new Runnable() { in getEuiccInfo()
543 mExecutor.execute(new Runnable() { in deleteSubscription()
[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() {

12345678910>>...57