Merge changes If51568c3,Idd434c19 into nyc-dev

* changes:
  Demote the log in ProcessState.ensureNotDead from a wtf to a warning.
  @hide SystemHealthManager.from
This commit is contained in:
TreeHugger Robot
2016-05-18 00:46:45 +00:00
committed by Android (Google) Code Review
5 changed files with 3 additions and 4 deletions

View File

@@ -29368,7 +29368,6 @@ package android.os.health {
}
public class SystemHealthManager {
method public static android.os.health.SystemHealthManager from(android.content.Context);
method public android.os.health.HealthStats takeMyUidSnapshot();
method public android.os.health.HealthStats takeUidSnapshot(int);
method public android.os.health.HealthStats[] takeUidSnapshots(int[]);

View File

@@ -31904,7 +31904,6 @@ package android.os.health {
}
public class SystemHealthManager {
method public static android.os.health.SystemHealthManager from(android.content.Context);
method public android.os.health.HealthStats takeMyUidSnapshot();
method public android.os.health.HealthStats takeUidSnapshot(int);
method public android.os.health.HealthStats[] takeUidSnapshots(int[]);

View File

@@ -29438,7 +29438,6 @@ package android.os.health {
}
public class SystemHealthManager {
method public static android.os.health.SystemHealthManager from(android.content.Context);
method public android.os.health.HealthStats takeMyUidSnapshot();
method public android.os.health.HealthStats takeUidSnapshot(int);
method public android.os.health.HealthStats[] takeUidSnapshots(int[]);

View File

@@ -53,6 +53,8 @@ public class SystemHealthManager {
/**
* Obtain a SystemHealthManager object for the supplied context.
*
* @hide
*/
public static SystemHealthManager from(Context context) {
return (SystemHealthManager)context.getSystemService(Context.SYSTEM_HEALTH_SERVICE);

View File

@@ -277,7 +277,7 @@ public final class ProcessState {
if (!mDead) {
return;
}
Slog.wtfStack(TAG, "ProcessState dead: name=" + mName
Slog.w(TAG, "ProcessState dead: name=" + mName
+ " pkg=" + mPackage + " uid=" + mUid + " common.name=" + mCommonProcess.mName);
}