/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ActivityManagerInternalTest.java | 58 private ActivityManagerInternal mAmi; field in ActivityManagerInternalTest 71 mAmi = mAms.new LocalService(); in setUp() 77 mAmi.notifyNetworkPolicyRulesUpdated(TEST_UID1, TEST_PROC_STATE_SEQ1); in testNotifyNetworkPolicyRulesUpdated() 109 mAmi.notifyNetworkPolicyRulesUpdated(TEST_UID1, expectedProcStateSeq); in verifyNetworkUpdatedProcStateSeq()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUidStateTrackerTest.java | 78 ActivityManagerInternal mAmi; field in AppOpsUidStateTrackerTest 100 mIntf = new AppOpsUidStateTrackerImpl(mAmi, mExecutor, mClock, mConstants, in setUp() 437 doReturn(true).when(mAmi).isPendingTopUid(eq(UID)); in testPendingTop() 454 doReturn(true).when(mAmi).isTempAllowlistedForFgsWhileInUse(eq(UID)); in testTempAllowlist()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 433 ActivityManagerInternal mAmi; field in NotificationManagerServiceTest 585 LocalServices.addService(ActivityManagerInternal.class, mAmi); in setUp() 647 when(mAmi.getCurrentUserId()).thenReturn(mUserId); in setUp() 753 mAmi, mToastRateLimiter, mPermissionHelper, mock(UsageStatsManagerInternal.class), in initNMS() 1648 when(mAmi.applyForegroundServiceNotification( in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 1672 when(mAmi.applyForegroundServiceNotification( in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 1753 when(mAmi.applyForegroundServiceNotification( in testEnqueuedBlockedNotifications_blockedAppForegroundService() 2078 when(mAmi.applyForegroundServiceNotification( in testEnqueueNotificationWithTag_FgsAddsFlags_dismissalAllowed() 2525 when(mAmi.applyForegroundServiceNotification( in testCancelAllNotifications_IgnoreForegroundService() 2542 when(mAmi.applyForegroundServiceNotification( in testCancelAllNotifications_FgsFlag_NoFgs_Allowed() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 604 private ActivityManagerInternal mAmi; field in NotificationManagerService 2428 mAmi = ami; in init() 2882 int[] userIds = mUmInternal.getProfileIds(mAmi.getCurrentUserId(), true); 3386 mAmi.onForegroundServiceNotificationUpdate(shown, notification, id, pkg, userId); 4260 if (mAmi.hasForegroundServiceNotification(pkg, userId, channelId)) { 4862 ? userHandle.getIdentifier() : mAmi.getCurrentUserId(); 4914 ? userHandle.getIdentifier() : mAmi.getCurrentUserId(); 6720 summaryNotification.contentIntent = mAmi.getPendingIntentActivityAsApp( 7395 final ServiceNotificationPolicy policy = mAmi.applyForegroundServiceNotification( 7532 mAmi.setPendingIntentAllowlistDuration(pendingIntent.getTarget(), [all …]
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 327 private final ActivityManagerInternal mAmi; field in SyncManager 746 mAmi = LocalServices.getService(ActivityManagerInternal.class); in SyncManager() 1275 if (mAmi.isAppStartModeDisabled(owningUid, owningPackage)) { in computeSyncable()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 3112 ActivityManagerInternal mAmi = LocalServices.getService(ActivityManagerInternal.class); 3113 if (Thread.holdsLock(mLock) || mAmi == null) { 3121 mAmi.killApplicationSync(pkgName, appId, userId, reason, exitInfoReason); 3122 blocker.waitAppProcessGone(mAmi, snapshotComputer(), mUserManager, pkgName);
|