Home
last modified time | relevance | path

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

12

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DActivityManagerPermissionTests.java33 IActivityManager mAm; field in ActivityManagerPermissionTests
38 mAm = ActivityManager.getService(); in setUp()
44 mAm.moveTaskToFront(null, null, 0, 0, null); in testREORDER_TASKS()
70 mAm.setDebugApp(null, false, false); in testSET_DEBUG_APP()
83 mAm.setProcessLimit(10); in testSET_PROCESS_LIMIT()
96 mAm.setAlwaysFinish(false); in testALWAYS_FINISH()
109 mAm.signalPersistentProcesses(-1); in testSIGNAL_PERSISTENT_PROCESSES()
122 mAm.unhandledBack(); in testFORCE_BACK()
135 mAm.setActivityController(null, false); in testSET_ACTIVITY_WATCHER()
148 mAm.shutdown(0); in testSHUTDOWN()
[all …]
/frameworks/base/media/java/android/media/
DSpatializer.java53 private final @NonNull AudioManager mAm; field in Spatializer
63 mAm = Objects.requireNonNull(am); in Spatializer()
80 return mAm.getService().isSpatializerEnabled(); in isEnabled()
104 return mAm.getService().isSpatializerAvailable(); in isAvailable()
128 return mAm.getService().isSpatializerAvailableForDevice(device); in isAvailableForDevice()
146 return mAm.getService().hasHeadTracker(device); in hasHeadTracker()
164 mAm.getService().setHeadTrackerEnabled(enabled, device); in setHeadTrackerEnabled()
181 return mAm.getService().isHeadTrackerEnabled(device); in isHeadTrackerEnabled()
197 return mAm.getService().isHeadTrackerAvailable(); in isHeadTrackerAvailable()
373 level = mAm.getService().getSpatializerImmersiveAudioLevel(); in getImmersiveAudioLevel()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java388 final ActivityManagerService mAm; field in ActiveServices
557 synchronized (mAm) {
577 synchronized (mAm) { in updateBackgroundRestrictedForUidPackage()
578 mAm.mProcessList.updateBackgroundRestrictedForUidPackageLocked( in updateBackgroundRestrictedForUidPackage()
682 synchronized (mAm) { in handleMessage()
690 synchronized (mAm) { in handleMessage()
759 mAm.backgroundServicesFinishedLocked(mUserId); in rescheduleDelayedStartsLocked()
765 mAm = service; in ActiveServices()
805 mAm.mContext.getPackageManager().getAttentionServicePackageName(); in setAllowListWhileInUsePermissionInFgs()
810 mAm.mContext.getPackageManager().getSystemCaptionsServicePackageName(); in setAllowListWhileInUsePermissionInFgs()
[all …]
DNativeCrashListener.java57 final ActivityManagerService mAm; field in NativeCrashListener
91 mAm.handleApplicationCrashInner( in run()
106 mAm = am; in NativeCrashListener()
242 synchronized (mAm.mPidsSelfLocked) { in consumeNativeCrashData()
243 pr = mAm.mPidsSelfLocked.get(pid); in consumeNativeCrashData()
287 synchronized (mAm) { in consumeNativeCrashData()
288 synchronized (mAm.mProcLock) { in consumeNativeCrashData()
DLowMemDetector.java40 private final ActivityManagerService mAm; field in LowMemDetector
63 mAm = am; in LowMemDetector()
DProviderMap.java54 private final ActivityManagerService mAm; field in ProviderMap
67 mAm = am; in ProviderMap()
339 synchronized (mAm) { in getProvidersForName()
355 mAm.mOomAdjuster.mCachedAppOptimizer.enableFreezer(false); in dumpProvider()
372 mAm.mOomAdjuster.mCachedAppOptimizer.enableFreezer(true); in dumpProvider()
392 synchronized (mAm) { in dumpProvider()
DCachedAppOptimizer.java370 private final ActivityManagerService mAm; field in CachedAppOptimizer
443 super(mAm.mHandler); in SettingsContentObserver()
674 mAm = am; in CachedAppOptimizer()
697 mAm.mContext.getContentResolver().registerContentObserver( in init()
1023 synchronized (mAm) { in enableFreezer()
1028 mAm.mProcessList.forEachLruProcessesLOSP(true, process -> { in enableFreezer()
1141 final String configOverride = Settings.Global.getString(mAm.mContext.getContentResolver(), in updateUseFreezer()
1158 mAm.mHandler.post(() -> { in updateUseFreezer()
2208 mAm.reportUidFrozenStateChanged(uids, frozenStates); in reportOneUidFrozenStateChanged()
2222 mAm.onProcessFreezableChangedLocked(app); in reportProcessFreezableChangedLocked()
[all …]
DComponentAliasResolver.java70 private final ActivityManagerService mAm; field in ComponentAliasResolver
104 mAm = service; in ComponentAliasResolver()
164 mPackageMonitor.register(mAm.mContext, UserHandle.ALL, in update()
DProcessStatsService.java77 final ActivityManagerService mAm; field in ProcessStatsService
125 mAm = am; in ProcessStatsService()
320 mAm.mHandler.post(() -> { in scheduleRequestPssAllProcs()
321 synchronized (mAm.mProcLock) { in scheduleRequestPssAllProcs()
322 mAm.mAppProfiler.requestPssAllProcsLPr( in scheduleRequestPssAllProcs()
701 return mAm.mConstants.MIN_ASSOC_LOG_DURATION;
931 if (!com.android.internal.util.DumpUtils.checkDumpAndUsageStatsPermission(mAm.mContext,
1137 mAm.mAppProfiler.setTestPssMode(true);
1141 mAm.mAppProfiler.setTestPssMode(false);
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DTimeToLiveHelperTest.java59 AlarmManager mAm; field in TimeToLiveHelperTest
64 mContext.addMockSystemService(AlarmManager.class, mAm); in setUp()
90 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq(2L), any()); in testTimeout()
100 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq(2L), captor.capture()); in testTimeoutExpires()
116 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq(2L), captorSet.capture()); in testTimeoutExpires_twoEntries()
122 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq(3L), captorNewSet.capture()); in testTimeoutExpires_twoEntries()
132 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq(3L), any()); in testTimeout_earlierEntryAddedSecond()
142 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq(2L), captorSet.capture()); in testTimeout_earlierEntryAddedSecond()
147 verify(mAm).cancel(captorCancel.capture()); in testTimeout_earlierEntryAddedSecond()
162 verify(mAm, never()).cancel((PendingIntent) any()); in testTimeout_earlierEntryAddedFirst()
[all …]
DSnoozeHelperTest.java86 @Mock AlarmManager mAm; field in SnoozeHelperTest
96 mSnoozeHelper.setAlarmManager(mAm); in setUp()
115 verify(mAm, never()).setExactAndAllowWhileIdle(anyInt(), anyLong(), any()); in testWriteXMLformattedCorrectly_testReadingCorrectTime()
238 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq((long) 10), captor.capture()); in testScheduleRepostsForPersistedNotifications()
242 verify(mAm).setExactAndAllowWhileIdle(anyInt(), eq((long) 15), captor2.capture()); in testScheduleRepostsForPersistedNotifications()
254 verify(mAm).setExactAndAllowWhileIdle(anyInt(), anyLong(), captor.capture()); in testLongTagPersistedNotification()
273 verify(mAm, times(2)).setExactAndAllowWhileIdle(anyInt(), anyLong(), captor.capture()); in testLongTagPersistedNotification()
282 verify(mAm, times(1)).setExactAndAllowWhileIdle( in testSnoozeForTime()
295 verify(mAm, times(1)).setExactAndAllowWhileIdle(
305 verify(mAm, never()).setExactAndAllowWhileIdle(
[all …]
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java119 private ActivityManager mAm; field in UserLifecycleTests
138 mAm = context.getSystemService(ActivityManager.class); in setUp()
151 if (mAm.getCurrentUser() != UserHandle.USER_SYSTEM) { in setUp()
152 Log.w(TAG, "WARNING: Tests are being run from user " + mAm.getCurrentUser() in setUp()
467 final int startUser = mAm.getCurrentUser(); in switchUser()
508 final int startUser = mAm.getCurrentUser(); in switchUser_stopped()
549 attestFalse("Failed to stop user " + userId, mAm.isUserRunning(userId)); in switchUser_stopped_realistic()
575 attestFalse("Failed to stop user " + testUser, mAm.isUserRunning(testUser)); in switchUser_stopped_staticWallpaper()
586 final int startUser = mAm.getCurrentUser(); in switchUser_running()
703 final int startUser = mAm.getCurrentUser(); in lockedBootCompleted()
[all …]
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java41 private IActivityManager mAm; field in Am
58 mAm = ActivityManager.getService(); in svcInit()
59 if (mAm == null) { in svcInit()
146 mAm.asBinder().shellCommand(FileDescriptor.in, FileDescriptor.out, FileDescriptor.err, in runAmCmd()
157 Instrument instrument = new Instrument(mAm, mPm); in runInstrument()
DInstrument.java80 private final IActivityManager mAm; field in Instrument
110 mAm = am; in Instrument()
411 if (!mAm.asBinder().pingBinder()) { in waitForFinish()
541 if (!mAm.startInstrumentation(cn, profileFile, flags, args, watcher, connection, userId, in run()
/frameworks/av/services/mediaresourcemanager/
DUidObserver.cpp60 mAm.unregisterUidObserver(this); in stop()
61 mAm.unlinkToDeath(this); in stop()
90 status_t res = mAm.linkToDeath(this); in registerWithActivityManager()
92 mAm.registerUidObserver(this, ActivityManager::UID_OBSERVER_GONE, in registerWithActivityManager()
DUidObserver.h106 ActivityManager mAm; variable
/frameworks/base/services/core/java/com/android/server/notification/
DTimeToLiveHelper.java54 private final AlarmManager mAm; field in TimeToLiveHelper
62 mAm = context.getSystemService(AlarmManager.class); in TimeToLiveHelper()
144 mAm.cancel(pi); in cancelFirstAlarm()
151 mAm.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, in maybeScheduleFirstAlarm()
DSnoozeHelper.java87 private AlarmManager mAm; field in SnoozeHelper
114 mAm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in SnoozeHelper()
337 mAm.cancel(pi); in repost()
392 mAm.cancel(pi); in clearData()
416 mAm.cancel(pi); in clearData()
459 mAm.cancel(pi); in scheduleRepostAtTime()
461 mAm.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, time, pi); in scheduleRepostAtTime()
570 mAm = am; in setAlarmManager()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DVolumeHelperTest.java123 private AudioManager mAm; field in VolumeHelperTest
214 mAm = mContext.getSystemService(AudioManager.class); in setUp()
252 final int streamVolume = (mAm.getStreamMinVolume(streamType) + mAm.getStreamMaxVolume( in prepareAudioServiceState()
532 final int minIndex = mAm.getStreamMinVolume(STREAM_MUSIC); in setDeviceVolume_checkIndex()
533 final int maxIndex = mAm.getStreamMaxVolume(STREAM_MUSIC); in setDeviceVolume_checkIndex()
563 final int minIndex = mAm.getStreamMinVolume(STREAM_MUSIC); in configurablePreScaleAbsoluteVolume_checkIndex()
564 final int maxIndex = mAm.getStreamMaxVolume(STREAM_MUSIC); in configurablePreScaleAbsoluteVolume_checkIndex()
618 final int minIndex = mAm.getStreamMinVolume(STREAM_MUSIC); in disablePreScaleAbsoluteVolume_checkIndex()
619 final int maxIndex = mAm.getStreamMaxVolume(STREAM_MUSIC); in disablePreScaleAbsoluteVolume_checkIndex()
741 final int streamMinVolume = mAm.getStreamMinVolume(streamType) + 1; in circularNoMinMaxIncrementVolume()
[all …]
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java72 private IActivityManager mAm; field in MemoryUsageTest
91 mAm = ActivityManager.getService(); in testMemory()
321 mAm.getMimeTypeFilterAsync(mLaunchIntent.getData(), UserHandle.USER_CURRENT, in run()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java159 private IActivityManager mAm; field in AppLaunch
219 mAm = ActivityManager.getService(); in testMeasureStartUpTime()
1143 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in forceStopApp()
1155 mAm.killBackgroundProcesses(packageName, UserHandle.USER_CURRENT); in killBackgroundApp()
1276 mAm.forceStopPackage(packageName, UserHandle.USER_CURRENT); in run()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java64 ActivityManager mAm; field in ActivityTestMain
191 mAm = getSystemService(ActivityManager.class); in onCreate()
665 List<ActivityManager.RecentTaskInfo> recents = mAm.getRecentTasks(10, in buildUi()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceImpl.java118 final IActivityManager mAm; field in VoiceInteractionManagerServiceImpl
186 plistSlice = mAm.getHistoricalProcessExitReasons(packageName, 0, 1, mUser);
220 mAm = ActivityManager.getService(); in VoiceInteractionManagerServiceImpl()
507 mAm.closeSystemDialogs(CLOSE_REASON_VOICE_INTERACTION); in closeSystemDialogsLocked()
/frameworks/base/core/java/android/app/
DKeyguardManager.java86 private final IActivityManager mAm; field in KeyguardManager
615 mAm = ActivityManager.getService(); in KeyguardManager()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java175 private ActivityManagerInternal mAm; field in ContentCaptureManagerService
788 if (mAm == null) { in getAmInternal()
789 mAm = LocalServices.getService(ActivityManagerInternal.class); in getAmInternal()
792 return mAm; in getAmInternal()

12