Home
last modified time | relevance | path

Searched refs:affinity (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java176 float affinity = affinityOut[0]; in getContactAffinity() local
198 + "Returning affinity=" + affinity, e); in getContactAffinity()
199 return affinity; in getContactAffinity()
202 affinity = Math.max(prr.getContactAffinity(), affinity); in getContactAffinity()
204 return affinity; in getContactAffinity()
227 final float affinity = affinityOut[0]; in validatePeople() local
228 record.setContactAffinity(affinity); in validatePeople()
230 mUsageStats.registerPeopleAffinity(record, affinity > NONE, affinity == STARRED_CONTACT, in validatePeople()
240 float affinity = NONE; in validatePeople() local
265 affinity = Math.max(affinity, lookupResult.getAffinity()); in validatePeople()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DResetTargetTaskHelper.java116 && !r.taskAffinity.equals(mTask.affinity)) { in processActivity()
158 } else if (mTargetTaskFound && allowTaskReparenting && mTargetTask.affinity != null in processActivity()
159 && mTargetTask.affinity.equals(r.taskAffinity)) { in processActivity()
252 if (task != null && r.taskAffinity.equals(task.affinity)) { in processPendingReparentActivities()
DTask.java230 String affinity; // The affinity name for this task, or null; may change identity. field in Task
559 affinity = _affinity; in Task()
957 affinity = isLeaf ? info.taskAffinity : null; in setIntent()
962 rootAffinity = affinity; in setIntent()
3786 if (affinity != null || rootAffinity != null) {
3787 pw.print(prefix); pw.print("affinity="); pw.print(affinity);
3788 if (affinity == null || !affinity.equals(rootAffinity)) {
3901 if (affinity != null) {
3903 sb.append(affinity);
3971 if (affinity != null) {
[all …]
DActivityStack.java2303 final String affinity = ActivityRecord.getTaskAffinityWithUid(destAffinity, srec.getUid()); in shouldUpRecreateTaskLocked() local
2304 if (srec == null || srec.getTask().affinity == null in shouldUpRecreateTaskLocked()
2305 || !srec.getTask().affinity.equals(affinity)) { in shouldUpRecreateTaskLocked()
2326 if (!task.affinity.equals(prevTask.affinity)) { in shouldUpRecreateTaskLocked()
DRecentTasks.java1502 task.affinity != null && task.affinity.equals(t.affinity); in findRemoveIndexForAddTask()
DLaunchParamsPersister.java272 mWindowLayoutAffinityMap.computeIfAbsent(launchParamAffinity, affinity -> new ArraySet<>()) in addComponentNameToLaunchParamAffinityMapIfNotNull()
DActivityRecord.java1664 static String getTaskAffinityWithUid(String affinity, int uid) { in getTaskAffinityWithUid() argument
1666 if (affinity != null && !affinity.startsWith(uidStr)) { in getTaskAffinityWithUid()
1667 affinity = uidStr + ":" + affinity; in getTaskAffinityWithUid()
1669 return affinity; in getTaskAffinityWithUid()
DActivityTaskManagerService.java5035 pw.print("TASK "); pw.print(lastTask.affinity); in dumpActivity()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStackTests.java1301 final String affinity = "affinity"; in testShouldUpRecreateTaskLockedWithCorrectAffinityFormat() local
1302 final ActivityRecord activity = new ActivityBuilder(mService).setAffinity(affinity) in testShouldUpRecreateTaskLockedWithCorrectAffinityFormat()
1304 activity.getTask().affinity = activity.taskAffinity; in testShouldUpRecreateTaskLockedWithCorrectAffinityFormat()
1306 assertFalse(mStack.shouldUpRecreateTaskLocked(activity, affinity)); in testShouldUpRecreateTaskLockedWithCorrectAffinityFormat()
1311 final String affinity = "affinity"; in testShouldUpRecreateTaskLockedWithWrongAffinityFormat() local
1312 final ActivityRecord activity = new ActivityBuilder(mService).setAffinity(affinity) in testShouldUpRecreateTaskLockedWithWrongAffinityFormat()
1314 activity.getTask().affinity = activity.taskAffinity; in testShouldUpRecreateTaskLockedWithWrongAffinityFormat()
DActivityTestsBase.java227 ActivityBuilder setAffinity(String affinity) { in setAffinity() argument
228 mAffinity = affinity; in setAffinity()
DLaunchParamsPersisterTests.java263 mTestTask.affinity = TEST_WINDOW_LAYOUT_AFFINITY; in testReturnsEmptyLaunchParamsWindowLayoutAffinityMismatch()
DRecentTasksTest.java1202 task.affinity = null; in createDocumentTask()