summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2014-11-06 02:52:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-06 02:52:20 +0000
commit262dc4dafede871712d89f35d630ab2a332ee6cb (patch)
treeed5d4387a1cb0c146dd53853e4120683b57e46c1 /packages/Keyguard
parent8355c500ea6f809ef2e6885aee673d39f1cb223b (diff)
parente303bf443532c2ad756260133f00747bcff11e69 (diff)
downloadframeworks_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.java13
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
}