Home
last modified time | relevance | path

Searched refs:mAm (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DActivityManagerPermissionTests.java31 IActivityManager mAm; field in ActivityManagerPermissionTests
36 mAm = ActivityManagerNative.getDefault(); 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/cmds/am/src/com/android/commands/am/
DAm.java99 private IActivityManager mAm; field in Am
373 mAm = ActivityManagerNative.getDefault(); in onRun()
374 if (mAm == null) { in onRun()
533 ComponentName cn = mAm.startService(null, intent, intent.getType(),
551 int result = mAm.stopService(null, intent, intent.getType(), mUserId);
572 mimeType = mAm.getProviderMimeType(intent.getData(), mUserId);
596 mAm.forceStopPackage(packageName, mUserId);
630 result = mAm.startActivityAndWait(null, null, intent, mimeType,
635 res = mAm.startActivityAsUser(null, null, intent, mimeType,
727 mAm.unhandledBack();
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java122 final ActivityManagerService mAm; field in ActiveServices
164 synchronized (mAm) {
202 synchronized (mAm) { in handleMessage()
265 mAm.backgroundServicesFinishedLocked(mUserId); in rescheduleDelayedStarts()
271 mAm = service; in ActiveServices()
296 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMap()
314 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in startServiceLocked()
340 if (!mAm.mUserController.exists(r.userId)) { in startServiceLocked()
350 final int allowed = mAm.checkAllowBackgroundLocked( in startServiceLocked()
364 NeededUriGrants neededGrants = mAm.checkGrantUriPermissionFromIntentLocked( in startServiceLocked()
[all …]
DNativeCrashListener.java55 final ActivityManagerService mAm; field in NativeCrashListener
86 mAm.handleApplicationCrashInner("native_crash", mApp, mApp.processName, ci); in run()
99 mAm = am; in NativeCrashListener()
225 synchronized (mAm.mPidsSelfLocked) { in consumeNativeCrashData()
226 pr = mAm.mPidsSelfLocked.get(pid); in consumeNativeCrashData()
263 synchronized (mAm) { in consumeNativeCrashData()
DProcessStatsService.java65 final ActivityManagerService mAm; field in ProcessStatsService
82 mAm = am; in ProcessStatsService()
89 synchronized (mAm) { in ProcessStatsService()
435 mAm.mContext.enforceCallingOrSelfPermission(
438 synchronized (mAm) {
467 mAm.mContext.enforceCallingOrSelfPermission(
471 synchronized (mAm) {
539 synchronized (mAm) {
605 if (mAm.checkCallingPermission(android.Manifest.permission.DUMP)
755 synchronized (mAm) {
[all …]
DProviderMap.java46 private final ActivityManagerService mAm; field in ProviderMap
59 mAm = am; in ProviderMap()
330 synchronized (mAm) { in dumpProvider()
391 synchronized (mAm) { in dumpProvider()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java77 final IActivityManager mAm; field in VoiceInteractionSessionConnection
179 mAm = ActivityManagerNative.getDefault(); in VoiceInteractionSessionConnection()
185 permOwner = mAm.newUriPermissionOwner("voicesession:" in VoiceInteractionSessionConnection()
235 isAssistDataAllowed = mAm.isAssistDataAllowedOnCurrentActivity(); in showLocked()
262 if (mAm.requestAssistContextExtras(ActivityManager.ASSIST_CONTEXT_FULL, in showLocked()
334 mAm.checkGrantUriPermission(srcUid, null, ContentProvider.getUriWithoutUserId(uri), in grantUriPermission()
339 mAm.grantUriPermissionFromOwner(mPermissionOwner, srcUid, destPkg, in grantUriPermission()
459 mAm.revokeUriPermissionFromOwner(mPermissionOwner, null, in hideLocked()
467 mAm.finishVoiceTask(mSession); in hideLocked()
494 mAm.finishVoiceTask(mSession); in cancelLocked()
DVoiceInteractionManagerServiceImpl.java64 final IActivityManager mAm; field in VoiceInteractionManagerServiceImpl
118 mAm = ActivityManagerNative.getDefault(); in VoiceInteractionManagerServiceImpl()
195 return mAm.startVoiceActivity(mComponent.getPackageName(), callingPid, callingUid, in startVoiceActivityLocked()
209 mAm.setVoiceKeepAwake(mActiveSession.mSession, keepAwake); in setKeepAwakeLocked()
221 mAm.closeSystemDialogs(CLOSE_REASON_VOICE_INTERACTION); in closeSystemDialogsLocked()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java74 private IActivityManager mAm; field in AppLaunch
96 mAm = ActivityManagerNative.getDefault(); in testMeasureStartUpTime()
303 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in closeApp()
358 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in run()
363 mimeType = mAm.getProviderMimeType(mLaunchIntent.getData(), in run()
367 mResult = mAm.startActivityAndWait(null, null, mLaunchIntent, mimeType, in run()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DSystemServicesProxy.java117 ActivityManager mAm; field in SystemServicesProxy
204 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in SystemServicesProxy()
272 if (mAm == null) return null; in getRecentTasks()
319 tasks = mAm.getRecentTasksForUser(numTasksToQuery, flags, userId); in getRecentTasks()
363 List<ActivityManager.RunningTaskInfo> tasks = mAm.getRunningTasks(1); in getRunningTask()
558 if (mAm == null) return null; in getTaskThumbnail()
590 if (mAm == null) { in getThumbnail()
594 ActivityManager.TaskThumbnail taskThumbnail = mAm.getTaskThumbnail(taskId); in getThumbnail()
630 if (mAm == null) return; in removeTask()
637 mAm.removeTask(taskId); in removeTask()
[all …]
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java61 private final IActivityManager mAm; field in ClipboardService
99 mAm = ActivityManagerNative.getDefault(); in ClipboardService()
105 permOwner = mAm.newUriPermissionOwner("clipboard"); in ClipboardService()
315 mAm.checkGrantUriPermission(uid, null, ContentProvider.getUriWithoutUserId(uri), in checkUriOwnerLocked()
346 mAm.grantUriPermissionFromOwner(mPermissionOwner, Process.myUid(), pkg, in grantUriLocked()
398 mAm.revokeUriPermissionFromOwner(mPermissionOwner, uri, in revokeUriLocked()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java69 private IActivityManager mAm; field in MemoryUsageTest
87 mAm = ActivityManagerNative.getDefault(); in testMemory()
316 mimeType = mAm.getProviderMimeType(mLaunchIntent.getData(), in run()
320 mAm.startActivityAndWait(null, null, mLaunchIntent, mimeType, in run()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java66 ActivityManager mAm; field in ActivityTestMain
136 mAm.moveTaskToFront(task.id, ActivityManager.MOVE_TASK_WITH_HOME); in addThumbnail()
151 mAm.removeTask(task.id); in addThumbnail()
166 mAm = getSystemService(ActivityManager.class); in onCreate()
598 List<ActivityManager.RecentTaskInfo> recents = mAm.getRecentTasks(10, in buildUi()
603 ActivityManager.TaskThumbnail tt = mAm.getTaskThumbnail(r.persistentId); in buildUi()
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java83 IAccountManager mAm; field in Pm
111 mAm = IAccountManager.Stub.asInterface(ServiceManager.getService(Context.ACCOUNT_SERVICE)); in run()
942 mAm.addSharedAccountsFromParentUser(parentUserId, userId); in runCreateUser()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java229 private IActivityManager mAm; field in NotificationManagerService
914 mAm = ActivityManagerNative.getDefault(); in onStart()
3064 mAm.setProcessForeground(mForegroundToken, pid, toastCount > 0); in keepProcessAliveLocked()