summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src
Commit message (Collapse)AuthorAgeFilesLines
* Add Android KeyStore API demoKenny Root2013-04-191-0/+526
| | | | | | | | Adds a sample application which uses the AndroidKeyStore and KeyPairGenerator for AndroidKeyStore. Bug: 8608817 Change-Id: Iec78a74461dc259e4080ed1fab7d923593fcdf75
* Fix issue #8520788: Add WakefulBroadcastReceiverDianne Hackborn2013-04-171-1/+0
| | | | | | Add sample code. Change-Id: I46f4f25ceb4e12f975e3cebd83f62de2555a8996
* Merge "Issue #7341342 API request: way to determine current orientation..." ↵Dianne Hackborn2013-04-121-0/+4
|\ | | | | | | into jb-mr2-dev
| * 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 Trigger Sensor API Demo.Jaikumar Ganesh2013-04-101-0/+113
|/ | | | | | Add sensor API demo for significant motion sensor. Change-Id: Ie1a006523e4ef579384a580ddb117188a455dadf
* Adding example of querying for contact changes.Chiao Cheng2013-04-081-0/+348
| | | | | Bug: 8182147 Change-Id: I40a2b95b9e6ac0705b863e0e41f84654dfddaf5c
* Improve TransportController demo.Dianne Hackborn2013-04-041-1/+1
| | | | | | | | | | | | This is an actually realistic implementation of a video player. It's still delibrately simple, but it's not outright broken. We now have our own media controller since that is the only way to get something that actually works, we use system UI flags to hide nav/status bar when playing, we use the new TransportController APIs to go into a formal playback state where we take audio focus. Change-Id: I19ac171483637b8ee94c9c07aea39c11748cbc46
* Fix ExpandableList1 sampleFabrice Di Meglio2013-03-221-1/+3
| | | | | | - also increase android:targetSdkVersion to 17 Change-Id: Ibceb38f5514a7c321f75d267e40c338c0340b1ef
* Revert "Add Trigger Sensor API Demo."Jaikumar Ganesh2013-03-131-113/+0
| | | | This reverts commit 50435d3e6f13f1faca9d743bd4f29791e8a4931d.
* Add Trigger Sensor API Demo.Jaikumar Ganesh2013-03-121-0/+113
| | | | | | Add sensor API demo for significant motion sensor. Change-Id: I9d55fef52bdda2b804003bb07d6d977f13cda5b0
* Update ApiDemos to use new input source checkMichael Wright2013-03-112-9/+5
| | | | Change-Id: Iab20881dca49cfef66fa35396942cdb5045137aa
* Add API demo for a custom layout.Dianne Hackborn2013-03-062-0/+278
| | | | | | | | This serves as a complete, formal layout, with attributes and all that good stuff. Intended for use as sample code in the java docs. Change-Id: Ic45b9387d724bf574e2bfb8970b26c7b47fc0a2b
* Add API demo for WindowInputToken.Dianne Hackborn2013-03-041-0/+106
| | | | Change-Id: I2c1521caa30545411f34e57ad2f5eceb16c0b2b1
* Add new action bar demos:Dianne Hackborn2013-02-273-2/+49
| | | | | | | | - 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
* Merge "Add demo for rotation animation." into jb-mr2-devCraig Mautner2013-02-261-0/+91
|\
| * 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
* | Clean up of system UI flag demo, doc markup for overscan demo.Dianne Hackborn2013-02-251-7/+5
|/ | | | Change-Id: Iaef99a4c1aeebbd327bcbc42b27d20c8065f8d27
* 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
* Make query in FileProvider demo respect OpenanbleColumns.Zak Cohen2013-02-211-2/+39
| | | | Change-Id: I4b40d0ddfa8b88da67a6960102242d0d7bc12dfc
* Add option to toggle the new overscan mode.Dianne Hackborn2013-02-191-0/+20
| | | | Change-Id: I552a1c8b36650c558fe6f4e3e1a9e40137d7274f
* am 3509481c: am f443913a: am 613e19b7: SDK Only: Fix search interaction with ↵Dianne Hackborn2012-12-073-12/+104
|\ | | | | | | | | | | | | various samples. * commit '3509481cfae4b8dc0fdba4836bfc36e2bd04045e': SDK Only: Fix search interaction with various samples.
| * 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 video for VideoView demoMarco Nelissen2012-11-091-20/+10
|/ | | | | | | Add one of the CTS test videos so the demo works out of the box, and make the video fill the screen instead of hardcoding it to a tiny size. Change-Id: Ie26a4ae0e186fe966d0679b088492a0c7d035713
* Fixes to GridLayout demos.Philip Milne2012-11-013-34/+70
| | | | | | | | | | Include a GridLayout version of the "Simple Form" example provided in the LinearLayout and RelativeLayout demos. Make the existing Form demo work on all devices and orientations (it was previously too wide for portrait mode). Change-Id: Ia01d49230bc3ef3d2e70bc34e936c8b4b421b796
* Add sample code for the new widget android.widget.TextClockRomain Guy2012-10-311-0/+38
| | | | Change-Id: I0b65fcc35db8d9f15d9b7c4ada0658d806a601b8
* 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-245-3/+251
| | | | | | | | | 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
* | | A few little tweaks to system ui flag demos.Dianne Hackborn2012-05-181-1/+2
| | | | | | | | | | | | Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
* | | Work on issue #6475693 OnSystemUiVisibilityChangeListener reporting...Dianne Hackborn2012-05-102-30/+91
| | | | | | | | | | | | | | | | | | | | | | | | ...incorrect visibility when the ActionBar overflow menu is opened Improve API demos. Change-Id: I3e831152a0dbb56270a80cf58e9441b55059c884
* | | Improvements to system UI demos.Dianne Hackborn2012-05-062-1/+77
| | | | | | | | | | | | | | | | | | | | | - Content browser now lets you long press to go into selection mode. - Overscan demo has more options for controlling more window state. Change-Id: I04cfb58f515882cc6dccd65cb68bc073e53dcad5
* | | 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
* | | Fixing the buildSvetoslav Ganov2012-04-201-1/+1
| | | | | | | | | | | | Change-Id: Iece94781e42cf2e9e0b0d8e447c0754c8bb17003
* | | Add demo for new custom animation.Dianne Hackborn2012-04-161-1/+19
| | | | | | | | | | | | Change-Id: I4981f47fe9120f1cfaa7ca793d5fed7f41cb83a4
* | | Merge "Use new InputDevice.getVibrator() API."Jeff Brown2012-04-131-0/+27
|\ \ \
| * | | Use new InputDevice.getVibrator() API.Jeff Brown2012-04-131-0/+27
| | | | | | | | | | | | | | | | | | | | Bug: 6334179 Change-Id: I1e592fd1a58a8d0789548346aee1aff6ddb9d684
* | | | Merge "Improve GameControllerInput demo with input device listeners."Jeff Brown2012-04-131-12/+69
|\| | |
| * | | Improve GameControllerInput demo with input device listeners.Jeff Brown2012-04-121-12/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improves the demo to use the new InputManager API for receiving notifications when input devices are added, removed or changed. For example, a game could listen for when new joysticks are connected or disconnected. Change-Id: I8ac35206d4f00011145d74c78e91d720aec8f21c
* | | | Update API demo to show new clip data types and conversions.Dianne Hackborn2012-04-131-22/+77
|/ / / | | | | | | | | | Change-Id: I32e2951c53ecedc75d1459666ced9f54b54cf6ba