summaryrefslogtreecommitdiff
path: root/cmds/content/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2018-07-09 09:09:05 -0700
committerDianne Hackborn <hackbod@google.com>2018-07-09 12:46:53 -0700
commit95031ef2e6a6a00681ade493b353f8d443cafc0c (patch)
tree0e0abdc385f2e75d01c831961071a23372534568 /cmds/content/src
parentbad8de914ad0edcc3dcafe217cecb9bd98ca7f72 (diff)
Now track "active time" in procstats.
Associations now keep track of the time they are actively involved in impacting their target application. This is based on the procstate propagating through the association being the same as the procstate of its target process... so it may count as active when there is another reason for that process to be in the same state. To do this, we now maintain a set of "tracking associations" -- these are in-use associations that we know we need to be tracking to determine whether they are active. This list is built based on whether we at all consider an association during an oom_adj computation, and at the end of that walked to determine which of those associations are currently active. Also add tracking of associations through external provider references, with a tag name now needing to be passed through so we can mark up the reason for the external reference. Test: manual Bug: 110957691 Change-Id: I426a499834e20a9d7f2b439faf9cb398d9792fa2
Diffstat (limited to 'cmds/content/src')
-rw-r--r--cmds/content/src/com/android/commands/content/Content.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/content/src/com/android/commands/content/Content.java b/cmds/content/src/com/android/commands/content/Content.java
index 6e0bd3a81d84..36e51b9703c9 100644
--- a/cmds/content/src/com/android/commands/content/Content.java
+++ b/cmds/content/src/com/android/commands/content/Content.java
@@ -462,7 +462,7 @@ public class Content {
IBinder token = new Binder();
try {
ContentProviderHolder holder = activityManager.getContentProviderExternal(
- providerName, mUserId, token);
+ providerName, mUserId, token, "*cmd*");
if (holder == null) {
throw new IllegalStateException("Could not find provider: " + providerName);
}