Merge "These are not ready to be exposed. Also rename them to be better." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
e25b4bc76f
@@ -21704,17 +21704,6 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</field>
|
</field>
|
||||||
<field name="FLAG_HEAVY_WEIGHT"
|
|
||||||
type="int"
|
|
||||||
transient="false"
|
|
||||||
volatile="false"
|
|
||||||
value="1"
|
|
||||||
static="true"
|
|
||||||
final="true"
|
|
||||||
deprecated="not deprecated"
|
|
||||||
visibility="public"
|
|
||||||
>
|
|
||||||
</field>
|
|
||||||
<field name="IMPORTANCE_BACKGROUND"
|
<field name="IMPORTANCE_BACKGROUND"
|
||||||
type="int"
|
type="int"
|
||||||
transient="false"
|
transient="false"
|
||||||
@@ -21825,16 +21814,6 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</field>
|
</field>
|
||||||
<field name="flags"
|
|
||||||
type="int"
|
|
||||||
transient="false"
|
|
||||||
volatile="false"
|
|
||||||
static="false"
|
|
||||||
final="false"
|
|
||||||
deprecated="not deprecated"
|
|
||||||
visibility="public"
|
|
||||||
>
|
|
||||||
</field>
|
|
||||||
<field name="importance"
|
<field name="importance"
|
||||||
type="int"
|
type="int"
|
||||||
transient="false"
|
transient="false"
|
||||||
|
|||||||
@@ -755,14 +755,17 @@ public class ActivityManager {
|
|||||||
public String pkgList[];
|
public String pkgList[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constant for {@link #flags}: this is a heavy-weight process,
|
* Constant for {@link #flags}: this is an app that is unable to
|
||||||
* meaning it will not be killed while in the background.
|
* correctly save its state when going to the background,
|
||||||
|
* so it can not be killed while in the background.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int FLAG_HEAVY_WEIGHT = 1<<0;
|
public static final int FLAG_CANT_SAVE_STATE = 1<<0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flags of information. May be any of
|
* Flags of information. May be any of
|
||||||
* {@link #FLAG_HEAVY_WEIGHT}.
|
* {@link #FLAG_CANT_SAVE_STATE}.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public int flags;
|
public int flags;
|
||||||
|
|
||||||
|
|||||||
@@ -6801,7 +6801,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
|||||||
app.pid, app.getPackageList());
|
app.pid, app.getPackageList());
|
||||||
currApp.uid = app.info.uid;
|
currApp.uid = app.info.uid;
|
||||||
if (mHeavyWeightProcess == app) {
|
if (mHeavyWeightProcess == app) {
|
||||||
currApp.flags |= ActivityManager.RunningAppProcessInfo.FLAG_HEAVY_WEIGHT;
|
currApp.flags |= ActivityManager.RunningAppProcessInfo.FLAG_CANT_SAVE_STATE;
|
||||||
}
|
}
|
||||||
int adj = app.curAdj;
|
int adj = app.curAdj;
|
||||||
if (adj >= EMPTY_APP_ADJ) {
|
if (adj >= EMPTY_APP_ADJ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user