Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DEditUserPhotoController.java31 import com.android.settingslib.utils.ThreadUtils;
116 ThreadUtils.postOnBackgroundThread(() -> { in onDefaultIconSelected()
122 ThreadUtils.postOnMainThread(() -> onPhotoProcessed(bitmap)); in onDefaultIconSelected()
130 ThreadUtils.postOnBackgroundThread(() -> { in onPhotoCropped()
151 ThreadUtils.postOnMainThread(() -> onPhotoProcessed(finalBitmap)); in onPhotoCropped()
H A DAvatarPhotoController.java41 import com.android.settingslib.utils.ThreadUtils;
167 ThreadUtils.postOnBackgroundThread(() -> { in copyAndCropPhoto()
182 ThreadUtils.postOnMainThreadDelayed(cropRunnable, DELAY_BEFORE_CROP_MILLIS); in copyAndCropPhoto()
184 ThreadUtils.postOnMainThread(cropRunnable); in copyAndCropPhoto()
229 ThreadUtils.postOnBackgroundThread(() -> { in onPhotoNotCropped()
258 ThreadUtils.postOnMainThread(() -> { in onPhotoNotCropped()
H A DCreateUserDialogController.java44 import com.android.settingslib.utils.ThreadUtils;
129 ThreadUtils.postOnBackgroundThread(() -> { in onRestoreInstanceState()
149 ThreadUtils.postOnBackgroundThread(() -> { in onSaveInstanceState()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
H A DLifecycle.java47 import com.android.settingslib.utils.ThreadUtils;
80 ThreadUtils.ensureMainThread(); in addObserver()
90 ThreadUtils.ensureMainThread(); in removeObserver()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DBinderLogger.kt29 import com.android.settingslib.utils.ThreadUtils
66 if (!ThreadUtils.isMainThread()) return null
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
H A DThreadUtils.java26 public class ThreadUtils { class
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DAccessPoint.java65 import com.android.settingslib.utils.ThreadUtils;
1470 ThreadUtils.postOnMainThread(() -> { in setScanResults()
1478 ThreadUtils.postOnMainThread(() -> { in setScanResults()
1546 ThreadUtils.postOnMainThread(() -> { in update()
1553 ThreadUtils.postOnMainThread(() -> { in update()
1570 ThreadUtils.postOnMainThread(() -> { in update()
1920 ThreadUtils.postOnMainThread(() -> { in onProvisioningFailure()
1954 ThreadUtils.postOnMainThread(() -> { in onProvisioningStatus()
1968 ThreadUtils.postOnMainThread(() -> { in onProvisioningComplete()
H A DWifiTracker.java62 import com.android.settingslib.utils.ThreadUtils;
1048 ThreadUtils.postOnMainThread(() -> { in runAndLog()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DAppUtils.java42 import com.android.settingslib.utils.ThreadUtils;
284 ThreadUtils.postOnBackgroundThread(() -> { in preloadTopIcons()
H A DApplicationsState.java64 import com.android.settingslib.utils.ThreadUtils;
1682 ThreadUtils.postOnBackgroundThread( in AppEntry()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
H A DMediaOutputBaseAdapter.java51 import com.android.settingslib.utils.ThreadUtils;
537 ThreadUtils.postOnBackgroundThread(() -> { in setUpDeviceIcon()
539 ThreadUtils.postOnMainThread(() -> { in setUpDeviceIcon()
H A DMediaOutputController.java80 import com.android.settingslib.utils.ThreadUtils;
771 ThreadUtils.postOnBackgroundThread(() -> { in connectDevice()
837 ThreadUtils.postOnBackgroundThread(() -> { in adjustVolume()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java46 import com.android.settingslib.utils.ThreadUtils;
286 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
344 mLastShowWarningTask = ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDejankUtils.java21 import static com.android.settingslib.utils.ThreadUtils.isMainThread;
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DPeopleSpaceUtils.java57 import com.android.settingslib.utils.ThreadUtils;
391 ThreadUtils.postOnBackgroundThread( in getDataFromContactsOnBackgroundThread()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDevice.java47 import com.android.settingslib.utils.ThreadUtils;
671 ThreadUtils.postOnBackgroundThread(() -> { in refresh()
682 ThreadUtils.postOnMainThread(() -> { in refresh()
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
H A DAccessPointTest.java65 import com.android.settingslib.utils.ThreadUtils;
840 ThreadUtils.postOnMainThread(latch::countDown);
883 ThreadUtils.postOnMainThread(() -> {
899 ThreadUtils.postOnMainThread(latch2::countDown);
H A DWifiTrackerTest.java66 import com.android.settingslib.utils.ThreadUtils;
884 ThreadUtils.postOnMainThread(latch2::countDown); in stopTrackingShouldPreventCallbacksFromOngoingWork()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityContainerController.java69 import com.android.settingslib.utils.ThreadUtils;
259 ThreadUtils.postOnBackgroundThread(() -> {