diff options
author | Jim Miller <jaggies@google.com> | 2014-11-06 02:52:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-06 02:52:20 +0000 |
commit | 262dc4dafede871712d89f35d630ab2a332ee6cb (patch) | |
tree | ed5d4387a1cb0c146dd53853e4120683b57e46c1 /packages/Keyguard | |
parent | 8355c500ea6f809ef2e6885aee673d39f1cb223b (diff) | |
parent | e303bf443532c2ad756260133f00747bcff11e69 (diff) | |
download | frameworks_base-262dc4dafede871712d89f35d630ab2a332ee6cb.zip frameworks_base-262dc4dafede871712d89f35d630ab2a332ee6cb.tar.gz frameworks_base-262dc4dafede871712d89f35d630ab2a332ee6cb.tar.bz2 |
Merge "Update TrustAgentService API after review" into lmp-mr1-dev
Diffstat (limited to 'packages/Keyguard')
-rw-r--r-- | packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java b/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java index c650a0f..09c7165 100644 --- a/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java +++ b/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java @@ -21,7 +21,7 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; -import android.os.Bundle; +import android.os.PersistableBundle; import android.preference.PreferenceManager; import android.service.trust.TrustAgentService; import android.support.v4.content.LocalBroadcastManager; @@ -90,8 +90,15 @@ public class SampleTrustAgent extends TrustAgentService } @Override - public boolean onSetTrustAgentFeaturesEnabled(Bundle options) { - Log.v(TAG, "Policy options received: " + options.getStringArrayList(KEY_FEATURES)); + public boolean onConfigure(Configuration config) { + if (config != null && config.options != null) { + for (int i = 0; i < config.options.size(); i++) { + PersistableBundle options = config.options.get(i); + Log.v(TAG, "Policy options received: " + options.toString()); + } + } else { + Log.w(TAG, "onConfigure() called with no options"); + } // TODO: Handle options return true; // inform DPM that we support it } |