Commit Graph

624 Commits

Author SHA1 Message Date
Kenny Root
f59ea3b54e Add Android KeyStore API demo
Adds a sample application which uses the AndroidKeyStore and
KeyPairGenerator for AndroidKeyStore.

Bug: 8608817
Change-Id: Iec78a74461dc259e4080ed1fab7d923593fcdf75
2013-04-19 11:50:06 -07:00
Dianne Hackborn
041bfcd9e4 Fix issue #8520788: Add WakefulBroadcastReceiver
Add sample code.

Change-Id: I46f4f25ceb4e12f975e3cebd83f62de2555a8996
2013-04-17 10:33:16 -07:00
Dianne Hackborn
2f5f3c1d63 Merge "Issue #7341342 API request: way to determine current orientation..." into jb-mr2-dev 2013-04-12 00:08:39 +00:00
Dianne Hackborn
904e05075d Issue #7341342 API request: way to determine current orientation...
...to allow for orientation locking

Update API demo with new modes.

Change-Id: Ib9da3ada203407bace0968f4ee3db54f03ad559b
2013-04-10 17:36:20 -07:00
Jaikumar Ganesh
8a0799f2d6 Add Trigger Sensor API Demo.
Add sensor API demo for significant motion sensor.

Change-Id: Ie1a006523e4ef579384a580ddb117188a455dadf
2013-04-10 17:13:06 -07:00
Chiao Cheng
0a010aef7f Adding example of querying for contact changes.
Bug: 8182147
Change-Id: I40a2b95b9e6ac0705b863e0e41f84654dfddaf5c
2013-04-08 14:52:16 -07:00
Dianne Hackborn
9b4e96dcb8 Improve TransportController demo.
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
2013-04-04 18:36:56 -07:00
Fabrice Di Meglio
e7b90faf8f Merge "Fix ExpandableList1 sample" into jb-mr2-dev 2013-03-25 21:20:25 +00:00
Fabrice Di Meglio
de817c95df Fix ExpandableList1 sample
- also increase android:targetSdkVersion to 17

Change-Id: Ibceb38f5514a7c321f75d267e40c338c0340b1ef
2013-03-22 16:28:46 -07:00
Elliott Hughes
16617b1712 am 48f4a1f8: am 8c4c7b6a: Merge "Use H rather than k in date/time formats."
* commit '48f4a1f86e59c97a0a67d520ff0daa3726e2f62b':
  Use H rather than k in date/time formats.
2013-03-20 09:52:38 -07:00
Elliott Hughes
da6181c891 Use H rather than k in date/time formats.
Bug: 8359981
Change-Id: Ica1741aafc801d017252f74189aca0946bed9a0f
2013-03-18 16:29:12 -07:00
Jaikumar Ganesh
a54d53a656 Revert "Add Trigger Sensor API Demo."
This reverts commit 50435d3e6f.
2013-03-13 14:58:01 -07:00
Jaikumar Ganesh
50435d3e6f Add Trigger Sensor API Demo.
Add sensor API demo for significant motion sensor.

Change-Id: I9d55fef52bdda2b804003bb07d6d977f13cda5b0
2013-03-12 14:13:21 -07:00
Michael Wright
8f48506e2d Update ApiDemos to use new input source check
Change-Id: Iab20881dca49cfef66fa35396942cdb5045137aa
2013-03-11 15:57:21 -07:00
Dianne Hackborn
654f51aa29 Add API demo for a custom layout.
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
2013-03-06 13:46:42 -08:00
Dianne Hackborn
3de0bf970a Add API demo for WindowInputToken.
Change-Id: I2c1521caa30545411f34e57ad2f5eceb16c0b2b1
2013-03-04 18:47:42 -08:00
Dianne Hackborn
a28de3ba59 Add new action bar demos:
- 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
2013-02-27 18:32:21 -08:00
Craig Mautner
92a74bf534 Merge "Add demo for rotation animation." into jb-mr2-dev 2013-02-26 15:32:03 +00:00
Craig Mautner
d540e6e0b7 Add demo for rotation animation.
New feature in App/Activity/Rotation Animation for overriding
default rotation animation with crossfade or jumpcut.

Change-Id: I3cb3cdb26770e6c7d040f4492eb02149af73b757
2013-02-25 18:21:56 -08:00
Dianne Hackborn
168241ee8e Clean up of system UI flag demo, doc markup for overscan demo.
Change-Id: Iaef99a4c1aeebbd327bcbc42b27d20c8065f8d27
2013-02-25 16:48:06 -08:00
Dianne Hackborn
8227c14902 New overscan API demos.
A new flag on the system UI demo (which needs to be renamed),
and a new pure overscan demo.

Change-Id: I88a7a309147aaad773bbc00971a01369f4658b61
2013-02-22 15:20:55 -08:00
Zak Cohen
87cfef9699 Make query in FileProvider demo respect OpenanbleColumns.
Change-Id: I4b40d0ddfa8b88da67a6960102242d0d7bc12dfc
2013-02-21 16:05:30 +00:00
Dianne Hackborn
1ee9d5ec61 Add option to toggle the new overscan mode.
Change-Id: I552a1c8b36650c558fe6f4e3e1a9e40137d7274f
2013-02-19 12:05:17 -08:00
Dianne Hackborn
36b302ba18 am 3509481c: am f443913a: am 613e19b7: SDK Only: Fix search interaction with various samples.
* commit '3509481cfae4b8dc0fdba4836bfc36e2bd04045e':
  SDK Only: Fix search interaction with various samples.
