Home
last modified time | relevance | path

Searched refs:mAtmInternal (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DPhoneWindowManagerTests.java82 private ActivityTaskManagerInternal mAtmInternal; field in PhoneWindowManagerTests
92 mAtmInternal = mock(ActivityTaskManagerInternal.class); in setUp()
93 LocalServices.addService(ActivityTaskManagerInternal.class, mAtmInternal); in setUp()
94 mPhoneWindowManager.mActivityTaskManagerInternal = mAtmInternal; in setUp()
148 doReturn(tokenAcquirer).when(mAtmInternal).createSleepTokenAcquirer(anyString()); in testScreenTurnedOff()
232 when(mAtmInternal.startHomeOnDisplay( in mockStartDockOrHome()
/frameworks/base/services/core/java/com/android/server/am/
DActiveUids.java50 mService.mAtmInternal.onUidActive(uid, value.getCurProcState()); in put()
58 mService.mAtmInternal.onUidInactive(uid); in remove()
DAppErrors.java697 mService.mAtmInternal.onHandleAppCrash(r.getWindowProcessController()); in crashApplicationInner()
703 mService.mAtmInternal.resumeTopActivities(false /* scheduleIdle */); in crashApplicationInner()
740 return mService.mAtmInternal.handleAppCrashInActivityController( in handleAppCrashInActivityController()
905 mService.mAtmInternal.onHandleAppCrash(proc);
938 mService.mAtmInternal.resumeTopActivities(false /* scheduleIdle */);
943 mService.mAtmInternal.resumeTopActivities(false /* scheduleIdle */);
945 final int affectedTaskId = mService.mAtmInternal.finishTopCrashedActivities(
1057 if ((mService.mAtmInternal.canShowErrorDialogs() || showBackground)
1109 if (mService.mAtmInternal.canShowErrorDialogs() || showBackground) {
DPendingIntentController.java90 final ActivityTaskManagerInternal mAtmInternal; field in PendingIntentController
109 mAtmInternal = LocalServices.getService(ActivityTaskManagerInternal.class); in PendingIntentController()
397 mAtmInternal.clearPendingResultForActivity(activityToken, pir); in clearPendingResultForActivity()
DPendingIntentRecord.java626 res = controller.mAtmInternal.startActivitiesInPackage( in sendInner()
633 res = controller.mAtmInternal.startActivityInPackage(uid, callingPid, in sendInner()
646 controller.mAtmInternal.sendActivityResult(-1, key.activity, key.who, in sendInner()
718 if (uid != callingUid && controller.mAtmInternal.isUidForeground(callingUid)) { in getBackgroundStartPrivilegesForActivitySender()
DAppProfiler.java371 if (mService.mAtmInternal != null) { in setProfileApp()
372 mService.mAtmInternal.setProfileApp(profileApp); in setProfileApp()
382 if (mService.mAtmInternal != null) { in setProfileProc()
383 mService.mAtmInternal.setProfileProc(profileProc == null ? null in setProfileProc()
394 if (mService.mAtmInternal != null) { in setProfilerInfo()
395 mService.mAtmInternal.setProfilerInfo(profilerInfo); in setProfilerInfo()
907 mTestPssOrRssMode, mService.mAtmInternal.isSleeping(), now)); in updateNextPssTimeLPf()
1420 mService.mAtmInternal == null || !mService.mAtmInternal.isSleeping(), in updateLowMemStateLSP()
1968 mService.mAtmInternal.dump(DUMP_ACTIVITIES_CMD, null, catPw, emptyArgs, 0, false, false, in reportMemUsage()
DUserController.java3812 return mService.mAtmInternal;
3904 mService.mAtmInternal.startHomeActivity(userId, reason);
3919 mService.mAtmInternal.updateUserConfiguration();
3929 mService.mAtmInternal.loadRecentTasksForUser(userId);
3980 mService.mAtmInternal.removeUser(userId);
3984 return mService.mAtmInternal.switchUser(userId, uss);
3988 mService.mAtmInternal.resumeTopActivities(false /* scheduleIdle */);
3992 mService.mAtmInternal.clearLockedTasks(reason);
3996 return mService.mAtmInternal.isCallerRecents(callingUid);
DOomAdjuster.java600 mProcessStateCurTop = mService.mAtmInternal.getTopProcessState(); in performUpdateOomAdjLSP()
685 final int prevTopProcessState = mService.mAtmInternal.getTopProcessState(); in enqueuePendingTopAppIfNecessaryLSP()
687 final int topProcessState = mService.mAtmInternal.getTopProcessState(); in enqueuePendingTopAppIfNecessaryLSP()
1097 mService.mAtmInternal.scheduleDestroyAllActivities("always-finish"); in postUpdateOomAdjInnerLSP()
1601 mService.mAtmInternal.onUidProcStateChanged( in updateUidsLSP()
1906 if (mService.mAtmInternal.useTopSchedGroupForTopProcess()) { in computeOomAdjLSP()
DProcessErrorStateRecord.java274 if (mService.mAtmInternal.isShuttingDown()) { in skipAnrLocked()
/frameworks/base/services/contextualsearch/java/com/android/server/contextualsearch/
DContextualSearchManagerService.java100 private final ActivityTaskManagerInternal mAtmInternal; field in ContextualSearchManagerService
162 mAtmInternal = Objects.requireNonNull( in ContextualSearchManagerService()
303 boolean isAssistDataAllowed = mAtmInternal.isAssistDataAllowed(); in getContextualSearchIntent()
304 final List<ActivityAssistInfo> records = mAtmInternal.getTopVisibleActivities(); in getContextualSearchIntent()
373 return mAtmInternal.startActivityWithScreenshot(launchIntent, in invokeContextualSearchIntent()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java124 private final ActivityTaskManagerInternal mAtmInternal; field in DreamManagerService
234 mAtmInternal = getLocalService(ActivityTaskManagerInternal.class); in DreamManagerService()
287 mAtmInternal.registerActivityStartInterceptor( in onBootPhase()
757 mAtmInternal.notifyActiveDreamChanged(name); in startDreamLocked()
782 mHandler.post(() -> mAtmInternal.notifyActiveDreamChanged(null)); in cleanupDreamLocked()
1151 final IAppTask appTask = mAtmInternal.startDreamActivity(intent, callingUid, in startDreamActivity()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java159 final ActivityTaskManagerInternal mAtmInternal; field in VoiceInteractionManagerService
182 mAtmInternal = Objects.requireNonNull( in VoiceInteractionManagerService()
517 mAtmInternal.onLocalVoiceInteractionStarted(token, in startLocalVoiceInteraction()
812 mAtmInternal.setAllowAppSwitches(TAG, in switchImplementationIfNeededNoTracingLocked()
816 mAtmInternal.setAllowAppSwitches(TAG, -1, mCurUser); in switchImplementationIfNeededNoTracingLocked()
2377 mAtmInternal.notifyActiveVoiceInteractionServiceChanged( in setImplLocked()
2729 boolean isAssistDataAllowed = mAtmInternal.isAssistDataAllowed(); in getContextualSearchIntent()
2730 final List<ActivityAssistInfo> records = mAtmInternal.getTopVisibleActivities(); in getContextualSearchIntent()
2770 int resultCode = mAtmInternal.startActivityWithScreenshot(launchIntent, in startContextualSearch()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java137 private final ActivityTaskManagerInternal mAtmInternal; field in CompanionDeviceManagerService
162 mAtmInternal = LocalServices.getService(ActivityTaskManagerInternal.class); in CompanionDeviceManagerService()
822 if (mAtmInternal != null) { in updateAtm()
823 mAtmInternal.setCompanionAppUids(userId, companionAppUids); in updateAtm()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DProcessRecordTests.java74 sService.mAtmInternal = sService.mActivityTaskManager.getAtmInternal(); in setUpOnce()
DOomAdjusterTests.java79 sService.mAtmInternal = sService.mActivityTaskManager.getAtmInternal(); in setUpOnce()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceTimeoutTest.java113 realAms.mAtmInternal = spy(realAms.mActivityTaskManager.getAtmInternal()); in setUp()
DMockingOomAdjusterTests.java193 mService.mAtmInternal = spy(mService.mActivityTaskManager.getAtmInternal()); in setUp()
384 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_TopApp_Awake()
398 doReturn(PROCESS_STATE_TOP_SLEEPING).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_RunningAnimations()
402 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_RunningAnimations()
454 doReturn(PROCESS_STATE_TOP_SLEEPING).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_TopApp_Sleeping()
459 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_TopApp_Sleeping()
957 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_Service_Started_WaivePriority()
1043 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_Service_AllowOomManagement()
1094 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_Service_BoundByTop()
1454 doReturn(PROCESS_STATE_TOP).when(mService.mAtmInternal).getTopProcessState(); in testUpdateOomAdj_DoOne_Provider_TopApp()
[all …]
DAsyncProcessStartTest.java137 mRealAms.mAtmInternal = mActivityTaskManagerInt; in setUp()
DProcessObserverTest.java138 mRealAms.mAtmInternal = mActivityTaskManagerInt; in setUp()
DServiceBindingOomAdjPolicyTest.java171 realAms.mAtmInternal = spy(realAms.mActivityTaskManager.getAtmInternal()); in setUp()
184 doReturn(false).when(mAms.mAtmInternal).hasSystemAlertWindowPermission(anyInt(), anyInt(), in setUp()
DBaseBroadcastQueueTest.java166 realAms.mAtmInternal = spy(realAms.mActivityTaskManager.getAtmInternal()); in setUp()
DAppChildProcessTest.java106 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in setUp()
DApplicationStartInfoTest.java115 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in setUp()
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java136 private final ActivityTaskManagerInternal mAtmInternal; field in PinnerService
250 mAtmInternal = LocalServices.getService(ActivityTaskManagerInternal.class); in PinnerService()
519 Intent intent = mAtmInternal.getHomeIntent(); in getHomeInfo()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java644 ams.mAtmInternal = mInternal;

12