Loading services/core/java/com/android/server/pm/LauncherAppsService.java +302 −285 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import android.util.Log; import android.util.Slog; import com.android.internal.content.PackageMonitor; import com.android.server.SystemService; import java.util.ArrayList; import java.util.List; Loading @@ -48,7 +49,22 @@ import java.util.List; * Service that manages requests and callbacks for launchers that support * managed profiles. */ public class LauncherAppsService extends ILauncherApps.Stub { public class LauncherAppsService extends SystemService { private final LauncherAppsImpl mLauncherAppsImpl; public LauncherAppsService(Context context) { super(context); mLauncherAppsImpl = new LauncherAppsImpl(context); } @Override public void onStart() { publishBinderService(Context.LAUNCHER_APPS_SERVICE, mLauncherAppsImpl); } class LauncherAppsImpl extends ILauncherApps.Stub { private static final boolean DEBUG = false; private static final String TAG = "LauncherAppsService"; private final Context mContext; Loading @@ -59,7 +75,7 @@ public class LauncherAppsService extends ILauncherApps.Stub { private MyPackageMonitor mPackageMonitor = new MyPackageMonitor(); public LauncherAppsService(Context context) { public LauncherAppsImpl(Context context) { mContext = context; mPm = mContext.getPackageManager(); mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE); Loading Loading @@ -403,3 +419,4 @@ public class LauncherAppsService extends ILauncherApps.Stub { } } } } No newline at end of file services/java/com/android/server/SystemServer.java +1 −2 Original line number Diff line number Diff line Loading @@ -998,8 +998,7 @@ public final class SystemServer { try { Slog.i(TAG, "LauncherAppsService"); LauncherAppsService las = new LauncherAppsService(context); ServiceManager.addService(Context.LAUNCHER_APPS_SERVICE, las); mSystemServiceManager.startService(LauncherAppsService.class); } catch (Throwable t) { reportWtf("starting LauncherAppsService", t); } Loading Loading
services/core/java/com/android/server/pm/LauncherAppsService.java +302 −285 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import android.util.Log; import android.util.Slog; import com.android.internal.content.PackageMonitor; import com.android.server.SystemService; import java.util.ArrayList; import java.util.List; Loading @@ -48,7 +49,22 @@ import java.util.List; * Service that manages requests and callbacks for launchers that support * managed profiles. */ public class LauncherAppsService extends ILauncherApps.Stub { public class LauncherAppsService extends SystemService { private final LauncherAppsImpl mLauncherAppsImpl; public LauncherAppsService(Context context) { super(context); mLauncherAppsImpl = new LauncherAppsImpl(context); } @Override public void onStart() { publishBinderService(Context.LAUNCHER_APPS_SERVICE, mLauncherAppsImpl); } class LauncherAppsImpl extends ILauncherApps.Stub { private static final boolean DEBUG = false; private static final String TAG = "LauncherAppsService"; private final Context mContext; Loading @@ -59,7 +75,7 @@ public class LauncherAppsService extends ILauncherApps.Stub { private MyPackageMonitor mPackageMonitor = new MyPackageMonitor(); public LauncherAppsService(Context context) { public LauncherAppsImpl(Context context) { mContext = context; mPm = mContext.getPackageManager(); mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE); Loading Loading @@ -403,3 +419,4 @@ public class LauncherAppsService extends ILauncherApps.Stub { } } } } No newline at end of file
services/java/com/android/server/SystemServer.java +1 −2 Original line number Diff line number Diff line Loading @@ -998,8 +998,7 @@ public final class SystemServer { try { Slog.i(TAG, "LauncherAppsService"); LauncherAppsService las = new LauncherAppsService(context); ServiceManager.addService(Context.LAUNCHER_APPS_SERVICE, las); mSystemServiceManager.startService(LauncherAppsService.class); } catch (Throwable t) { reportWtf("starting LauncherAppsService", t); } Loading