summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix the buildJim Miller2015-02-251-1/+2
| | | | | | | | This API was hidden for MR1. Bug 19461292 Change-Id: Ib0a5ca536e843c91a142faeeccf684294aa3e274
* Update TrustAgentService API after reviewJim Miller2014-11-031-10/+59
| | | | | | | | | | | Add test for DPM.setTrustAgentConfiguration() Also fixes bug where DPM flags were set in onPreferenceChanged() which happened before being set on the checkbox preference. Fixes bug 17008504 Change-Id: I165cd73d11c0a68ee6667cb1fd88892a39267903
* Merge "Revert "Add test options for DPM.setTrustAgentFeaturesEnabled()" ↵Jim Miller2014-08-271-58/+10
|\ | | | | | | until the new API is ready. This reverts commit d6df7362ab4b332a09d12358297056cfeadcaa11." into lmp-dev
| * Revert "Add test options for DPM.setTrustAgentFeaturesEnabled()" until the ↵Jim Miller2014-08-271-58/+10
| | | | | | | | | | | | | | | | new API is ready. This reverts commit d6df7362ab4b332a09d12358297056cfeadcaa11. Change-Id: Ie5c8e139450923374d235ea9d85f015b87851d06
* | Work on issue #17011123: Hit Back/Recents button when in Recents...Dianne Hackborn2014-08-211-0/+8
|/ | | | | | | | | ...without interacting with any of the Recents items should not bring Home back to top Add API demo for nav bar navigation. Change-Id: I8b45f2bc0b554da19957ad723abe7cf4a14ee5a1
* Add test options for DPM.setTrustAgentFeaturesEnabled()Jim Miller2014-08-111-10/+58
| | | | | | | Also fixes bug where DPM flags were set in onPreferenceChanged() which happened before being set on the checkbox preference. Change-Id: I5a43358d02830a22107f1239c596cc1bc67d11a1
* Add new "pin complex" type to supported keyguard PINsJim Miller2014-07-161-1/+7
| | | | | | | | | | This adds a feature to allow DevicePolicyAdmins to prevent using simple PINs, which are defined as those containing more than 3 repeated values. Examples include '1234', '2468', '1111', '9876', etc. Bug 12081139 Change-Id: I4c7ae51730c23ad8050e6216a62a8038d9c645a6
* Fix sample device adminAdrian Roos2014-05-221-7/+28
| | | | | | Changes to some checkboxes were only applied after changing another checkbox / stopping and resuming the activity. Change-Id: Idec3461e60786d97000402badcc3a66b1bf33a82
* Add test harness for new keyguard features:Jim Miller2014-04-251-1/+57
| | | | | | | | - disable all notifications on secure keyguard - disable unredacted notifications on secure keyguard - disable TrustAgents Change-Id: I864a103263996dcd491ff77f744bff8398af9cc8
* Add test case for new keyguard widget APIJim Miller2012-09-201-0/+39
| | | | Change-Id: Ibcb19c15964f4ea4bad36ec102e9aed8b4ea9c41
* API sample for using new disallow camera policy.Ben Komalo2011-06-151-3/+30
| | | | Change-Id: Ic83b2079312860a3c4b9348ca28dc7d3c0a2b9e6
* Replacement sample code for DevicePolicyManager api.Andy Stadler2011-05-311-768/+766
| | | | | | | | * UI is organized into multiple screens to make it easier to understand * More feedback about local vs global (aggregate) policies * Uses preference fragments for modern appearance Change-Id: I075161d389942786e6c95483becbff7ebe847078
* Update ApiDemos to show active password statusAndy Stadler2011-05-241-6/+76
| | | | | | | | | | | | | | | * Add Check Password button * Use it to report overall password status - isActivePasswordSufficient() and various password settings. * Fixed a minor bug that cause the password quality to be reset to "unspecified" every time you start the activity. * Leave the two password buttons enabled all the time (set password can be used when not active, and check password just puts up a toast explaining why it can't be used when inactive.) This code can be used to confirm bug b/4445007 and hopefully its fix, too. Change-Id: I136706072257d2e49184a29b0aa5d7a524960c40
* Remove references to global proxy APIsAndy Stadler2011-02-161-56/+0
| | | | | | | | Remove global proxy settings from Apidemos Remove CorpApp Bug: 3460938 Change-Id: I2b6889a96341f0e4fad50a9cfaa76db715ecfaa0
* Update demo for DPM encryption controlsAndy Stadler2011-01-171-6/+13
| | | | | | | | * Follow revised API * Show more status Bug: 3346770 Change-Id: I6c5cd8d8f055ceb3a3a78cf3868dbc0f2d535acf
* Add encryption status controlsAndy Stadler2011-01-121-3/+90
| | | | | | | * Enable, disable, and activate encryption * Report encryption status Change-Id: Ia76cf6033fe00ebdfd3369f8123f5d1ec109f3a9
* Add display of password expiration statusAndy Stadler2010-11-291-6/+54
| | | | | | * Also clean up a few warnings. Change-Id: I79d8d4c49c113e23160839ddb079a241a245729b
* Quick bugfix for password expiration UIAndy Stadler2010-11-191-4/+7
| | | | Change-Id: Iecc0f6fbfe85293a6b22fd0a0ffaae69a0fbc3e9
* Add password expiration test to DeviceAdminSample.Jim Miller2010-11-101-8/+73
| | | | Change-Id: Ib5b398dc068227529d83be2b55c33225f9bbce80
* resolved conflicts for merge of 79ee0a9a to masterKenny Root2010-10-181-5/+18
|\ | | | | | | Change-Id: I110bd412e38358b3d99235bf10fd9d1022aa04e9
| * Update device admin example to wipe SD card.Dianne Hackborn2010-10-151-5/+18
| | | | | | | | Change-Id: I224006f284916761578e3d04b208828f80ea3cb6
* | Attempting to add new Corp App to demo Global Proxy.Oscar Montemayor2010-08-041-0/+58
| | | | | | | | | | | | Making ApiDemos device admin able to set the Global Proxy. Change-Id: I565ccf5d05b1c7d775aea968e99e04894c3f8b64
* | Fix 2677197: Adding support for minimum number of complex characters to the ↵Konstantin Lopyrev2010-06-211-1/+164
| | | | | | | | | | | | Device Admin Sample App. Change-Id: I7570f005ee665adc150e8c4fb92068b4d8dcdbb1
* | Fix 2673731: Adding support for password history to the Device Admin Sample App.Konstantin Lopyrev2010-05-261-0/+27
|/ | | | Change-Id: I1380ff9475c201d3c2ec2ec449b1103c3d55a3a7
* Fix 2527411: Extend sample DPM app to test setMaximumTimeToLock()Jim Miller2010-03-291-25/+52
| | | | Change-Id: I1a0ff93a27d7d27b66acbacf953eb0984e85e4cf
* Add new quality constant.Dianne Hackborn2010-03-221-0/+1
| | | | Change-Id: I386438485a921ec94ed1047936ca182c04bce410
* Move DeviceAdmin APIs to android.app.admin.Dianne Hackborn2010-02-261-3/+4
|
* Fix issue #2420412: API review: DeviceAdmin API changesDianne Hackborn2010-02-171-3/+3
|
* Cleanups to Device Admin sample codeAndrew Stadler2010-02-081-0/+399
1. Rename SampleDeviceAdmin to DeviceAdminSample where it appears in filenames. This makes it easier to find when scanning directories. 2. Fix bug in max password length handling 3. Add a toast to warn user that entering values in "Password Attempts" box has real consequences.