diff options
author | Adrian Roos <roosa@google.com> | 2014-03-27 14:58:41 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2014-03-31 19:27:52 +0000 |
commit | a3dafcfb26117e3a2efa3983bd7ba79ae6831680 (patch) | |
tree | 99102272450b6d7b16afbc56a9d19221ba925eef /packages/Keyguard/test/SampleTrustAgent/res/layout | |
parent | 46842d946d1777c22f05e6bb96933c1b5cbd00d4 (diff) | |
download | frameworks_base-a3dafcfb26117e3a2efa3983bd7ba79ae6831680.zip frameworks_base-a3dafcfb26117e3a2efa3983bd7ba79ae6831680.tar.gz frameworks_base-a3dafcfb26117e3a2efa3983bd7ba79ae6831680.tar.bz2 |
Add a SampleTrustAgent
Adds a simple app that shows how to build a trust agent. For
lack of a better place to put this, this stays in Keyguard's tests
for now.
Bug: 13723878
Change-Id: I9ebad253d3d89c846fe8afaad6babce9e7b80b5e
Diffstat (limited to 'packages/Keyguard/test/SampleTrustAgent/res/layout')
-rw-r--r-- | packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml b/packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml new file mode 100644 index 0000000..01b107b --- /dev/null +++ b/packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + ~ Copyright (C) 2014 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <Button android:id="@+id/enable_trust" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Grant trust for 30 seconds" /> + <Button android:id="@+id/revoke_trust" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Revoke trust" /> + <CheckBox android:id="@+id/report_unlock_attempts" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Report unlock attempts" /> +</LinearLayout>
\ No newline at end of file |