summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorKevin Han <kevhan@google.com>2021-02-11 21:05:11 -0800
committerKevin Han <kevhan@google.com>2021-02-16 15:14:44 -0800
commit0da6e9039a41b13c2d26cf8845c6535c1d986788 (patch)
tree9faeb532ad52f789573001f18d38ad5cd23544c4 /services/java/com/android/server/SystemServer.java
parentc2d6240642852362dc6e255d6396b9065e79762c (diff)
Support dynamic feature flag config
For CTS testing purposes, have the DeviceConfig feature flag control whether app hibernation behavior is stubbed rather than whether the service itself is started. This allows us to change the feature flag in tests without restarting system_server Bug: 175830282 Test: atest AppHibernationServiceTest Change-Id: Id9ea16345cac84a069ff53939cef1564a585c466
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 62c3f43d2676..d6ddbb1f0685 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -97,7 +97,6 @@ import com.android.internal.util.FrameworkStatsLog;
import com.android.internal.widget.ILockSettings;
import com.android.server.am.ActivityManagerService;
import com.android.server.appbinding.AppBindingService;
-import com.android.server.apphibernation.AppHibernationService;
import com.android.server.attention.AttentionManagerService;
import com.android.server.audio.AudioService;
import com.android.server.biometrics.AuthService;
@@ -1873,11 +1872,9 @@ public final class SystemServer {
mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);
t.traceEnd();
- if (AppHibernationService.isAppHibernationEnabled()) {
- t.traceBegin("StartAppHibernationService");
- mSystemServiceManager.startService(APP_HIBERNATION_SERVICE_CLASS);
- t.traceEnd();
- }
+ t.traceBegin("StartAppHibernationService");
+ mSystemServiceManager.startService(APP_HIBERNATION_SERVICE_CLASS);
+ t.traceEnd();
if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {
t.traceBegin("StartGestureLauncher");