Home
last modified time | relevance | path

Searched refs:activityManager (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt55 private lateinit var activityManager: ActivityManager variable in com.android.systemui.controls.management.ControlsRequestReceiverTest
70 mContext.addMockSystemService(ActivityManager::class.java, activityManager) in setUp()
94 `when`(activityManager.getUidImportance(anyInt())).thenReturn(IMPORTANCE_GONE) in testPackageVerification_uidNotInForeground()
103 `when`(activityManager.getUidImportance(anyInt())).thenReturn(IMPORTANCE_GONE) in testPackageVerification_OK()
104 `when`(activityManager.getUidImportance(12345)).thenReturn(IMPORTANCE_FOREGROUND) in testPackageVerification_OK()
124 `when`(activityManager.getUidImportance(anyInt())).thenReturn(IMPORTANCE_GONE) in testOnReceive_packageNotVerified_notForeground()
136 `when`(activityManager.getUidImportance(eq(12345))).thenReturn(IMPORTANCE_FOREGROUND) in testOnReceive_OK()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvPipTestBase.kt62 private val activityManager: IActivityManager = ActivityManager.getService() in fail() constant in com.android.wm.shell.flicker.pip.tv.TvPipTestBase.SystemUiProcessObserver
71 activityManager.registerProcessObserver(this) in fail()
75 activityManager.unregisterProcessObserver(this) in fail()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
DShellUiAutomatorBridge.java62 IActivityManager activityManager = ActivityManager.getService(); in getSystemLongPressTime() local
66 ContentProviderHolder holder = activityManager.getContentProviderExternal( in getSystemLongPressTime()
90 activityManager.removeContentProviderExternalAsUser(providerName, token, in getSystemLongPressTime()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemUserInfoHelper.java93 IActivityManager activityManager = getActivityManager(); in getRunningUserIds() local
94 if (activityManager != null) { in getRunningUserIds()
97 return activityManager.getRunningUserIds(); in getRunningUserIds()
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/
DLaunchActivity.java45 ActivityManager activityManager = in onCreate()
47 final int color = activityManager.getLockTaskModeState() != in onCreate()
DMainActivity.java31 ActivityManager activityManager = in onCreate()
33 final int color = activityManager.getLockTaskModeState() != in onCreate()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUsageStatsServiceTest.java73 IActivityManager activityManager = ActivityManager.getService(); in setUp() local
74 spyOn(activityManager); in setUp()
76 doNothing().when(activityManager).registerUidObserver(any(), anyInt(), anyInt(), any()); in setUp()
/frameworks/base/core/java/android/app/
DHomeVisibilityListener.java51 void init(Context context, Executor executor, ActivityManager activityManager) { in init() argument
53 mActivityManager = activityManager; in init()
DService.java881 Application application, Object activityManager) { in attach() argument
887 mActivityManager = (IActivityManager)activityManager; in attach()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
DCreateUserActivity.java61 EditUserInfoController editUserInfoController, IActivityManager activityManager) { in CreateUserActivity() argument
64 mActivityManager = activityManager; in CreateUserActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DShutdownCheckPointsTest.java351 TestInjector(IActivityManager activityManager) { in TestInjector() argument
355 mActivityManager = activityManager; in TestInjector()
374 public IActivityManager activityManager() { in activityManager() method in ShutdownCheckPointsTest.TestInjector
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java386 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in isCurrentProfile() local
387 if (activityManager != null) { in isCurrentProfile()
388 return activityManager.isProfileForeground( in isCurrentProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java57 IActivityManager activityManager, in MockInjector() argument
65 mActivityManager = activityManager; in MockInjector()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownCheckPoints.java80 public IActivityManager activityManager() { in ShutdownCheckPoints()
179 IActivityManager activityManager(); in activityManager() method
276 mActivityManager = injector.activityManager(); in BinderCheckPoint()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioningController.java65 IActivityTaskManager activityManager, Looper looper) { in TaskPositioningController() argument
68 mActivityManager = activityManager; in TaskPositioningController()
/frameworks/opt/localepicker/src/com/android/localepicker/
DLocaleStore.java271 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in fillCache() local
272 for (Locale locale : activityManager.getSupportedLocales()) { in fillCache()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java70 final ActivityManager activityManager = context.getSystemService(ActivityManager.class); in killTargetPackage() local
71 activityManager.forceStopPackage(PACKAGE_NAME); in killTargetPackage()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java512 IActivityManager activityManager = ActivityManager.getService(); in execute() local
516 ContentProviderHolder holder = activityManager.getContentProviderExternal( in execute()
525 activityManager.removeContentProviderExternalAsUser( in execute()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DSurfaceCompositionMeasuringActivity.java505 ActivityManager activityManager = (ActivityManager) in getMemoryInfo() local
508 activityManager.getMemoryInfo(memInfo); in getMemoryInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java294 ActivityManager activityManager = (ActivityManager) context.getSystemService( in updateMccMncConfiguration() local
296 if (!activityManager.updateMccMncConfiguration( in updateMccMncConfiguration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationShadeWindowControllerImpl.java113 IActivityManager activityManager, DozeParameters dozeParameters, in NotificationShadeWindowControllerImpl() argument
125 mActivityManager = activityManager; in NotificationShadeWindowControllerImpl()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java461 ActivityManager activityManager = (ActivityManager) in AsyncRenderer() local
463 final int cacheSizeInBytes = activityManager.getMemoryClass() * BYTES_PER_MEGABYTE / 4; in AsyncRenderer()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java151 IActivityManager activityManager = ActivityManager.getService(); in setUp() local
152 spyOn(activityManager); in setUp()
154 doNothing().when(activityManager).registerUidObserver(any(), anyInt(), anyInt(), any()); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotController.java305 ActivityManager activityManager) { in ScreenshotController() argument
314 mIsLowRamDevice = activityManager.isLowRamDevice(); in ScreenshotController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBar.java1298 IActivityTaskManager activityManager = ActivityTaskManager.getService(); in onLongPressNavigationButtons() local
1300 boolean inLockTaskMode = activityManager.isInLockTaskMode(); in onLongPressNavigationButtons()
1340 activityManager.stopSystemLockTaskMode(); in onLongPressNavigationButtons()

12