Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DThreadUtilsTest.java32 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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DLifecycle.java46 import com.android.settingslib.utils.ThreadUtils;
79 ThreadUtils.ensureMainThread(); in addObserver()
89 ThreadUtils.ensureMainThread(); in removeObserver()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java24 public class ThreadUtils { class
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java61 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()
DWifiTracker.java59 import com.android.settingslib.utils.ThreadUtils;
884 ThreadUtils.postOnMainThread(() -> { in runAndLog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java41 import com.android.settingslib.utils.ThreadUtils;
430 ThreadUtils.postOnBackgroundThread(() -> latch.countDown()); in testShouldDismissLowBatteryWarning_powerSaverModeEnabled()
446 ThreadUtils.postOnBackgroundThread(() -> latch.countDown()); in testShouldNotDismissLowBatteryWarning_powerSaverModeDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java47 import com.android.settingslib.utils.ThreadUtils;
202 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
249 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java55 import com.android.settingslib.utils.ThreadUtils;
792 ThreadUtils.postOnMainThread(latch::countDown);
835 ThreadUtils.postOnMainThread(() -> {
851 ThreadUtils.postOnMainThread(latch2::countDown);
DWifiTrackerTest.java61 import com.android.settingslib.utils.ThreadUtils;
795 ThreadUtils.postOnMainThread(latch2::countDown); in stopTrackingShouldPreventCallbacksFromOngoingWork()