Searched refs:ThreadUtils (Results 1 – 11 of 11) sorted by relevance
32 assertThat(ThreadUtils.isMainThread()).isTrue(); in testMainThread()33 Thread background = new Thread(() -> assertThat(ThreadUtils.isMainThread()).isFalse()); in testMainThread()40 ThreadUtils.ensureMainThread(); in testEnsureMainThread()43 ThreadUtils.ensureMainThread(); in testEnsureMainThread()56 ThreadUtils.postOnMainThread(cr); in testPostOnMainThread_shouldRunOnMainThread()70 this.onUiThread = ThreadUtils.isMainThread(); in run()
47 import com.android.settingslib.utils.ThreadUtils;80 ThreadUtils.ensureMainThread(); in addObserver()90 ThreadUtils.ensureMainThread(); in removeObserver()
26 public class ThreadUtils { class
65 import com.android.settingslib.utils.ThreadUtils;1457 ThreadUtils.postOnMainThread(() -> { in setScanResults()1465 ThreadUtils.postOnMainThread(() -> { in setScanResults()1533 ThreadUtils.postOnMainThread(() -> { in update()1540 ThreadUtils.postOnMainThread(() -> { in update()1557 ThreadUtils.postOnMainThread(() -> { in update()1907 ThreadUtils.postOnMainThread(() -> { in onProvisioningFailure()1941 ThreadUtils.postOnMainThread(() -> { in onProvisioningStatus()1955 ThreadUtils.postOnMainThread(() -> { in onProvisioningComplete()
62 import com.android.settingslib.utils.ThreadUtils;1047 ThreadUtils.postOnMainThread(() -> { in runAndLog()
44 import com.android.settingslib.utils.ThreadUtils;256 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()314 mLastShowWarningTask = ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
21 import static com.android.settingslib.utils.ThreadUtils.isMainThread;
73 import com.android.settingslib.utils.ThreadUtils;844 ThreadUtils.postOnBackgroundThread(() -> {
65 import com.android.settingslib.utils.ThreadUtils;819 ThreadUtils.postOnMainThread(latch::countDown);862 ThreadUtils.postOnMainThread(() -> {878 ThreadUtils.postOnMainThread(latch2::countDown);
66 import com.android.settingslib.utils.ThreadUtils;884 ThreadUtils.postOnMainThread(latch2::countDown); in stopTrackingShouldPreventCallbacksFromOngoingWork()
63 import com.android.settingslib.utils.ThreadUtils;1593 ThreadUtils.postOnBackgroundThread(() -> { in AppEntry()