Home
last modified time | relevance | path

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

123456

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DThreadUtilsTest.java30 getInstrumentation().runOnMainSync(ThreadUtils::assertMainThread); in testAssertMainThread_runOnMainThread()
36 assertThrows(IllegalStateException.class, ThreadUtils::assertMainThread)); in testAssertMainThread_runOnNonMainThread()
42 assertThrows(IllegalStateException.class, ThreadUtils::assertNonMainThread)); in testAssertNonMainThread_runOnMainThread()
47 BackgroundThread.getExecutor().execute(ThreadUtils::assertNonMainThread); in testAssertNonMainThread_runOnNonMainThread()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamButtonController.java40 import com.android.settingslib.utils.ThreadUtils;
157 ThreadUtils.postOnBackgroundThread( in updateButton()
164 ThreadUtils.postOnMainThread( in updateButton()
171 ThreadUtils.postOnMainThread( in updateButton()
185 ThreadUtils.postOnBackgroundThread( in updateButton()
196 ThreadUtils.postOnMainThread( in updateButton()
204 ThreadUtils.postOnMainThread( in updateButton()
DAudioStreamsActiveDeviceSummaryUpdater.java32 import com.android.settingslib.utils.ThreadUtils;
76 ThreadUtils.postOnBackgroundThread( in notifyChangeIfNeeded()
81 ThreadUtils.postOnMainThread( in notifyChangeIfNeeded()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DSettingsQCProvider.java29 import com.android.settingslib.utils.ThreadUtils;
66 ThreadUtils.postOnMainThread(() -> startBackgroundWorker(qcItem, uri)); in onSubscribed()
72 ThreadUtils.postOnMainThread(() -> stopBackgroundWorker(uri)); in onUnsubscribed()
77 ThreadUtils.postOnMainThread(() -> SettingsQCBackgroundWorker.shutdown(uri)); in onDestroy()
82 ThreadUtils.postOnMainThread(SettingsQCBackgroundWorker::shutdown); in shutdown()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityActivityPreference.java35 import com.android.settingslib.utils.ThreadUtils;
74 ThreadUtils.postOnBackgroundThread(() -> { in AccessibilityActivityPreference()
76 ThreadUtils.getUiThreadHandler().post(() -> this.setIcon(icon)); in AccessibilityActivityPreference()
82 mExtraArgumentsFuture = ThreadUtils.postOnBackgroundThread(this::setupDataForOpenFragment); in AccessibilityActivityPreference()
128 ThreadUtils.getUiThreadHandler().post(() -> { in setupDataForOpenFragment()
DAccessibilityServicePreference.java35 import com.android.settingslib.utils.ThreadUtils;
75 ThreadUtils.postOnBackgroundThread(() -> { in AccessibilityServicePreference()
77 ThreadUtils.getUiThreadHandler().post(() -> this.setIcon(icon)); in AccessibilityServicePreference()
83 mExtraArgumentsFuture = ThreadUtils.postOnBackgroundThread(this::setupDataForOpenFragment); in AccessibilityServicePreference()
123 ThreadUtils.getUiThreadHandler().post(() -> { in setupDataForOpenFragment()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/performance/
DPerfImpactingAppsItemManager.java23 import com.android.settingslib.utils.ThreadUtils;
52 ThreadUtils.postOnBackgroundThread(() -> { in startLoading()
55 ThreadUtils.postOnMainThread(() -> listener in startLoading()
/packages/apps/Settings/src/com/android/settings/
DAsyncTaskSidecar.java23 import com.android.settingslib.utils.ThreadUtils;
60 ThreadUtils.postOnBackgroundThread( in run()
63 ThreadUtils.postOnMainThread(() -> onPostExecute(result)); in run()
DSidecarFragment.java27 import com.android.settingslib.utils.ThreadUtils;
219 ThreadUtils.ensureMainThread(); in addListener()
233 ThreadUtils.ensureMainThread(); in removeListener()
269 ThreadUtils.ensureMainThread(); in setState()
/packages/apps/Settings/src/com/android/settings/sim/receivers/
DSuwFinishReceiver.java25 import com.android.settingslib.utils.ThreadUtils;
42 ThreadUtils.postOnBackgroundThread( in onReceive()
48 ThreadUtils.postOnMainThread(pendingResult::finish); in onReceive()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothAutoOnPreferenceController.java35 import com.android.settingslib.utils.ThreadUtils;
54 ThreadUtils.postOnBackgroundThread( in onAutoOnStateChanged()
93 var unused = ThreadUtils.postOnBackgroundThread(this::updateValue); in getAvailabilityStatus()
121 ThreadUtils.postOnBackgroundThread( in setChecked()
DBluetoothDetailsExtraOptionsController.java31 import com.android.settingslib.utils.ThreadUtils;
67 ThreadUtils.postOnBackgroundThread( in refresh()
73 ThreadUtils.postOnMainThread( in refresh()
/packages/apps/Settings/src/com/android/settings/development/
DEnableVerboseVendorLoggingPreferenceController.java32 import com.android.settingslib.utils.ThreadUtils;
76 ThreadUtils.postOnBackgroundThread(() -> in onPreferenceChange()
84 ThreadUtils.postOnBackgroundThread(() -> { in updateState()
86 ThreadUtils.getUiThreadHandler().post(() -> in updateState()
96 ThreadUtils.postOnBackgroundThread(() -> in onDeveloperOptionsSwitchDisabled()
DMemoryUsagePreferenceController.java33 import com.android.settingslib.utils.ThreadUtils;
63 ThreadUtils.postOnBackgroundThread(() -> { in updateState()
76 ThreadUtils.postOnMainThread(() -> mPreference.setSummary(summary)); in updateState()
/packages/apps/Settings/src/com/android/settings/notification/
DRingtonePreferenceControllerBase.java29 import com.android.settingslib.utils.ThreadUtils;
50 ThreadUtils.postOnBackgroundThread(() -> updateSummary(preference)); in updateState()
66 ThreadUtils.postOnMainThread(() -> preference.setSummary(summary)); in updateSummary()
/packages/apps/Settings/src/com/android/settings/dashboard/
DUiBlockerController.java24 import com.android.settingslib.utils.ThreadUtils;
69 ThreadUtils.postOnBackgroundThread(() -> { in start()
76 ThreadUtils.postOnMainThread(finishRunnable); in start()
/packages/apps/Settings/src/com/android/settings/display/
DCustomizableLockScreenQuickAffordancesPreferenceController.java29 import com.android.settingslib.utils.ThreadUtils;
70 ThreadUtils.postOnBackgroundThread(() -> { in refreshSummary()
73 ThreadUtils.postOnMainThread(() -> preference.setSummary(summary)); in refreshSummary()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DInstalledAppCountItemManager.java29 import com.android.settingslib.utils.ThreadUtils;
59 ThreadUtils.postOnBackgroundThread(() -> { in startLoading()
72 ThreadUtils.postOnMainThread(() -> listener in startLoading()
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/
DDomainAppPreference.java30 import com.android.settingslib.utils.ThreadUtils;
84 ThreadUtils.postOnBackgroundThread(() -> { in onBindViewHolder()
86 ThreadUtils.postOnMainThread(() -> { in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java27 import com.android.settingslib.utils.ThreadUtils;
57 ThreadUtils.postOnBackgroundThread(() -> { in AppDataUsagePreference()
59 ThreadUtils.postOnMainThread(() -> setAppInfo()); in AppDataUsagePreference()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DRingtonePreferenceController.java32 import com.android.settingslib.utils.ThreadUtils;
59 ThreadUtils.postOnBackgroundThread(() -> updateSummary(getPreference())); in onStartInternal()
74 ThreadUtils.postOnMainThread(() -> preference.setSummary(summary)); in updateSummary()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DBannerManager.java39 import com.android.providers.media.photopicker.util.ThreadUtils;
199 ThreadUtils.assertMainThread(); in onUserDismissedChooseAppBanner()
218 ThreadUtils.assertMainThread(); in onUserDismissedCloudMediaAvailableBanner()
238 ThreadUtils.assertMainThread(); in onUserDismissedAccountUpdatedBanner()
257 ThreadUtils.assertMainThread(); in onUserDismissedChooseAccountBanner()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DEmptyTrashFragment.java33 import com.android.settingslib.utils.ThreadUtils;
103 ThreadUtils.postOnBackgroundThread(() -> { in emptyTrashAsync()
110 ThreadUtils.postOnMainThread( in emptyTrashAsync()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DTopLevelStoragePreferenceController.java34 import com.android.settingslib.utils.ThreadUtils;
75 return ThreadUtils.postOnBackgroundThread(() -> { in refreshSummaryThread()
81 ThreadUtils.postOnMainThread(() -> { in refreshSummaryThread()
/packages/apps/Settings/src/com/android/settings/notification/history/
DHistoryLoader.java28 import com.android.settingslib.utils.ThreadUtils;
49 ThreadUtils.postOnBackgroundThread(() -> { in load()
89 ThreadUtils.postOnMainThread(() -> listener.onHistoryLoaded(packages)); in load()

123456