/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
MemorySizeCalculator.java | 4 import android.app.ActivityManager; 28 this((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE), 32 MemorySizeCalculator(ActivityManager activityManager, ScreenDimensions screenDimensions) { 33 final int maxSize = getMaxSize(activityManager); 53 + toMb(maxSize) + " memoryClass: " + activityManager.getMemoryClass() + " isLowMemoryDevice: " 54 + isLowMemoryDevice(activityManager)); 66 private static int getMaxSize(ActivityManager activityManager) { 67 final int memoryClassBytes = activityManager.getMemoryClass() * 1024 * 1024 [all...] |
/cts/libs/deviceutil/src/android/cts/util/ |
SystemUtil.java | 19 import android.app.ActivityManager; 20 import android.app.ActivityManager.MemoryInfo; 32 ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 33 activityManager.getMemoryInfo(info); 39 ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 40 activityManager.getMemoryInfo(info) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ActivityManagerTest.java | 3 import android.app.ActivityManager; 18 ActivityManager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIVITY_SERVICE); 19 ShadowActivityManager shadowActivityManager = shadowOf(activityManager); 20 ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); 23 ActivityManager.MemoryInfo fetchedMemoryInfo = new ActivityManager.MemoryInfo(); 24 activityManager.getMemoryInfo(fetchedMemoryInfo) [all...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
MemoryManagerImpl.java | 19 import android.app.ActivityManager; 71 ActivityManager activityManager = 72 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 74 MemoryQuery mMemoryQuery = new MemoryQuery(activityManager); 158 ActivityManager activityManager = (ActivityManager) context 165 return (int) (Math.max(activityManager.getMemoryClass(), 166 activityManager.getLargeMemoryClass()) * MAX_MEM_ALLOWED) [all...] |
MemoryQuery.java | 19 import android.app.ActivityManager; 53 private ActivityManager mActivityManager; 55 public MemoryQuery(ActivityManager activityManager) { 56 mActivityManager = activityManager; 61 * the ActivityManager and Debug.MemoryInfo, 66 // Get ActivityManager.MemoryInfo. 69 ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); 76 // Get ActivityManager.RunningAppProcessInfo [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
LockTaskTest.java | 19 import android.app.ActivityManager; 132 // Start lock task, verify that ActivityManager knows thats what is going on. 139 ActivityManager activityManager = (ActivityManager) 141 assertTrue(activityManager.isInLockTaskMode()); 145 stopAndFinish(activityManager); 148 // Verifies that the act of finishing is blocked by ActivityManager in lock task. 156 ActivityManager activityManager = (ActivityManager [all...] |
/cts/tests/tests/acceleration/src/android/acceleration/cts/ |
BaseAccelerationTest.java | 19 import android.app.ActivityManager; 64 ActivityManager activityManager = 65 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 66 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo();
|
/developers/build/prebuilts/gradle/DocumentCentricApps/Application/tests/src/com/example/android/documentcentricapps/tests/ |
DocumentCentricAppsInstrumentationTest.java | 22 import android.app.ActivityManager; 61 List<ActivityManager.AppTask> recentAppTasks = getRecentAppTasks(); 65 private List<ActivityManager.AppTask> getRecentAppTasks() { 66 ActivityManager activityManager = (ActivityManager) getInstrumentation().getTargetContext() 68 List<ActivityManager.AppTask> appTasks = activityManager.getAppTasks();
|
/developers/samples/android/ui/activitytasks/DocumentCentricApps/Application/tests/src/com/example/android/documentcentricapps/tests/ |
DocumentCentricAppsInstrumentationTest.java | 22 import android.app.ActivityManager; 61 List<ActivityManager.AppTask> recentAppTasks = getRecentAppTasks(); 65 private List<ActivityManager.AppTask> getRecentAppTasks() { 66 ActivityManager activityManager = (ActivityManager) getInstrumentation().getTargetContext() 68 List<ActivityManager.AppTask> appTasks = activityManager.getAppTasks();
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
ShellUiAutomatorBridge.java | 59 IActivityManager activityManager = ActivityManagerNative.getDefault(); 63 ContentProviderHolder holder = activityManager.getContentProviderExternal( 84 activityManager.removeContentProviderExternal(providerName, token);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 20 import android.app.ActivityManager; 41 * Verify that ActivityManager.restartPackage() requires permissions. 47 ActivityManager activityManager = (ActivityManager) mContext.getSystemService( 51 activityManager.restartPackage("packageName"); 52 fail("ActivityManager.restartPackage() didn't throw SecurityException as expected.");
|
/cts/tests/tests/app/src/android/app/cts/ |
ActivityManagerMemoryClassTest.java | 19 import android.app.ActivityManager; 29 * {@link ActivityInstrumentationTestCase2} that tests {@link ActivityManager#getMemoryClass()} 51 ActivityManager activityManager = 52 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 53 return activityManager.getMemoryClass();
|
/frameworks/base/core/java/android/app/ |
Service.java | [all...] |
/frameworks/base/cmds/settings/src/com/android/commands/settings/ |
SettingsCmd.java | 125 IActivityManager activityManager = ActivityManagerNative.getDefault(); 129 ContentProviderHolder holder = activityManager.getContentProviderExternal( 154 activityManager.removeContentProviderExternal("settings", token);
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
OpenGlEsVersionTest.java | 19 import android.app.ActivityManager; 68 assertEquals("Reported OpenGL ES version from ActivityManager differs from PackageManager", 204 ActivityManager activityManager = 205 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 206 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
IconCache.java | 19 import android.app.ActivityManager; 80 ActivityManager activityManager = 81 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 85 mIconDpi = activityManager.getLauncherLargeIconDensity();
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
Content.java | 407 IActivityManager activityManager = ActivityManagerNative.getDefault(); 411 ContentProviderHolder holder = activityManager.getContentProviderExternal( 420 activityManager.removeContentProviderExternal(providerName, token);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
PageContentRepository.java | 19 import android.app.ActivityManager; 437 ActivityManager activityManager = (ActivityManager) 439 final int cacheSizeInBytes = activityManager.getMemoryClass() * BYTES_PER_MEGABYTE / 4;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
RecentTasksLoader.java | 19 import android.app.ActivityManager; 97 ActivityManager activityManager = 98 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 99 mIconDpi = activityManager.getLauncherLargeIconDensity(); 199 final ActivityManager am = (ActivityManager) 380 final ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); 382 final List<ActivityManager.RecentTaskInfo> recentTasks = am.getRecentTasksForUser(1 [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
SystemServicesProxy.java | 19 import android.app.ActivityManager; 82 ActivityManager mAm; 107 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 144 public List<ActivityManager.RecentTaskInfo> getRecentTasks(int numLatestTasks, int userId, 150 ArrayList<ActivityManager.RecentTaskInfo> tasks = 151 new ArrayList<ActivityManager.RecentTaskInfo>(); 161 ActivityManager.RecentTaskInfo rti = new ActivityManager.RecentTaskInfo(); 168 rti.taskDescription = new ActivityManager.TaskDescription(description, 172 rti.taskDescription = new ActivityManager.TaskDescription() [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
IconCache.java | 19 import android.app.ActivityManager; 104 ActivityManager activityManager = 105 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); 111 mIconDpi = activityManager.getLauncherLargeIconDensity();
|
/cts/tests/tests/provider/src/android/provider/cts/ |
BrowserTest.java | 19 import android.app.ActivityManager; 20 import android.app.ActivityManager.RunningTaskInfo; 515 ActivityManager activityManager = (ActivityManager) mActivity 517 List<RunningTaskInfo> list = activityManager.getRunningTasks(1);
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkPolicyManagerService.java | 78 import android.app.ActivityManager; 286 private int mCurForegroundState = ActivityManager.PROCESS_STATE_TOP; 300 public NetworkPolicyManagerService(Context context, IActivityManager activityManager, 303 this(context, activityManager, powerManager, networkStats, networkManagement, 311 public NetworkPolicyManagerService(Context context, IActivityManager activityManager, 316 mActivityManager = checkNotNull(activityManager, "missing activityManager"); 395 // activitymanager dispatch current state when new observer attached. [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PhoneStatusBar.java | 37 import android.app.ActivityManager; 663 if (!ActivityManager.isHighEndGfx()) { [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.ui.workbench_3.6.1.M20101117-0800.jar | |