Loading apct-tests/perftests/utils/src/android/perftests/utils/TestPackageInstaller.java +2 −2 Original line number Diff line number Diff line Loading @@ -133,9 +133,9 @@ public class TestPackageInstaller { mContext.registerReceiver(this, filter, Context.RECEIVER_EXPORTED_UNAUDITED); Intent intent = new Intent(action); Intent intent = new Intent(action).setPackage(mContext.getPackageName()); PendingIntent pending = PendingIntent.getBroadcast(mContext, sessionId, intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED); PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE); return pending.getIntentSender(); } Loading packages/PackageInstaller/src/com/android/packageinstaller/wear/PackageInstallerImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ public class PackageInstallerImpl { Context.RECEIVER_EXPORTED); // Create a matching PendingIntent and use it to generate the IntentSender Intent broadcastIntent = new Intent(action); Intent broadcastIntent = new Intent(action).setPackage(mContext.getPackageName()); PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, packageName.hashCode(), broadcastIntent, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE); Loading services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +4 −2 Original line number Diff line number Diff line Loading @@ -839,7 +839,8 @@ public class NotificationManagerServiceTest extends UiServiceTestCase { .setName("bubblebot") .build(); RemoteInput remoteInput = new RemoteInput.Builder("reply_key").setLabel("reply").build(); PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent(), PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent().setPackage(mContext.getPackageName()), PendingIntent.FLAG_MUTABLE); Icon icon = Icon.createWithResource(mContext, android.R.drawable.sym_def_app_icon); Notification.Action replyAction = new Notification.Action.Builder(icon, "Reply", Loading Loading @@ -9227,7 +9228,8 @@ public class NotificationManagerServiceTest extends UiServiceTestCase { NotificationRecord r = generateNotificationRecord(mTestNotificationChannel); ArrayList<Notification.Action> extraAction = new ArrayList<>(); RemoteInput remoteInput = new RemoteInput.Builder("reply_key").setLabel("reply").build(); PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent(), PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent().setPackage(mContext.getPackageName()), PendingIntent.FLAG_MUTABLE); Icon icon = Icon.createWithResource(mContext, android.R.drawable.sym_def_app_icon); Notification.Action replyAction = new Notification.Action.Builder(icon, "Reply", Loading Loading
apct-tests/perftests/utils/src/android/perftests/utils/TestPackageInstaller.java +2 −2 Original line number Diff line number Diff line Loading @@ -133,9 +133,9 @@ public class TestPackageInstaller { mContext.registerReceiver(this, filter, Context.RECEIVER_EXPORTED_UNAUDITED); Intent intent = new Intent(action); Intent intent = new Intent(action).setPackage(mContext.getPackageName()); PendingIntent pending = PendingIntent.getBroadcast(mContext, sessionId, intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED); PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE); return pending.getIntentSender(); } Loading
packages/PackageInstaller/src/com/android/packageinstaller/wear/PackageInstallerImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ public class PackageInstallerImpl { Context.RECEIVER_EXPORTED); // Create a matching PendingIntent and use it to generate the IntentSender Intent broadcastIntent = new Intent(action); Intent broadcastIntent = new Intent(action).setPackage(mContext.getPackageName()); PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, packageName.hashCode(), broadcastIntent, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE); Loading
services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java +4 −2 Original line number Diff line number Diff line Loading @@ -839,7 +839,8 @@ public class NotificationManagerServiceTest extends UiServiceTestCase { .setName("bubblebot") .build(); RemoteInput remoteInput = new RemoteInput.Builder("reply_key").setLabel("reply").build(); PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent(), PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent().setPackage(mContext.getPackageName()), PendingIntent.FLAG_MUTABLE); Icon icon = Icon.createWithResource(mContext, android.R.drawable.sym_def_app_icon); Notification.Action replyAction = new Notification.Action.Builder(icon, "Reply", Loading Loading @@ -9227,7 +9228,8 @@ public class NotificationManagerServiceTest extends UiServiceTestCase { NotificationRecord r = generateNotificationRecord(mTestNotificationChannel); ArrayList<Notification.Action> extraAction = new ArrayList<>(); RemoteInput remoteInput = new RemoteInput.Builder("reply_key").setLabel("reply").build(); PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent(), PendingIntent inputIntent = PendingIntent.getActivity(mContext, 0, new Intent().setPackage(mContext.getPackageName()), PendingIntent.FLAG_MUTABLE); Icon icon = Icon.createWithResource(mContext, android.R.drawable.sym_def_app_icon); Notification.Action replyAction = new Notification.Action.Builder(icon, "Reply", Loading