Home
last modified time | relevance | path

Searched refs:mActivities (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java129 left.mActivities.put(1, Event.ACTIVITY_RESUMED); in testParcelable()
130 left.mActivities.put(2, Event.ACTIVITY_RESUMED); in testParcelable()
149 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); in testActivity()
157 assertEquals(left.mActivities.get(1), ACTIVITY_PAUSED); in testActivity()
164 assertEquals(left.mActivities.get(1), ACTIVITY_STOPPED); in testActivity()
171 assertTrue(left.mActivities.indexOfKey(1) < 0); in testActivity()
184 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED);
190 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED);
203 assertEquals(left.mActivities.get(1), ACTIVITY_PAUSED);
208 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED);
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowProcessController.java163 private final ArrayList<ActivityRecord> mActivities = new ArrayList<>(); field in WindowProcessController
501 if (mActivities.contains(r)) { in addActivityIfNeeded()
504 mActivities.add(r); in addActivityIfNeeded()
508 mActivities.remove(r); in removeActivity()
512 for (int i = mActivities.size() - 1; i >= 0; --i) { in makeFinishingForProcessRemoved()
513 mActivities.get(i).makeFinishingLocked(); in makeFinishingForProcessRemoved()
518 mActivities.clear(); in clearActivities()
524 return !mActivities.isEmpty(); in hasActivities()
531 for (int i = mActivities.size() - 1; i >= 0; --i) { in hasVisibleActivities()
532 final ActivityRecord r = mActivities.get(i); in hasVisibleActivities()
[all …]
DTaskRecord.java268 final ArrayList<ActivityRecord> mActivities; field in TaskRecord
355 mActivities = new ArrayList<>(); in TaskRecord()
379 mActivities = new ArrayList<>(); in TaskRecord()
428 mActivities = activities; in TaskRecord()
479 if (!mActivities.isEmpty()) { in cleanUpResourcesForDestroy()
1044 return mActivities.size(); in getChildCount()
1049 return mActivities.get(index); in getChildAt()
1118 for (int i = 0; i < mActivities.size(); i++) { in getRootActivity()
1119 final ActivityRecord r = mActivities.get(i); in getRootActivity()
1133 for (int i = mActivities.size() - 1; i >= 0; --i) { in getTopActivity()
[all …]
DActivityStack.java504 count += mTaskHistory.get(taskNdx).mActivities.size(); in numActivities()
1089 final ArrayList<ActivityRecord> activities = task.mActivities; in topRunningNonOverlayTaskActivity()
1103 final ArrayList<ActivityRecord> activities = task.mActivities; in topRunningNonDelayedActivityLocked()
1129 ArrayList<ActivityRecord> activities = task.mActivities; in topRunningActivityLocked()
1187 if (stack != null && task.mActivities.contains(r) && mTaskHistory.contains(task)) { in isInStackLocked()
1202 for (ActivityRecord r : task.mActivities) { in isUidPresent()
1214 for (ActivityRecord r : task.mActivities) { in getPresentUIDs()
1227 for (ActivityRecord r : task.mActivities) { in removeActivitiesFromLRUListLocked()
1445 final ArrayList<ActivityRecord> activities = task.mActivities; in findActivityLocked()
1516 final ArrayList<ActivityRecord> activities = mTaskHistory.get(taskNdx).mActivities; in awakeFromSleepingLocked()
[all …]
DActivityStackSupervisor.java822 updateHomeProcess(task.mActivities.get(0).app); in realStartActivityLocked()
1904 final ArrayList<ActivityRecord> activities = task.mActivities; in restoreRecentTaskLocked()
2509 for (int i = task.mActivities.size() - 1; i >= 0; i--) { in scheduleUpdateMultiWindowMode()
2510 final ActivityRecord r = task.mActivities.get(i); in scheduleUpdateMultiWindowMode()
2532 for (int i = task.mActivities.size() - 1; i >= 0; i--) { in scheduleUpdatePictureInPictureModeIfNeeded()
2533 final ActivityRecord r = task.mActivities.get(i); in scheduleUpdatePictureInPictureModeIfNeeded()
2551 for (int i = task.mActivities.size() - 1; i >= 0; i--) { in updatePictureInPictureMode()
2552 final ActivityRecord r = task.mActivities.get(i); in updatePictureInPictureMode()
DActivityRecord.java2145 final int positionInTask = task.mActivities.indexOf(this); in shouldMakeActive()
2149 if (positionInTask == task.mActivities.size() - 1) { in shouldMakeActive()
2154 final ActivityRecord activityAbove = task.mActivities.get(positionInTask + 1); in shouldMakeActive()
2209 mStackSupervisor.updateHomeProcess(task.mActivities.get(0).app); in completeResumeLocked()
2548 final int activityNdx = task.mActivities.indexOf(r); in getTaskForActivityLocked()
3749 final int pos = task.mActivities.indexOf(this); in getActivityBelow()
DActivityMetricsLogger.java530 for (int i = t.mActivities.size() - 1; i >= 0; --i) { in hasVisibleNonFinishingActivity()
531 final ActivityRecord r = t.mActivities.get(i); in hasVisibleNonFinishingActivity()
DActivityDisplay.java1362 final ArrayList<ActivityRecord> activities = task.mActivities; in getHomeActivityForUser()
DRootActivityContainer.java1027 if (task.mActivities.size() == 1) { in moveActivityToPinnedStack()
DActivityStarter.java2577 mStartActivity.reparent(parent, parent.mActivities.size() /* top */, reason); in addOrReparentStartingActivity()
DActivityTaskManagerService.java1986 int index = task.mActivities.lastIndexOf(r); in convertToTranslucent()
1988 ActivityRecord under = task.mActivities.get(index - 1); in convertToTranslucent()
/frameworks/base/core/java/android/app/usage/
DUsageStats.java128 public SparseIntArray mActivities = new SparseIntArray(); field in UsageStats
162 mActivities = stats.mActivities; in UsageStats()
305 mergeEventMap(mActivities, right.mActivities); in add()
346 final int size = mActivities.size(); in hasForegroundActivity()
348 if (mActivities.valueAt(i) == ACTIVITY_RESUMED) { in hasForegroundActivity()
360 final int size = mActivities.size(); in hasVisibleActivity()
362 final int type = mActivities.valueAt(i); in hasVisibleActivity()
431 final int index = mActivities.indexOfKey(instanceId); in updateActivity()
433 final int lastEvent = mActivities.valueAt(index); in updateActivity()
458 mActivities.put(instanceId, eventType); in updateActivity()
[all …]
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java243 private final List<ActivityResolveInfo> mActivities = new ArrayList<ActivityResolveInfo>(); field in ActivityChooserModel
415 return mActivities.size(); in getActivityCount()
431 return mActivities.get(index).resolveInfo; in getActivity()
445 List<ActivityResolveInfo> activities = mActivities; in getActivityIndex()
484 ActivityResolveInfo chosenActivity = mActivities.get(index); in chooseActivity()
535 if (!mActivities.isEmpty()) { in getDefaultActivity()
536 return mActivities.get(0).resolveInfo; in getDefaultActivity()
556 ActivityResolveInfo newDefaultActivity = mActivities.get(index); in setDefaultActivity()
557 ActivityResolveInfo oldDefaultActivity = mActivities.get(0); in setDefaultActivity()
699 && !mActivities.isEmpty() && !mHistoricalRecords.isEmpty()) { in sortActivitiesIfNeeded()
[all …]
/frameworks/base/core/java/android/app/
DLocalActivityManager.java85 private final Map<String, LocalActivityRecord> mActivities field in LocalActivityManager
298 LocalActivityRecord r = mActivities.get(id); in startActivity()
328 mActivities.put(id, r); in startActivity()
413 LocalActivityRecord r = mActivities.get(id); in destroyActivity()
418 mActivities.remove(id); in destroyActivity()
460 LocalActivityRecord r = mActivities.get(id); in getActivity()
483 LocalActivityRecord r = mActivities.get(id); in dispatchCreate()
489 mActivities.put(id, r); in dispatchCreate()
657 mActivities.clear(); in dispatchDestroy()
DActivityThread.java308 final ArrayMap<IBinder, ActivityClientRecord> mActivities = new ArrayMap<>(); field in ActivityThread
3032 final ActivityClientRecord activityRecord = mActivities.get(token); in getActivity()
3038 return mActivities.get(token); in getActivityClient()
3279 mActivities.put(r.token, r); in performLaunchActivity()
3497 final ActivityClientRecord r = mActivities.get(token); in handleNewIntent()
3530 ActivityClientRecord r = mActivities.get(cmd.activityToken); in handleRequestAssistContextExtras()
3585 final ActivityClientRecord r = mActivities.get(activityToken); in handleRequestDirectActions()
3630 final ActivityClientRecord r = mActivities.get(activityToken); in handlePerformDirectAction()
3646 ActivityClientRecord r = mActivities.get(token); in handleTranslucentConversionComplete()
3653 ActivityClientRecord r = mActivities.get(token); in onNewActivityOptions()
[all …]
DApplication.java631 final int activityCount = activityThread.mActivities.size(); in getAutofillClient()
634 activityThread.mActivities.valueAt(i); in getAutofillClient()
/frameworks/base/core/java/android/nfc/
DNfcActivityManager.java53 final List<NfcActivityState> mActivities; // Activities that have NFC state field in NfcActivityManager
164 for (NfcActivityState state : mActivities) { in findActivityState()
177 mActivities.add(state); in getActivityState()
183 for (NfcActivityState state : mActivities) { in findResumedActivityState()
195 mActivities.remove(activityState); in destroyActivityState()
201 mActivities = new LinkedList<NfcActivityState>(); in NfcActivityManager()
/frameworks/base/services/core/java/com/android/server/pm/
DComponentResolver.java154 private final ActivityIntentResolver mActivities = new ActivityIntentResolver(); field in ComponentResolver
198 return mActivities.mActivities.get(component); in getActivity()
212 return mReceivers.mActivities.get(component); in getReceiver()
225 return mActivities.queryIntent(intent, resolvedType, flags, userId); in queryActivities()
232 return mActivities.queryIntentForPackage( in queryActivities()
359 return mActivities.mActivities.get(component) != null; in isActivityDefined()
450 if (mActivities.dump(pw, dumpState.getTitlePrinted() ? "\nActivity Resolver Table:" in dumpActivityResolvers()
547 mActivities.addActivity(a, "activity", newIntents); in addActivitiesLocked()
858 final List<ActivityIntentInfo> foundFilters = mActivities.findFilters(intent); in adjustPriority()
959 mActivities.removeActivity(a, "activity"); in removeAllComponentsLocked()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStackTests.java874 assertEquals(2, mTask.mActivities.size()); in testFinishDisabledPackageActivities_RemoveNonAliveActivities()
883 assertThat(mTask.mActivities).isEmpty(); in testFinishDisabledPackageActivities_RemoveNonAliveActivities()
901 assertEquals(2, mTask.mActivities.size()); in testHandleAppDied()
905 assertThat(mTask.mActivities).isEmpty(); in testHandleAppDied()
919 assertEquals(1, mTask.mActivities.size()); in testHandleAppDied_RelaunchesAfterCrashDuringWindowingModeResize()
933 assertThat(mTask.mActivities).isEmpty(); in testHandleAppDied_NotRelaunchAfterThreeCrashesDuringWindowingModeResize()
947 assertEquals(1, mTask.mActivities.size()); in testHandleAppDied_RelaunchesAfterCrashDuringFreeResize()
961 assertThat(mTask.mActivities).isEmpty(); in testHandleAppDied_NotRelaunchAfterThreeCrashesDuringFreeResize()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java490 if (pkgStats.mActivities.size() > 0 in rolloverStats()
492 if (pkgStats.mActivities.size() > 0) { in rolloverStats()
494 pkgStats.mActivities); in rolloverStats()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt48138 Landroid/nfc/NfcActivityManager;->mActivities:Ljava/util/List;
80543 Landroid/widget/ActivityChooserModel;->mActivities:Ljava/util/List;