Commit Graph

3458 Commits

Author SHA1 Message Date
TreeHugger Robot
62e6b0467b Merge "Change the AdaptiveIconSample to use mipmap-anydpi directory for AdaptiveIconDrawable location Bug: 36068314 Bug: 35908647 Bug: 35400815 Test: manual" 2017-03-13 20:04:08 +00:00
Ben Lin
77e01745b8 Merge "Update DocumentsContract call." 2017-03-13 17:27:18 +00:00
Hyunyoung Song
db94008bc6 Change the AdaptiveIconSample to use mipmap-anydpi directory for AdaptiveIconDrawable location
Bug: 36068314
Bug: 35908647
Bug: 35400815
Test: manual

Change-Id: Icc20f1d0989e2bca2ad1c3b484a60d99dfcc5d8c
2017-03-12 23:36:58 -07:00
Ben Lin
9cf5fd65aa Update DocumentsContract call.
Test: Builds properly.
Bug: 36023174
Change-Id: I6d8c604a9660741dda1c997f949efd0f570cc506
2017-03-09 11:04:44 -08:00
Joachim Sauer
96f6845b80 Merge "Renaming Czech Republic to Czechia." am: a824f044c3 am: e7b9cff32e
am: cb632200b0

Change-Id: I79436472ad4a60803db657cbf82b2cde008558a2
2017-03-08 17:49:22 +00:00
Joachim Sauer
e7b9cff32e Merge "Renaming Czech Republic to Czechia."
am: a824f044c3

Change-Id: Iaa98ab9b06edc1adc70bf3a4661069eed9c6f05b
2017-03-08 17:38:52 +00:00
Joachim Sauer
a824f044c3 Merge "Renaming Czech Republic to Czechia." 2017-03-08 17:31:27 +00:00
Paul Duffin
061c702dae Merge "Prepare for removal of junit and android.test classes from Android API (step 1)" am: f2d90cc8d8 am: b017d07b78
am: 18c0851a12

Change-Id: I2dead96af0552919fb06c5298a28034121afa2f0
2017-03-03 10:06:33 +00:00
Paul Duffin
b017d07b78 Merge "Prepare for removal of junit and android.test classes from Android API (step 1)"
am: f2d90cc8d8

Change-Id: I1cb7c5aeb0c3efaf5477df9ef8c08fad425742e9
2017-03-03 10:01:04 +00:00
Paul Duffin
3a87d4fea4 Prepare for removal of junit and android.test classes from Android API (step 1)
In preparation for removing junit and android.test classes from
the Android API this change adds explicit dependencies on junit
and/or legacy-android-test to ensure that modules will compile
properly once it is removed.

Care was taken to ensure that any targets that depended,
directly or indirectly, on android-support-test did not also
depend on junit or hamcrest as they conflict with the versions
embedded within android-support-test.

Bug: 30188076
Test: make checkbuild
Change-Id: I03f7836a1081acda5ed2c6e43cb24e9dc23b944c
2017-03-01 13:21:09 +00:00
Fredrik Roubert
3e55022b86 Renaming Czech Republic to Czechia.
Bug: 34964100
Test: n/a
Change-Id: I711723923cefa88c99585518b085a2c8df076b7d
2017-02-23 17:30:02 +01:00
Hyunyoung Song
d00f26a867 Merge "Cleanup non-aosp assets with aosp assets Test: installed on O and N device and verified the three icons." 2017-02-23 08:04:49 +00:00
Hyunyoung Song
18754db637 Cleanup non-aosp assets with aosp assets
Test: installed on O and N device and verified the three icons.

b/35634834

Change-Id: Ib74262080d2f67821fa2950429a31269186ff3ad
2017-02-22 16:59:56 -08:00
Bryce Lee
1e71f119c4 Merge "Stop screen sharing when exiting MediaProjectionDemo." 2017-02-21 23:22:34 +00:00
Hyunyoung Song
ecc5f8c011 Change MaskableIconDrawable to AdaptiveIconDrawable
Test: $ make -j31 dist

Bug: 35399620
Change-Id: I9425d14b25ad44630c33e07b4bb4f925258b18f9
2017-02-17 14:54:29 -08:00
Hyunyoung Song
b12e980c48 Update MaskableIconActivity
Test: this is a sample test app for MaskableIconDrawable

b/35400815

