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

Commit 764bd389 authored by Sharon Su's avatar Sharon Su Committed by Automerger Merge Worker
Browse files

Merge "Change timeout idle settings from permanent binding to 2 minutes....

Merge "Change timeout idle settings from permanent binding to 2 minutes. Because the cinematic wallpaper feature is not a frequently used feature, the service side implementation can choose to use a non-persistent process. Change from permanent binding to timeout on idle helps to kill the non-persistent process if service implementation picks up that option." into udc-dev am: db1fc455 am: 4894d2a1

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



Change-Id: I5815ace87a026831822989e6a4c5e68af61befc3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 0468e334 4894d2a1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ public class RemoteWallpaperEffectsGenerationService extends

    private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;

    private static final long TIMEOUT_IDLE_BIND_MILLIS = 120 * DateUtils.SECOND_IN_MILLIS;

    private final RemoteWallpaperEffectsGenerationServiceCallback mCallback;

    public RemoteWallpaperEffectsGenerationService(Context context,
@@ -62,7 +64,7 @@ public class RemoteWallpaperEffectsGenerationService extends

    @Override
    protected long getTimeoutIdleBindMillis() {
        return PERMANENT_BOUND_TIMEOUT_MS;
        return TIMEOUT_IDLE_BIND_MILLIS;
    }

    @Override