Home
last modified time | relevance | path

Searched refs:ThreadUtils (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DThreadUtilsTest.java32 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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DLifecycle.java47 import com.android.settingslib.utils.ThreadUtils;
80 ThreadUtils.ensureMainThread(); in addObserver()
90 ThreadUtils.ensureMainThread(); in removeObserver()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java26 public class ThreadUtils { class
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java65 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()
DWifiTracker.java62 import com.android.settingslib.utils.ThreadUtils;
1047 ThreadUtils.postOnMainThread(() -> { in runAndLog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java44 import com.android.settingslib.utils.ThreadUtils;
256 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
314 mLastShowWarningTask = ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDejankUtils.java21 import static com.android.settingslib.utils.ThreadUtils.isMainThread;
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java73 import com.android.settingslib.utils.ThreadUtils;
844 ThreadUtils.postOnBackgroundThread(() -> {
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java65 import com.android.settingslib.utils.ThreadUtils;
819 ThreadUtils.postOnMainThread(latch::countDown);
862 ThreadUtils.postOnMainThread(() -> {
878 ThreadUtils.postOnMainThread(latch2::countDown);
DWifiTrackerTest.java66 import com.android.settingslib.utils.ThreadUtils;
884 ThreadUtils.postOnMainThread(latch2::countDown); in stopTrackingShouldPreventCallbacksFromOngoingWork()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java63 import com.android.settingslib.utils.ThreadUtils;
1593 ThreadUtils.postOnBackgroundThread(() -> { in AppEntry()