summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-11-02 13:43:29 -0800
committerThe Android Automerger <android-build@google.com>2015-11-03 14:35:16 -0800
commit423244469797cbaccd66f5ed210841647d7072e8 (patch)
treeee1d1177550ef0c4a9fbf34200527ad4c314429f /core/java
parent73546bb6d6b0854ed1774569d9537f6fa242311b (diff)
downloadframeworks_base-423244469797cbaccd66f5ed210841647d7072e8.zip
frameworks_base-423244469797cbaccd66f5ed210841647d7072e8.tar.gz
frameworks_base-423244469797cbaccd66f5ed210841647d7072e8.tar.bz2
Fix issue #25357209: Could not send SMS or MMS messages, had to reboot
I think what probably happened is that since we only report an app going in to the "interaction" state as an interaction event to usage stats, apps that sit around in that state forever will only see one interaction at the start and never again. So usage stats could start thinking they are idle. Fix this by having the activity manager report an interaction event for such long running applications at least once a day. Also, because it is correct and for paranoia by protected us another way, system uids should never go in to standby. Change-Id: I8a3805bfca86cbe78560488a649ecd07427da99a
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/usage/UsageStatsManagerInternal.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/usage/UsageStatsManagerInternal.java b/core/java/android/app/usage/UsageStatsManagerInternal.java
index 948ea1e..498ff81 100644
--- a/core/java/android/app/usage/UsageStatsManagerInternal.java
+++ b/core/java/android/app/usage/UsageStatsManagerInternal.java
@@ -71,10 +71,11 @@ public abstract class UsageStatsManagerInternal {
* Could be hours, could be days, who knows?
*
* @param packageName
+ * @param uidForAppId The uid of the app, which will be used for its app id
* @param userId
* @return
*/
- public abstract boolean isAppIdle(String packageName, int userId);
+ public abstract boolean isAppIdle(String packageName, int uidForAppId, int userId);
/**
* Returns all of the uids for a given user where all packages associating with that uid