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

Skip to content
Snippets Groups Projects
Commit c03ec964 authored by Kevin Han's avatar Kevin Han Committed by Automerger Merge Worker
Browse files

Merge "Register AppHibernationManager in service registry" am: 44183743 am:...

Merge "Register AppHibernationManager in service registry" am: 44183743 am: 0de60cd4 am: 2c842f3a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3419fcaa184043d07c6e02579b6dec13d23f356f
parents 575877af 2c842f3a
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ import android.app.usage.IUsageStatsManager; ...@@ -47,6 +47,7 @@ import android.app.usage.IUsageStatsManager;
import android.app.usage.NetworkStatsManager; import android.app.usage.NetworkStatsManager;
import android.app.usage.StorageStatsManager; import android.app.usage.StorageStatsManager;
import android.app.usage.UsageStatsManager; import android.app.usage.UsageStatsManager;
import android.apphibernation.AppHibernationManager;
import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetManager;
import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothManager;
import android.companion.CompanionDeviceManager; import android.companion.CompanionDeviceManager;
...@@ -1378,6 +1379,13 @@ public final class SystemServiceRegistry { ...@@ -1378,6 +1379,13 @@ public final class SystemServiceRegistry {
IBinder b = ServiceManager.getServiceOrThrow(Context.APP_INTEGRITY_SERVICE); IBinder b = ServiceManager.getServiceOrThrow(Context.APP_INTEGRITY_SERVICE);
return new AppIntegrityManager(IAppIntegrityManager.Stub.asInterface(b)); return new AppIntegrityManager(IAppIntegrityManager.Stub.asInterface(b));
}}); }});
registerService(Context.APP_HIBERNATION_SERVICE, AppHibernationManager.class,
new CachedServiceFetcher<AppHibernationManager>() {
@Override
public AppHibernationManager createService(ContextImpl ctx) {
IBinder b = ServiceManager.getService(Context.APP_HIBERNATION_SERVICE);
return b == null ? null : new AppHibernationManager(ctx);
}});
registerService(Context.DREAM_SERVICE, DreamManager.class, registerService(Context.DREAM_SERVICE, DreamManager.class,
new CachedServiceFetcher<DreamManager>() { new CachedServiceFetcher<DreamManager>() {
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment