Commit Graph

829 Commits

Author SHA1 Message Date
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
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
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
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
bde918648d API Demos: Specify rotation animation in manifest
Just an example of specifying rotation animation
in manifest.

Test: Try running the activity and verify the rotation animation is crossfade
Change-Id: I4481c0fd317fa4f472822159288bd5521cc52ec2
2016-10-19 14:49:18 -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
747849e01a Add API demo for running multiple foreground services. am: 9302998b13
am: d9cdb23133

Change-Id: Ied29cf6325a76169b68b91a19fcebbb66b9a70b1
2016-08-02 17:21:38 +00:00
Dianne Hackborn
9302998b13 Add API demo for running multiple foreground services.
Change-Id: I44435f6e7750ccbbadf5e293dd10069c6cef94a4
2016-08-01 17:52:18 -07:00
Dianne Hackborn
9060270b1a Merge "Fix issue #29058724: Improve JobScheduler API demo" into nyc-dev
am: e3d3154c1a

* commit 'e3d3154c1ad7cfd2543bb839623646b942714908':
  Fix issue #29058724: Improve JobScheduler API demo

Change-Id: I671396349d2342c1dc9cd50020281f9711b6d8af
2016-06-01 22:42:35 +00:00
Dianne Hackborn
1f502540b7 Fix issue #29058724: Improve JobScheduler API demo
Change-Id: I551d4d3376e522ee2d790331e8f83711450c9d19
2016-05-31 18:03:28 -07:00
Michael Wright
095780b610 Merge "DO NOT MERGE Remove Pointer Capture API." into nyc-dev
am: d48a67a190

* commit 'd48a67a190f785b5f5d1b41a5a8823592730deb7':
  DO NOT MERGE Remove Pointer Capture API.

Change-Id: I8c3b55f159f30405813f508bc347fe844d092d23
2016-05-26 14:25:55 +00:00
Michael Wright
d48a67a190 Merge "DO NOT MERGE Remove Pointer Capture API." into nyc-dev 2016-05-26 13:40:24 +00:00
Michael Wright
a2f5caf77e Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev
am: e575990583

* commit 'e575990583183fc804e1ff41e91dea8c7dd5decc':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: Ida8e72342627123b0be5976236b5a2e0ca60db13
2016-05-19 15:11:56 +00:00
TreeHugger Robot
e575990583 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev 2016-05-19 15:03:35 +00:00
Yohei Yukawa
8c7fcef8b1 Merge "Follow class package change: LocaleList" into nyc-dev
am: c80ac6dc90

* commit 'c80ac6dc90722a139457ff68ca687ba6acde8a2b':
  Follow class package change: LocaleList

Change-Id: Id823d52d6dec9456e6c16e621a4a0f8eff90f68f
2016-05-18 02:24:48 +00:00
Yohei Yukawa
2e3c5bd7cc Follow class package change: LocaleList
In order to avoid layering violation, LocaleList needs to be moved from
android.util package to android.os package [1].  This CL follows up that
package change.

No behavior change is intended.

 [1]: Ia8de2ee9df3dd0a42b1fe84574439519b680fe18

Bug: 28819696
Change-Id: Ib331cc3a63f7a1e656573f032a1e69eb906f7c14
2016-05-17 15:47:19 -07:00
Michael Wright
10102e4d88 DO NOT MERGE Remove Pointer Capture API.
Bug: 26830970
Change-Id: I14d8facef79710eb5397cff83ddde348a39f5c5f
2016-05-17 20:03:29 +01: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
1e502f0b23 Merge "Update Sample Device Admin" into nyc-dev
am: ddb8d18cc8

* commit 'ddb8d18cc83510aa48843ed7ccc54b1926ff2486':
  Update Sample Device Admin

Change-Id: I62f16ef703d532fca25197fd2778884649068aab
2016-05-12 20:58:16 +00: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
Dianne Hackborn
7bfe99a441 Merge "Fix issue #28051399: API demos crashing on Remote service binding options" into nyc-dev
am: 14e56c1aa6

* commit '14e56c1aa6ca7555ccd996a73845a0b41abc791d':
  Fix issue #28051399: API demos crashing on Remote service binding options

Change-Id: I99cca87200b9214d95d8d05965e776201a2da271
2016-05-06 17:20:31 +00:00
Dianne Hackborn
da2cd13037 Fix issue #28051399: API demos crashing on Remote service binding options
Details, details.

Change-Id: I43687a1a593b2c7bd176b33d4c9c9169be723d72
2016-05-05 18:00:07 -07:00
Bo Hu
a2f5ea2872 Merge "Revert "Emulator: enable predexopt for some sample apps"" into nyc-dev
am: 4b0fd87660

* commit '4b0fd876600d41567744cc76bd572c8d2b31ea7e':
  Revert "Emulator: enable predexopt for some sample apps"

Change-Id: I3f43230d40612cba121f4b9750dfa0a5c981eee7
2016-05-02 17:35:14 +00:00
Bo Hu
4b0fd87660 Merge "Revert "Emulator: enable predexopt for some sample apps"" into nyc-dev 2016-05-02 17:20:15 +00:00
Bo Hu
14e8cd50f2 Revert "Emulator: enable predexopt for some sample apps"
because it breaks jank tests.
revert first


This reverts commit 59581fb6d4.

Change-Id: Ic4b07b28edd387826fc58df86b02bbab460c9074
2016-05-02 17:16:53 +00:00
bohu
c0e9432a3e Merge "Emulator: enable predexopt for some sample apps" into nyc-dev
am: 4840343

