diff options
author | Luis Vidal <lvidal@cyngn.com> | 2016-06-06 13:10:00 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-06-08 17:04:59 -0700 |
commit | aa1f592e9feec75a1c2d05c2d60d5ef48a3956c0 (patch) | |
tree | 0399ba6f42033cacfba27496432d591ff92e98f4 /sdk | |
parent | 19de84cd1bb7865cb6bc9ed5baf5d3e882583b63 (diff) | |
download | vendor_cmsdk-aa1f592e9feec75a1c2d05c2d60d5ef48a3956c0.zip vendor_cmsdk-aa1f592e9feec75a1c2d05c2d60d5ef48a3956c0.tar.gz vendor_cmsdk-aa1f592e9feec75a1c2d05c2d60d5ef48a3956c0.tar.bz2 |
Ensures ProfileTrustAgent properly grants/revokes trust [2/2]
Notifies the ProfileTrustAgent when a WiFi/BT event was triggered even
if no new profile was selected so the trust agent can grant/revoke trust
Filters out the multiple network state change notifications to make sure
we notify the trust agent only when the event that the profile
is tracking actually happened
Change-Id: I047861a8b145762fff24568e341373a89ee01de9
TICKET: CYNGNOS-2719
Diffstat (limited to 'sdk')
-rw-r--r-- | sdk/src/java/cyanogenmod/app/ProfileManager.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sdk/src/java/cyanogenmod/app/ProfileManager.java b/sdk/src/java/cyanogenmod/app/ProfileManager.java index fd74903..f346aae 100644 --- a/sdk/src/java/cyanogenmod/app/ProfileManager.java +++ b/sdk/src/java/cyanogenmod/app/ProfileManager.java @@ -84,6 +84,29 @@ public class ProfileManager { public static final String INTENT_ACTION_PROFILE_UPDATED = "cyanogenmod.platform.intent.action.PROFILE_UPDATED"; + + /** + * @hide + */ + public static final String INTENT_ACTION_PROFILE_TRIGGER_STATE_CHANGED = + "cyanogenmod.platform.intent.action.INTENT_ACTION_PROFILE_TRIGGER_STATE_CHANGED"; + + /** + * @hide + */ + public static final String EXTRA_TRIGGER_ID = "trigger_id"; + + /** + * @hide + */ + public static final String EXTRA_TRIGGER_TYPE = "trigger_type"; + + + /** + * @hide + */ + public static final String EXTRA_TRIGGER_STATE = "trigger_state"; + /** * Extra for {@link #INTENT_ACTION_PROFILE_SELECTED} and {@link #INTENT_ACTION_PROFILE_UPDATED}: * The name of the newly activated or updated profile |