2012-12-07 13:24:02 -08:00
Dianne Hackborn
613e19b740 SDK Only: Fix search interaction with various samples.
These were broken where pressing back would not clear the
search filter.

Change-Id: Iafd4a497a31a9689efabe7d92f44618a5e8dc80c
2012-12-05 15:17:31 -08:00
Romain Guy
47e30d714f Update TextClock sample code
The update sample shows how to use custom fonts, color names and
color resources.

Change-Id: I4b7929dde2611de3aef7a2e4a0853187bf223f43
2012-11-27 12:04:16 -08:00
Marco Nelissen
3cab67467e Add video for VideoView demo
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
2012-11-09 14:46:52 -08:00
Philip Milne
888ac28d79 Fixes to GridLayout demos.
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
2012-11-01 13:16:37 -07:00
Romain Guy
a161dd2994 Add sample code for the new widget android.widget.TextClock
Change-Id: I0b65fcc35db8d9f15d9b7c4ada0658d806a601b8
2012-10-31 20:35:07 -07:00
Jeff Brown
66dc70ff47 Add a demo for using Presentations with the MediaRouter.
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
2012-10-25 20:14:32 -07:00
Jeff Brown
c875f9321a Add ApiDemos for secure surfaces.
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
2012-10-24 12:56:50 -07:00
Dianne Hackborn
7263dad223 Update API demos to match new tab interaction.
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
2012-09-25 15:07:06 -07:00
Jim Miller
84fb279107 Add test case for new keyguard widget API
Change-Id: Ibcb19c15964f4ea4bad36ec102e9aed8b4ea9c41
2012-09-20 23:46:30 -07:00
Craig Mautner
51f883381d Make Presentation demo retain image and color.
Store which Displays are presenting, their images and their
background colors. That way the don't change between onPause
and onResume.

Change-Id: I01328583ef309bf12e7f5750aa4abea50f847a99
2012-09-11 22:13:09 -07:00
Craig Mautner
9dac35adda New and improved Presentation demo.
Less clutter, bigger letters!

Change-Id: Ie0d5626c6a83a0e96bbda9220aea1f945c1bd825
2012-09-11 14:53:03 -07:00
Dianne Hackborn
f3f7c5f775 API demo for nesting fragments.
Change-Id: I7f20e4f00cf68c78c578ae620a95de7fa97f0761
2012-09-06 11:39:30 -07:00
Jeff Brown
2e1fe78fbf Add new sample for Presentation API.
Change-Id: Ia31deb9ca6ad9a4db1dd6f852c00fa9a94caa4c3
2012-08-31 15:22:34 -07:00
Dianne Hackborn
77201b5414 Rename UserId to UserHandle.
Change-Id: I701335483628d30c875d087f27287e084789f10c
2012-08-16 12:46:49 -07:00
Fabrice Di Meglio
161859ee84 Update ApiDemos for ActionBar
- use Gravity.START and Gravity.END

Change-Id: Id2adac4c23ad2de2d04a36ef8195367aea63c66f
2012-07-18 15:00:22 -07:00
Wink Saville
e8617bccd0 Use telephony-common and mms-common.
Change-Id: If2e6b49eb9ceafc43de107ce761163c654f3ee35
2012-07-11 14:57:38 -07:00
Xavier Ducrohet
344e27f238 am e0db6a0c: am 392863b7: Merge "Remove tab only if tab exists."
* commit 'e0db6a0c5523678f42229e99ea4598dc52b862eb':
  Remove tab only if tab exists.
2012-06-06 14:52:36 -07:00
Xavier Ducrohet
392863b774 Merge "Remove tab only if tab exists." 2012-06-06 14:44:26 -07:00
Dianne Hackborn
4914a5f37b am 80df91c7: New API demos for retained fragments with loaders.
* commit '80df91c7f2ac155c1cf4c3337f8db5a4bf5426b5':
  New API demos for retained fragments with loaders.
2012-06-04 11:21:34 -07:00
Dianne Hackborn
80df91c7f2 New API demos for retained fragments with loaders.
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
2012-06-04 11:12:37 -07:00
Jean-Baptiste Queru
beb1f40d67 am 34baff19: am 99314f43: Merge "Fix old style edit text drawable display error."
* commit '34baff19d88679254d82420f798387f92a7fb912':
  Fix old style edit text drawable display error.
2012-05-23 15:06:55 -07:00
Jean-Baptiste Queru
99314f432e Merge "Fix old style edit text drawable display error." 2012-05-23 14:58:09 -07:00
Svetoslav Ganov
84710bb8b0 Merge "Updating the accessibility sample due to a security fix." into jb-dev 2012-05-21 13:13:41 -07:00
Dianne Hackborn
58ce6f06a1 A few little tweaks to system ui flag demos.
Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
2012-05-18 19:43:57 -07:00
Svetoslav Ganov
7947d9fb6a Updating the accessibility sample due to a security fix.
1. We have fixed a security issue in the framework and
   this patch is updating the sample.

Change-Id: Icc266ceaf0064cf8d9a00d7ad48746e1f0fbbbf1
2012-05-18 12:52:33 -07:00
SeongJae Park
b9ca48dc1d Fix old style edit text drawable display error.
[Problem]
LinearLayout5, RelativeLayout2 of ApiDemos has text input field
display error.

[Cause]
They use Holo theme although text input field use old style edit text
drawable as background.

[Solution]
Use default edit text without custom background for RelativeLayout2,
LinearLayout5 sample.

Change-Id: I102bf267119ba0903bd17e898b525af0aa2f0c5d
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2012-05-16 02:53:26 +09:00