Home
last modified time | relevance | path

Searched refs:ForegroundThread (Results 1 – 9 of 9) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DForegroundThread.java37 public final class ForegroundThread extends HandlerThread { class
38 private static ForegroundThread sInstance;
42 private ForegroundThread() { in ForegroundThread() method in ForegroundThread
48 sInstance = new ForegroundThread(); in ensureThreadLocked()
55 public static ForegroundThread get() { in get()
56 synchronized (ForegroundThread.class) { in get()
63 synchronized (ForegroundThread.class) { in getHandler()
70 synchronized (ForegroundThread.class) { in getExecutor()
/packages/modules/Permission/service/java/com/android/permission/util/
DForegroundThread.java31 public class ForegroundThread extends HandlerThread { class
35 private static ForegroundThread sInstance;
41 private ForegroundThread() { in ForegroundThread() method in ForegroundThread
42 super(ForegroundThread.class.getName()); in ForegroundThread()
48 sInstance = new ForegroundThread(); in ensureInstanceLocked()
61 public static ForegroundThread get() { in get()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DForegroundThreadTest.java30 assertNotNull(ForegroundThread.get()); in testSimple()
31 assertNotNull(ForegroundThread.getExecutor()); in testSimple()
32 assertNotNull(ForegroundThread.getHandler()); in testSimple()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaUpgradeReceiver.java26 import com.android.providers.media.util.ForegroundThread;
49 ForegroundThread.getExecutor().execute(() -> { in onReceive()
DTranscodeHelperImpl.java96 import com.android.providers.media.util.ForegroundThread;
1151 ForegroundThread.getExecutor(), in enqueueTranscodingSession()
1157 session.setOnProgressUpdateListener(ForegroundThread.getExecutor(), in enqueueTranscodingSession()
1626 ForegroundThread.getHandler().post(() -> {
1649 final Handler handler = ForegroundThread.getHandler();
1677 final Handler handler = ForegroundThread.getHandler();
1847 ForegroundThread.getHandler().post(
1853 ForegroundThread.getHandler().post(
DDatabaseHelper.java68 import com.android.providers.media.util.ForegroundThread;
547 ForegroundThread.getExecutor().execute(() -> { in endTransactionInternal()
639 ForegroundThread.getExecutor().execute(() -> { in notifyChange()
DMediaProvider.java208 import com.android.providers.media.util.ForegroundThread;
396 ForegroundThread.getExecutor().execute(() -> { in updateVolumes()
5553 ForegroundThread.waitForIdle();
9372 ForegroundThread.getExecutor().execute(() -> {
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java62 import com.android.permission.util.ForegroundThread;
128 private final Handler mListenerHandler = ForegroundThread.getHandler();
219 runnable = new ThrottledRunnable(ForegroundThread.getHandler(), in maybeGrantDefaultRolesAsync()
245 getOrCreateController(userId).grantDefaultRoles(ForegroundThread.getExecutor(), in maybeGrantDefaultRolesInternal()
283 ForegroundThread.getHandler(), context); in getOrCreateController()
/packages/providers/MediaProvider/
DAndroid.bp105 "src/com/android/providers/media/util/ForegroundThread.java",