Home
last modified time | relevance | path

Searched refs:runnable (Results 1 – 25 of 97) sorted by relevance

1234

/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanScanner.java189 Runnable runnable = () -> callback.onNetScanBeacon(beaconInfo); in startNetScan()
192 handler.post(runnable); in startNetScan()
194 runnable.run(); in startNetScan()
211 Runnable runnable = () -> callback.onScanFinished(); in startNetScan()
214 handler.post(runnable); in startNetScan()
216 runnable.run(); in startNetScan()
266 Runnable runnable = in startEnergyScan()
278 handler.post(runnable); in startEnergyScan()
280 runnable.run(); in startEnergyScan()
292 Runnable runnable = () -> callback.onScanFinished(); in startEnergyScan()
[all …]
/frameworks/support/app-toolkit/runtime/src/main/java/android/arch/core/executor/
DTaskExecutor.java36 public abstract void executeOnDiskIO(Runnable runnable); in executeOnDiskIO() argument
43 public abstract void postToMainThread(Runnable runnable); in postToMainThread() argument
52 public void executeOnMainThread(Runnable runnable) { in executeOnMainThread() argument
54 runnable.run(); in executeOnMainThread()
56 postToMainThread(runnable); in executeOnMainThread()
DDefaultTaskExecutor.java39 public void executeOnDiskIO(Runnable runnable) { in executeOnDiskIO() argument
40 mDiskIO.execute(runnable); in executeOnDiskIO()
44 public void postToMainThread(Runnable runnable) { in postToMainThread() argument
53 mMainHandler.post(runnable); in postToMainThread()
DAppToolkitTaskExecutor.java94 public void executeOnDiskIO(Runnable runnable) { in executeOnDiskIO() argument
95 mDelegate.executeOnDiskIO(runnable); in executeOnDiskIO()
99 public void postToMainThread(Runnable runnable) { in postToMainThread() argument
100 mDelegate.postToMainThread(runnable); in postToMainThread()
/frameworks/base/core/tests/coretests/src/android/view/
DRunQueue.java52 final Runnable runnable = new Runnable() { in onCreate() local
57 view.post(runnable); in onCreate()
58 view.post(runnable); in onCreate()
59 view.post(runnable); in onCreate()
60 view.post(runnable); in onCreate()
61 view.removeCallbacks(runnable); in onCreate()
/frameworks/base/core/java/com/android/internal/view/
DOneShotPreDrawListener.java39 private OneShotPreDrawListener(View view, boolean returnValue, Runnable runnable) { in OneShotPreDrawListener() argument
42 mRunnable = runnable; in OneShotPreDrawListener()
55 public static OneShotPreDrawListener add(View view, Runnable runnable) { in add() argument
56 return add(view, true, runnable); in add()
68 public static OneShotPreDrawListener add(View view, boolean returnValue, Runnable runnable) { in add() argument
69 OneShotPreDrawListener listener = new OneShotPreDrawListener(view, returnValue, runnable); in add()
/frameworks/support/transition/tests/src/android/support/transition/
DSceneTest.java88 CheckCalledRunnable runnable = new CheckCalledRunnable(); in testEnterAction() local
89 scene.setEnterAction(runnable); in testEnterAction()
91 assertThat(runnable.wasCalled(), is(true)); in testEnterAction()
100 CheckCalledRunnable runnable = new CheckCalledRunnable(); in testExitAction() local
101 scene.setExitAction(runnable); in testExitAction()
103 assertThat(runnable.wasCalled(), is(true)); in testExitAction()
111 CheckCalledRunnable runnable = new CheckCalledRunnable(); in testExitAction_withoutEnter() local
112 scene.setExitAction(runnable); in testExitAction_withoutEnter()
114 assertThat(runnable.wasCalled(), is(false)); in testExitAction_withoutEnter()
/frameworks/support/lifecycle/extensions/src/test/java/android/arch/lifecycle/util/
DInstantTaskExecutor.java23 public void executeOnDiskIO(Runnable runnable) { in executeOnDiskIO() argument
24 runnable.run(); in executeOnDiskIO()
28 public void postToMainThread(Runnable runnable) { in postToMainThread() argument
29 runnable.run(); in postToMainThread()
/frameworks/support/app-toolkit/core-testing/src/main/java/android/arch/core/executor/testing/
DInstantTaskExecutorRule.java37 public void executeOnDiskIO(Runnable runnable) { in starting()
38 runnable.run(); in starting()
42 public void postToMainThread(Runnable runnable) { in starting()
43 runnable.run(); in starting()
DCountingTaskExecutorRule.java44 public void executeOnDiskIO(Runnable runnable) { in starting()
45 super.executeOnDiskIO(new CountingRunnable(runnable)); in starting()
49 public void postToMainThread(Runnable runnable) { in starting()
50 super.postToMainThread(new CountingRunnable(runnable)); in starting()
/frameworks/support/fragment/java/android/support/v4/app/
DOneShotPreDrawListener.java41 private OneShotPreDrawListener(View view, Runnable runnable) { in OneShotPreDrawListener() argument
44 mRunnable = runnable; in OneShotPreDrawListener()
54 public static OneShotPreDrawListener add(View view, Runnable runnable) { in add() argument
55 OneShotPreDrawListener listener = new OneShotPreDrawListener(view, runnable); in add()
/frameworks/base/telephony/java/com/android/internal/telephony/
DExponentialBackoff.java38 @NonNull Runnable runnable) { in ExponentialBackoff() argument
39 this(initialDelayMs, maximumDelayMs, multiplier, new Handler(looper), runnable); in ExponentialBackoff()
47 @NonNull Runnable runnable) { in ExponentialBackoff() argument
53 mRunnable = runnable; in ExponentialBackoff()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java57 void scheduleInspectGarbage(Runnable runnable) { in scheduleInspectGarbage() argument
58 mHandler.postDelayed(runnable, GARBAGE_INSPECTION_INTERVAL); in scheduleInspectGarbage()
72 void scheduleReinspectGarbage(Runnable runnable) { in scheduleReinspectGarbage() argument
73 mHandler.postDelayed(runnable, (long) 100); in scheduleReinspectGarbage()
/frameworks/support/app-toolkit/core-testing/src/main/java/android/arch/core/executor/
DTaskExecutorWithFakeMainThread.java66 public void executeOnDiskIO(Runnable runnable) { in executeOnDiskIO() argument
67 mIOService.execute(runnable); in executeOnDiskIO()
71 public void postToMainThread(Runnable runnable) { in postToMainThread() argument
76 mMainThreadService.execute(runnable); in postToMainThread()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DGarbageMonitorTest.java119 void scheduleInspectGarbage(Runnable runnable) { in scheduleInspectGarbage() argument
121 mInspectCallback = runnable; in scheduleInspectGarbage()
132 void scheduleReinspectGarbage(Runnable runnable) { in scheduleReinspectGarbage() argument
134 mReinspectCallback = runnable; in scheduleReinspectGarbage()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DProgressBarManager.java28 private Runnable runnable = new Runnable() { field in ProgressBarManager
68 mHandler.postDelayed(runnable, mInitialDelay); in show()
84 mHandler.removeCallbacks(runnable); in hide()
/frameworks/base/services/core/java/com/android/server/
DSystemServerInitThreadPool.java59 public Future<?> submit(Runnable runnable, String description) { in submit() argument
64 runnable.run(); in submit()
72 return mService.submit(runnable); in submit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DUiOffloadThread.java31 public Future<?> submit(Runnable runnable) { in submit() argument
32 return mExecutorService.submit(runnable); in submit()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java37 public Runnable wrap(Runnable runnable) { in wrap() argument
41 runnable.run(); in wrap()
/frameworks/support/compat/java/android/support/v4/provider/
DSelfDestructiveThread.java105 private void post(Runnable runnable) { in post() argument
114 mHandler.sendMessage(mHandler.obtainMessage(MSG_INVOKE_RUNNABLE, runnable)); in post()
212 private void onInvokeRunnable(Runnable runnable) { in onInvokeRunnable() argument
213 runnable.run(); in onInvokeRunnable()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DInjectMethodsAdapter.java30 public InjectMethodsAdapter(ClassVisitor cv, InjectMethodRunnable runnable) { in InjectMethodsAdapter() argument
32 mRunnable = runnable; in InjectMethodsAdapter()
/frameworks/av/services/oboeservice/
DAAudioThread.h46 AAudioThread(Runnable *runnable);
52 aaudio_result_t start(Runnable *runnable = nullptr);
/frameworks/opt/bitmap/src/com/android/bitmap/
DNamedThreadFactory.java34 public Thread newThread(final Runnable runnable) { in newThread() argument
35 final Thread thread = mDefaultThreadFactory.newThread(runnable); in newThread()
/frameworks/base/core/java/com/android/internal/graphics/
DSfVsyncFrameCallbackProvider.java37 public void postCommitCallback(Runnable runnable) { in postCommitCallback() argument
38 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DResourceHelperTest.java24 private static void assertNumberFormatException(Runnable runnable) { in assertNumberFormatException() argument
26 runnable.run(); in assertNumberFormatException()

1234