/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | ActivityManagerPermissionTests.java | 32 IActivityManager mAm; field in ActivityManagerPermissionTests 37 mAm = ActivityManager.getService(); in setUp() 43 mAm.moveTaskToFront(null, null, 0, 0, null); in testREORDER_TASKS() 69 mAm.setDebugApp(null, false, false); in testSET_DEBUG_APP() 82 mAm.setProcessLimit(10); in testSET_PROCESS_LIMIT() 95 mAm.setAlwaysFinish(false); in testALWAYS_FINISH() 108 mAm.signalPersistentProcesses(-1); in testSIGNAL_PERSISTENT_PROCESSES() 121 mAm.unhandledBack(); in testFORCE_BACK() 134 mAm.setActivityController(null, false); in testSET_ACTIVITY_WATCHER() 147 mAm.shutdown(0); in testSHUTDOWN() [all …]
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 73 private ActivityManager mAm; field in UserLifecycleTests 85 mAm = context.getSystemService(ActivityManager.class); in setUp() 121 final int startUser = mAm.getCurrentUser(); in switchUser() 139 final int startUser = mAm.getCurrentUser(); in switchUser_stopped() 145 mAm.switchUser(testUser); in switchUser_stopped() 161 final int startUser = mAm.getCurrentUser(); in switchUser_running() 168 attestTrue("Failed to switch to user " + testUser, mAm.isUserRunning(testUser)); in switchUser_running() 198 final int startUser = mAm.getCurrentUser(); in lockedBootCompleted() 204 mAm.switchUser(userInfo.id); in lockedBootCompleted() 219 UserInfo.FLAG_MANAGED_PROFILE, mAm.getCurrentUser()); in managedProfileUnlock() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 135 final ActivityManagerService mAm; field in ActiveServices 182 synchronized (mAm) { 195 synchronized (mAm) { in stopForegroundServicesForUidPackage() 287 synchronized (mAm) { in handleMessage() 295 synchronized (mAm) { in handleMessage() 362 mAm.backgroundServicesFinishedLocked(mUserId); in rescheduleDelayedStartsLocked() 368 mAm = service; in ActiveServices() 398 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMapLocked() 409 final int mode = mAm.mAppOpsService.checkOperation( in appRestrictedAnyInBackground() 430 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in startServiceLocked() [all …]
|
D | NativeCrashListener.java | 53 final ActivityManagerService mAm; field in NativeCrashListener 84 mAm.handleApplicationCrashInner("native_crash", mApp, mApp.processName, ci); in run() 97 mAm = am; in NativeCrashListener() 223 synchronized (mAm.mPidsSelfLocked) { in consumeNativeCrashData() 224 pr = mAm.mPidsSelfLocked.get(pid); in consumeNativeCrashData() 261 synchronized (mAm) { in consumeNativeCrashData()
|
D | ProcessStatsService.java | 72 final ActivityManagerService mAm; field in ProcessStatsService 93 mAm = am; in ProcessStatsService() 100 synchronized (mAm) { in ProcessStatsService() 264 mAm.requestPssAllProcsLocked(SystemClock.uptimeMillis(), true, false); in writeStateLocked() 506 mAm.mContext.enforceCallingOrSelfPermission( 509 synchronized (mAm) { 547 mAm.mContext.enforceCallingOrSelfPermission( 627 mAm.mContext.enforceCallingOrSelfPermission( 631 synchronized (mAm) { 699 synchronized (mAm) { [all …]
|
D | LowMemDetector.java | 28 private final ActivityManagerService mAm; field in LowMemDetector 44 mAm = am; in LowMemDetector()
|
D | ProviderMap.java | 52 private final ActivityManagerService mAm; field in ProviderMap 65 mAm = am; in ProviderMap() 337 synchronized (mAm) { in getProvidersForName() 384 synchronized (mAm) { in dumpProvider()
|
D | AppCompactor.java | 129 private final ActivityManagerService mAm; field in AppCompactor 218 mAm = am; in AppCompactor() 541 synchronized (mAm) { in handleMessage() 746 synchronized (mAm) { in handleMessage()
|
/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 | 76 private final IActivityManager mAm; field in Instrument 101 mAm = am; in Instrument() 400 if (!mAm.asBinder().pingBinder()) { in waitForFinish() 517 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/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 58 @Mock AlarmManager mAm; field in SnoozeHelperTest 68 mSnoozeHelper.setAlarmManager(mAm); in setUp() 76 verify(mAm, times(1)).setExactAndAllowWhileIdle( in testSnoozeForTime() 88 verify(mAm, never()).setExactAndAllowWhileIdle( 107 verify(mAm, times(2)).cancel(any(PendingIntent.class)); 131 verify(mAm, times(3)).cancel(any(PendingIntent.class)); 157 verify(mAm, times(3)).cancel(any(PendingIntent.class)); 343 verify(mAm, times(4)).cancel(any(PendingIntent.class)); 372 verify(mAm, times(4)).cancel(any(PendingIntent.class));
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SnoozeHelper.java | 70 private AlarmManager mAm; field in SnoozeHelper 88 mAm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in SnoozeHelper() 321 mAm.cancel(pi); in clearData() 344 mAm.cancel(pi); in scheduleRepost() 347 mAm.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, time, pi); in scheduleRepost() 386 mAm = am; in setAlarmManager()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/ |
D | SystemServicesProxy.java | 94 ActivityManager mAm; field in SystemServicesProxy 128 mCurrentUserId = mAm.getCurrentUser(); 134 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in SystemServicesProxy() 148 mCurrentUserId = mAm.getCurrentUser(); in SystemServicesProxy()
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
D | MemoryUsageTest.java | 70 private IActivityManager mAm; field in MemoryUsageTest 89 mAm = ActivityManager.getService(); in testMemory() 319 mimeType = mAm.getProviderMimeType(mLaunchIntent.getData(), in run()
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 65 private final IActivityManager mAm; field in KeyguardManager 391 mAm = ActivityManager.getService(); in KeyguardManager()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionManagerServiceImpl.java | 78 final IActivityManager mAm; field in VoiceInteractionManagerServiceImpl 134 mAm = ActivityManager.getService(); in VoiceInteractionManagerServiceImpl() 331 mAm.closeSystemDialogs(CLOSE_REASON_VOICE_INTERACTION); in closeSystemDialogsLocked()
|
D | VoiceInteractionSessionConnection.java | 89 final IActivityManager mAm; field in VoiceInteractionSessionConnection 149 mAm = ActivityManager.getService(); in VoiceInteractionSessionConnection()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureManagerService.java | 102 private ActivityManagerInternal mAm; field in ContentCaptureManagerService 449 if (mAm == null) { in getAmInternal() 450 mAm = LocalServices.getService(ActivityManagerInternal.class); in getAmInternal() 453 return mAm; in getAmInternal()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | GarbageMonitor.java | 99 private final ActivityManager mAm; field in GarbageMonitor 118 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in GarbageMonitor() 197 Debug.MemoryInfo[] dinfos = mAm.getProcessMemoryInfo(mPidsArray); in update()
|
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 126 private IActivityManager mAm; field in AppLaunch 167 mAm = ActivityManager.getService(); in testMeasureStartUpTime() 618 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in closeApp() 734 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in run()
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 159 private IActivityManager mAm; field in AppLaunch 219 mAm = ActivityManager.getService(); in testMeasureStartUpTime() 1141 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in forceStopApp() 1153 mAm.killBackgroundProcesses(packageName, UserHandle.USER_CURRENT); in killBackgroundApp() 1274 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in run()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 63 ActivityManager mAm; field in ActivityTestMain 190 mAm = getSystemService(ActivityManager.class); in onCreate() 664 List<ActivityManager.RecentTaskInfo> recents = mAm.getRecentTasks(10, in buildUi()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PinnerService.java | 110 private final IActivityManager mAm; field in PinnerService 172 mAm = ActivityManager.getService(); in PinnerService() 289 mAm.registerUidObserver(new IUidObserver.Stub() { in registerUidListener()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartInterceptorTest.java | 89 private ActivityManagerService mAm; field in ActivityStartInterceptorTest
|