/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.kt | 63 fun addMinuteCallback(runnable: Runnable, offset: Long) { in addMinuteCallback() 64 addPeriodicCallback(runnable, Period.MINUTE, offset) in addMinuteCallback() 70 fun addQuarterHourCallback(runnable: Runnable) { in addQuarterHourCallback() 73 addPeriodicCallback(runnable, Period.QUARTER_HOUR, 100L) in addQuarterHourCallback() 79 fun addHourCallback(runnable: Runnable) { in addHourCallback() 82 addPeriodicCallback(runnable, Period.HOUR, 100L) in addHourCallback() 88 fun addMidnightCallback(runnable: Runnable) { in addMidnightCallback() 91 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L) in addMidnightCallback() 97 private fun addPeriodicCallback(runnable: Runnable, period: Period, offset: Long) { in addPeriodicCallback() 98 val periodicRunnable = PeriodicRunnable(runnable, period, offset) in addPeriodicCallback() [all …]
|
D | UiDataModel.kt | 318 fun addMinuteCallback(runnable: Runnable, offset: Long) { in addMinuteCallback() 320 mPeriodicCallbackModel.addMinuteCallback(runnable, offset) in addMinuteCallback() 326 fun addQuarterHourCallback(runnable: Runnable) { in addQuarterHourCallback() 328 mPeriodicCallbackModel.addQuarterHourCallback(runnable) in addQuarterHourCallback() 334 fun addHourCallback(runnable: Runnable) { in addHourCallback() 336 mPeriodicCallbackModel.addHourCallback(runnable) in addHourCallback() 342 fun addMidnightCallback(runnable: Runnable) { in addMidnightCallback() 344 mPeriodicCallbackModel.addMidnightCallback(runnable) in addMidnightCallback() 350 fun removePeriodicCallback(runnable: Runnable) { in removePeriodicCallback() 352 mPeriodicCallbackModel.removePeriodicCallback(runnable) in removePeriodicCallback()
|
/packages/apps/TV/src/com/android/tv/ui/hideable/ |
D | AutoHideScheduler.java | 47 public AutoHideScheduler(Context context, Runnable runnable) { in AutoHideScheduler() argument 49 runnable, in AutoHideScheduler() 55 AutoHideScheduler(Runnable runnable, AccessibilityManager accessibilityManager, Looper looper) { in AutoHideScheduler() argument 57 mRunnable = runnable; in AutoHideScheduler() 92 protected void handleMessage(Message msg, @NonNull Runnable runnable) { in handleMessage() argument 96 runnable.run(); in handleMessage()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
D | CarUiRecyclerViewImpl.java | 196 for (Runnable runnable : onLayoutCompletedListeners) { in init() 197 runnable.run(); in init() 211 for (Runnable runnable : onLayoutCompletedListeners) { in init() 212 runnable.run(); in init() 258 for (Runnable runnable : onLayoutCompletedListeners) { in setLayoutStyle() 259 runnable.run(); in setLayoutStyle() 275 for (Runnable runnable : onLayoutCompletedListeners) { in setLayoutStyle() 276 runnable.run(); in setLayoutStyle() 302 public void addOnLayoutCompleteListener(@Nullable Runnable runnable) { in addOnLayoutCompleteListener() argument 303 if (runnable != null) { in addOnLayoutCompleteListener() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | ViewUtil.java | 90 @NonNull final View view, final boolean drawNextFrame, final Runnable runnable) { in doOnPreDraw() argument 97 runnable.run(); in doOnPreDraw() 104 @NonNull final View view, final boolean drawNextFrame, final ViewRunnable runnable) { in doOnPreDraw() argument 111 runnable.run(view); in doOnPreDraw() 117 public static void doOnGlobalLayout(@NonNull final View view, final ViewRunnable runnable) { in doOnGlobalLayout() argument 124 runnable.run(view); in doOnGlobalLayout()
|
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DialerExecutorModule.java | 61 public Thread newThread(Runnable runnable) { in provideNonUiThreadPool() 63 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority"); in provideNonUiThreadPool() 78 public Thread newThread(Runnable runnable) { 80 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority-Serial"); 101 public Thread newThread(Runnable runnable) { 103 Thread thread = new Thread(runnable, "DialerExecutors-HighPriority-Serial");
|
D | ThreadUtil.java | 27 public static void postOnUiThread(Runnable runnable) { in postOnUiThread() argument 28 getUiThreadHandler().post(runnable); in postOnUiThread() 32 public static void postDelayedOnUiThread(Runnable runnable, long delayMillis) { in postDelayedOnUiThread() argument 33 getUiThreadHandler().postDelayed(runnable, delayMillis); in postDelayedOnUiThread()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | LooperExecutor.java | 43 public void execute(Runnable runnable) { in execute() argument 45 runnable.run(); in execute() 47 getHandler().post(runnable); in execute() 54 public void post(Runnable runnable) { in post() argument 55 getHandler().post(runnable); in post()
|
D | RunnableList.java | 31 public void add(Runnable runnable) { in add() argument 32 if (runnable == null) { in add() 36 runnable.run(); in add() 42 mList.add(runnable); in add()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiThreadRunner.java | 105 public boolean run(@NonNull Runnable runnable) { in run() argument 107 runWithScissors(mHandler, runnable, RUN_WITH_SCISSORS_TIMEOUT_MILLIS); in run() 158 public boolean post(@NonNull Runnable runnable) { in post() argument 159 return mHandler.post(runnable); in post() 171 public boolean postDelayed(@NonNull Runnable runnable, long delayMillis) { in postDelayed() argument 172 return mHandler.postDelayed(runnable, delayMillis); in postDelayed()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | LauncherAnimationRunner.java | 88 Runnable runnable) { in onAnimationStart() argument 91 mAnimationResult = new AnimationResult(() -> mAnimationResult = null, runnable); in onAnimationStart() 105 RemoteAnimationTargetCompat[] wallpaperTargets, Runnable runnable) { in onAnimationStart() argument 107 new RemoteAnimationTargetCompat[0], runnable); in onAnimationStart() 113 public void onAnimationStart(RemoteAnimationTargetCompat[] appTargets, Runnable runnable) { in onAnimationStart() argument 114 onAnimationStart(appTargets, new RemoteAnimationTargetCompat[0], runnable); in onAnimationStart()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ExecutorUtils.java | 54 public Thread newThread(final Runnable runnable) { in newThread() argument 55 Thread thread = new Thread(runnable, TAG); in newThread() 59 Log.w(mName + "-" + runnable.getClass().getSimpleName(), ex); in newThread() 144 for (Runnable runnable : mRunnables) { in run() 148 runnable.run(); in run()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | SafeAsyncTask.java | 144 public static void executeOnThreadPool(final Runnable runnable) { in executeOnThreadPool() argument 145 executeOnThreadPool(runnable, false); in executeOnThreadPool() 158 public static void executeOnThreadPool(final Runnable runnable, final boolean withWakeLock) { in executeOnThreadPool() argument 166 runnable.run(); in executeOnThreadPool() 173 THREAD_POOL_EXECUTOR.execute(runnable); in executeOnThreadPool()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 127 Runnable runnable = () -> { in validateDefaultState_NoTimersExist() local 130 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in validateDefaultState_NoTimersExist() 150 Runnable runnable = () -> { in type0InDefaultState_NoTimersExist() local 153 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in type0InDefaultState_NoTimersExist() 205 Runnable runnable = () -> { in fillDisplayThenDeleteAll_NoTimersExist() local 208 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in fillDisplayThenDeleteAll_NoTimersExist() 233 Runnable runnable = () -> { in fillDisplayWith9s_NoTimersExist() local 236 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in fillDisplayWith9s_NoTimersExist()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestScheduledExecutorService.java | 146 future.runnable.run(); in runAll() 151 scheduled.get(taskIndex).runnable.run(); in run() 184 final Runnable runnable; field in TestScheduledExecutorService.TestFuture 188 public TestFuture(Runnable runnable, long delay, TimeUnit unit) { in TestFuture() argument 189 this.runnable = runnable; in TestFuture()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowThreadUtils.java | 37 protected static void postOnBackgroundThread(Runnable runnable) { in postOnBackgroundThread() argument 38 runnable.run(); in postOnBackgroundThread() 42 protected static void postOnMainThread(Runnable runnable) { in postOnMainThread() argument 43 runnable.run(); in postOnMainThread()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SchedulingUtils.java | 28 public static void doAfterLayout(final View view, final Runnable runnable) { in doAfterLayout() argument 34 runnable.run(); in doAfterLayout() 42 final Runnable runnable) { in doOnPreDraw() argument 47 runnable.run(); in doOnPreDraw()
|
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/testing/ |
D | InstantTaskExecutorRule.java | 37 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()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | UnusedAppPreference.kt | 56 override fun setRemoveClickRunnable(runnable: Runnable) { in setRemoveClickRunnable() 57 removeRunnable = runnable in setRemoveClickRunnable() 61 private fun bindRemoveButtonRunnable(runnable: Runnable?) { in bindRemoveButtonRunnable() 63 runnable?.run() in bindRemoveButtonRunnable()
|
/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/testdata/ |
D | CallLogDataHandler.java | 68 Runnable runnable = () -> { in addCallLogsAsync() local 74 mWorkerExecutor.run(runnable); in addCallLogsAsync() 135 Runnable runnable = () -> { in removeCalllog() local 155 mWorkerExecutor.run(runnable); in removeCalllog()
|
D | ContactDataHandler.java | 70 Runnable runnable = () -> { in addContactsAsync() local 76 mWorkerExecutor.run(runnable); in addContactsAsync() 169 Runnable runnable = () -> { in removeContact() local 189 mWorkerExecutor.run(runnable); in removeContact()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiThreadRunnerTest.java | 75 Runnable runnable = (Runnable) args[0]; in callSuccess_returnExpectedValue() 76 runnable.run(); in callSuccess_returnExpectedValue() 100 Runnable runnable = (Runnable) args[0]; in runSuccess() 101 runnable.run(); in runSuccess()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ContentLock.java | 73 public synchronized void runWhenUnlocked(Runnable runnable) { in runWhenUnlocked() argument 78 runnable.run(); in runWhenUnlocked() 80 mCallback = runnable; in runWhenUnlocked()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | MainThreadExecutor.java | 41 public void execute(Runnable runnable) { in execute() argument 43 runnable.run(); in execute() 45 mHandler.post(runnable); in execute()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | DialogUtils.java | 41 Runnable runnable = runnables[which]; in showListDialog() 42 if (runnable != null) { in showListDialog() 43 runnable.run(); in showListDialog()
|