summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/app
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
* Fix progress spinner dialog in ApiDemosAlan Viverette2014-09-091-15/+1
| | | | | BUG: 17446820 Change-Id: If6201e4483a5102d0f1567a36d1edf70392d5b8f
* Update alert dialogs in ApiDemos for Material themeAlan Viverette2014-09-071-32/+51
| | | | | BUG: 17415772 Change-Id: Ifc1de793458f678a3c40b734d5ab08b2eb382f7a
* Add device default light and dark dialogs to ApiDemosAlan Viverette2014-08-281-0/+44
| | | | Change-Id: I538c2cfb975828cd0e1e065d4cf5589e573307d5
* 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-213-0/+109
|/ | | | | | | | | ...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
* Add navigation list to API DemosAlan Viverette2014-06-121-3/+17
| | | | Change-Id: Ib18bb6ce41b27049273add697a65c607442ee13f
* Add list navigation to API DemosAlan Viverette2014-06-121-9/+34
| | | | | BUG: 15566102 Change-Id: I4c1dd13d5ac5502d6d3f879ce916b09d81338940
* 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
* am b3017f4d: Sample code: bug fixKatie McCormick2013-11-261-1/+1
|\ | | | | | | | | * commit 'b3017f4d2321dda48811b09813761cc53df6b893': Sample code: bug fix
| * Sample code: bug fixKatie McCormick2013-11-261-1/+1
| | | | | | | | | | | | | | | | Fix for: b/6535950 Change-Id: I8f03a2e70c72dd68b4d183a54351ad09b23b83c4
* | Update the print from off-screen WebView sampleSvetoslav Ganov2013-10-301-6/+49
| | | | | | | | | | | | | | | | To print we create an off-screen WebView but do not destroy it immeidately after printing. WebViews are somehow expensive and we do not want to keep them around more than needed. Change-Id: Ic9c78994e0c96d4d08c0e318c459acddd2e5a652
* | Add print samples to the ApiDemos app.Svetoslav Ganov2013-10-304-2/+266
|/ | | | | | | | | | | | 1. Added a sample for printing a bitmap. 2. Added a sample for printing an on-screen WebView. 3. Added s sample for printing an off-screen WebView. 4. Fixed a bug in the custom layout print sample. Change-Id: I35b2bbf8c7fd9bc39be795b1f793d9ea7bdfc8a0
* Adding an API demo for how to implement printing in an app.Svetoslav2013-10-291-0/+562
| | | | | | | | | | | | | | This is a very comprehensive code sample in which: 1. Layout based on the selected print options is performed. 2. Layout work is performed only if print options change would change the content. 3. Layout result is properly reported. 4. Only requested pages are written. 5. Write result is properly reported. 6. Both Layout and write respond to cancellation. 7. Layout and render of views is demonstrated. Change-Id: I0179b025b286f0a511cb2268da18c729c66874ba
* Add new Intent demos.Dianne Hackborn2013-07-311-10/+16
| | | | Change-Id: Iad47cca8c3fc5ccd184e07e95c9c13877f1d4ff0
* Add API demo for scheme specific intent filters.Dianne Hackborn2013-06-121-0/+33
| | | | Change-Id: I9363d5098e97cc035478849755d8b9a77a41e7c0
* Add "do nothing" receiver.Dianne Hackborn2013-05-281-0/+27
| | | | | | For testing overhead of empty processes. Change-Id: I14803cb6b9c434bb1b1c4a17d3811f34a4063bdc
* Issue #7341342 API request: way to determine current orientation...Dianne Hackborn2013-04-101-0/+4
| | | | | | | | ...to allow for orientation locking Update API demo with new modes. Change-Id: Ib9da3ada203407bace0968f4ee3db54f03ad559b
* Add new action bar demos:Dianne Hackborn2013-02-271-0/+18
| | | | | | | | - Buttons for showing/hiding action bar and system UI in the basic action bar demo. - New system UI demo that uses a non-overlay action bar. Change-Id: Id3fbaa77365476489c558a2a43855a01f383551c
* Add demo for rotation animation.Craig Mautner2013-02-251-0/+91
| | | | | | | New feature in App/Activity/Rotation Animation for overriding default rotation animation with crossfade or jumpcut. Change-Id: I3cb3cdb26770e6c7d040f4492eb02149af73b757
* New overscan API demos.Dianne Hackborn2013-02-221-0/+39
| | | | | | | A new flag on the system UI demo (which needs to be renamed), and a new pure overscan demo. Change-Id: I88a7a309147aaad773bbc00971a01369f4658b61
* SDK Only: Fix search interaction with various samples.Dianne Hackborn2012-12-053-12/+104
| | | | | | | These were broken where pressing back would not clear the search filter. Change-Id: Iafd4a497a31a9689efabe7d92f44618a5e8dc80c
* Add a demo for using Presentations with the MediaRouter.Jeff Brown2012-10-253-43/+447
| | | | | | | | | | | Improved the documentation and robustness of the samples. Modified the existing Presentation sample to use the new DisplayManager API for querying displays that support a particular category of uses. Bug: 7409073 Change-Id: I2a19afa373c408c2bcbaa633370480b717630088
* Add ApiDemos for secure surfaces.Jeff Brown2012-10-244-2/+250
| | | | | | | | | Added three ApiDemos for secure surfaces. One for Activity, one for Dialog and one for SurfaceView. The mechanism is the same in each case but the API is a little different. Bug: 7368436 Change-Id: I78bc2a456b4c0f1a553120d72f433095ba7e038c
* Update API demos to match new tab interaction.Dianne Hackborn2012-09-252-51/+115
| | | | | | | | | | Follow changes to FragmentTabManager to continue to work correctly with it. Fix the code in the base API demo (which can't use FragmentTabManager) to work correctly. Bug #7232088: ListView saved state being lost in some cases Change-Id: Ib7ba1ab20ff00f2cc95c9f6024ab94783237c9be
* Add test case for new keyguard widget APIJim Miller2012-09-201-0/+39
| | | | Change-Id: Ibcb19c15964f4ea4bad36ec102e9aed8b4ea9c41
* Make Presentation demo retain image and color.Craig Mautner2012-09-111-48/+69
| | | | | | | | Store which Displays are presenting, their images and their background colors. That way the don't change between onPause and onResume. Change-Id: I01328583ef309bf12e7f5750aa4abea50f847a99
* New and improved Presentation demo.Craig Mautner2012-09-111-33/+114
| | | | | | Less clutter, bigger letters! Change-Id: Ie0d5626c6a83a0e96bbda9220aea1f945c1bd825
* API demo for nesting fragments.Dianne Hackborn2012-09-067-2/+551
| | | | Change-Id: I7f20e4f00cf68c78c578ae620a95de7fa97f0761
* Add new sample for Presentation API.Jeff Brown2012-08-311-0/+289
| | | | Change-Id: Ia31deb9ca6ad9a4db1dd6f852c00fa9a94caa4c3
* Rename UserId to UserHandle.Dianne Hackborn2012-08-161-1/+5
| | | | Change-Id: I701335483628d30c875d087f27287e084789f10c
* Update ApiDemos for ActionBarFabrice Di Meglio2012-07-181-6/+6
| | | | | | - use Gravity.START and Gravity.END Change-Id: Id2adac4c23ad2de2d04a36ef8195367aea63c66f
* am e0db6a0c: am 392863b7: Merge "Remove tab only if tab exists."Xavier Ducrohet2012-06-061-1/+3
|\ | | | | | | | | * commit 'e0db6a0c5523678f42229e99ea4598dc52b862eb': Remove tab only if tab exists.
| * Merge "Remove tab only if tab exists."Xavier Ducrohet2012-06-061-1/+3
| |\
| | * Remove tab only if tab exists.Cheng Ke2012-03-141-1/+3
| | | | | | | | | | | | | | | | | | Prevent crash in ActionBarTabs(ApiDemos). Change-Id: I1972fc761e8ebf245afb828fe7595bc764eaae56
* | | New API demos for retained fragments with loaders.Dianne Hackborn2012-06-043-3/+204
| | | | | | | | | | | | | | | | | | | | | | | | Also tweak the cursor loader samples to filter out query callbacks that don't change the filter, to avoid restarting the loader on a configuration change. Change-Id: Iac9293fed45e127698be59262d68b0b59a8ec9ce
* | | Add API demo for Activity.finishAffinity().Dianne Hackborn2012-04-262-3/+62
| | | | | | | | | | | | | | | | | | | | | Also fix text on some of the existing demos to use the nice larger font. Change-Id: I90d3815cd47cda08217cfc6307d64942f6750ae2
* | | Add demo for new custom animation.Dianne Hackborn2012-04-161-1/+19
| | | | | | | | | | | | Change-Id: I4981f47fe9120f1cfaa7ca793d5fed7f41cb83a4
* | | Update to follow API change.Dianne Hackborn2012-04-101-1/+1
| | | | | | | | | | | | Change-Id: I092f2a9fde19648f5d47bde091d15f1bb5deb63b
* | | Update Full Screen Modes to demostrate more modes.Dianne Hackborn2012-03-301-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | UI is now a set of check boxes to toggle the various modes. Also add new API demos for two typical implementations using system UI flags: a content browser and a video player. Change-Id: If93659343cfc42b903b18997a5a0a04ee10e8343
* | | Add API demo for thumbnail animations.Dianne Hackborn2012-03-231-5/+25
| | | | | | | | | | | | Change-Id: I97f03f4a172a820d7856bd663a6bc00e3b9521cd
* | | Update animation sample to use new activity options API.Dianne Hackborn2012-03-191-0/+38
| | | | | | | | | | | | Change-Id: Id73663f1e5f159c5b073cd9c074501958ca5a81f
* | | Fix isolated process demo to work with new restrictions.Dianne Hackborn2012-02-091-18/+7
| | | | | | | | | | | | | | | | | | Isolated processes can now do much less. Change-Id: I1af8ae0d8dca72de1324d98ed6004cb3c0820a7a
* | | New API demo for isolated processes.Dianne Hackborn2012-02-092-0/+241
|/ / | | | | | | Change-Id: I2b2117ae5e5005bfffe8d89df5e06cee32da603c
* / Fix notification sample to follow current UI guidelines.Dianne Hackborn2012-01-103-35/+201
|/ | | | | | | | Lots of clean up on the messaging notification sample to show the real correct way to do things. Also mark up a bunch of the sample for use in the documentation. Change-Id: I3a29a944c2971e142c33b29aff94b1ba0b40ae0e