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

Commit 0a17365f authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8344772 from d47ad7b2 to sc-qpr3-release

Change-Id: I17df26c7a0edc6cac8954950c852f8241c8c5f20
parents d98ee673 d47ad7b2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ final class HotwordDetectionConnection {
    private static final Duration MAX_UPDATE_TIMEOUT_DURATION =
            Duration.ofMillis(MAX_UPDATE_TIMEOUT_MILLIS);
    private static final long RESET_DEBUG_HOTWORD_LOGGING_TIMEOUT_MILLIS = 60 * 60 * 1000; // 1 hour
    private static final int MAX_ISOLATED_PROCESS_NUMBER = 10;

    // Hotword metrics
    private static final int METRICS_INIT_UNKNOWN_TIMEOUT =
@@ -873,7 +874,8 @@ final class HotwordDetectionConnection {
        ServiceConnection createLocked() {
            ServiceConnection connection =
                    new ServiceConnection(mContext, mIntent, mBindingFlags, mUser,
                            IHotwordDetectionService.Stub::asInterface, ++mRestartCount);
                            IHotwordDetectionService.Stub::asInterface,
                            mRestartCount++ % MAX_ISOLATED_PROCESS_NUMBER);
            connection.connect();

            updateAudioFlinger(connection, mAudioFlinger);