Commit Graph

913 Commits

Author SHA1 Message Date
James Cook
6a57fe0646 Add more text samples to ApiDemos, move to Views/Text
There are many more variants of TextView and EditText than are shown
in Views/Controls. Add new pages with some of the variants and move
all the text examples to Views/Text.

Bug: 21518721
Change-Id: Ie839e9c964d019ffbe8be2170e124276b087916d
2015-05-29 14:50:40 -07:00
Dianne Hackborn
57f208bd11 Fix service samples, especially remote services.
Change-Id: I02c761f24ffddc1108b2c032f1820eac19ed2c05
2015-05-22 11:53:05 -07:00
Alex Klyubin
62ff695bdc Switch Android Keystore sample code to new API.
Bug: 18088752
Change-Id: I7cae9af4676decc405f00896b6fdeda405ee6855
2015-05-19 13:35:13 -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
Robin Lee
d72e5b22bb Fix keystore demo layout for Nexus 7
The plaintext and ciphertext fields weren't showing up on Nexus 7
(possibly other devices too) because of some unresolvable dependencies
between UI elements.

Also stopped leaving these fields editable when no key was selected
and corresponding action buttons were switched off.

Change-Id: I32ed3e2f24c134504a02db6fdfb9905ec147fbdd
2015-05-11 13:43:56 +00:00
Clara Bayarri
9326316443 ApiDemos: Add a sample for Text Processing intents.
Change-Id: Ic2b333a6c83d24e73216daa69e68f473e33d103f
2015-04-09 19:28:54 +01:00
Doris Liu
2ef936dbae Add sample code for specifying per-keyframe interpolator in xml
Depend on ag/667176
Bug: 19913234

Change-Id: Iaf4160646a972dcc9fd1d885f1ffc0cd68a3b6ac
2015-04-02 18:00:48 -07: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
Adrian Roos
6826ec699f Merge "Revert "Fix the build"" 2015-03-11 16:05:40 +00: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
Adrian Roos
b9c9443703 Revert "Fix the build"
This reverts commit 18c5fb7c2c, which
disabled the trust agent whitelisting in the sample device admin. Now
that the API is re-enabled, that code should be too.

Bug: 19461292
Change-Id: I85e3b4dcaab500ea9dd4b7e75490ca840ff396be
2015-03-09 16:08:55 +00:00
Jim Miller
94b490117c am 71abf355: am 34bdc613: am fe07a079: am 18c5fb7c: Fix the build
* commit '71abf355011906353a571b471c04027bf2112804':
  Fix the build
2015-02-25 19:11:20 +00:00
Jim Miller
71abf35501 am 34bdc613: am fe07a079: am 18c5fb7c: Fix the build
* commit '34bdc6136f13d01af339fd0c8f1f569bb28d6971':
  Fix the build
2015-02-25 19:04:55 +00:00
Jim Miller
18c5fb7c2c Fix the build
This API was hidden for MR1.

Bug 19461292

Change-Id: Ib0a5ca536e843c91a142faeeccf684294aa3e274
2015-02-25 10:37:37 -08:00
Neil Fuller
f9c21d6616 am e0a3b19f: am f66c8d36: Merge "Remove usages of FloatMath"
* commit 'e0a3b19ffbd69b4401724477d346dc1494bad04a':
  Remove usages of FloatMath
2015-02-12 19:30:31 +00:00
Neil Fuller
e0a3b19ffb am f66c8d36: Merge "Remove usages of FloatMath"
* commit 'f66c8d36ed081d901e495b904965e8f341ed47de':
  Remove usages of FloatMath
2015-02-12 17:42:38 +00:00
Neil Fuller
501302f264 Remove usages of FloatMath
Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: Id6c206045a4d54befe99af9e44732c4967460b28
2015-02-11 15:52:31 +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
7dda1047dd am e9860761: am 2503a62b: Merge "Have the MediaProjection sample use the callback." into lmp-mr1-dev
* commit 'e98607612927716a2b3730702f056528d5fd6b29':
  Have the MediaProjection sample use the callback.
2014-12-03 02:51:51 +00:00
Michael Wright
bcbb01686c Have the MediaProjection sample use the callback.
Bug: 18393320
Change-Id: I482ed9cde5444d62a5486f4ca91e3dc6b441e673
2014-11-21 14:11:52 -08:00
Ye Wen
55e7d1831c am 42ca4250: am 565cafe7: Merge "PduParser MSIM support (4/4)" into lmp-mr1-dev
* commit '42ca42509c76f23d883ffa991d06afb36673b21c':
  PduParser MSIM support (4/4)
