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

Commit 929cd083 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add RoleManager into SystemServiceRegistry."

parents a87656a7 4ef21d03
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.app.admin.DevicePolicyManager;
import android.app.admin.IDevicePolicyManager;
import android.app.job.IJobScheduler;
import android.app.job.JobScheduler;
import android.app.role.RoleManager;
import android.app.slice.SliceManager;
import android.app.timedetector.TimeDetector;
import android.app.timezone.RulesManager;
@@ -1120,6 +1121,14 @@ final class SystemServiceRegistry {
                    public PermissionManager createService(ContextImpl ctx) {
                        return new PermissionManager(ctx.getOuterContext());
                    }});

        registerService(Context.ROLE_SERVICE, RoleManager.class,
                new CachedServiceFetcher<RoleManager>() {
                    @Override
                    public RoleManager createService(ContextImpl ctx)
                            throws ServiceNotFoundException {
                        return new RoleManager(ctx.getOuterContext());
                    }});
    }

    /**