Home
last modified time | relevance | path

Searched refs:ThreadUtils (Results 1 – 23 of 23) 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/deviceinfo/
DAbstractBluetoothAddressPreferenceController.java31 import com.android.settingslib.utils.ThreadUtils;
83 ListenableFuture<String> future = ThreadUtils.getBackgroundExecutor() in updateConnectivity()
/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/SystemUI/src/com/android/systemui/util/
DBinderLogger.kt29 import com.android.settingslib.utils.ThreadUtils
66 if (!ThreadUtils.isMainThread()) return null in onTransactStarted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesPresetsController.java32 import com.android.settingslib.utils.ThreadUtils;
156 mHapClientProfile.registerCallback(ThreadUtils.getBackgroundExecutor(), this); in registerHapCallback()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java30 public class ThreadUtils { class
/frameworks/base/packages/SettingsLib/AvatarPicker/src/
DThreadUtils.java32 public class ThreadUtils { class
DAvatarPhotoController.java169 ListenableFuture<Uri> future = ThreadUtils.getBackgroundExecutor().submit(() -> { in copyAndCropPhoto()
242 ListenableFuture<Bitmap> future = ThreadUtils.getBackgroundExecutor().submit(() -> { in onPhotoNotCropped()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DEditUserPhotoController.java35 import com.android.settingslib.utils.ThreadUtils;
99 mExecutorService = ThreadUtils.getBackgroundExecutor(); in EditUserPhotoController()
DCreateUserDialogController.java45 import com.android.settingslib.utils.ThreadUtils;
301 ListenableFuture<Drawable> future = ThreadUtils.getBackgroundExecutor() in setUserIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java43 import com.android.settingslib.utils.ThreadUtils;
289 var unused = ThreadUtils.getBackgroundExecutor().submit(() -> { in preloadTopIcons()
DApplicationsState.java67 import com.android.settingslib.utils.ThreadUtils;
1705 var unused = ThreadUtils.getBackgroundExecutor().submit( in AppEntry()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
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()
DWifiTracker.java62 import com.android.settingslib.utils.ThreadUtils;
1048 ThreadUtils.postOnMainThread(() -> { in runAndLog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputBaseAdapter.java51 import com.android.settingslib.utils.ThreadUtils;
537 ThreadUtils.postOnBackgroundThread(() -> { in setUpDeviceIcon()
539 ThreadUtils.postOnMainThread(() -> { in setUpDeviceIcon()
DMediaOutputController.java83 import com.android.settingslib.utils.ThreadUtils;
812 ThreadUtils.postOnBackgroundThread(() -> { in connectDevice()
872 ThreadUtils.postOnBackgroundThread(() -> { in adjustVolume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java49 import com.android.settingslib.utils.ThreadUtils;
311 ThreadUtils.postOnBackgroundThread(() -> { in onReceive()
369 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/systemui/people/
DPeopleSpaceUtils.java57 import com.android.settingslib.utils.ThreadUtils;
391 ThreadUtils.postOnBackgroundThread( in getDataFromContactsOnBackgroundThread()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java65 import com.android.settingslib.utils.ThreadUtils;
840 ThreadUtils.postOnMainThread(latch::countDown);
883 ThreadUtils.postOnMainThread(() -> {
899 ThreadUtils.postOnMainThread(latch2::countDown);
DWifiTrackerTest.java66 import com.android.settingslib.utils.ThreadUtils;
884 ThreadUtils.postOnMainThread(latch2::countDown); in stopTrackingShouldPreventCallbacksFromOngoingWork()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainerController.java73 import com.android.settingslib.utils.ThreadUtils;
268 ThreadUtils.postOnBackgroundThread(() -> {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java57 import com.android.settingslib.utils.ThreadUtils;
754 ListenableFuture<Void> future = ThreadUtils.getBackgroundExecutor().submit(() -> { in refresh()