2014-11-19 00:19:17 +00:00
Ye Wen
03f9acc909 PduParser MSIM support (4/4)
PduParser needs to know if Content-Disposition part header is supported
for a specific carrier. Originally this is loaded directly from system
resource in PduParser. This won't work for multi-SIM, which requires
getting that config based on carrier. This change adds parameter to
indicate if this header is supported and requires caller to provider the
config.

b/18371228

Change-Id: I8a0a7ce91d1b9581fe5d4545fa954277a661751b
2014-11-18 12:34:04 -08:00
Jim Miller
b7651e12c4 am 1064b49c: am eb7edd58: Merge "Update TrustAgentService API after review" into lmp-mr1-dev
* commit '1064b49cedcf80bcfaf8bd6824fc8cabae256e99':
  Update TrustAgentService API after review
2014-11-06 03:01:41 +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
Neil Fuller
29329726c3 am 29923a44: am a6e8e0d8: Merge "Remove dependencies on FloatMath"
* commit '29923a44e65d97b211484f6667c3155bfc396ec9':
  Remove dependencies on FloatMath
2014-10-15 10:34:45 +00:00
Neil Fuller
b48e878893 am 29923a44: am a6e8e0d8: Merge "Remove dependencies on FloatMath"
* commit '29923a44e65d97b211484f6667c3155bfc396ec9':
  Remove dependencies on FloatMath
2014-10-15 10:34:37 +00:00
Neil Fuller
dd4697d316 Remove dependencies on FloatMath
See frameworks/base commit 33253a4baa6279f81a73425b49dfb6abe5f5416e
for details.

Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I01126788f34b9a464b873bc2fff03acedc43bb52
2014-10-02 15:19:08 +01:00
Cheuksan Wang
33fe444f11 Merge "Send and download MMS via content provider instead of PDU bytes." into lmp-dev 2014-09-12 17:08:18 +00:00
Michael Wright
2326f11a21 Change getScreenCaptureIntent to createScreenCaptureIntent.
Bug: 17389882
Change-Id: Icaccc6572f7fd5865f3013960bae196afa6d5dd5
2014-09-11 19:37:51 +00:00
Alan Viverette
bbb85f6351 Fix progress spinner dialog in ApiDemos
BUG: 17446820
Change-Id: If6201e4483a5102d0f1567a36d1edf70392d5b8f
2014-09-09 18:20:08 -07:00
Cheuksan Wang
cfb685d52e Send and download MMS via content provider instead of PDU bytes.
Change-Id: Ib5a93d07799c9e14fea8be820c6bd4bc7ae8be3a
2014-09-09 16:53:38 -07: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
Ye Wen
ab56bf9812 Revert "Enforce READ_SMS permission in file provider used by MMS API demo"
This reverts commit 3060e54b6e.

Change-Id: I430f84f2694511130879eefb11311fe7d2565f43
2014-09-05 21:23:47 +00:00
Ye Wen
3060e54b6e Enforce READ_SMS permission in file provider used by MMS API demo
b/17403930

Change-Id: I7cc17f53c95d3779e43003538b8c833369c5a182
2014-09-05 11:40:48 -07:00
George Mount
0911ea8db7 Merge "API Review: change SharedElementListener to SharedElementCallback" into lmp-dev 2014-09-05 13:55:45 +00:00
George Mount
00fc6d9b06 API Review: change SharedElementListener to SharedElementCallback
Bug 17289526

Change-Id: I5d28a77d870b83cc93483be23635bc669978cefc
2014-09-04 15:41:53 -07:00
Ye Wen
d6ef9163ed MMS API cleanup (4/4)
- Hide APIs not approved by API council (b/17189780)
- Change configOverrides in MMS APIs from ContentValues to Bundle to be
consistent (b/17390017)
- Change SmsManager.MMS_EXTRA_DATA to EXTRA_MMS_DATA per API council
review (b/17390977)

b/17189780
b/17390017
b/17390977

Change-Id: Id9ae09ae4ef083186b93677ffabf5640c54aa99d
2014-09-04 15:41:13 -07:00
Julian Odell
9b00ec9132 Bug 17262099: MMS API changes (multi-project).
Change API demo to use new content provider based MMS API.
Rebased and merged with TOT.

Change-Id: Ia1b815f2904ccfc9962960369f85e1f2de830927
2014-09-03 13:13:33 -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
bf1e26281d Update samples to new MediaProjection APIs.
Change-Id: Ic7422fd4770d7f272fcb92a7752f5f184c4f0c9c
2014-08-06 20:07:12 -07:00
Michael Wright
d17804f530 Add MediaProjection samples
Change-Id: I630900bdcfecc7f1c57b406a0bae09a0e917124a
2014-08-05 19:59:01 +00:00