/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | FrameworkFacade.java | 229 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()
|
D | ScanRequestProxy.java | 203 ScanRequestProxy(Context context, AppOpsManager appOpsManager, ActivityManager activityManager, in ScanRequestProxy() argument 210 mActivityManager = activityManager; in ScanRequestProxy()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | MemoryManagerImpl.java | 72 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()
|
D | MemoryQuery.java | 55 public MemoryQuery(ActivityManager activityManager) { in MemoryQuery() argument 56 mActivityManager = activityManager; in MemoryQuery()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | BubbleSummaryNotificationPreferenceControllerTest.java | 79 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()
|
D | BubbleNotificationPreferenceControllerTest.java | 83 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/ |
D | Common.java | 78 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/ |
D | SystemMonitor.java | 78 @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/ |
D | SettingsBaseActivity.java | 220 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/ |
D | BubbleSummaryPreferenceControllerTest.java | 150 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()
|
D | BubblePreferenceControllerTest.java | 171 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/ |
D | ConfirmDeviceCredentialUtils.java | 39 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/ |
D | SpecialAppAccess.java | 53 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/ |
D | SpecialAppAccessState.java | 50 ActivityManager activityManager = (ActivityManager) mContext in updatePreferenceStates() local 52 if (activityManager.isLowRamDevice()) { in updatePreferenceStates()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WorkSourceHelper.java | 55 @NonNull ActivityManager activityManager, in WorkSourceHelper() argument 60 mActivityManager = activityManager; in WorkSourceHelper()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppLocaleUtil.java | 79 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in isSignedWithPlatformKey() local 83 activityManager.getCurrentUser()); in isSignedWithPlatformKey()
|
D | ProcessStatsDetail.java | 161 ActivityManager activityManager = (ActivityManager) in updateRunningServices() local 164 activityManager.getRunningServices(Integer.MAX_VALUE); in updateRunningServices()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserSwitchTransitionViewController.java | 82 ActivityManager activityManager, in UserSwitchTransitionViewController() argument 92 mActivityManager = activityManager; in UserSwitchTransitionViewController()
|
/packages/apps/Dialer/java/com/android/dialer/simulator/service/ |
D | SimulatorService.java | 189 ActivityManager activityManager = in getPackageNameForPid() local 191 for (RunningAppProcessInfo processInfo : activityManager.getRunningAppProcesses()) { in getPackageNameForPid()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | TestActivity.java | 71 public ActivityManager activityManager; field in TestActivity 254 return activityManager; in getSystemService()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | AssistantRoleBehavior.java | 159 ActivityManager activityManager = context.getSystemService(ActivityManager.class); in isPackageQualified() local 163 if (!activityManager.isLowRamDevice()) { in isPackageQualified()
|
D | Role.java | 982 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/ |
D | SettingsHomepageActivityTest.java | 119 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/ |
D | RuntimePermissionsUpgradeControllerTest.kt | 103 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/ |
D | RecentsLoaderTests.java | 65 mActivity.activityManager = ActivityManagers.create(false); in setUp()
|