Christopher Tate
fc7c9f5d5c
Add use of PendingIntent.getForegroundService()
...
In particular, we have an example of a foreground-service PendingIntent
triggered by a 15-second delayed alarm following a button click. This
is enough time to exercise use cases like swiping the app out of recents
before the alarm fires, therefore entering the "starting a fg service
when the app is not in a fg state" flows.
Bug: 73559697
Test: this is it
Change-Id: If57908ab852c7a0bfab7bb1da8eda0a47493fc6b
2018-03-19 16:25:01 -07:00
Adrian Roos
59e2e04dc1
ApiDemos: Add maxAspectRatio demo
...
Bug: 72696928
Test: Install and open ApiDemos > App > Activity > Max Aspect Ratio > 1:1 / 16:9 / Any
Change-Id: Ie76c8c4babd6b4c281eec8ff977a0c02a868ee0e
2018-03-15 15:32:12 +01:00
Adrian Roos
71fc3601bd
ApiSamples: Add PIP sample
...
Test: Open ApiSamples > App > Activity > Picture in Picture
Change-Id: I205cdc00533b19be46c7837012a96705c7a4a62f
2018-02-19 18:34:48 +01:00
Makoto Onuki
10d6c41f9b
Add while-idle alarm support to apidemos
...
Test: Manual test
Bug: 72124522
Change-Id: I9d0c0ed4b6a045e4f8f566c4e9844290e850e2fc
2018-01-30 13:20:06 -08:00
Peter Visontay
75bca25be1
Add a demo of the Session-based PackageInstaller to ApiDemos.
...
Test: Manually.
Change-Id: If084477e8970777ef5cd90c55afe86a116ee1458
2017-11-16 21:49:17 +00:00
Dianne Hackborn
5229a90146
Add sample for enqueuing work in a job.
...
Basically this is to have sample code to include in the java docs.
Bug: 37544153 API Review: JobWorkItem
Test: none
Change-Id: Ie4ed3ce4af8239010da2647fab00ed2aadb1d348
2017-04-21 15:02:25 -07:00
Dianne Hackborn
8a416b3033
API demo for notification that starts a background service.
...
Test: not relevant
Change-Id: I9ad6640dccded3be0baf879a6694f9535144d80c
2017-01-23 14:20:03 -08:00
Vladislav Kaznacheev
e4b96eb9fc
Correct string resources for tooltips demo in ApiDemos
...
Bug: None
Test: manual
Change-Id: I7bea1d0beb0ec94217fa6aa30c11c32702cd05ba
2016-12-22 14:47:50 -08:00
TreeHugger Robot
3d87989183
Merge "Add tooltip demo to ApiDemos"
2016-11-22 22:15:47 +00:00
Vladislav Kaznacheev
922dea9376
Add tooltip demo to ApiDemos
...
Test: launch com.example.android.apis.view.Tooltips
Bug: 31515376
Change-Id: I5456740c4e93105c5058c198b22f4fd7634f3b46
2016-10-20 15:28:25 -07:00
Robert Carr
3ca1a928a4
Include seamless rotation mode in API Demo.
...
Test: Try the RotationAnimation activity of API demos.
Change-Id: I4f3aba54d310ecbe06776190a4096c71fdf85d24
2016-10-18 14:42:10 -07:00
Dianne Hackborn
9302998b13
Add API demo for running multiple foreground services.
...
Change-Id: I44435f6e7750ccbbadf5e293dd10069c6cef94a4
2016-08-01 17:52:18 -07:00
Michael Wright
71620c8898
DO NOT MERGE Rename PointerIcon and Pointer Capture APIs
...
This is a response to API council feedback.
Bug: 26830970
Change-Id: I19d3919dc201fdf2b949074f02490669b4a5d775
2016-05-17 20:03:23 +01:00
Adrian Roos
1052d438de
Update Sample Device Admin
...
Adds options to exercise the newly added KEYGUARD_DISABLE_REMOTE_INPUT
and not so newly added KEYGUARD_DISABLE_FINGERPRINT.
Change-Id: I0e2a05f2a668b7d8ceacde3abcf5f8c80cb4bdb9
Fixes: 26981262
2016-05-11 15:51:11 -04:00
Makoto Onuki
08d2a04420
Add a secondary DA to ApiDemos for testing
...
Bug 27107878
Change-Id: Id8179926d424ca8b4678ac028f4c9eab7a81a4c2
2016-02-10 11:28:49 -08:00
Vladislav Kaznacheev
2ba9c45dc0
Add example of pointer icon resource reference to ApiDemos
...
Change-Id: I3e88a097725b69aefd38169c0b37d64ebd6ddec5
2016-02-09 00:37:12 +00:00
Jun Mukai
6cb3668322
Introduce the examples of pointer shape API.
...
Change-Id: Ib0be39d560fbc00db661f639a02c4df2e2c1867b
2016-02-03 14:54:44 -08:00
Dianne Hackborn
e3ad7fa9ac
Add API demo for monitoring media content.
...
Both the classic ContentObserver API, and the new
JobScheduler API.
Change-Id: I2011389abb2f863e810ccc9012fb3c53c93c76fd
2016-01-22 11:08:37 -08:00
Alan Viverette
bfd633ad65
Update ApiDemos control samples for Material
...
Adds examples for a variety of Material-only control styles including
underlined Spinner and discrete SeekBar. Groups controls into cards.
For the old-style controls, moves some run-time setup tasks into XML.
Bug: 19352193
Change-Id: Ibb1c82ac6ecaca3b93f3acfd65ef67cd9784fef4
2016-01-07 16:41:10 -05:00
Dianne Hackborn
1cd11bc0ff
Extend foreground service test to demonstrate doze behavior.
...
Change-Id: I81162b6a309a09c1041b71fce1e9a8335afa5b53
2015-12-02 14:17:08 -08:00
Alan Viverette
c3042be803
Add sample magnification controller service
...
Bug: 22718911
Change-Id: I25d2ca95836f7fe033accf215fd925fd06505b12
2015-11-13 10:49:10 -05:00
Alan Viverette
75f0029e5f
More seek bars in ApiDemos
...
Change-Id: I4a868da4ebfd527609d9983d5236d89624c2c011
2015-05-29 16:24:22 -07:00
Clara Bayarri
8027fa76f3
Merge "Fix the description text for the Text Processing sample" into mnc-dev
2015-05-19 14:41:57 +00:00
Clara Bayarri
54ada6e220
Fix the description text for the Text Processing sample
...
Change-Id: I288ad5e1cf3790d0cf31398e83f8a4cf424ef87b
2015-05-19 15:21:42 +01:00
Wale Ogunwale
e6dc9d0ff5
Added no transiton animation option to animation demos.
...
Bug: 20823935
Change-Id: Ie43fb14c1df5a4216a8523761ea4bd30da5a66e9
2015-05-14 17:39:10 -07:00
Clara Bayarri
9326316443
ApiDemos: Add a sample for Text Processing intents.
...
Change-Id: Ic2b333a6c83d24e73216daa69e68f473e33d103f
2015-04-09 19:28:54 +01:00
Dianne Hackborn
3e8a010ab6
Merge "Add API demo for sharing."
2015-03-16 18:05:59 +00:00
Dianne Hackborn
aa9e46deb6
Add API demo for sharing.
...
Change-Id: I8f65979ab67297932e82f26eba8c4729725ee6d5
2015-03-12 11:20:52 -07:00
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
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
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
dd27218e5d
Use Material theme's default enabling of Activity Transitions.
...
Bug 15746767
Change-Id: I88eaeeab5483cc2b82837a2ddca6702ffa25fcd4
2014-06-24 06:55:58 -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
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
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