Merge "Activity manager: native callback for process state"

This commit is contained in:
Eric Laurent
2018-12-04 16:40:27 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 4 deletions

View File

@@ -96,6 +96,7 @@ interface IActivityManager {
String callingPackage);
void unregisterUidObserver(in IUidObserver observer);
boolean isUidActive(int uid, String callingPackage);
int getUidProcessState(int uid, in String callingPackage);
// =============== End of transactions used on native side as well ============================
// Special low-level communication with activity manager.
@@ -379,8 +380,6 @@ interface IActivityManager {
void noteAlarmFinish(in IIntentSender sender, in WorkSource workSource, int sourceUid, in String tag);
int getPackageProcessState(in String packageName, in String callingPackage);
void updateDeviceOwner(in String packageName);
int getUidProcessState(int uid, in String callingPackage);
// Start of N transactions
// Start Binder transaction tracking for all applications.

View File

@@ -43,8 +43,6 @@ oneway interface IUidObserver {
*/
void onUidIdle(int uid, boolean disabled);
// =============== End of transactions used on native side as well ============================
/**
* General report of a state change of an uid.
*
@@ -55,6 +53,8 @@ oneway interface IUidObserver {
*/
void onUidStateChanged(int uid, int procState, long procStateSeq);
// =============== End of transactions used on native side as well ============================
/**
* Report when the cached state of a uid has changed.
* If true, a uid has become cached -- that is, it has some active processes that are