Commit Graph

913 Commits

Author SHA1 Message Date
George Mount
bfe084a225 Revert "Add Trim Path API demo."
Bug 12489442

This reverts commit fad0b21946.

Change-Id: I527d0927bf891fc9570e860c158a352e1767474c
2014-01-31 07:23:11 -08:00
George Mount
ca2b0f8c62 Merge "Add PathAnimations ApiDemos." 2014-01-31 15:21:10 +00:00
Chet Haase
a6e59a9d7f Add controls demo with default theme
Change-Id: I95cd31cd93e77b17aa2bcacf6e6140aaba719217
2014-01-28 14:13:31 -08:00
Tor Norbye
09ace69a89 Remove Nullable annotation
The one in the framework is being hidden; for app usage we're
adding one in the support library.

Change-Id: I5612579b4d282e78d592d36bd35d51d28cf82b37
2013-12-17 19:43:59 -08:00
George Mount
d219b22e53 Add PathAnimations ApiDemos.
Change-Id: I9b064032cd503450ba6d8c93453a4ab6c2163686
2013-12-13 22:31:50 +00:00
George Mount
fad0b21946 Add Trim Path API demo.
Change-Id: I1183413cf5a788950fdde52c26ddf737af921c5c
2013-12-10 07:50:42 -08:00
Dianne Hackborn
49ead05468 am 1437d2c3: am 59e6f5d9: am 18159037: Add API demo for game style system UI interaction.
* commit '1437d2c372f4d88c4f6c5aabfa460ce8fefa3299':
  Add API demo for game style system UI interaction.
2013-12-05 18:19:41 +00:00
Dianne Hackborn
59e6f5d9c9 am 18159037: Add API demo for game style system UI interaction.
* commit '18159037a4f6a6b539736f6b8c0bdab4d26e3bd7':
  Add API demo for game style system UI interaction.
2013-12-05 10:08:56 -08:00
Dianne Hackborn
18159037a4 Add API demo for game style system UI interaction.
Shows the ideal way for a game to interact with system UI, hiding
the status bar and nav bar while being played, making them visible
when paused or otherwise interacting with controls of the game,
and determing layout of game controls to not be covered by the
status bar or nav bar.

Change-Id: Ia192c31321113d81f96c06c7a69a06ef72c4682a
2013-12-04 16:10:30 -08:00
Katie McCormick
338417d10b am 4afb47eb: am b652393d: am b3017f4d: Sample code: bug fix
* commit '4afb47eb21efb6e299cdf907b9cef47937c6fdd7':
  Sample code: bug fix
2013-11-27 10:47:56 -08:00
Katie McCormick
b652393dd5 am b3017f4d: Sample code: bug fix
* commit 'b3017f4d2321dda48811b09813761cc53df6b893':
  Sample code: bug fix
2013-11-26 20:16:58 +00:00
Katie McCormick
b3017f4d23 Sample code: bug fix
Fix for:

b/6535950

Change-Id: I8f03a2e70c72dd68b4d183a54351ad09b23b83c4
2013-11-26 11:15:49 -08:00
Svetoslav Ganov
d89fa640d0 am a12747bc: am 7c833d71: Merge "Update the print from off-screen WebView sample" into klp-dev
* commit 'a12747bca5bc980d9844022dbf860d6b95be9b6a':
  Update the print from off-screen WebView sample
2013-10-30 19:02:02 -07:00
Svetoslav Ganov
b356564db1 Update the print from off-screen WebView sample
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
2013-10-30 18:51:49 -07:00
Svetoslav Ganov
f9c86a50ff am c100e53e: am 79efac6b: Merge "Add print samples to the ApiDemos app." into klp-dev
* commit 'c100e53e42f8f4fbbd09cf5d5a7db83bb7cd48cd':
  Add print samples to the ApiDemos app.
2013-10-30 14:11:36 -07:00
Svetoslav Ganov
42c6250c9d Add print samples to the ApiDemos app.
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
2013-10-30 12:12:55 -07:00
Svetoslav
659b59aba9 am 22af8556: am 40bea547: Merge "Adding an API demo for how to implement printing in an app." into klp-dev
* commit '22af8556df8d0c40126e3e693c0171c8bf7770d4':
  Adding an API demo for how to implement printing in an app.
2013-10-29 23:45:44 -07:00
Svetoslav
0b73e61c6c Adding an API demo for how to implement printing in an app.
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
2013-10-29 22:59:03 -07:00
Chet Haase
a1a8337f3a am f02d4487: am 9262e703: Merge "Fix ApiDemo for transitions" into klp-dev
* commit 'f02d44877aabc1c7bf5840c46c713fa82bb55477':
  Fix ApiDemo for transitions
2013-10-23 11:08:21 -07:00
Chet Haase
69ae34b2b9 Fix ApiDemo for transitions
The demo used an obsolete/wrong tag name for TransitionSet
(set, instead of the correct transitionSet). This caused the demo
to crash at runtime and to produce incorrect example docs in the
Transition reference pages.

