Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/java/com/android/server/wifi/
DFrameworkFacade.java229 ActivityManager activityManager = getActivityManager(context); in isAppForeground() local
230 if (activityManager == null) return false; in isAppForeground()
231 return activityManager.getUidImportance(uid) <= IMPORTANCE_VISIBLE; in isAppForeground()
367 ActivityManager activityManager = getActivityManager(context); in isRequestFromForegroundAppOrService() local
368 if (activityManager == null) return false; in isRequestFromForegroundAppOrService()
370 return activityManager.getPackageImportance(requestorPackageName) in isRequestFromForegroundAppOrService()
386 ActivityManager activityManager = getActivityManager(context); in isRequestFromForegroundApp() local
387 if (activityManager == null) return false; in isRequestFromForegroundApp()
389 return activityManager.getPackageImportance(requestorPackageName) in isRequestFromForegroundApp()
DScanRequestProxy.java203 ScanRequestProxy(Context context, AppOpsManager appOpsManager, ActivityManager activityManager, in ScanRequestProxy() argument
210 mActivityManager = activityManager; in ScanRequestProxy()
/packages/apps/Camera2/src/com/android/camera/app/
DMemoryManagerImpl.java72 ActivityManager activityManager = AndroidServices.instance().provideActivityManager(); in create() local
74 MemoryQuery mMemoryQuery = new MemoryQuery(activityManager); in create()
159 ActivityManager activityManager = AndroidServices.instance().provideActivityManager(); in getMaxAllowedNativeMemory() local
165 return (int) (Math.max(activityManager.getMemoryClass(), in getMaxAllowedNativeMemory()
166 activityManager.getLargeMemoryClass()) * MAX_MEM_ALLOWED); in getMaxAllowedNativeMemory()
DMemoryQuery.java55 public MemoryQuery(ActivityManager activityManager) { in MemoryQuery() argument
56 mActivityManager = activityManager; in MemoryQuery()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DBubbleSummaryNotificationPreferenceControllerTest.java79 final ShadowActivityManager activityManager = in isAvailable_lowRam_returnsUnsupported() local
81 activityManager.setIsLowRamDevice(true); in isAvailable_lowRam_returnsUnsupported()
87 final ShadowActivityManager activityManager = in isAvailable_notLowRam_returnsAvailable() local
89 activityManager.setIsLowRamDevice(false); in isAvailable_notLowRam_returnsAvailable()
DBubbleNotificationPreferenceControllerTest.java83 final ShadowActivityManager activityManager = in isAvailable_lowRam_returnsUnsupported() local
85 activityManager.setIsLowRamDevice(true); in isAvailable_lowRam_returnsUnsupported()
91 final ShadowActivityManager activityManager = in isAvailable_notLowRam_returnsAvailable() local
93 activityManager.setIsLowRamDevice(false); in isAvailable_notLowRam_returnsAvailable()
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/
DCommon.java78 final ActivityManager activityManager = context.getSystemService(ActivityManager.class); in validateComponentState() local
81 final int procState = activityManager.getUidProcessState(Process.myUid()); in validateComponentState()
91 final int procState = activityManager.getUidProcessState(Process.myUid()); in validateComponentState()
101 final int capabilities = activityManager.getUidProcessCapabilities(Process.myUid()); in validateComponentState()
/packages/services/Car/service/src/com/android/car/telemetry/systemmonitor/
DSystemMonitor.java78 @NonNull ActivityManager activityManager, @NonNull Handler workerHandler) { in create()
79 return new SystemMonitor(activityManager, workerHandler, LOADAVG_PATH); in create()
84 @NonNull ActivityManager activityManager, in SystemMonitor()
88 mActivityManager = activityManager; in SystemMonitor()
/packages/apps/Settings/src/com/android/settings/core/
DSettingsBaseActivity.java220 final ActivityManager activityManager = in isLockTaskModePinned() local
222 return activityManager.getLockTaskModeState() == ActivityManager.LOCK_TASK_MODE_PINNED; in isLockTaskModePinned()
226 final ActivityManager activityManager = in isSettingsRunOnTop() local
228 final String taskPkgName = activityManager.getRunningTasks(1 /* maxNum */) in isSettingsRunOnTop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DBubbleSummaryPreferenceControllerTest.java150 final ShadowActivityManager activityManager = in isAvailable_lowRam_shouldReturnFalse() local
152 activityManager.setIsLowRamDevice(true); in isAvailable_lowRam_shouldReturnFalse()
161 final ShadowActivityManager activityManager = in isAvailable_notLowRam_shouldReturnTrue() local
163 activityManager.setIsLowRamDevice(false); in isAvailable_notLowRam_shouldReturnTrue()
DBubblePreferenceControllerTest.java171 final ShadowActivityManager activityManager = in isNotAvailable_ifLowRam() local
173 activityManager.setIsLowRamDevice(true); in isNotAvailable_ifLowRam()
196 final ShadowActivityManager activityManager = in isAvailable_ifNotLowRam() local
198 activityManager.setIsLowRamDevice(false); in isAvailable_ifNotLowRam()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialUtils.java39 IActivityManager activityManager = ActivityManager.getService(); in checkForPendingIntent() local
41 activityManager.startActivityFromRecents(taskId, options.toBundle()); in checkForPendingIntent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DSpecialAppAccess.java53 ActivityManager activityManager = (ActivityManager) getContext() in updatePreferenceStates() local
55 if (activityManager.isLowRamDevice()) { in updatePreferenceStates()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DSpecialAppAccessState.java50 ActivityManager activityManager = (ActivityManager) mContext in updatePreferenceStates() local
52 if (activityManager.isLowRamDevice()) { in updatePreferenceStates()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWorkSourceHelper.java55 @NonNull ActivityManager activityManager, in WorkSourceHelper() argument
60 mActivityManager = activityManager; in WorkSourceHelper()
/packages/apps/Settings/src/com/android/settings/applications/
DAppLocaleUtil.java79 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in isSignedWithPlatformKey() local
83 activityManager.getCurrentUser()); in isSignedWithPlatformKey()
DProcessStatsDetail.java161 ActivityManager activityManager = (ActivityManager) in updateRunningServices() local
164 activityManager.getRunningServices(Integer.MAX_VALUE); in updateRunningServices()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserSwitchTransitionViewController.java82 ActivityManager activityManager, in UserSwitchTransitionViewController() argument
92 mActivityManager = activityManager; in UserSwitchTransitionViewController()
/packages/apps/Dialer/java/com/android/dialer/simulator/service/
DSimulatorService.java189 ActivityManager activityManager = in getPackageNameForPid() local
191 for (RunningAppProcessInfo processInfo : activityManager.getRunningAppProcesses()) { in getPackageNameForPid()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestActivity.java71 public ActivityManager activityManager; field in TestActivity
254 return activityManager; in getSystemService()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DAssistantRoleBehavior.java159 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in isPackageQualified() local
163 if (!activityManager.isLowRamDevice()) { in isPackageQualified()
DRole.java982 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in killApp() local
983 activityManager.killUid(applicationInfo.uid, "Permission or app op changed"); in killApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/
DSettingsHomepageActivityTest.java119 final ShadowActivityManager activityManager = Shadow.extract( in launch_LowRamDevice_shouldHideAvatar() local
121 activityManager.setIsLowRamDevice(true); in launch_LowRamDevice_shouldHideAvatar()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt103 lateinit var activityManager: ActivityManager in <lambda>() variable in com.android.permissioncontroller.tests.mocking.permission.service.RuntimePermissionsUpgradeControllerTest
175 activityManager) in <lambda>()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DRecentsLoaderTests.java65 mActivity.activityManager = ActivityManagers.create(false); in setUp()

12