Loading services/tests/servicestests/src/com/android/server/accessibility/AccessibilityManagerServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,8 @@ public class AccessibilityManagerServiceTest { private static final String INTENT_ACTION = "TESTACTION"; private static final String DESCRIPTION = "description"; private static final PendingIntent TEST_PENDING_INTENT = PendingIntent.getBroadcast( ApplicationProvider.getApplicationContext(), 0, new Intent(INTENT_ACTION), ApplicationProvider.getApplicationContext(), 0, new Intent(INTENT_ACTION) .setPackage(ApplicationProvider.getApplicationContext().getPackageName()), PendingIntent.FLAG_MUTABLE_UNAUDITED); private static final RemoteAction TEST_ACTION = new RemoteAction( Icon.createWithContentUri("content://test"), Loading services/tests/servicestests/src/com/android/server/accessibility/SystemActionPerformerTest.java +6 −2 Original line number Diff line number Diff line Loading @@ -76,14 +76,18 @@ public class SystemActionPerformerTest { private static final String DESCRIPTION1 = "description1"; private static final String DESCRIPTION2 = "description2"; private static final PendingIntent TEST_PENDING_INTENT_1 = PendingIntent.getBroadcast( InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION1), PendingIntent.FLAG_MUTABLE_UNAUDITED); InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION1) .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), PendingIntent.FLAG_MUTABLE_UNAUDITED); private static final RemoteAction NEW_TEST_ACTION_1 = new RemoteAction( Icon.createWithContentUri("content://test"), LABEL_1, DESCRIPTION1, TEST_PENDING_INTENT_1); private static final PendingIntent TEST_PENDING_INTENT_2 = PendingIntent.getBroadcast( InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION2), PendingIntent.FLAG_MUTABLE_UNAUDITED); InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION2) .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), PendingIntent.FLAG_MUTABLE_UNAUDITED); private static final RemoteAction NEW_TEST_ACTION_2 = new RemoteAction( Icon.createWithContentUri("content://test"), LABEL_2, Loading Loading
services/tests/servicestests/src/com/android/server/accessibility/AccessibilityManagerServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,8 @@ public class AccessibilityManagerServiceTest { private static final String INTENT_ACTION = "TESTACTION"; private static final String DESCRIPTION = "description"; private static final PendingIntent TEST_PENDING_INTENT = PendingIntent.getBroadcast( ApplicationProvider.getApplicationContext(), 0, new Intent(INTENT_ACTION), ApplicationProvider.getApplicationContext(), 0, new Intent(INTENT_ACTION) .setPackage(ApplicationProvider.getApplicationContext().getPackageName()), PendingIntent.FLAG_MUTABLE_UNAUDITED); private static final RemoteAction TEST_ACTION = new RemoteAction( Icon.createWithContentUri("content://test"), Loading
services/tests/servicestests/src/com/android/server/accessibility/SystemActionPerformerTest.java +6 −2 Original line number Diff line number Diff line Loading @@ -76,14 +76,18 @@ public class SystemActionPerformerTest { private static final String DESCRIPTION1 = "description1"; private static final String DESCRIPTION2 = "description2"; private static final PendingIntent TEST_PENDING_INTENT_1 = PendingIntent.getBroadcast( InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION1), PendingIntent.FLAG_MUTABLE_UNAUDITED); InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION1) .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), PendingIntent.FLAG_MUTABLE_UNAUDITED); private static final RemoteAction NEW_TEST_ACTION_1 = new RemoteAction( Icon.createWithContentUri("content://test"), LABEL_1, DESCRIPTION1, TEST_PENDING_INTENT_1); private static final PendingIntent TEST_PENDING_INTENT_2 = PendingIntent.getBroadcast( InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION2), PendingIntent.FLAG_MUTABLE_UNAUDITED); InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION2) .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), PendingIntent.FLAG_MUTABLE_UNAUDITED); private static final RemoteAction NEW_TEST_ACTION_2 = new RemoteAction( Icon.createWithContentUri("content://test"), LABEL_2, Loading