Commit Graph

398 Commits

Author SHA1 Message Date
James Cook
5c42f75896 Re-enable the undo demo activity
The UI now shows these input fields:
* A normal field with buttons for programmatic SetText, append and insert.
* A field with undo disabled.
* A field with a length limit (via InputFilter).
* A field with a credit card input formatter (via TextWatcher)

Bug: 19332904
Change-Id: I41df56c84dd5232918e7ee5e6ed5874b2023cc78
2015-03-10 17:00:19 +00:00
Chet Haase
eda0dbc81c Add examples of animator resource files to ApiDemos
Issue #17939329 Expose multi-property and multi-keyframe capabilities in animation resources

Change-Id: If5b66b054b132b34c56b921209835793c7bbe674
2015-01-09 13:08:29 -08:00
Michael Wright
bcbb01686c Have the MediaProjection sample use the callback.
Bug: 18393320
Change-Id: I482ed9cde5444d62a5486f4ca91e3dc6b441e673
2014-11-21 14:11:52 -08:00
Jim Miller
d4adb57e07 Update TrustAgentService API after review
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
2014-11-03 18:48:45 -08:00
Alan Viverette
b4ced6163b Update alert dialogs in ApiDemos for Material theme
BUG: 17415772
Change-Id: Ifc1de793458f678a3c40b734d5ab08b2eb382f7a
2014-09-07 17:45:26 -07:00
George Mount
bdb8e21e40 Changed attribute name.
Bug 17188255

Change-Id: I8d5cbcd7e67ea62aeb19ca8d5652f47cafb70d3a
2014-08-31 16:03:28 -07:00
Alan Viverette
fe3ba7fbc9 Add device default light and dark dialogs to ApiDemos
Change-Id: I538c2cfb975828cd0e1e065d4cf5589e573307d5
2014-08-28 16:39:27 -07:00
Jim Miller
b52c7ae862 Merge "Revert "Add test options for DPM.setTrustAgentFeaturesEnabled()" until the new API is ready. This reverts commit d6df7362ab4b332a09d12358297056cfeadcaa11." into lmp-dev 2014-08-27 21:26:14 +00:00
Jim Miller
ac48e8f5e3 Revert "Add test options for DPM.setTrustAgentFeaturesEnabled()" until the new API is ready.
This reverts commit d6df7362ab.

Change-Id: Ie5c8e139450923374d235ea9d85f015b87851d06
2014-08-27 21:25:16 +00:00
Dianne Hackborn
9f744759d1 Work on issue #17011123: Hit Back/Recents button when in Recents...
...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
2014-08-21 17:58:05 -07:00
Tom Taylor
f1c2891a00 Merge "MMS API: ApiDemos demo app" into lmp-dev 2014-08-20 18:43:12 +00:00
Jim Miller
d6df7362ab Add test options for DPM.setTrustAgentFeaturesEnabled()
Also fixes bug where DPM flags were set in onPreferenceChanged()
which happened before being set on the checkbox preference.

Change-Id: I5a43358d02830a22107f1239c596cc1bc67d11a1
2014-08-11 17:43:27 -07:00
Michael Wright
d17804f530 Add MediaProjection samples
Change-Id: I630900bdcfecc7f1c57b406a0bae09a0e917124a
2014-08-05 19:59:01 +00:00
Ye Wen
69291d63e4 MMS API: ApiDemos demo app
b/14095333

Change-Id: Ieffbc559f636fe1c556221e23533d8ba5ac74cb6
2014-08-01 13:46:19 -07:00
Alan Viverette
b6235f6e52 Add switches to the Controls sample in ApiDemos
Change-Id: I754458204adc6a66a327e85d4e5beb8de7f5c27c
2014-07-29 16:30:12 -07:00
Jim Miller
94a862f010 Add new "pin complex" type to supported keyguard PINs
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
2014-07-16 23:49:23 +00:00
George Mount
f45c4509fb Merge "Use ChangeImageTransform instead of MoveImage." 2014-06-27 16:52:20 +00:00
Adam Lesinski
a75e45ab61 Merge "Fix incorrect external resource creation" 2014-06-26 05:59:24 +00:00
George Mount
87917e8684 Use ChangeImageTransform instead of MoveImage.
Bug 15744992

Change-Id: I76625601e576cbf8c5d44239749d28984fcea6eb
2014-06-25 13:28:16 -07:00
George Mount
dd27218e5d Use Material theme's default enabling of Activity Transitions.
Bug 15746767

Change-Id: I88eaeeab5483cc2b82837a2ddca6702ffa25fcd4
2014-06-24 06:55:58 -07:00
George Mount
c580adec26 Revert "Revert "API Review: Change View viewName attribute to transitionName.""
This reverts commit f4138cbcfc.

Change-Id: Id5531f7508b22cf0242a5bef063423d932eb104e
2014-06-23 08:18:46 -07:00
John Reck
da59fc09c9 Merge "Revert "API Review: Change View viewName attribute to transitionName."" 2014-06-23 14:51:00 +00:00
John Reck
f4138cbcfc Revert "API Review: Change View viewName attribute to transitionName."
This reverts commit 7033a59303.

