summaryrefslogtreecommitdiffstats
path: root/src-ambient
diff options
context:
space:
mode:
authorStephen Bird <sbird@cyngn.com>2016-02-05 10:48:57 -0800
committerRichard MacGregor <rmacgregor@cyngn.com>2016-04-08 10:42:50 -0700
commit02d4b70e1f34fe6ee41367b6da8e62b5b13aa40c (patch)
tree953a32af75cdcd5a97e33d96759448ca966e0203 /src-ambient
parentf0aa7702f805568fd362b88adcf3d24e11dcd47b (diff)
downloadpackages_apps_PhoneCommon-02d4b70e1f34fe6ee41367b6da8e62b5b13aa40c.tar.gz
packages_apps_PhoneCommon-02d4b70e1f34fe6ee41367b6da8e62b5b13aa40c.tar.bz2
packages_apps_PhoneCommon-02d4b70e1f34fe6ee41367b6da8e62b5b13aa40c.zip
Create easy method to just grab enabled plugins
Change-Id: Ia83ad58d9f5c2b6e1243370ec4d7bcfdd815bd8e
Diffstat (limited to 'src-ambient')
-rw-r--r--src-ambient/incall/CallMethodHelper.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src-ambient/incall/CallMethodHelper.java b/src-ambient/incall/CallMethodHelper.java
index b055ce3..0474ad9 100644
--- a/src-ambient/incall/CallMethodHelper.java
+++ b/src-ambient/incall/CallMethodHelper.java
@@ -142,6 +142,19 @@ public class CallMethodHelper {
}
}
+ public static HashMap<ComponentName, CallMethodInfo> getAllEnabledCallMethods() {
+ HashMap<ComponentName, CallMethodInfo> cmi = new HashMap<ComponentName, CallMethodInfo>();
+ for (Map.Entry<ComponentName, CallMethodInfo> entry : getAllCallMethods().entrySet()) {
+ ComponentName key = entry.getKey();
+ CallMethodInfo value = entry.getValue();
+
+ if (value.mStatus == PluginStatus.ENABLED) {
+ cmi.put(key, value);
+ }
+ }
+ return cmi;
+ }
+
/***
* Registers the client, on register returns boolean if
* callMethodInfo data is already collected and the initial broadcast has been sent.