Searched refs:ThreadUtils (Results 1 – 9 of 9) sorted by relevance
32 assertThat(ThreadUtils.isMainThread()).isTrue(); in testMainThread()35 assertThat(ThreadUtils.isMainThread()).isFalse(); in testMainThread()44 ThreadUtils.ensureMainThread(); in testEnsureMainThread()48 ThreadUtils.ensureMainThread(); in testEnsureMainThread()62 ThreadUtils.postOnMainThread(cr); in testPostOnMainThread_shouldRunOnMainTread()76 this.onUiThread = ThreadUtils.isMainThread(); in run()
46 import com.android.settingslib.utils.ThreadUtils;79 ThreadUtils.ensureMainThread(); in addObserver()89 ThreadUtils.ensureMainThread(); in removeObserver()
24 public class ThreadUtils { class
61 import com.android.settingslib.utils.ThreadUtils;1056 ThreadUtils.postOnMainThread(() -> { in setScanResults()1064 ThreadUtils.postOnMainThread(() -> { in setScanResults()1115 ThreadUtils.postOnMainThread(() -> { in update()1122 ThreadUtils.postOnMainThread(() -> { in update()1136 ThreadUtils.postOnMainThread(() -> { in update()
59 import com.android.settingslib.utils.ThreadUtils;884 ThreadUtils.postOnMainThread(() -> { in runAndLog()
41 import com.android.settingslib.utils.ThreadUtils;430 ThreadUtils.postOnBackgroundThread(() -> latch.countDown()); in testShouldDismissLowBatteryWarning_powerSaverModeEnabled()446 ThreadUtils.postOnBackgroundThread(() -> latch.countDown()); in testShouldNotDismissLowBatteryWarning_powerSaverModeDisabled()
47 import com.android.settingslib.utils.ThreadUtils;202 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()249 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
55 import com.android.settingslib.utils.ThreadUtils;792 ThreadUtils.postOnMainThread(latch::countDown);835 ThreadUtils.postOnMainThread(() -> {851 ThreadUtils.postOnMainThread(latch2::countDown);
61 import com.android.settingslib.utils.ThreadUtils;795 ThreadUtils.postOnMainThread(latch2::countDown); in stopTrackingShouldPreventCallbacksFromOngoingWork()