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
147
) sorted by null
1
2
3
4
5
6
/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/hostsidetests/monkey/test-apps/CtsMonkeyApp/src/com/android/cts/monkey/
MonkeyActivity.java
20
import android.app.
ActivityManager
;
32
Log.i(TAG,
ActivityManager
.isUserAMonkey() ? "@(>.<)@" : "(^_^)");
/packages/apps/Nfc/src/com/android/nfc/
NfcApplication.java
3
import android.app.
ActivityManager
;
4
import android.app.
ActivityManager
.RunningAppProcessInfo;
32
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
...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
CompatModeButton.java
19
import android.app.
ActivityManager
;
34
private
ActivityManager
mAM;
45
mAM = (
ActivityManager
) context.getSystemService(Context.ACTIVITY_SERVICE);
52
if (mode ==
ActivityManager
.COMPAT_MODE_UNKNOWN) {
56
final boolean vis = (mode !=
ActivityManager
.COMPAT_MODE_NEVER
57
&& mode !=
ActivityManager
.COMPAT_MODE_ALWAYS);
CurrentUserTracker.java
19
import android.app.
ActivityManager
;
32
mCurrentUserId =
ActivityManager
.getCurrentUser();
/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/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
CompatModePanel.java
19
import android.app.
ActivityManager
;
39
private
ActivityManager
mAM;
51
mAM = (
ActivityManager
) context.getSystemService(Context.ACTIVITY_SERVICE);
83
mAM.setFrontActivityScreenCompatMode(
ActivityManager
.COMPAT_MODE_ENABLED);
85
mAM.setFrontActivityScreenCompatMode(
ActivityManager
.COMPAT_MODE_DISABLED);
124
if (mode ==
ActivityManager
.COMPAT_MODE_ALWAYS
125
|| mode ==
ActivityManager
.COMPAT_MODE_NEVER) {
130
final boolean on = (mode ==
ActivityManager
.COMPAT_MODE_ENABLED);
/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
;
33
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();
/frameworks/base/core/java/android/webkit/
JniUtil.java
19
import android.app.
ActivityManager
;
182
ActivityManager
manager = (
ActivityManager
) sContext.getSystemService(
184
ActivityManager
.MemoryInfo memInfo = new
ActivityManager
.MemoryInfo();
/frameworks/opt/mms/src/java/com/google/android/mms/util/
SqliteWrapper.java
20
import android.app.
ActivityManager
;
46
ActivityManager
am = (
ActivityManager
)
48
ActivityManager
.MemoryInfo outInfo = new
ActivityManager
.MemoryInfo();
Completed in 973 milliseconds
1
2
3
4
5
6