Home
last modified time | relevance | path

Searched refs:pir (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java112 final PendingIntentRecord pir = createPendingIntentRecord(0); in alarmsRemovedOnCancel() local
113 mPendingIntentController.cancelIntentSender(pir); in alarmsRemovedOnCancel()
116 assertEquals("Wrong target for pending intent passed to alarm manager", pir, in alarmsRemovedOnCancel()
122 final PendingIntentRecord pir = createPendingIntentRecord(0); in alarmsRemovedOnRecreateWithCancelCurrent() local
126 assertEquals("Wrong target for pending intent passed to alarm manager", pir, in alarmsRemovedOnRecreateWithCancelCurrent()
132 final PendingIntentRecord pir = createPendingIntentRecord(PendingIntent.FLAG_ONE_SHOT); in alarmsRemovedOnSendingOneShot() local
133 pir.send(0, null, null, null, null, null, null); in alarmsRemovedOnSendingOneShot()
136 assertEquals("Wrong target for pending intent passed to alarm manager", pir, in alarmsRemovedOnSendingOneShot()
143 final PendingIntentRecord pir = createPendingIntentRecord(0); in testCancellationReason() local
144 assertCancelReason(CANCEL_REASON_NULL, pir.cancelReason); in testCancellationReason()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentController.java232 PendingIntentRecord pir = wpir.get(); in removePendingIntentsForPackage() local
233 if (pir == null) { in removePendingIntentsForPackage()
239 if (pir.key.userId != userId) { in removePendingIntentsForPackage()
244 if (UserHandle.getAppId(pir.uid) != appId) { in removePendingIntentsForPackage()
248 if (userId != UserHandle.USER_ALL && pir.key.userId != userId) { in removePendingIntentsForPackage()
252 if (!pir.key.packageName.equals(packageName)) { in removePendingIntentsForPackage()
262 makeIntentSenderCanceled(pir, cancelReason); in removePendingIntentsForPackage()
263 decrementUidStatLocked(pir); in removePendingIntentsForPackage()
264 if (pir.key.activity != null) { in removePendingIntentsForPackage()
267 pir.key.activity, pir.ref); in removePendingIntentsForPackage()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredActivityHelper.java209 final PreferredIntentResolver pir = mPm.mSettings.editPreferredActivitiesLPw(userId);
210 final ArrayList<PreferredActivity> existing = pir.findFilters(filter);
212 Settings.removeFilters(pir, filter, existing);
214 pir.addFilter(mPm.snapshotComputer(),
262 final PreferredIntentResolver pir = mPm.mSettings.getPreferredActivities(userId);
263 if (pir != null) {
265 final ArrayList<PreferredActivity> existing = pir.findFilters(filter);
298 Settings.removeFilters(pir, filter, existing);
665 PreferredIntentResolver pir = snapshot.getPreferredActivities(userId);
666 if (pir != null) {
[all …]
DSettings.java1520 PreferredIntentResolver pir = mPreferredActivities.get(userId);
1521 if (pir == null) {
1522 pir = new PreferredIntentResolver();
1523 mPreferredActivities.put(userId, pir);
1525 return pir;
2225 PreferredIntentResolver pir = mPreferredActivities.get(userId);
2226 if (pir != null) {
2227 for (final PreferredActivity pa : pir.filterSet()) {
3649 static void removeFilters(@NonNull PreferredIntentResolver pir,
3661 pir.removeFilter(pa);
[all …]
DComputerEngine.java3305 PreferredIntentResolver pir = mSettings.getPreferredActivities(userId); in findPreferredActivityBody() local
3308 List<PreferredActivity> prefs = pir != null in findPreferredActivityBody()
3309 ? pir.queryIntent(this, intent, resolvedType, in findPreferredActivityBody()
3392 pir.removeFilter(pa); in findPreferredActivityBody()
3407 pir.removeFilter(pa); in findPreferredActivityBody()
3440 pir.removeFilter(pa); in findPreferredActivityBody()
3441 pir.addFilter(this, freshPa); in findPreferredActivityBody()
3465 pir.removeFilter(pa); in findPreferredActivityBody()
3470 pir.addFilter(this, lastChosen); in findPreferredActivityBody()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskManagerInternal.java448 IBinder activityToken, WeakReference<PendingIntentRecord> pir); in clearPendingResultForActivity() argument
DActivityTaskManagerService.java1333 PendingIntentRecord pir = (PendingIntentRecord) target; in startActivityIntentSender() local
1345 return pir.sendInner(caller, 0, fillInIntent, resolvedType, allowlistToken, null, null, in startActivityIntentSender()
6432 WeakReference<PendingIntentRecord> pir) { in clearPendingResultForActivity() argument
6436 r.pendingResults.remove(pir); in clearPendingResultForActivity()
DActivityRecord.java1189 PendingIntentRecord pir = wpir != null ? wpir.get() : null; in dump() local
1191 if (pir == null) { in dump()
1194 pw.println(pir); in dump()
1195 pir.dump(pw, prefix + " "); in dump()