Home
last modified time | relevance | path

Searched refs:mActivityManager (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/app/
DService.java611 if (mActivityManager == null) { in stopSelf()
615 mActivityManager.stopServiceToken( in stopSelf()
643 if (mActivityManager == null) { in stopSelfResult()
647 return mActivityManager.stopServiceToken( in stopSelfResult()
699 mActivityManager.setServiceForeground( in startForeground()
728 mActivityManager.setServiceForeground( in stopForeground()
766 mActivityManager = (IActivityManager)activityManager; in attach()
788 private IActivityManager mActivityManager = null;
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java33 protected ActivityManager mActivityManager; field in ActivityManagerTest
39 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
54 errList = mActivityManager.getProcessesInErrorState(); in disabledTestErrorTasksEmpty()
71 errList = mActivityManager.getProcessesInErrorState(); in testErrorTasksWithError()
87 errList = mActivityManager.getProcessesInErrorState(); in testErrorTasksWithANR()
97 ConfigurationInfo config = mActivityManager.getDeviceConfigurationInfo(); in testGetDeviceConfigurationInfo()
/frameworks/base/core/tests/coretests/src/android/os/
DSetPersistentVrThreadTest.java35 private ActivityManager mActivityManager; field in SetPersistentVrThreadTest
54 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
95 mActivityManager.setPersistentVrThread(vr_thread); in testSetPersistentVrThreadAPISuccess()
110 mActivityManager.setPersistentVrThread(vr_thread); in testSetPersistentVrThreadAPISuccess()
129 mActivityManager.setPersistentVrThread(vr_thread); in testSetPersistentVrThreadAPIFailure()
145 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailsInPersistentMode()
152 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailsInPersistentMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipManager.java56 private IActivityManager mActivityManager; field in PipManager
94 mActivityManager);
176 mActivityManager = ActivityManager.getService(); in initialize()
187 mMediaController = new PipMediaController(context, mActivityManager); in initialize()
188 mMenuController = new PipMenuActivityController(context, mActivityManager, mMediaController, in initialize()
190 mTouchHandler = new PipTouchHandler(context, mActivityManager, mMenuController, in initialize()
192 mNotificationController = new PipNotificationController(context, mActivityManager, in initialize()
210 StackInfo stackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID); in onBusEvent()
DPipMotionHelper.java83 private IActivityManager mActivityManager; field in PipMotionHelper
101 mActivityManager = activityManager; in PipMotionHelper()
124 StackInfo stackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID); in synchronizePinnedStackBounds()
162 mActivityManager.moveTasksToFullscreenStack(PINNED_STACK_ID, true /* onTop */); in expandPip()
164 mActivityManager.resizeStack(PINNED_STACK_ID, null /* bounds */, in expandPip()
185 mActivityManager.removeStack(PINNED_STACK_ID); in dismissPip()
518 mActivityManager.resizePinnedStack(toBounds, null /* tempPinnedTaskBounds */); in handleMessage()
531 StackInfo stackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID); in handleMessage()
538 mActivityManager.resizeStack(PINNED_STACK_ID, toBounds, in handleMessage()
DPipMediaController.java65 private final IActivityManager mActivityManager; field in PipMediaController
102 mActivityManager = activityManager; in PipMediaController()
209 mActivityManager); in resolveActiveMediaController()
DPipMenuActivityController.java114 private IActivityManager mActivityManager; field in PipMenuActivityController
190 mActivityManager = activityManager; in PipMenuActivityController()
352 StackInfo pinnedStackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID); in startMenuActivity()
389 StackInfo pinnedStackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID); in updateMenuActions()
DPipNotificationController.java57 private IActivityManager mActivityManager; field in PipNotificationController
87 mActivityManager = activityManager; in PipNotificationController()
DPipTouchHandler.java75 private final IActivityManager mActivityManager; field in PipTouchHandler
179 mActivityManager = activityManager; in PipTouchHandler()
191 mMotionHelper = new PipMotionHelper(mContext, mActivityManager, mMenuController, in PipTouchHandler()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsServiceTestable.java40 private IActivityManager mActivityManager; field in LockSettingsServiceTestable.MockInjector
51 mActivityManager = activityManager; in MockInjector()
79 return mActivityManager; in getActivityManager()
112 IStorageManager storageManager, IActivityManager mActivityManager) { in LockSettingsServiceTestable() argument
113 super(new MockInjector(context, storage, keystore, mActivityManager, lockPatternUtils, in LockSettingsServiceTestable()
DBaseLockSettingsServiceTests.java70 IActivityManager mActivityManager; field in BaseLockSettingsServiceTests
83 mActivityManager = mock(IActivityManager.class); in setUp()
97 mStorage, mGateKeeperService, mKeyStore, mStorageManager, mActivityManager); in setUp()
105 when(mActivityManager.unlockUser(anyInt(), any(), any(), any())).thenAnswer( in setUp()
DNetworkPolicyManagerServiceTest.java210 private @Mock IActivityManager mActivityManager; field in NetworkPolicyManagerServiceTest
327 }).when(mActivityManager).registerUidObserver(any(), anyInt(), in callSystemReady()
331 mService = new NetworkPolicyManagerService(mServiceContext, mActivityManager, mStatsService, in callSystemReady()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java54 private ActivityManager mActivityManager; field in AppCompatibility
68 mActivityManager = (ActivityManager) in setUp()
70 Assert.assertNotNull("Could not get Activity Manager", mActivityManager); in setUp()
207 mActivityManager.getProcessesInErrorState(); in launchActivity()
228 List<RunningTaskInfo> infos = mActivityManager.getRunningTasks(100); in processStillUp()
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
DProcessErrorsTest.java47 protected ActivityManager mActivityManager; field in ProcessErrorsTest
72 mActivityManager = (ActivityManager) in setUp()
78 assertNotNull(mActivityManager); in testSetUpConditions()
153 ProcessError.fromCollection(mActivityManager.getProcessesInErrorState()); in runOneActivity()
180 ProcessError.fromCollection(mActivityManager.getProcessesInErrorState()); in runOneActivity()
208 errList = mActivityManager.getProcessesInErrorState(); in checkForProcessErrors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipManager.java108 private IActivityManager mActivityManager; field in PipManager
214 mActivityManager = ActivityManager.getService(); in initialize()
320 mActivityManager.removeStack(PINNED_STACK_ID); in closePipInternal()
408 mActivityManager.resizeStack(PINNED_STACK_ID, mCurrentPipBounds, in resizePinnedStack()
486 stackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID); in getPinnedStackInfo()
578 runningTasks = mActivityManager.getTasks(1, 0); in isSettingsShown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowManager.java53 private final IActivityManager mActivityManager; field in StatusBarWindowManager
68 mActivityManager = ActivityManager.getService(); in StatusBarWindowManager()
223 mActivityManager.setHasTopUi(mHasTopUiChanged); in apply()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/
DShortcutKeyDispatcher.java61 private IActivityManager mActivityManager = ActivityManager.getService(); field in ShortcutKeyDispatcher
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java175 mService.mActivityManager.resizeTask( in onInputEvent()
208 mService.mActivityManager.resizeTask( in onInputEvent()
216 mService.mActivityManager.moveTaskToDockedStack( in onInputEvent()
DTaskStack.java1485 mService.mActivityManager.resizePinnedStack(stackBounds, tempTaskBounds); in setPinnedStackSize()
1518 mService.mActivityManager.notifyPinnedStackAnimationStarted(); in onAnimationStart()
1564 mService.mActivityManager.notifyPinnedStackAnimationEnded(); in onAnimationEnd()
1566 mService.mActivityManager.moveTasksToFullscreenStack(mStackId, in onAnimationEnd()
DWindowManagerService.java405 final IActivityManager mActivityManager; field in WindowManagerService
949 mActivityManager.notifyLaunchTaskBehindComplete(atoken.token);
958 mActivityManager.notifyEnterAnimationComplete(atoken.token);
1083 mActivityManager = ActivityManager.getService(); in WindowManagerService()
3481 mActivityManager.bootAnimationComplete(); in performEnableScreen()
4395 final boolean configUpdated = mActivityManager.updateDisplayOverrideConfiguration( in sendNewConfiguration()
4458 mActivityManager.setFocusedTask(win.getTask().mTaskId); in startMovingTask()
4479 mActivityManager.setFocusedTask(taskId); in handleTapOutsideTask()
4712 mActivityManager.updateConfiguration(null); in displayReady()
4723 mActivityManager.updateConfiguration(null); in displayReady()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java160 @Mock ActivityManager mActivityManager; field in WifiServiceImplTest
241 when(mContext.getSystemService(Context.ACTIVITY_SERVICE)).thenReturn(mActivityManager); in setUp()
694 when(mActivityManager.getPackageImportance(SCAN_PACKAGE_NAME)).thenReturn( in testWifiScanStartedForeground()
706 when(mActivityManager.getPackageImportance(SCAN_PACKAGE_NAME)).thenReturn( in testWifiScanBackgroundThrottled()
726 when(mActivityManager.getPackageImportance(SCAN_PACKAGE_NAME)).thenReturn( in testWifiScanBackgroundNotThrottled()
746 when(mActivityManager.getPackageImportance(WHITE_LIST_SCAN_PACKAGE_NAME)).thenReturn( in testWifiScanBackgroundWhiteListed()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java118 private final ActivityManager mActivityManager; field in TrustManagerService
138 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in TrustManagerService()
278 if (!mActivityManager.isUserRunning(userInfo.id)) { in refreshAgentList()
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java174 private ActivityManager mActivityManager; field in LocationManagerService
285 mActivityManager in systemRunning()
380 mActivityManager.addOnUidImportanceListener(uidImportanceListener, in systemRunning()
1852 mActivityManager.getPackageImportance(mReceiver.mIdentity.mPackageName)); in UpdateRecord()
2299 mActivityManager.getPackageImportance(packageName))) { in addGnssMeasurementsListener()
2336 mActivityManager.getPackageImportance(packageName))) { in addGnssNavigationMessageListener()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java305 private IActivityManager mActivityManager; field in BackupManagerService
1197 mActivityManager = ActivityManager.getService(); in BackupManagerService()
2306 if (mActivityManager.bindBackupAgent(app.packageName, mode, in bindToAgentSynchronous()
2339 mActivityManager.clearPendingBackup(); in bindToAgentSynchronous()
2367 mActivityManager.clearApplicationUserData(packageName, observer, 0); in clearApplicationDataSynchronous()
3633 mActivityManager.unbindBackupAgent(mCurrentPackage.applicationInfo); in clearAgentState()
3784 mActivityManager.unbindBackupAgent(app); in tearDownAgentAndKill()
3792 mActivityManager.killApplicationProcess(app.processName, app.uid); in tearDownAgentAndKill()
5082 mActivityManager.unbindBackupAgent(currentPackage.applicationInfo); in run()
5601 && mActivityManager.isAppForeground(appInfo.applicationInfo.uid); in beginFullBackup()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java164 private final ActivityManager mActivityManager; field in WifiServiceImpl
395 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in WifiServiceImpl()
632 return mActivityManager.getPackageImportance(packageName) in isRequestFromBackground()

12