Issue #11346546 Transition ApiDemo crashes

Change-Id: I12142870ac4f7412e5809b9cdad3ca3015449d77
2013-10-23 07:14:03 -07:00
Dianne Hackborn
f554d32aa6 am e0dce67f: am dbe4e751: New system UI API demos.
* commit 'e0dce67f030a9566e1111082392d8cd0d0e47802':
  New system UI API demos.
2013-10-14 10:51:54 -07:00
Dianne Hackborn
dbe4e751b7 New system UI API demos.
- Content browser that hides nav bar.
- Translucent bars.
- All the new flags on the direct system UI tweaker example.

Change-Id: I16fc8da252174db1ed45b0f60c37d6cbb8d7f13c
2013-10-11 16:17:58 -07:00
Erik Gilling
aeac590137 am 1c415cbb: am 438ea813: Add Consumer IR ApiDemo
* commit '1c415cbb54621f5e86dfc8364a29eaf9e35c67b5':
  Add Consumer IR ApiDemo
2013-09-11 17:22:57 -07:00
Erik Gilling
438ea813f1 Add Consumer IR ApiDemo
Change-Id: I4eb27b2ba6a46c27962eaa5e09d3e65939b64c0a
2013-09-10 21:07:58 -07:00
Alex Ray
e80479394d Merge "Remove broken os.Sensors demo" 2013-09-10 06:28:46 +00:00
Chet Haase
f3dbdc66d7 Minor fixes to animation ApiDemos
Many of the original animation demos still had hardwareAccelerated="false"
in their activity tag. This was originally necessary due to the state of the
hw renderer in 3.0, but is no longer necessary.

Also, added documentation to the new Transitions demo.

Issue #7902583 Update animation ApiDemos to use hw acceleration

Change-Id: I7add3acc10d8fa36648e1869a3ec91088b2e199d
2013-09-05 12:57:33 -07:00
Alex Ray
78b50d1aa3 Remove broken os.Sensors demo
Change-Id: I379925051521e615f057d1f81ecffddb95be7899
2013-09-05 02:14:30 -07:00
Dianne Hackborn
0a98bfeda6 Fix build -- undo manager not yet public.
Change-Id: I2d1d59e27b1bbe499421aa2312d8220d12ba18fb
2013-09-04 19:04:56 -07:00
Chet Haase
ea3e7cdb90 New demo for transitions feature
New demo in ApiDemos: animations/Simple Transitions

Issue #10460684 KLP API Review: android.view.transition and android.animation

Change-Id: I2c376343c2b945240bc5f3619786e9354a8c1a10
2013-09-04 14:20:20 -07:00
Alan Viverette
b468ddad5d Merge "Remove AccessibilityNodeProvider sample code." 2013-08-02 20:14:24 +00:00
Dianne Hackborn
b3e4bab48d Add new Intent demos.
Change-Id: Iad47cca8c3fc5ccd184e07e95c9c13877f1d4ff0
2013-07-31 16:38:48 -07:00
Elliott Hughes
c8d1c9576b am 532fc970: am 34a5e96b: am 070228fa: Merge "Extend the TimePickerDialog test to cover 12- and 24-hour clocks."
* commit '532fc97091883b5f04fd746f5bfbb8f9ad12fa15':
  Extend the TimePickerDialog test to cover 12- and 24-hour clocks.
2013-06-13 10:43:47 -07:00
Elliott Hughes
34a5e96b21 am 070228fa: Merge "Extend the TimePickerDialog test to cover 12- and 24-hour clocks."
* commit '070228fa263678b906d845039a314f2ec45f52e0':
  Extend the TimePickerDialog test to cover 12- and 24-hour clocks.
2013-06-13 10:21:35 -07:00
Dianne Hackborn
82c9189430 Add API demo for scheme specific intent filters.
Change-Id: I9363d5098e97cc035478849755d8b9a77a41e7c0
2013-06-12 18:08:54 -07:00
Elliott Hughes
94c272bf79 Extend the TimePickerDialog test to cover 12- and 24-hour clocks.
Used to test https://android-review.googlesource.com/54121.

Change-Id: Ibf8418f21a7c242aac27c7e05b4990149c8305b3
2013-06-05 16:16:04 -07:00
Alan Viverette
4e8b0858c8 Remove AccessibilityNodeProvider sample code.
This code has been superseded by the ExploreByTouchHelper class in the
support-v4 library.

Change-Id: I3ff499e3c5f404c9252d967d1a3cb4ff999dfdfb
2013-05-29 17:20:12 -07:00
Dianne Hackborn
f8e68ca19f Add "do nothing" receiver.
For testing overhead of empty processes.

Change-Id: I14803cb6b9c434bb1b1c4a17d3811f34a4063bdc
2013-05-28 15:58:48 -07:00
Dianne Hackborn
f25ca509d5 New API demo for UndoManager.
Change-Id: Ic49211c771db275f27ceefa5372b005a357fce21
2013-05-07 15:05:15 -07:00
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