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

Commit 3a49946a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "AudioService: increase audio mode timeout." into rvc-qpr-dev am: 33229d78

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13181178

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5b3a582a2f8e5c12f4425733e8b7e1af1efa0172
parents d3439c42 33229d78
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7162,8 +7162,8 @@ public class AudioService extends IAudioService.Stub
    private static final int UNSAFE_VOLUME_MUSIC_ACTIVE_MS_MAX = (20 * 3600 * 1000); // 20 hours
    private static final int MUSIC_ACTIVE_POLL_PERIOD_MS = 60000;  // 1 minute polling interval
    private static final int SAFE_VOLUME_CONFIGURE_TIMEOUT_MS = 30000;  // 30s after boot completed
    // check playback or record activity every 3 seconds for UIDs owning mode IN_COMMUNICATION
    private static final int CHECK_MODE_FOR_UID_PERIOD_MS = 3000;
    // check playback or record activity every 6 seconds for UIDs owning mode IN_COMMUNICATION
    private static final int CHECK_MODE_FOR_UID_PERIOD_MS = 6000;

    private int safeMediaVolumeIndex(int device) {
        if (!mSafeMediaVolumeDevices.contains(device)) {