Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b50f07c8 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Offload role manager work to background thread" into qt-dev

am: 7b1973bf

Change-Id: I4896eabc1fe2e18df24cb7e2c32556d676f804e0
parents fcde0225 7b1973bf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ import com.android.internal.util.DumpUtils;
import com.android.internal.util.Preconditions;
import com.android.server.FgThread;
import com.android.server.LocalServices;
import com.android.server.SystemServerInitThreadPool;
import com.android.server.SystemService;
import com.android.server.UiThread;
import com.android.server.soundtrigger.SoundTriggerInternal;
@@ -1283,7 +1284,9 @@ public class VoiceInteractionManagerService extends SystemService {
                mRm.addOnRoleHoldersChangedListenerAsUser(executor, this, UserHandle.ALL);
                UserHandle currentUser = UserHandle.of(LocalServices.getService(
                        ActivityManagerInternal.class).getCurrentUserId());
                onRoleHoldersChanged(RoleManager.ROLE_ASSISTANT, currentUser);
                SystemServerInitThreadPool.get().submit(() -> onRoleHoldersChanged(
                        RoleManager.ROLE_ASSISTANT, currentUser),
                        "VoiceInteractionManagerService RoleObserver initialization");
            }

            private @NonNull String getDefaultRecognizer(@NonNull UserHandle user) {