Change-Id: Id4ea1bd8ea3694a13fba81e7c5a37255654d146c
2017-02-16 17:55:07 -08:00
Bryce Lee
f7a0b42d09 Stop screen sharing when exiting MediaProjectionDemo.
The existing implementation will leave screen sharing running after
stop, causing the VirtualDisplay to not be destroyed. This change
makes sure any screen sharing ends on stop.

This change also addresses the the ToggleButton's state being saved.

Test: manual
Bug: 26221019
Change-Id: I51ac8bf09932a83100776c919146eed8c28f35b3
2017-02-16 14:09:43 -08:00
Trevor Johns
48d22f3c54 Increment package revision for 2017-02 samples release am: 49453c6ceb am: 687e7b105f am: aba600bc4a
am: 451d9b9f65

Change-Id: Icdd8b7abf862a1496c0d8a8c0532ca6e03044094
2017-02-11 02:03:58 +00:00
Trevor Johns
e95151910d Update sample prebults for 2017-02 release (nyc-mr1-dev) am: 8a66f8cbc0 am: b2c8c7c8d8 am: 95aaa6f803
am: 004a8df08d

Change-Id: I0b17a8cfa9f950e133d62af0cecf2ebfbc95482b
2017-02-11 02:03:53 +00:00
Trevor Johns
aba600bc4a Increment package revision for 2017-02 samples release am: 49453c6ceb
am: 687e7b105f

Change-Id: I99560dd453449878cfbbf39bee60130bcbcfebd4
2017-02-11 01:59:02 +00:00
Trevor Johns
95aaa6f803 Update sample prebults for 2017-02 release (nyc-mr1-dev) am: 8a66f8cbc0
am: b2c8c7c8d8

Change-Id: Ib89130912b7bee51a2d546c447b0d165bfdd91a2
2017-02-11 01:58:58 +00:00
Trevor Johns
49453c6ceb Increment package revision for 2017-02 samples release
Change-Id: Id775a1d0715b839404852ce3b8318ba89447f071
2017-02-09 00:46:33 -08:00
Trevor Johns
8a66f8cbc0 Update sample prebults for 2017-02 release (nyc-mr1-dev)
developers/samples/android commit: 6f3586bc08b96d14d8f1315f4839ac59aa39798c

Change-Id: I08c9af2d58f1b3314eba807048dc05175a58e164
2017-02-09 00:45:30 -08:00
Makoto Onuki
790a0402aa Add a test app for DevicePolicyManager.wipeData().
Test: mmm -j32 development/samples/DataWiper and then manual testing
Change-Id: Iaf25d540f64083d4079052beddb341b17014d41f
2017-02-02 12:02:54 -08:00
TreeHugger Robot
ffb38bcc8c Merge "Add Pointer capture demo to APIDemos" 2017-01-27 19:43:41 +00:00
Vladislav Kaznacheev
5dab9f1f4f Add Pointer capture demo to APIDemos
Bug: 30897034
Test: manually in ApiDemos > Graphics > OpenGL ES > Touch Rotate
Change-Id: Id87b17938cf876b4886de69ffaa8a2b3c4f27143
2017-01-27 09:05:41 -08:00
Sunny Goyal
8e930924c5 Merge "Updating samples as per API changes" 2017-01-26 22:22:57 +00:00
Hyunyoung Song
1ab4cd2194 Merge "Sample app that use MaskableIconDrawable as its launcher icons" 2017-01-24 23:01:40 +00:00
Sunny Goyal
fb19290186 Updating samples as per API changes
Test: Manually tested on device
Bug: 34174006
Change-Id: I811753b2ebfb7319f50b1eabbc00c3decaaea755
2017-01-24 12:21:20 -08:00
Dianne Hackborn
235a87737e Merge "API demo for notification that starts a background service." 2017-01-24 00:49:11 +00:00
Hyunyoung Song
851d2896f2 Sample app that use MaskableIconDrawable as its launcher icons
Test: this is a manual test app to MaskableIconDrawable class CL in the same
topic branch.

Bug: 32063838