* commit '484034351588bb9b428b18e38e6b8103b40e75ea':
  Emulator: enable predexopt for some sample apps

Change-Id: I10112a8f32d8ff95eafbeea3b2709ed1728dacff
2016-04-28 00:25:46 +00:00
Bo Hu
4840343515 Merge "Emulator: enable predexopt for some sample apps" into nyc-dev 2016-04-28 00:13:28 +00:00
bohu
59581fb6d4 Emulator: enable predexopt for some sample apps
Some sample apps on emulator are placed on /data
partition and are not pre-dexopted.
Enable them to make the emulator system image a
little faster, especially for arm.
bug: 28312444

This should only impact SDK system images, not
real devices.

Change-Id: Icdb34512a3a6d95b4d6ffd2415835c6ba8c77fcc
2016-04-26 12:46:13 -07:00
Vladislav Kaznacheev
4347d8540f Merge "Rename DropPermissions to DragAndDropPermissions" into nyc-dev
am: 70cf529d14

* commit '70cf529d14e2d1471b27883d028c927531d363a3':
  Rename DropPermissions to DragAndDropPermissions

Change-Id: I40e0d3fb60ace1ec69a59efb260f8a6103cde1c7
2016-04-21 21:45:12 +00:00
Vladislav Kaznacheev
70cf529d14 Merge "Rename DropPermissions to DragAndDropPermissions" into nyc-dev 2016-04-21 21:34:24 +00:00
Christopher Ferris
751b792122 Merge "Fix up the makefiles and some samples." am: 2473cab
am: d0a7343

* commit 'd0a7343e682c4f005026ba99b8227d9871650ecb':
  Fix up the makefiles and some samples.

Change-Id: I56a3636c3c299ad4ed2e2e37479f7aef94a56be3
2016-04-20 22:34:44 +00:00
Vladislav Kaznacheev
a4911fcb08 Rename DropPermissions to DragAndDropPermissions
Bug: 28296057
Change-Id: If7a1186437320144252e079a29fece64950afcf5
2016-04-20 14:22:39 -07:00
Christopher Ferris
0e2da18081 Fix up the makefiles and some samples.
Add LOCAL_DEX_PREOPT := false to force the samples to build actual apks.

In addition, fix a couple of other small issues:

- TtsEngine didn't have the api level set properly.
- SimpleJNI used a non-ndk library and was using libc++.

Change-Id: I1fd7c187956eed4620049bb746f4d62babcd648a
2016-04-19 14:32:13 -07:00
Alan Viverette
dede2c340a Use Light.DarkActionBar theme as default for ApiDemos
Change-Id: I6ed0b034641953b6b445ea818c7b3b379089d53d
2016-04-19 10:16:12 -04:00
Dianne Hackborn
96370959b6 Improve photos content observer demo.
This is now much more like one would write to look for
photos being added/changed.  It looks at the URIs that have
changed and filters them to only files that it cares about
(in this case those under DCIM, that is photos added by the
camera), and also explicitly understands the difference
between individual URIs changing and a more general change
requiring a full re-query of the provider.

Change-Id: I509570aa66839f8b84b5a065c4b4e49fbd0f1c29
2016-04-07 15:29:26 -07:00
Dianne Hackborn
a4a1bb7dca Add sample for observing only photos changes.
Change-Id: I954fb466fb21d73f88b1dd1bc86eac617a628073
2016-03-21 13:31:34 -07:00
Vladislav Kaznacheev
4f15403fbe Add drag and drop to VideoViewDemo
Play videos dragged from other apps (such as Files app).

Change-Id: I010eada2aed6a14bab04e6b583f07551d91a200c
2016-03-03 10:37:38 -08:00
Makoto Onuki
68bfa3736d Make ApiDemos movable to SD card
Change-Id: I53d923a44360c16d42d1b646a182c706888027a8
2016-02-16 17:03:02 -08: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
c2baa88d9d Merge "Introduce the example of pointer capture API" into nyc-dev 2016-02-09 00:39:58 +00:00
Vladislav Kaznacheev
2ba9c45dc0 Add example of pointer icon resource reference to ApiDemos
Change-Id: I3e88a097725b69aefd38169c0b37d64ebd6ddec5
2016-02-09 00:37:12 +00:00
Vladislav Kaznacheev
8789484eab Introduce the example of pointer capture API
Change-Id: I36276669ca0c8d8b200390064deca8c42603cb0d
2016-02-09 00:36:02 +00:00
Alan Viverette
10150941ff Fix ApiDemos layout
Change-Id: I67b15d38a8d947d30ce9c3789c5000c7850861d2
2016-02-05 12:49:44 -05:00
Alan Viverette
47683023d5 Fix duplicate IDs in Material controls demo
Change-Id: Ic87b4ae520ba22387e4902bdc6b841b635921080
2016-02-05 12:41:56 -05:00
Jun Mukai
6cb3668322 Introduce the examples of pointer shape API.
Change-Id: Ib0be39d560fbc00db661f639a02c4df2e2c1867b
2016-02-03 14:54:44 -08:00
Yohei Yukawa
fa3c909d8d Merge "Add sample code for EditorInfo#hintLocales." 2016-01-27 18:00:35 +00:00
Yohei Yukawa
85a32da54f Add sample code for EditorInfo#hintLocales.
This CL adds some sample entries so that IME developers can test their
IMEs with various EditorInfo#hintLocales.

Bug: 22859862
Change-Id: Ic0bc98bc4c9cb7b874ca8d54433bde76d05e8e03
2016-01-26 13:50:50 -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