Home
last modified time | relevance | path

Searched refs:BackgroundThread (Results 1 – 25 of 118) sorted by relevance

12345

/frameworks/base/core/java/com/android/internal/os/
DBackgroundThread.java31 public final class BackgroundThread extends HandlerThread { class
34 private static BackgroundThread sInstance;
38 private BackgroundThread() { in BackgroundThread() method in BackgroundThread
44 sInstance = new BackgroundThread(); in ensureThreadLocked()
56 public static BackgroundThread get() { in get()
57 synchronized (BackgroundThread.class) { in get()
64 synchronized (BackgroundThread.class) { in getHandler()
71 synchronized (BackgroundThread.class) { in getExecutor()
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DBackgroundThread.java38 public final class BackgroundThread extends HandlerThread { class
42 private static BackgroundThread sInstance;
48 private BackgroundThread() { in BackgroundThread() method in BackgroundThread
49 super(BackgroundThread.class.getName(), android.os.Process.THREAD_PRIORITY_BACKGROUND); in BackgroundThread()
55 sInstance = new BackgroundThread(); in ensureThreadLocked()
68 public static BackgroundThread get() { in get()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBackgroundThreadTest.java39 BackgroundThread thread = BackgroundThread.get(); in test_get()
45 Handler handler = BackgroundThread.getHandler(); in test_getHandler()
54 Executor executor = BackgroundThread.getExecutor(); in test_getExecutor()
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/
DBackgroundThreadTest.java30 assertNotNull(BackgroundThread.get()); in testSimple()
31 assertNotNull(BackgroundThread.getExecutor()); in testSimple()
32 assertNotNull(BackgroundThread.getHandler()); in testSimple()
/frameworks/base/tests/TelephonyCommonTests/
Djarjar-rules.txt3 rule com.android.internal.os.BackgroundThread* com.android.internal.telephony.tests.BackgroundThrea…
/frameworks/base/services/profcollect/src/com/android/server/profcollect/
DProfcollectForwardingService.java43 import com.android.internal.os.BackgroundThread;
132 BackgroundThread.get().getThreadHandler().post(() -> { in onBootPhase()
259 BackgroundThread.get().getThreadHandler().post( in registerObservers()
287 BackgroundThread.get().getThreadHandler().post(() -> { in traceOnAppStart()
327 BackgroundThread.get().getThreadHandler().postDelayed(() -> { in traceOnDex2oatStart()
355 BackgroundThread.get().getThreadHandler().post(() -> { in createAndUploadReport()
396 BackgroundThread.get().getThreadHandler().postDelayed(() -> { in registerCameraOpenObserver()
/frameworks/base/services/core/java/com/android/server/location/settings/
DSettingsStore.java27 import com.android.internal.os.BackgroundThread;
134 BackgroundThread.getExecutor().execute(latch::countDown);
141 BackgroundThread.getExecutor().execute(() -> {
149 BackgroundThread.getExecutor().execute(() -> {
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSystemBarsListenerController.java19 import com.android.internal.os.BackgroundThread;
36 this.mBackgroundExecutor = BackgroundThread.getExecutor(); in TaskSystemBarsListenerController()
DHighRefreshRateDenylist.java30 import com.android.internal.os.BackgroundThread;
52 BackgroundThread.getExecutor(), new OnPropertiesChangedListener()); in HighRefreshRateDenylist()
DVisibleActivityProcessTracker.java22 import com.android.internal.os.BackgroundThread;
35 final Executor mBgExecutor = BackgroundThread.getExecutor();
/frameworks/base/services/core/java/com/android/server/display/mode/
DProximitySensorObserver.java27 import com.android.internal.os.BackgroundThread;
66 sensorManager.addProximityActiveListener(BackgroundThread.getExecutor(), this); in observe()
73 mInjector.registerDisplayListener(this, BackgroundThread.getHandler(), in observe()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DOdsignStatsLogger.java22 import com.android.internal.os.BackgroundThread;
48 BackgroundThread.getExecutor().execute(OdsignStatsLogger::writeStats); in triggerStatsWrite()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricStrengthController.java23 import com.android.internal.os.BackgroundThread;
63 BackgroundThread.getExecutor(), mDeviceConfigListener); in startListening()
/frameworks/base/media/java/android/media/
DMediaScannerConnection.java31 import com.android.internal.os.BackgroundThread;
157 BackgroundThread.getExecutor().execute(() -> { in scanFile()
183 BackgroundThread.getExecutor().execute(() -> { in scanFile()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationScaleProvider.java31 import com.android.internal.os.BackgroundThread;
67 BackgroundThread.getHandler().post( in putScale()
/frameworks/base/core/java/android/service/resumeonreboot/
DResumeOnRebootService.java33 import com.android.internal.os.BackgroundThread;
82 private final Handler mHandler = BackgroundThread.getHandler();
/frameworks/base/services/core/java/com/android/server/utils/quota/
DQuotaTracker.java44 import com.android.internal.os.BackgroundThread;
172 BackgroundThread.getHandler()); in QuotaTracker()
175 BackgroundThread.getHandler()); in QuotaTracker()
352 BackgroundThread.getHandler().post(() -> { in scheduleQuotaCheck()
395 BackgroundThread.getHandler().post(() -> { in postQuotaStatusChanged()
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DCarrierMessagingClientServiceFinder.java34 import com.android.internal.os.BackgroundThread;
102 BackgroundThread.getExecutor(), mRoleHolderChangedListener, UserHandle.ALL); in startMonitoring()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManagerConstants.java25 import com.android.internal.os.BackgroundThread;
67 BackgroundThread.getHandler().post(() -> { in start()
/frameworks/base/core/java/android/content/pm/
DConstrainDisplayApisConfig.java26 import com.android.internal.os.BackgroundThread;
86 BackgroundThread.getExecutor(), properties -> updateCache()); in ConstrainDisplayApisConfig()
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceProviderInstanceFactoryImpl.java34 import com.android.internal.os.BackgroundThread;
57 BackgroundThread.getExecutor(), in create()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DUserWakeupStoreTest.java34 import com.android.internal.os.BackgroundThread;
64 .mockStatic(BackgroundThread.class)
77 doReturn(mMockExecutorService).when(BackgroundThread::getExecutor); in setUp()
/frameworks/base/core/java/com/android/internal/util/
DLatencyTracker.java76 import com.android.internal.os.BackgroundThread;
444 BackgroundThread.getHandler().post(() -> { in startListeningForLatencyTrackerConfigChanges()
449 BackgroundThread.getExecutor(), mOnPropertiesChangedListener); in startListeningForLatencyTrackerConfigChanges()
766 BackgroundThread.getHandler() in begin()
773 BackgroundThread.getHandler().removeCallbacks(mTimeoutRunnable); in end()
780 BackgroundThread.getHandler().removeCallbacks(mTimeoutRunnable); in cancel()
/frameworks/base/core/java/android/service/storage/
DExternalStorageService.java36 import com.android.internal.os.BackgroundThread;
112 private final Handler mHandler = BackgroundThread.getHandler();
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java35 import com.android.internal.os.BackgroundThread;
64 mBackgroundHandler = new BackgroundHandler(BackgroundThread.get().getLooper(), in AppCollector()

12345