Change-Id: I15317fb01f0e114467ea6f76e568a68f88e5191d
2017-01-23 15:43:26 -08: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
Makoto Onuki
68c1022e01 Fix shortcut sample
Bug: 34615774
Test: manual tests
Change-Id: Ie9527f58a76a5ead412f4ef51f46e1b1295a3ecc
2017-01-23 12:25:05 -08:00
Makoto Onuki
64ef7bcd6f Support new ACTION_CREATE_SHORTCUT in sample apps
Test: manual tests
Change-Id: I188b846152ccf7fdb143be69d6375ece4f61211b
2017-01-20 16:38:27 -08:00
Makoto Onuki
02a314b14c Merge "Use the new API being introduced in I34e9f351d2a8addf" 2017-01-20 23:35:56 +00:00
Makoto Onuki
0778a898f4 Use the new API being introduced in I34e9f351d2a8addf
Bug: 34340531
Test: Manual tests
Change-Id: I5c4a95edb7008bbd5723f87249cbc68c06f82234
2017-01-20 09:10:07 -08:00
Vladislav Kaznacheev
0f87eb452f Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText
Bug: 34454987
Test: adb shell am start -n com.example.android.apis/.view.Tooltips
Change-Id: I16156e5b928202f50f7290ff30ad36aa80d615d2
2017-01-19 11:05:47 -08:00
Paul Duffin
437f7e0553 Merge "Prepare for removal of legacy-test from default targets" am: 3c371ed8e4 am: 4199fe0d9c am: 26d21cc0e1
am: 6aebad5966

Change-Id: Ieb788dc147a2770cf2d16f9b4b4ff5b1ff7bf8aa
2017-01-18 16:22:38 +00:00
Paul Duffin
26d21cc0e1 Merge "Prepare for removal of legacy-test from default targets" am: 3c371ed8e4
am: 4199fe0d9c

Change-Id: Ib0d8a55ba985937ab1a7a6f1cdf9d079697b815e
2017-01-18 15:32:45 +00:00
Paul Duffin
24306258e0 Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Change-Id: I63b6cb622e46952a48938ed055e8892eeaa67f72
2017-01-17 14:49:41 +00:00
Steve McKay
9650440ff2 Disambiguate call to queryChildDocuments.
Test: Build, but tests don't build due to an unrelated error.

Change-Id: I7e3c213c81b4b989cf664a21c87dffa490ebc215
2017-01-10 13:51:30 -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
Makoto Onuki
d865a3cfe9 Add request-pin-shortcut support
Bug 32908854
Test: manual test

Change-Id: Ic0ab41ed6cc4dabd5865f2cc9adcf1e0bfbdf087
2016-12-15 11:13:05 -08:00
Makoto Onuki
fc6a83fd85 Use the new shortcut manager APIs
Test: Manual tests
Change-Id: Ia521472f42cac7057afd42648339d3b0fb7d432a
2016-12-12 15:55:46 -08:00
Makoto Onuki
d4c3e6f7a4 Merge "Don't assume getActivity() is @NonNull" 2016-12-02 16:35:04 +00:00
Makoto Onuki
ea9c4b3b05 Don't assume getActivity() is @NonNull
Test: Manual testing.
Change-Id: I871a8b4341cfa32c142c2f7a84fc1b2b5ca32271
2016-12-01 08:44:23 -08:00
Nasir Khan
3a746f6b2f Update the Notepad sample app to: 1. Show that any application state should be saved in onStop() versus onPause(). 2. Remove the deprecated methods and start using CursorLoader instead of any managedQuery. 3. Remove deprecated LiveFolders usage. am: 3468e63e12 am: ed5495cdee am: 8dc5ea8f13
am: 2d693fd83b

Change-Id: I4fbbf382ff165eab2bbf9bef2c1678841eda01dc
2016-11-30 20:16:21 +00:00
Nasir Khan
8dc5ea8f13 Update the Notepad sample app to: 1. Show that any application state should be saved in onStop() versus onPause(). 2. Remove the deprecated methods and start using CursorLoader instead of any managedQuery. 3. Remove deprecated LiveFolders usage. am: 3468e63e12
am: ed5495cdee

Change-Id: Id3794178b8ded31df2cbb167c14224218a3b231f
2016-11-30 20:05:21 +00:00
Nasir Khan
3468e63e12 Update the Notepad sample app to:
1. Show that any application state should be saved in onStop() versus
   onPause().
2. Remove the deprecated methods and start using CursorLoader instead
   of any managedQuery.
3. Remove deprecated LiveFolders usage.

Change-Id: I65be6b91ee1d4d0980494fb8455ce0906691dc21
2016-11-28 15:03:26 -08:00
TreeHugger Robot
3d87989183 Merge "Add tooltip demo to ApiDemos" 2016-11-22 22:15:47 +00:00