Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DAlarmManagerTest.java42 private AlarmManager mAm; field in AlarmManagerTest
89 mAm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setUp()
126 mAm.setExact(AlarmManager.RTC_WAKEUP, mWakeupTime, mSender); in testSetTypes()
138 mAm.setExact(AlarmManager.RTC, mWakeupTime, mSender); in testSetTypes()
150 mAm.setExact(AlarmManager.ELAPSED_REALTIME, mWakeupTime, mSender); in testSetTypes()
162 mAm.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, mWakeupTime, mSender); in testSetTypes()
178 mAm.set(AlarmManager.RTC, mWakeupTime, mSender); in testAlarmTriggersImmediatelyIfSetTimeIsNegative()
196 mAm.setWindow(AlarmManager.RTC_WAKEUP, windowStart, TEST_WINDOW_LENGTH, mSender); in testExactAlarmBatching()
197 mAm.setExact(AlarmManager.RTC_WAKEUP, exactStart, mSender2); in testExactAlarmBatching()
235 mAm.setRepeating(AlarmManager.RTC_WAKEUP, mWakeupTime, REPEAT_PERIOD, mSender); in testSetRepeating()
[all …]
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DUidImportanceListener.java28 final ActivityManager mAm; field in UidImportanceListener
40 mAm = context.getSystemService(ActivityManager.class); in UidImportanceListener()
59 mAm.addOnUidImportanceListener(this, mCutPoint); in register()
63 mAm.removeOnUidImportanceListener(this); in unregister()
DServiceProcessController.java48 final ActivityManager mAm; field in ServiceProcessController
81 mAm = mContext.getSystemService(ActivityManager.class); in ServiceProcessController()
201 int importance = mAm.getPackageImportance(mServicePackage); in ensureProcessGone()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsImportanceTests.java76 private ActivityManager mAm; field in AlertWindowsImportanceTests
88 mAm = context.getSystemService(ActivityManager.class); in setUp()
113 mAm = null; in tearDown()
190 actual = apiCaller.applyAsInt(mAm); in assertImportance()
DActivityManagerGetConfigTests.java71 ActivityManager mAm; field in ActivityManagerGetConfigTests
77 mAm = mContext.getSystemService(ActivityManager.class); in setUp()
306 mAm.getTotalRam(), deviceConfig.totalRam); in checkDeviceConfig()
308 mAm.isLowRamDevice(), deviceConfig.lowRam); in checkDeviceConfig()
315 ConfigurationInfo configInfo = mAm.getDeviceConfigurationInfo(); in checkDeviceConfig()
DPrereleaseSdkTest.java47 () -> mAm.alwaysShowUnsupportedCompileSdkWarning(MAIN_ACTIVITY)); in setUp()
DConfigChangeTests.java365 () -> mAm.scheduleApplicationInfoChanged(packages, in updateApplicationInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DLockTaskUiTestActivity.java91 private ActivityManager mAm; field in LockTaskUiTestActivity
105 mAm = getSystemService(ActivityManager.class); in onCreate()
240 if (mAm.getLockTaskModeState() == ActivityManager.LOCK_TASK_MODE_LOCKED) { in startLockTaskMode()
278 if (mAm.getLockTaskModeState() == ActivityManager.LOCK_TASK_MODE_NONE) { in stopLockTaskMode()
/cts/tests/tests/keystore/src/android/server/am/
DActivityManagerTestBase.java81 protected ActivityManager mAm; field in ActivityManagerTestBase
122 mAm = mContext.getSystemService(ActivityManager.class); in setUp()
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityLaunchTest.java87 mAm = mContext.getSystemService(ActivityManager.class); in setUp()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java214 protected ActivityManager mAm; field in ActivityManagerTestBase
428 mAm = mContext.getSystemService(ActivityManager.class); in setUp()
1722 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(packageName));
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java1168 final ActivityManager mAm = context.getSystemService(ActivityManager.class); in testSuddenDestroy() local
1178 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in testSuddenDestroy()