/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/ |
D | ThreadUtilsTest.java | 30 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/ |
D | AudioStreamButtonController.java | 40 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()
|
D | AudioStreamsActiveDeviceSummaryUpdater.java | 32 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/ |
D | SettingsQCProvider.java | 29 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/ |
D | AccessibilityActivityPreference.java | 35 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()
|
D | AccessibilityServicePreference.java | 35 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/ |
D | PerfImpactingAppsItemManager.java | 23 import com.android.settingslib.utils.ThreadUtils; 52 ThreadUtils.postOnBackgroundThread(() -> { in startLoading() 55 ThreadUtils.postOnMainThread(() -> listener in startLoading()
|
/packages/apps/Settings/src/com/android/settings/ |
D | AsyncTaskSidecar.java | 23 import com.android.settingslib.utils.ThreadUtils; 60 ThreadUtils.postOnBackgroundThread( in run() 63 ThreadUtils.postOnMainThread(() -> onPostExecute(result)); in run()
|
D | SidecarFragment.java | 27 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/ |
D | SuwFinishReceiver.java | 25 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/ |
D | BluetoothAutoOnPreferenceController.java | 35 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()
|
D | BluetoothDetailsExtraOptionsController.java | 31 import com.android.settingslib.utils.ThreadUtils; 67 ThreadUtils.postOnBackgroundThread( in refresh() 73 ThreadUtils.postOnMainThread( in refresh()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | EnableVerboseVendorLoggingPreferenceController.java | 32 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()
|
D | MemoryUsagePreferenceController.java | 33 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/ |
D | RingtonePreferenceControllerBase.java | 29 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/ |
D | UiBlockerController.java | 24 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/ |
D | CustomizableLockScreenQuickAffordancesPreferenceController.java | 29 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/ |
D | InstalledAppCountItemManager.java | 29 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/ |
D | DomainAppPreference.java | 30 import com.android.settingslib.utils.ThreadUtils; 84 ThreadUtils.postOnBackgroundThread(() -> { in onBindViewHolder() 86 ThreadUtils.postOnMainThread(() -> { in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 27 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/ |
D | RingtonePreferenceController.java | 32 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/ |
D | BannerManager.java | 39 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/ |
D | EmptyTrashFragment.java | 33 import com.android.settingslib.utils.ThreadUtils; 103 ThreadUtils.postOnBackgroundThread(() -> { in emptyTrashAsync() 110 ThreadUtils.postOnMainThread( in emptyTrashAsync()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | TopLevelStoragePreferenceController.java | 34 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/ |
D | HistoryLoader.java | 28 import com.android.settingslib.utils.ThreadUtils; 49 ThreadUtils.postOnBackgroundThread(() -> { in load() 89 ThreadUtils.postOnMainThread(() -> listener.onHistoryLoaded(packages)); in load()
|