/frameworks/base/core/java/android/app/ |
D | Service.java | 609 if (mActivityManager == null) { in stopSelf() 613 mActivityManager.stopServiceToken( in stopSelf() 641 if (mActivityManager == null) { in stopSelfResult() 645 return mActivityManager.stopServiceToken( in stopSelfResult() 707 mActivityManager.setServiceForeground( in startForeground() 742 mActivityManager.setServiceForeground( in startForeground() 771 mActivityManager.setServiceForeground( in stopForeground() 795 ret = mActivityManager.getForegroundServiceType( in getForegroundServiceType() 835 mActivityManager = (IActivityManager)activityManager; in attach() 862 private IActivityManager mActivityManager = null;
|
D | HomeVisibilityObserver.java | 35 private ActivityManager mActivityManager; field in HomeVisibilityObserver 44 mActivityManager = activityManager; in init() 75 List<ActivityManager.RunningTaskInfo> tasks = mActivityManager.getRunningTasks(1); in isHomeActivityVisible()
|
D | UiAutomationConnection.java | 76 private final IActivityManager mActivityManager = IActivityManager.Stub field in UiAutomationConnection 313 mActivityManager.startDelegateShellPermissionIdentity(uid, permissions); in adoptShellPermissionIdentity() 328 mActivityManager.stopDelegateShellPermissionIdentity(); in dropShellPermissionIdentity()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityManagerTest.java | 34 protected ActivityManager mActivityManager; field in ActivityManagerTest 40 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 55 errList = mActivityManager.getProcessesInErrorState(); in disabledTestErrorTasksEmpty() 72 errList = mActivityManager.getProcessesInErrorState(); in testErrorTasksWithError() 88 errList = mActivityManager.getProcessesInErrorState(); in testErrorTasksWithANR() 98 ConfigurationInfo config = mActivityManager.getDeviceConfigurationInfo(); in testGetDeviceConfigurationInfo()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SetPersistentVrThreadTest.java | 35 private ActivityManager mActivityManager; field in SetPersistentVrThreadTest 54 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 97 mActivityManager.setPersistentVrThread(vr_thread); in testSetPersistentVrThreadAPISuccess() 112 mActivityManager.setPersistentVrThread(vr_thread); in testSetPersistentVrThreadAPISuccess() 131 mActivityManager.setPersistentVrThread(vr_thread); in testSetPersistentVrThreadAPIFailure() 147 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailsInPersistentMode() 154 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailsInPersistentMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipManager.java | 57 private IActivityManager mActivityManager; field in PipManager 88 mContext, mActivityManager); 177 mActivityManager = ActivityManager.getService(); in initialize() 188 mMediaController = new PipMediaController(context, mActivityManager); in initialize() 189 mMenuController = new PipMenuActivityController(context, mActivityManager, mMediaController, in initialize() 191 mTouchHandler = new PipTouchHandler(context, mActivityManager, mActivityTaskManager, in initialize() 193 mAppOpsListener = new PipAppOpsListener(context, mActivityManager, in initialize()
|
D | PipAppOpsListener.java | 37 private IActivityManager mActivityManager; field in PipAppOpsListener 47 PipUtils.getTopPinnedActivity(mContext, mActivityManager); 68 mActivityManager = activityManager; in PipAppOpsListener()
|
D | PipMediaController.java | 69 private final IActivityManager mActivityManager; field in PipMediaController 114 mActivityManager = activityManager; in PipMediaController() 233 mActivityManager).first; in resolveActiveMediaController()
|
D | PipTouchHandler.java | 74 private final IActivityManager mActivityManager; field in PipTouchHandler 168 PipUtils.getTopPinnedActivity(mContext, mActivityManager)); in onPipDismiss() 185 mActivityManager = activityManager; in PipTouchHandler() 197 mMotionHelper = new PipMotionHelper(mContext, mActivityManager, mActivityTaskManager, in PipTouchHandler() 497 isMinimized, PipUtils.getTopPinnedActivity(mContext, mActivityManager)); 701 PipUtils.getTopPinnedActivity(mContext, mActivityManager));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsServiceTestable.java | 43 private IActivityManager mActivityManager; field in LockSettingsServiceTestable.MockInjector 59 mActivityManager = activityManager; in MockInjector() 89 return mActivityManager; in getActivityManager() 135 IStorageManager storageManager, IActivityManager mActivityManager, in LockSettingsServiceTestable() argument 138 super(new MockInjector(context, storage, keystore, mActivityManager, lockPatternUtils, in LockSettingsServiceTestable()
|
D | BaseLockSettingsServiceTests.java | 91 IActivityManager mActivityManager; field in BaseLockSettingsServiceTests 109 mActivityManager = mock(IActivityManager.class); in setUp_baseServices() 151 mGateKeeperService, mKeyStore, setUpStorageManagerMock(), mActivityManager, in setUp_baseServices() 166 when(mActivityManager.unlockUser(anyInt(), any(), any(), any())).thenAnswer( in setUp_baseServices()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowControllerTest.java | 58 private IActivityManager mActivityManager; field in StatusBarWindowControllerTest 74 mActivityManager, mDozeParameters, mStatusBarStateController, in setUp() 100 mActivityManager, mDozeParameters, mStatusBarStateController, in testOnThemeChanged_doesntCrash() 113 mActivityManager, mDozeParameters, mStatusBarStateController, in testSetForcePluginOpen_beforeStatusBarInitialization()
|
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
D | ProcessErrorsTest.java | 47 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/services/tests/servicestests/src/com/android/server/pm/ |
D | UserLifecycleStressTest.java | 56 private ActivityManager mActivityManager; field in UserLifecycleStressTest 62 mActivityManager = mContext.getSystemService(ActivityManager.class); in setup() 74 UserInfo.FLAG_MANAGED_PROFILE, mActivityManager.getCurrentUser()); in stopManagedProfileStressTest()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioningController.java | 44 private final IActivityTaskManager mActivityManager; field in TaskPositioningController 66 mActivityManager = activityManager; in TaskPositioningController() 119 mActivityManager.setFocusedTask(win.getTask().mTaskId); in startMovingTask() 134 mActivityManager.setFocusedTask(task.mTaskId); in handleTapOutsideTask()
|
D | TaskPositioner.java | 100 private final IActivityTaskManager mActivityManager; field in TaskPositioner 176 mActivityManager.resizeTask( in onInputEvent() 209 mActivityManager.resizeTask( in onInputEvent() 230 mActivityManager = activityManager; in TaskPositioner() 424 mActivityManager.resizeTask( in startDrag()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/ |
D | HighResThumbnailLoader.java | 42 private final ActivityManagerWrapper mActivityManager; field in HighResThumbnailLoader 63 mActivityManager = activityManager; in HighResThumbnailLoader() 232 final ThumbnailData thumbnail = mActivityManager.getTaskThumbnail(t.key.id,
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityControllerTest.java | 65 private @Mock ActivityManagerWrapper mActivityManager; field in WorkLockActivityControllerTest 81 mController = new WorkLockActivityController(mContext, mActivityManager, in setUp() 84 verify(mActivityManager).registerTaskStackListener(listenerCaptor.capture()); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkFactoryTest.java | 121 @Mock ActivityManager mActivityManager; field in WifiNetworkFactoryTest 181 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in setUp() 183 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in setUp() 192 mNetworkCapabilities, mActivityManager, mAlarmManager, mAppOpsManager, mClock, in setUp() 278 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromWithInvalidSpecifier() 297 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromWithInternetCapability() 316 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier() 333 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromFgAppWithSpecifier() 348 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier() 365 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc() [all …]
|
D | ScanRequestProxyTest.java | 77 @Mock private ActivityManager mActivityManager; field in ScanRequestProxyTest 136 new ScanRequestProxy(mContext, mAppOps, mActivityManager, mWifiInjector, in setUp() 751 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testSuccessiveScanRequestFromBgAppsThrottled() 753 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in testSuccessiveScanRequestFromBgAppsThrottled() 777 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_1)) in testSuccessiveScanRequestFromBgAppsNotThrottled() 779 when(mActivityManager.getPackageImportance(TEST_PACKAGE_NAME_2)) in testSuccessiveScanRequestFromBgAppsNotThrottled()
|
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
D | AppCompatibility.java | 85 private ActivityManager mActivityManager; field in AppCompatibility 97 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 302 List<RunningTaskInfo> infos = mActivityManager.getRunningTasks(100); in processStillUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanRequestProxy.java | 81 private final ActivityManager mActivityManager; field in ScanRequestProxy 239 mActivityManager = activityManager; in ScanRequestProxy() 412 return mActivityManager.getPackageImportance(packageName) in isRequestFromBackground()
|
D | WifiLockManager.java | 60 private final ActivityManager mActivityManager; field in WifiLockManager 90 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in WifiLockManager() 144 mActivityManager.addOnUidImportanceListener(new ActivityManager.OnUidImportanceListener() { in registerUidImportanceTransitions()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 210 ActivityManager mActivityManager; field in NotificationManagerServiceTest 392 mCompanionMgr, mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, in setUp() local 563 when(mActivityManager.getPackageImportance(nrBubble.sbn.getPackageName())).thenReturn( in addGroupWithBubblesAndValidateAdded() 2411 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testSetListenerAccess_doesNothingOnLowRam() 2425 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testSetAssistantAccess_doesNothingOnLowRam() 2445 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testSetDndAccess_doesNothingOnLowRam() 2460 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testSetListenerAccess_doesNothingOnLowRam_exceptWatch() 2476 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testSetAssistantAccess_doesNothingOnLowRam_exceptWatch() 2497 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testSetDndAccess_doesNothingOnLowRam_exceptWatch() 3719 when(mActivityManager.isLowRamDevice()).thenReturn(true); in testCanUseManagedServicesLowRamNoWatchNullPkg() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowController.java | 77 private final IActivityManager mActivityManager; field in StatusBarWindowController 116 mActivityManager = activityManager; in StatusBarWindowController() 374 mActivityManager.setHasTopUi(mHasTopUiChanged); in apply()
|