Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DUserInfoHelperTest.java64 @Mock private ActivityManagerInternal mActivityManagerInternal; field in UserInfoHelperTest
72 LocalServices.addService(ActivityManagerInternal.class, mActivityManagerInternal); in setUp()
77 doReturn(true).when(mActivityManagerInternal).isCurrentProfile(USER1_ID); in setUp()
78 doReturn(true).when(mActivityManagerInternal).isCurrentProfile(USER1_MANAGED_ID); in setUp()
79 doReturn(USER1_PROFILES).when(mActivityManagerInternal).getCurrentProfileIds(); in setUp()
140 doReturn(true).when(mActivityManagerInternal).isCurrentProfile(USER2_ID); in testCurrentUserIds()
141 doReturn(true).when(mActivityManagerInternal).isCurrentProfile(USER2_MANAGED_ID); in testCurrentUserIds()
142 doReturn(USER2_PROFILES).when(mActivityManagerInternal).getCurrentProfileIds(); in testCurrentUserIds()
154 doReturn(false).when(mActivityManagerInternal).isCurrentProfile(USER1_ID); in testIsCurrentUserId()
155 doReturn(false).when(mActivityManagerInternal).isCurrentProfile(USER1_MANAGED_ID); in testIsCurrentUserId()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DUserInfoHelper.java78 @Nullable private ActivityManagerInternal mActivityManagerInternal; field in UserInfoHelper
90 if (mActivityManagerInternal != null) { in onSystemReady()
94 mActivityManagerInternal = Objects.requireNonNull( in onSystemReady()
162 if (mActivityManagerInternal == null) { in getCurrentUserIds()
169 return mActivityManagerInternal.getCurrentProfileIds(); in getCurrentUserIds()
181 if (mActivityManagerInternal == null) { in isCurrentUserId()
188 return mActivityManagerInternal.isCurrentProfile(userId); in isCurrentUserId()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java63 private ActivityManagerInternal mActivityManagerInternal; field in PendingIntentControllerTest
80 doReturn(mActivityManagerInternal).when( in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java122 private final ActivityManagerInternal mActivityManagerInternal; field in Notifier
174 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in Notifier()
402 mActivityManagerInternal.onWakefulnessChanged(wakefulness); in onWakefulnessChangeStarted()
762 if (mActivityManagerInternal.isSystemReady()) { in sendWakeUpBroadcast()
785 if (mActivityManagerInternal.isSystemReady()) { in sendGoToSleepBroadcast()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java76 private final ActivityManagerInternal mActivityManagerInternal; field in MediaProjectionManagerService
92 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in MediaProjectionManagerService()
106 mActivityManagerInternal.registerProcessObserver(new IProcessObserver.Stub() { in onStart()
477 && !mActivityManagerInternal.hasRunningForegroundService( in start()
/frameworks/base/services/core/java/com/android/server/vr/
DVr2dDisplay.java73 private final ActivityManagerInternal mActivityManagerInternal; field in Vr2dDisplay
107 mActivityManagerInternal = activityManagerInternal; in Vr2dDisplay()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java88 private ActivityManagerInternal mActivityManagerInternal; field in CrossProfileAppsServiceImplTest
669 return mActivityManagerInternal; in getActivityManagerInternal()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java116 private final ActivityManagerInternal mActivityManagerInternal; field in Owners
160 mActivityManagerInternal = activityManagerInternal; in Owners()
228 mActivityManagerInternal.setDeviceOwnerUid(uid); in pushToActivityTaskManagerLocked()
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java89 ActivityManagerInternal mActivityManagerInternal; field in AppStateTracker
421 mActivityManagerInternal = Objects.requireNonNull(injectActivityManagerInternal()); in onSystemServicesReady()
1158 final boolean ret = mActivityManagerInternal.isUidActive(uid); in isUidActiveSynced()
DBatteryService.java189 private ActivityManagerInternal mActivityManagerInternal; field in BatteryService
206 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in BatteryService()
391 if (mActivityManagerInternal.isSystemReady()) { in shutdownIfNoPowerLocked()
412 if (mActivityManagerInternal.isSystemReady()) { in shutdownIfOverTempLocked()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java137 private final ActivityManagerInternal mActivityManagerInternal; field in LauncherAppsService.LauncherAppsImpl
160 mActivityManagerInternal = Objects.requireNonNull( in LauncherAppsImpl()
DShortcutService.java333 private final ActivityManagerInternal mActivityManagerInternal; field in ShortcutService
456 mActivityManagerInternal = Objects.requireNonNull( in ShortcutService()
572 return isProcessStateForeground(mActivityManagerInternal.getUidProcessState(uid)); in isUidForegroundLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java247 private ActivityManagerInternal mActivityManagerInternal; field in NetworkPolicyManagerServiceTest
309 mActivityManagerInternal = addLocalServiceMock(ActivityManagerInternal.class); in registerLocalServices()
1363 verify(mActivityManagerInternal).notifyNetworkPolicyRulesUpdated(UID_A, procStateSeq);
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java332 private final ActivityManagerInternal mActivityManagerInternal; field in UserBackupManagerService
551 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in UserBackupManagerService()
1642 mActivityManagerInternal.clearPendingBackup(mUserId); in bindToAgentSynchronous()
2441 && mActivityManagerInternal.isAppForeground( in beginFullBackup()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java340 private ActivityManagerInternal mActivityManagerInternal; field in AppOpsService
538 } else if (mActivityManagerInternal != null in evalMode()
539 && mActivityManagerInternal.isPendingTopUid(uid)) { in evalMode()
578 if (mActivityManagerInternal != null in evalMode()
579 && mActivityManagerInternal.isPendingTopUid(uid)) { in evalMode()
587 if (mActivityManagerInternal != null in evalMode()
588 && mActivityManagerInternal.isPendingTopUid(uid)) { in evalMode()
1748 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in systemReady()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java329 private final ActivityManagerInternal mActivityManagerInternal; field in QuotaController
493 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in QuotaController()
543 if (mActivityManagerInternal.getUidProcessState(uid) <= ActivityManager.PROCESS_STATE_TOP) { in prepareForExecutionLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java283 ActivityManagerInternal mActivityManagerInternal;
1404 mActivityManagerInternal = Objects.requireNonNull(
2289 final boolean appIsBad = mActivityManagerInternal.isAppBad(service.applicationInfo);
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java356 ActivityManagerInternal mActivityManagerInternal; field in PhoneWindowManager
805 mActivityManagerInternal.prepareForPossibleShutdown();
1728 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in init()
4284 if (mActivityManagerInternal.isSystemReady()) { in dispatchMediaKeyWithWakeLockToAudioService()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java234 private ActivityManagerInternal mActivityManagerInternal; field in AppWidgetServiceImpl
278 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in systemServicesReady()
3661 final int procState = mActivityManagerInternal.getUidProcessState(callingUid); in noteAppWidgetTapped()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java577 private ActivityManagerInternal mActivityManagerInternal; field in NetworkPolicyManagerService
812 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in initService()
4788 mActivityManagerInternal.notifyNetworkPolicyRulesUpdated(uid, procStateSeq); in handleUidChanged()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java503 private final ActivityManagerInternal mActivityManagerInternal; field in AudioService
688 mActivityManagerInternal = LocalServices.getService(ActivityManagerInternal.class); in AudioService()
4775 if (mActivityManagerInternal.isSystemReady()) { in broadcastVibrateSetting()