Change-Id: Ibc8ff91f73b69177ad40890cea36f1b9903e5505
2014-06-23 14:51:47 +00:00
George Mount
f4a02fdb95 Merge "API Review: Change View viewName attribute to transitionName." 2014-06-21 03:15:09 +00:00
George Mount
7033a59303 API Review: Change View viewName attribute to transitionName.
Bug 15548520

Change-Id: Ie1c9fedfb1ff7e3b4e16435f71fc9df4b9107636
2014-06-20 07:38:06 -07:00
Adam Lesinski
0f2beb163a Fix incorrect external resource creation
ID resources were being created in the external 'android' package.

Change-Id: I35b5b2bb03bb093ade0c3c5dd1f22bd1269fdc6b
2014-06-19 16:29:56 -07:00
Chris Craik
7007035ef1 Add Shadow demos to ApiDemos
bug:15724818
Change-Id: I22e3faaee9bb1d46f9c9f16cac38069071e1fc0b
2014-06-19 11:06:28 -07:00
Alan Viverette
6fcf326d1a Add list navigation to API Demos
BUG: 15566102
Change-Id: I4c1dd13d5ac5502d6d3f879ce916b09d81338940
2014-06-12 12:56:36 -07:00
Alan Viverette
6adc4266c8 Material theme
BUG: 15467097
Change-Id: Icea9710a8733a0c79c114a56faa61db99b9723bd
2014-06-06 15:25:30 -07:00
George Mount
fb8e37e754 Changed sharedElementName to viewName.
Bug 14624181

Change-Id: Ia822e252030d94c0b73f41914656985656bc5efa
2014-05-12 11:50:35 -07:00
George Mount
69ac8ef1c4 Add new sample transition XML.
Change-Id: Iab0dc6f1533a2d841ff3edbda24535ba17184c7c
2014-04-29 13:46:56 -07:00
Jim Miller
1d8e0796c5 Add test harness for new keyguard features:
- disable all notifications on secure keyguard
- disable unredacted notifications on secure keyguard
- disable TrustAgents

Change-Id: I864a103263996dcd491ff77f744bff8398af9cc8
2014-04-25 15:28:28 -07:00
Jeff Sharkey
4c4580e5f6 Add code to exercise DocumentsContract.
Also fix broken "atLeastKitKat" definition.

Change-Id: I7c82ebb7b230ac66da3194412c845ff0c2b72f85
2014-04-22 22:03:37 -07:00
George Mount
f93d490356 Use new Quantum Paper Activity Transitions API.
Change-Id: Ia487e02e8cb7a90bd14b0e09392eddac5c1a06ec
2014-04-17 08:56:09 -07:00
Alan Viverette
c69dbd9404 Update ApiDemos to use API 20, default theme
Change-Id: I74f47722093bb2dd72b506603afcd5c300d53431
2014-04-08 15:31:33 -07:00
George Mount
b3059f8744 Use framework Transition MoveImage and Slide
Change-Id: I3c55ee699288f1945ae0a23dfad2ae4fd9caa9a0
2014-04-07 09:13:55 -07:00
Alan Viverette
f210b1e37f Remove deprecated Gallery and ImageSwitcher from API Demos
Change-Id: Ib6b1f23a368d042674aabd01361f76df2a8e5280
2014-03-26 14:13:36 -07:00
Alan Viverette
f37ac8560a Clean up DeviceDefault style in API Demos
Change-Id: I00b638cb99ef55accfc900758b8445765c8e6d69
2014-03-26 12:23:07 -07:00
George Mount
016fbf2c60 Undo inadvertent change to Transitions API demo.
Change-Id: Ib986f1dd560291896c5e5619c7af9947ee4efaf1
2014-03-13 10:27:03 -07:00
Alan Viverette
2178063c52 Temporarily taking over API Demos v19 for Quantum demos
v19 has been moved to v99 until we have an API rev for L release.

Change-Id: I864ef7962ce5be6f072bfe9866c9f93f12ea438e
2014-03-03 14:08:19 -08:00
George Mount
4769ecc773 Support changes in Scene Activity Transition API redo.
This reverts commit 1b3da3748f.

Change-Id: I84fd15c154a404ed10971025b7bb33f58a344965
2014-02-26 15:32:10 -08:00
George Mount
1b3da3748f Revert "Support changes in Scene Activity Transition API."
This reverts commit 8ad5ffb461.

Change-Id: I3277537f7cc6a033ea1fc2948529f96c1dbc30e8
2014-02-26 08:52:12 -08:00
George Mount
8ad5ffb461 Support changes in Scene Activity Transition API.
Change-Id: Ia19b7def404f32ea5f68d2fece04dcd5ce615a42
2014-02-25 11:12:26 -08:00
George Mount
77dfe829d1 Cross-Activity Scene transitions API demo.
Change-Id: Icd644902b61ca2f03f21045bfad3a758075fb7cc
2014-02-04 15:53:02 -08:00
George Mount
d219b22e53 Add PathAnimations ApiDemos.
Change-Id: I9b064032cd503450ba6d8c93453a4ab6c2163686
2013-12-13 22:31:50 +00: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
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
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
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
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