summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anna Bauza <annabauza@google.com> 2024-07-11 14:39:55 +0000
committer Anna Bauza <annabauza@google.com> 2024-07-11 14:40:18 +0000
commitbef69d25cb68f398d2d1aee091bdafe263014c23 (patch)
treea3b1a3b4cafe5494f025a439be6212e99787579a
parent2acba2f3fcd699207ef893e3968179ddf7b26402 (diff)
Add a flag to cache getProfileParent to avoid unnecessary binder calls in worse cases ~1000 times per second.
Bug: 350417399 Change-Id: Ib567219c490f7caa0d2df2dcc2c40463ebd25007 Test: N/A Flag: android.multiuser.cache_profile_parent
-rw-r--r--core/java/android/content/pm/multiuser.aconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/content/pm/multiuser.aconfig b/core/java/android/content/pm/multiuser.aconfig
index c7d94c66c81e..26ee4e821ede 100644
--- a/core/java/android/content/pm/multiuser.aconfig
+++ b/core/java/android/content/pm/multiuser.aconfig
@@ -161,6 +161,16 @@ flag {
}
flag {
+ name: "cache_profile_parent"
+ namespace: "multiuser"
+ description: "Cache getProfileParent to avoid unnecessary binder calls"
+ bug: "350417399"
+ metadata {
+ purpose: PURPOSE_BUGFIX
+ }
+}
+
+flag {
name: "cache_quiet_mode_state"
namespace: "multiuser"
description: "Optimise quiet mode state retrieval"