Loading services/core/java/com/android/server/PinnerService.java +10 −2 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import android.os.Looper; import android.os.Message; import android.os.RemoteException; import android.os.UserHandle; import android.os.UserManager; import android.provider.MediaStore; import android.provider.Settings; import android.system.ErrnoException; Loading Loading @@ -104,6 +105,7 @@ public final class PinnerService extends SystemService { private final Context mContext; private final ActivityManagerInternal mAmInternal; private final IActivityManager mAm; private final UserManager mUserManager; /** The list of the statically pinned files. */ @GuardedBy("this") Loading Loading @@ -165,6 +167,8 @@ public final class PinnerService extends SystemService { mAmInternal = LocalServices.getService(ActivityManagerInternal.class); mAm = ActivityManager.getService(); mUserManager = mContext.getSystemService(UserManager.class); IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_PACKAGE_REPLACED); filter.addDataScheme("package"); Loading Loading @@ -195,13 +199,17 @@ public final class PinnerService extends SystemService { */ @Override public void onSwitchUser(int userHandle) { if (!mUserManager.isManagedProfile(userHandle)) { sendPinAppsMessage(userHandle); } } @Override public void onUnlockUser(int userHandle) { if (!mUserManager.isManagedProfile(userHandle)) { sendPinAppsMessage(userHandle); } } /** * Update the currently pinned files. Loading Loading
services/core/java/com/android/server/PinnerService.java +10 −2 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import android.os.Looper; import android.os.Message; import android.os.RemoteException; import android.os.UserHandle; import android.os.UserManager; import android.provider.MediaStore; import android.provider.Settings; import android.system.ErrnoException; Loading Loading @@ -104,6 +105,7 @@ public final class PinnerService extends SystemService { private final Context mContext; private final ActivityManagerInternal mAmInternal; private final IActivityManager mAm; private final UserManager mUserManager; /** The list of the statically pinned files. */ @GuardedBy("this") Loading Loading @@ -165,6 +167,8 @@ public final class PinnerService extends SystemService { mAmInternal = LocalServices.getService(ActivityManagerInternal.class); mAm = ActivityManager.getService(); mUserManager = mContext.getSystemService(UserManager.class); IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_PACKAGE_REPLACED); filter.addDataScheme("package"); Loading Loading @@ -195,13 +199,17 @@ public final class PinnerService extends SystemService { */ @Override public void onSwitchUser(int userHandle) { if (!mUserManager.isManagedProfile(userHandle)) { sendPinAppsMessage(userHandle); } } @Override public void onUnlockUser(int userHandle) { if (!mUserManager.isManagedProfile(userHandle)) { sendPinAppsMessage(userHandle); } } /** * Update the currently pinned files. Loading