OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ActivityManager
(Results
1 - 25
of
179
) sorted by null
1
2
3
4
5
6
7
8
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowActivityManager.java
3
import android.app.
ActivityManager
;
11
* Shadow for the Android {@code
ActivityManager
} class.
14
@Implements(
ActivityManager
.class)
17
private List<
ActivityManager
.RunningTaskInfo> tasks =
18
new ArrayList<
ActivityManager
.RunningTaskInfo>();
20
private List<
ActivityManager
.RunningAppProcessInfo> processes =
21
new ArrayList<
ActivityManager
.RunningAppProcessInfo>();
24
private
ActivityManager
.MemoryInfo memoryInfo;
27
public List<
ActivityManager
.RunningTaskInfo> getRunningTasks(int maxNum) {
32
public List<
ActivityManager
.RunningAppProcessInfo> getRunningAppProcesses()
[
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
...]
/cts/suite/pts/deviceTests/ptsutil/src/com/android/pts/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
...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
ActivityManagerCompatUtils.java
19
import android.app.
ActivityManager
;
28
ActivityManager
.class, "isLowRamDevice");
38
final
ActivityManager
am =
39
(
ActivityManager
) context.getSystemService(Context.ACTIVITY_SERVICE);
/cts/hostsidetests/monkey/test-apps/CtsMonkeyApp/src/com/android/cts/monkey/
MonkeyActivity.java
20
import android.app.
ActivityManager
;
32
Log.i(TAG,
ActivityManager
.isUserAMonkey() ? "@(>.<)@" : "(^_^)");
/external/chromium_org/base/android/java/src/org/chromium/base/
SysUtils.java
7
import android.app.
ActivityManager
;
8
import android.app.
ActivityManager
.MemoryInfo;
/packages/apps/Nfc/src/com/android/nfc/
NfcApplication.java
19
import android.app.
ActivityManager
;
20
import android.app.
ActivityManager
.RunningAppProcessInfo;
48
ActivityManager
am = (
ActivityManager
)this.getSystemService(ACTIVITY_SERVICE);
/frameworks/base/core/tests/coretests/src/android/app/activity/
ActivityManagerTest.java
19
import android.app.
ActivityManager
;
33
protected
ActivityManager
mActivityManager;
39
mActivityManager = (
ActivityManager
) mContext.getSystemService(Context.ACTIVITY_SERVICE);
52
List<
ActivityManager
.ProcessErrorStateInfo> errList;
64
List<
ActivityManager
.ProcessErrorStateInfo> errList;
83
List<
ActivityManager
.ProcessErrorStateInfo> errList;
114
private void checkErrorListSanity(List<
ActivityManager
.ProcessErrorStateInfo> errList) {
117
Iterator<
ActivityManager
.ProcessErrorStateInfo> iter = errList.iterator();
119
ActivityManager
.ProcessErrorStateInfo info = iter.next();
122
assertTrue((info.condition ==
ActivityManager
.ProcessErrorStateInfo.CRASHED) |
[
all
...]
/cts/tests/tests/app/src/android/app/cts/
ActivityManagerMemoryInfoTest.java
18
import android.app.
ActivityManager
;
24
protected
ActivityManager
.MemoryInfo mMemory;
29
mMemory = new
ActivityManager
.MemoryInfo();
46
ActivityManager
.MemoryInfo values =
47
ActivityManager
.MemoryInfo.CREATOR.createFromParcel(parcel);
71
ActivityManager
.MemoryInfo result = new
ActivityManager
.MemoryInfo();
78
result = new
ActivityManager
.MemoryInfo();
ActivityManagerRecentTaskInfoTest.java
18
import android.app.
ActivityManager
;
25
protected
ActivityManager
.RecentTaskInfo mRecentTaskInfo;
30
mRecentTaskInfo = new
ActivityManager
.RecentTaskInfo();
34
new
ActivityManager
.RecentTaskInfo();
52
ActivityManager
.RecentTaskInfo values =
ActivityManager
.RecentTaskInfo.CREATOR
67
values =
ActivityManager
.RecentTaskInfo.CREATOR
86
ActivityManager
.RecentTaskInfo values = new
ActivityManager
.RecentTaskInfo();
ActivityManagerRunningTaskInfoTest.java
18
import android.app.
ActivityManager
;
24
protected
ActivityManager
.RunningTaskInfo mRunningTaskInfo;
29
mRunningTaskInfo = new
ActivityManager
.RunningTaskInfo();
41
new
ActivityManager
.RunningTaskInfo();
53
ActivityManager
.RunningTaskInfo values =
ActivityManager
.RunningTaskInfo.CREATOR
67
values =
ActivityManager
.RunningTaskInfo.CREATOR
81
ActivityManager
.RunningTaskInfo values = new
ActivityManager
.RunningTaskInfo();
ActivityManagerProcessErrorStateInfoTest.java
18
import android.app.
ActivityManager
;
23
protected
ActivityManager
.ProcessErrorStateInfo mErrorStateInfo;
28
mErrorStateInfo = new
ActivityManager
.ProcessErrorStateInfo();
32
new
ActivityManager
.ProcessErrorStateInfo();
59
ActivityManager
.ProcessErrorStateInfo values =
60
ActivityManager
.ProcessErrorStateInfo.CREATOR.createFromParcel(parcel);
93
ActivityManager
.ProcessErrorStateInfo values = new
ActivityManager
.ProcessErrorStateInfo();
ActivityManager_RunningServiceInfoTest.java
18
import android.app.
ActivityManager
;
24
private
ActivityManager
.RunningServiceInfo mRunningServiceInfo;
31
mRunningServiceInfo = new
ActivityManager
.RunningServiceInfo();
47
new
ActivityManager
.RunningServiceInfo();
59
ActivityManager
.RunningServiceInfo values =
60
ActivityManager
.RunningServiceInfo.CREATOR.createFromParcel(parcel);
78
ActivityManager
.RunningServiceInfo values =
79
new
ActivityManager
.RunningServiceInfo();
ActivityManager_RunningAppProcessInfoTest.java
20
import android.app.
ActivityManager
;
21
import android.app.
ActivityManager
.RunningAppProcessInfo;
34
final
ActivityManager
am = (
ActivityManager
)
ActivityManagerTest.java
23
import android.app.
ActivityManager
;
25
import android.app.
ActivityManager
.ProcessErrorStateInfo;
26
import android.app.
ActivityManager
.RecentTaskInfo;
27
import android.app.
ActivityManager
.RunningAppProcessInfo;
28
import android.app.
ActivityManager
.RunningServiceInfo;
29
import android.app.
ActivityManager
.RunningTaskInfo;
43
private
ActivityManager
mActivityManager;
54
mActivityManager = (
ActivityManager
) mContext.getSystemService(Context.ACTIVITY_SERVICE);
202
ActivityManager
.MemoryInfo outInfo = new
ActivityManager
.MemoryInfo()
[
all
...]
/cts/tests/tests/permission/src/android/permission/cts/
NoActivityRelatedPermissionTest.java
21
import android.app.
ActivityManager
;
55
ActivityManager
manager = (
ActivityManager
) getActivity()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
GLES20Activity.java
20
import android.app.
ActivityManager
;
49
ActivityManager
am =
50
(
ActivityManager
) getSystemService(Context.ACTIVITY_SERVICE);
/frameworks/base/services/java/com/android/server/am/
TaskAccessInfo.java
21
import android.app.
ActivityManager
.TaskThumbnails;
/cts/tests/tests/openglperf/src/android/openglperf/cts/
GlAppSwitchTest.java
20
import android.app.
ActivityManager
;
46
private
ActivityManager
mActivityManager;
72
mActivityManager = (
ActivityManager
) context.getSystemService(Context.ACTIVITY_SERVICE);
122
List<
ActivityManager
.RunningTaskInfo> tasks =
124
for (
ActivityManager
.RunningTaskInfo info : tasks) {
137
List<
ActivityManager
.RunningTaskInfo> tasks =
139
for (
ActivityManager
.RunningTaskInfo info : tasks) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
CurrentUserTracker.java
19
import android.app.
ActivityManager
;
34
mCurrentUserId =
ActivityManager
.getCurrentUser();
/packages/apps/Music/tests/src/com/android/music/stress/
AlbumsPlaybackStress.java
19
import android.app.
ActivityManager
;
86
ActivityManager
.MemoryInfo mi = new
ActivityManager
.MemoryInfo();
87
((
ActivityManager
)getActivity().getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(mi);
MusicPlaybackStress.java
19
import android.app.
ActivityManager
;
82
ActivityManager
.MemoryInfo mi = new
ActivityManager
.MemoryInfo();
83
((
ActivityManager
)getActivity().getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(mi);
/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();
/cts/tests/tests/hardware/src/android/hardware/cts/
LowRamDeviceTest.java
19
import android.app.
ActivityManager
;
37
ActivityManager
am =
38
(
ActivityManager
) getContext().getSystemService(Context.ACTIVITY_SERVICE);
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/
Analytics.java
21
import android.app.
ActivityManager
;
71
return !
ActivityManager
.isUserAMonkey() && !
ActivityManager
.isRunningInTestHarness();
Completed in 678 milliseconds
1
2
3
4
5
6
7
8