/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | ActivityManagerPermissionTests.java | 31 IActivityManager mAm; field in ActivityManagerPermissionTests 36 mAm = ActivityManager.getService(); in setUp() 42 mAm.moveTaskToFront(0, 0, null); in testREORDER_TASKS() 52 mAm.moveTaskBackwards(-1); in testREORDER_TASKS() 65 mAm.updateConfiguration(new Configuration()); in testCHANGE_CONFIGURATION() 78 mAm.setDebugApp(null, false, false); in testSET_DEBUG_APP() 91 mAm.setProcessLimit(10); in testSET_PROCESS_LIMIT() 104 mAm.setAlwaysFinish(false); in testALWAYS_FINISH() 117 mAm.signalPersistentProcesses(-1); in testSIGNAL_PERSISTENT_PROCESSES() 130 mAm.unhandledBack(); in testFORCE_BACK() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 124 final ActivityManagerService mAm; field in ActiveServices 171 synchronized (mAm) { 184 synchronized (mAm) { in stopForegroundServicesForUidPackage() 271 synchronized (mAm) { in handleMessage() 337 mAm.backgroundServicesFinishedLocked(mUserId); in rescheduleDelayedStartsLocked() 343 mAm = service; in ActiveServices() 373 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMapLocked() 384 final int mode = mAm.mAppOpsService.checkOperation( in appRestrictedAnyInBackground() 397 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in startServiceLocked() 422 if (!mAm.mUserController.exists(r.userId)) { in startServiceLocked() [all …]
|
D | ProcessStatsService.java | 71 final ActivityManagerService mAm; field in ProcessStatsService 92 mAm = am; in ProcessStatsService() 99 synchronized (mAm) { in ProcessStatsService() 241 mAm.requestPssAllProcsLocked(SystemClock.uptimeMillis(), true, false); in writeStateLocked() 456 mAm.mContext.enforceCallingOrSelfPermission( 459 synchronized (mAm) { 488 mAm.mContext.enforceCallingOrSelfPermission( 492 synchronized (mAm) { 560 synchronized (mAm) { 631 if (!com.android.internal.util.DumpUtils.checkDumpAndUsageStatsPermission(mAm.mContext, [all …]
|
D | NativeCrashListener.java | 54 final ActivityManagerService mAm; field in NativeCrashListener 85 mAm.handleApplicationCrashInner("native_crash", mApp, mApp.processName, ci); in run() 98 mAm = am; in NativeCrashListener() 224 synchronized (mAm.mPidsSelfLocked) { in consumeNativeCrashData() 225 pr = mAm.mPidsSelfLocked.get(pid); in consumeNativeCrashData() 262 synchronized (mAm) { in consumeNativeCrashData()
|
D | ProviderMap.java | 53 private final ActivityManagerService mAm; field in ProviderMap 66 mAm = am; in ProviderMap() 338 synchronized (mAm) { in getProvidersForName() 385 synchronized (mAm) { in dumpProvider()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 71 private ActivityManager mAm; field in UserLifecycleTests 83 mAm = context.getSystemService(ActivityManager.class); in setUp() 119 final int startUser = mAm.getCurrentUser(); in switchUser() 155 final int startUser = mAm.getCurrentUser(); in lockedBootCompleted() 161 mAm.switchUser(userInfo.id); in lockedBootCompleted() 176 UserInfo.FLAG_MANAGED_PROFILE, mAm.getCurrentUser()); in managedProfileUnlock() 194 final int startUser = mAm.getCurrentUser(); in ephemeralUserStopped() 212 mAm.switchUser(startUser); in ephemeralUserStopped() 227 UserInfo.FLAG_MANAGED_PROFILE, mAm.getCurrentUser()); in managedProfileStopped() 245 mAm.switchUser(userId); in switchUser()
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
D | Am.java | 41 private IActivityManager mAm; field in Am 65 mAm = ActivityManager.getService(); in onRun() 66 if (mAm == null) { in onRun() 141 mAm.asBinder().shellCommand(FileDescriptor.in, FileDescriptor.out, FileDescriptor.err, in runAmCmd() 152 Instrument instrument = new Instrument(mAm, mPm); in runInstrument()
|
D | Instrument.java | 64 private final IActivityManager mAm; field in Instrument 91 mAm = am; in Instrument() 376 if (!mAm.asBinder().pingBinder()) { in waitForFinish() 484 if (!mAm.startInstrumentation(cn, profileFile, flags, args, watcher, connection, userId, in run()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | MemoryPowerCalculator.java | 37 double mAm = (mAatRail * timeMs) / (1000*60); in calculateRemaining() local 42 Log.d(TAG, "Calculated mAm " + mAm); in calculateRemaining() 44 totalMah += mAm/60; in calculateRemaining()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionSessionConnection.java | 83 final IActivityManager mAm; field in VoiceInteractionSessionConnection 142 mAm = ActivityManager.getService(); in VoiceInteractionSessionConnection() 146 mAssistDataRequester = new AssistDataRequester(mContext, mAm, mIWindowManager, in VoiceInteractionSessionConnection() 151 permOwner = mAm.newUriPermissionOwner("voicesession:" in VoiceInteractionSessionConnection() 305 mAm.checkGrantUriPermission(srcUid, null, ContentProvider.getUriWithoutUserId(uri), in grantUriPermission() 310 mAm.grantUriPermissionFromOwner(mPermissionOwner, srcUid, destPkg, in grantUriPermission() 355 mAm.revokeUriPermissionFromOwner(mPermissionOwner, null, in hideLocked() 362 mAm.finishVoiceTask(mSession); in hideLocked() 390 mAm.finishVoiceTask(mSession); in cancelLocked()
|
D | VoiceInteractionManagerServiceImpl.java | 73 final IActivityManager mAm; field in VoiceInteractionManagerServiceImpl 128 mAm = ActivityManager.getService(); in VoiceInteractionManagerServiceImpl() 209 return mAm.startVoiceActivity(mComponent.getPackageName(), callingPid, callingUid, in startVoiceActivityLocked() 232 return mAm.startAssistantActivity(mComponent.getPackageName(), callingPid, callingUid, in startAssistantActivityLocked() 245 mAm.setVoiceKeepAwake(mActiveSession.mSession, keepAwake); in setKeepAwakeLocked() 257 mAm.closeSystemDialogs(CLOSE_REASON_VOICE_INTERACTION); in closeSystemDialogsLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | AssistDataRequesterTest.java | 89 private IActivityManager mAm; field in AssistDataRequesterTest 106 mAm = mock(IActivityManager.class); in setUp() 113 mDataRequester = new AssistDataRequester(mContext, mAm, mWm, mAppOpsManager, mCallbacks, in setUp() 128 }).when(mAm).requestAssistContextExtras(anyInt(), any(), any(), any(), anyBoolean(), in setUp() 145 doReturn(currentActivityAssistAllowed).when(mAm).isAssistDataAllowedOnCurrentActivity(); in setupMocks() 243 doReturn(false).when(mAm).requestAssistContextExtras(anyInt(), any(), any(), any(), in testDisallowAssistContextExtras_expectNullDataCallbacks()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 57 @Mock AlarmManager mAm; field in SnoozeHelperTest 67 mSnoozeHelper.setAlarmManager(mAm); in setUp() 75 verify(mAm, times(1)).setExactAndAllowWhileIdle( in testSnoozeForTime() 87 verify(mAm, never()).setExactAndAllowWhileIdle( 106 verify(mAm, times(2)).cancel(any(PendingIntent.class)); 130 verify(mAm, times(3)).cancel(any(PendingIntent.class)); 156 verify(mAm, times(3)).cancel(any(PendingIntent.class));
|
D | NotificationRecordTest.java | 657 record.mAm = am; in testCalculateGrantableUris_PappProvided() 679 record.mAm = am; in testCalculateGrantableUris_PuserOverridden() 695 record.mAm = am; in testCalculateGrantableUris_prePappProvided()
|
D | NotificationTest.java | 66 ActivityManager mAm; field in NotificationTest
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 145 private final IActivityManager mAm; field in ClipboardService 161 mAm = ActivityManager.getService(); in ClipboardService() 167 permOwner = mAm.newUriPermissionOwner("clipboard"); in ClipboardService() 500 mAm.checkGrantUriPermission(sourceUid, null, in checkUriOwnerLocked() 534 mAm.grantUriPermissionFromOwner(mPermissionOwner, sourceUid, targetPkg, in grantUriLocked() 591 mAm.revokeUriPermissionFromOwner(mPermissionOwner, in revokeUriLocked() 634 return mAm.isAppForeground(callingUid); in clipboardAccessAllowed()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SnoozeHelper.java | 69 private AlarmManager mAm; field in SnoozeHelper 87 mAm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in SnoozeHelper() 323 mAm.cancel(pi); in scheduleRepost() 326 mAm.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, time, pi); in scheduleRepost() 365 mAm = am; in setAlarmManager()
|
D | NotificationRecord.java | 98 IActivityManager mAm; field in NotificationRecord 178 mAm = ActivityManager.getService(); in NotificationRecord() 1074 mAm.checkGrantUriPermission(sourceUid, null, in visitGrantableUri()
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
D | MemoryUsageTest.java | 68 private IActivityManager mAm; field in MemoryUsageTest 86 mAm = ActivityManager.getService(); in testMemory() 315 mimeType = mAm.getProviderMimeType(mLaunchIntent.getData(), in run() 319 mAm.startActivityAndWait(null, null, mLaunchIntent, mimeType, in run()
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 62 private final IActivityManager mAm; field in KeyguardManager 334 mAm = ActivityManager.getService(); in KeyguardManager() 517 mAm.dismissKeyguard(activity.getActivityToken(), new IKeyguardDismissCallback.Stub() { in requestDismissKeyguard()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
D | SystemServicesProxy.java | 95 ActivityManager mAm; field in SystemServicesProxy 128 mCurrentUserId = mAm.getCurrentUser(); 134 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in SystemServicesProxy() 147 mCurrentUserId = mAm.getCurrentUser(); in SystemServicesProxy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | GarbageMonitor.java | 78 private final ActivityManager mAm; field in GarbageMonitor 94 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in GarbageMonitor() 171 Debug.MemoryInfo[] dinfos = mAm.getProcessMemoryInfo(mPidsArray); in update()
|
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 125 private IActivityManager mAm; field in AppLaunch 166 mAm = ActivityManager.getService(); in testMeasureStartUpTime() 617 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in closeApp() 733 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in run()
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 127 private IActivityManager mAm; field in AppLaunch 174 mAm = ActivityManager.getService(); in testMeasureStartUpTime() 647 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in closeApp() 758 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in run()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 66 ActivityManager mAm; field in ActivityTestMain 126 mAm = getSystemService(ActivityManager.class); in onCreate() 558 List<ActivityManager.RecentTaskInfo> recents = mAm.getRecentTasks(10, in buildUi()
|