/cts/tests/app/src/android/app/cts/ |
D | AlarmManagerTest.java | 42 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/ |
D | UidImportanceListener.java | 28 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()
|
D | ServiceProcessController.java | 48 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/ |
D | AlertWindowsImportanceTests.java | 76 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()
|
D | ActivityManagerGetConfigTests.java | 71 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()
|
D | PrereleaseSdkTest.java | 47 () -> mAm.alwaysShowUnsupportedCompileSdkWarning(MAIN_ACTIVITY)); in setUp()
|
D | ConfigChangeTests.java | 365 () -> mAm.scheduleApplicationInfoChanged(packages, in updateApplicationInfo()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | LockTaskUiTestActivity.java | 91 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/ |
D | ActivityManagerTestBase.java | 81 protected ActivityManager mAm; field in ActivityManagerTestBase 122 mAm = mContext.getSystemService(ActivityManager.class); in setUp()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityLaunchTest.java | 87 mAm = mContext.getSystemService(ActivityManager.class); in setUp()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 214 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/ |
D | UsageStatsTest.java | 1168 final ActivityManager mAm = context.getSystemService(ActivityManager.class); in testSuddenDestroy() local 1178 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in testSuddenDestroy()
|