summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/test
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2014-11-06 18:40:15 -0800
committerJim Miller <jaggies@google.com>2014-11-07 17:18:37 -0800
commit0814d41c73fe3ebc2d1269f1a4fc73d0cf4cb230 (patch)
treedf6767f12fd813190fdb131282cac90e65f007f2 /packages/Keyguard/test
parentc6f5009fdb6aeafbee6db2b3e381f405ff23718b (diff)
downloadframeworks_base-0814d41c73fe3ebc2d1269f1a4fc73d0cf4cb230.zip
frameworks_base-0814d41c73fe3ebc2d1269f1a4fc73d0cf4cb230.tar.gz
frameworks_base-0814d41c73fe3ebc2d1269f1a4fc73d0cf4cb230.tar.bz2
Change Configure structure to List<PersistableBundle>
Adding the new structure was making it difficult for LMP devices to have common source with upcoming API version. Fixes bug 17008504 Change-Id: I704503cf0ebff113874c87ab11e37735dbe7b8d7
Diffstat (limited to 'packages/Keyguard/test')
-rw-r--r--packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java11
1 files changed, 6 insertions, 5 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 09c7165..f28d0e4 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
@@ -28,6 +28,8 @@ import android.support.v4.content.LocalBroadcastManager;
import android.util.Log;
import android.widget.Toast;
+import java.util.List;
+
public class SampleTrustAgent extends TrustAgentService
implements SharedPreferences.OnSharedPreferenceChangeListener {
@@ -90,11 +92,10 @@ public class SampleTrustAgent extends TrustAgentService
}
@Override
- 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());
+ public boolean onConfigure(List<PersistableBundle> options) {
+ if (options != null) {
+ for (int i = 0; i < options.size(); i++) {
+ Log.v(TAG, "Policy options received: " + options.get(i));
}
} else {
Log.w(TAG, "onConfigure() called with no options");