diff options
| author | 2023-04-28 00:59:18 +0000 | |
|---|---|---|
| committer | 2023-04-29 04:36:51 +0000 | |
| commit | c77b3822a79001abe656b91bf1d361870fefd99e (patch) | |
| tree | a65c532c86c8f44858e5c9d65cd12a3c24e5a753 | |
| parent | 326dd9c1156475192444fd6807155b96e42cc74c (diff) | |
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.
Test: manual and cts
Bug: 279988914
Change-Id: I0bdc855cbefb98df896372a8ea91e56d340c64b6
| -rw-r--r-- | services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/RemoteWallpaperEffectsGenerationService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/RemoteWallpaperEffectsGenerationService.java b/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/RemoteWallpaperEffectsGenerationService.java index c228dafcee8e..61f34c2570ff 100644 --- a/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/RemoteWallpaperEffectsGenerationService.java +++ b/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/RemoteWallpaperEffectsGenerationService.java @@ -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 |