/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsTest.java | 141 left.mActivities.put(1, Event.ACTIVITY_RESUMED); in testParcelable() 142 left.mActivities.put(2, Event.ACTIVITY_RESUMED); in testParcelable() 161 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); in testActivity() 169 assertEquals(left.mActivities.get(1), ACTIVITY_PAUSED); in testActivity() 176 assertTrue(left.mActivities.indexOfKey(1) < 0); in testActivity() 183 assertTrue(left.mActivities.indexOfKey(1) < 0); in testActivity() 196 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); 202 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); 215 assertEquals(left.mActivities.get(1), ACTIVITY_PAUSED); 220 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowProcessController.java | 176 private final ArrayList<ActivityRecord> mActivities = new ArrayList<>(); field in WindowProcessController 582 if (mActivities.contains(r)) { in addActivityIfNeeded() 585 mActivities.add(r); in addActivityIfNeeded() 590 mActivities.remove(r); in removeActivity() 595 for (int i = mActivities.size() - 1; i >= 0; --i) { in makeFinishingForProcessRemoved() 596 mActivities.get(i).makeFinishingLocked(); in makeFinishingForProcessRemoved() 601 mActivities.clear(); in clearActivities() 608 return !mActivities.isEmpty(); in hasActivities() 615 for (int i = mActivities.size() - 1; i >= 0; --i) { in hasVisibleActivities() 616 final ActivityRecord r = mActivities.get(i); in hasVisibleActivities() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 135 public SparseIntArray mActivities = new SparseIntArray(); field in UsageStats 174 mActivities = stats.mActivities; in UsageStats() 317 mergeEventMap(mActivities, right.mActivities); in add() 358 final int size = mActivities.size(); in hasForegroundActivity() 360 if (mActivities.valueAt(i) == ACTIVITY_RESUMED) { in hasForegroundActivity() 372 final int size = mActivities.size(); in hasVisibleActivity() 374 final int type = mActivities.valueAt(i); in hasVisibleActivity() 443 final int index = mActivities.indexOfKey(instanceId); in updateActivity() 445 final int lastEvent = mActivities.valueAt(index); in updateActivity() 470 mActivities.put(instanceId, eventType); in updateActivity() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserModel.java | 243 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/ |
D | LocalActivityManager.java | 92 private final Map<String, LocalActivityRecord> mActivities field in LocalActivityManager 311 LocalActivityRecord r = mActivities.get(id); in startActivity() 341 mActivities.put(id, r); in startActivity() 426 LocalActivityRecord r = mActivities.get(id); in destroyActivity() 431 mActivities.remove(id); in destroyActivity() 473 LocalActivityRecord r = mActivities.get(id); in getActivity() 496 LocalActivityRecord r = mActivities.get(id); in dispatchCreate() 502 mActivities.put(id, r); in dispatchCreate() 670 mActivities.clear(); in dispatchDestroy()
|
D | ActivityThread.java | 326 final ArrayMap<IBinder, ActivityClientRecord> mActivities = new ArrayMap<>(); field in ActivityThread 3103 final ActivityClientRecord activityRecord = mActivities.get(token); in getActivity() 3109 return mActivities.get(token); in getActivityClient() 3297 final ActivityClientRecord r = mActivities.get(token); in handleFixedRotationAdjustments() 3439 mActivities.put(r.token, r); in performLaunchActivity() 3458 final ActivityClientRecord r = mActivities.get(token); in handleStartActivity() 3670 final ActivityClientRecord r = mActivities.get(token); in handleNewIntent() 3703 ActivityClientRecord r = mActivities.get(cmd.activityToken); in handleRequestAssistContextExtras() 3758 final ActivityClientRecord r = mActivities.get(activityToken); in handleRequestDirectActions() 3803 final ActivityClientRecord r = mActivities.get(activityToken); in handlePerformDirectAction() [all …]
|
D | Application.java | 631 final int activityCount = activityThread.mActivities.size(); in getAutofillClient() 634 activityThread.mActivities.valueAt(i); in getAutofillClient()
|
/frameworks/base/core/java/android/nfc/ |
D | NfcActivityManager.java | 53 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/ |
D | ComponentResolver.java | 165 private final ActivityIntentResolver mActivities = new ActivityIntentResolver(); field in ComponentResolver 214 return mActivities.mActivities.get(component); in getActivity() 230 return mReceivers.mActivities.get(component); in getReceiver() 245 ParsedMainComponent component = mActivities.mActivities.get(componentName); in componentExists() 249 component = mReceivers.mActivities.get(componentName); in componentExists() 265 return mActivities.queryIntent(intent, resolvedType, flags, userId); in queryActivities() 273 return mActivities.queryIntentForPackage( in queryActivities() 458 return mActivities.mActivities.get(component) != null; in isActivityDefined() 556 if (mActivities.dump(pw, dumpState.getTitlePrinted() ? "\nActivity Resolver Table:" in dumpActivityResolvers() 659 mActivities.addActivity(a, "activity", newIntents); in addActivitiesLocked() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 638 if (pkgStats.mActivities.size() > 0 in rolloverStats() 640 if (pkgStats.mActivities.size() > 0) { in rolloverStats() 642 pkgStats.mActivities); in rolloverStats()
|