Commit Graph

23974 Commits

Author SHA1 Message Date
Yohei Yukawa
45ef8b0a9e Add ThemedNavBarKeyboard sample
This CL adds a sample IME that demonstrates how an IME can now control
the appearance of bottom navigation bar like typical Activities can
do.

This sample IME covers the following 3 use cases to control the
appearance of bottom navigation bar.

A. (Bottom) navigation bar has solid background color.
    Like typical Activities, IMEs can
    - call Window#setNavigationBarColor() to change the background
      color. (Bug 25706186)
    - set SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR to tell the SysUI to
      optimize the navigation bar button colors. (Bug 69002467)

B. (Bottom) navigation background is seamlessly extended from the main
   InputView of the IME, like typical Activities can do with
   SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.  Note that essentially this
   is a super set of the mode A, because IMEs (and apps) can also fill
   the navigation bar region with a solid color in this mode.

C. The appearance of (bottom) navigation bar is controlled by the
   target application, not by the IME.
   - This is useful for floating IME (Bug 22564251).

Bug: 25706186
Bug: 69002467
Test: Build and manually test as follows.
  1. make -j ThemedNavBarKeyboard
  2. adb install -r $OUT/system/app/ThemedNavBarKeyboard/ThemedNavBarKeyboard.apk
  3. adb shell ime enable com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  4. adb shell ime set com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
Change-Id: I4b10a19641bd3ce6c43e7629404b6f202d4186e8
2017-12-25 16:45:24 -08:00
Jon Dormody
f99c699cac Merge "Docs: Moved // BEGIN_INCLUDE a few lines up so readers understand the context of the Binding class (it's an inner-class)" into oc-mr1-dev am: 4204ce2ae1
am: 05e8c5bcf9

Change-Id: Id058d0ef9d65fe6a907860ac28fcf3caed2b1464
2017-12-22 22:25:13 +00:00
Jon Dormody
05e8c5bcf9 Merge "Docs: Moved // BEGIN_INCLUDE a few lines up so readers understand the context of the Binding class (it's an inner-class)" into oc-mr1-dev
am: 4204ce2ae1

Change-Id: Ib841238c938c210f35f4f623de969038b9192779
2017-12-22 22:22:45 +00:00
Jon Dormody
4204ce2ae1 Merge "Docs: Moved // BEGIN_INCLUDE a few lines up so readers understand the context of the Binding class (it's an inner-class)" into oc-mr1-dev 2017-12-22 22:17:05 +00:00
Kathy Kam
7b767dd04a Merge "API 27r2 release config files" into oc-mr1-dev am: 3679f23d51
am: 63f23af843

Change-Id: If977b29bb41efa62bb5c3f0c6e707db9db81d8d1
2017-12-22 00:45:05 +00:00
Kathy Kam
63f23af843 Merge "API 27r2 release config files" into oc-mr1-dev
am: 3679f23d51

Change-Id: I86c9923e883fb225675af0472cc70a7a1f7e0714
2017-12-22 00:42:06 +00:00
TreeHugger Robot
3679f23d51 Merge "API 27r2 release config files" into oc-mr1-dev 2017-12-22 00:32:47 +00:00
Jae Shin
f7f7ea2530 Merge "Add script to check GPL projects have released SHA" am: 38fa0799f2 am: bae0c813a8
am: 662a8a15db

Change-Id: I7cbb32fc9f87006cce496e25e3c31a632c4351f7
2017-12-21 20:24:19 +00:00
Jae Shin
662a8a15db Merge "Add script to check GPL projects have released SHA" am: 38fa0799f2
am: bae0c813a8

Change-Id: I2afbb3b87ea677ffbcff67cc976e958b0e833720
2017-12-21 20:02:11 +00:00
Jae Shin
bae0c813a8 Merge "Add script to check GPL projects have released SHA"
am: 38fa0799f2

Change-Id: I63b08d4410fdd9dc216ae3de1b13beca065689ab
2017-12-21 19:32:20 +00:00
Jonathan Dormody
a088275ef3 Docs: Moved // BEGIN_INCLUDE a few lines up so readers understand the
context of the Binding class (it's an inner-class)

Test: make ds-docs

Bug: 2781699
Change-Id: I90c70f9b9f918a941c719e8b020b3c69f826cd43
2017-12-21 10:39:25 -07:00
Jae Shin
5c3ec8d78b Merge "Add 'notice' attribute to prebuilts in Android.bp" am: 3c8487080b am: 03073d2e8b
am: c6ea177bd4

Change-Id: I7f8770e5541d6173838c085e0ad63010fc694c96
2017-12-21 07:12:08 +00:00
Treehugger Robot
38fa0799f2 Merge "Add script to check GPL projects have released SHA" 2017-12-21 05:11:39 +00:00
Jae Shin
5233fe115b Add script to check GPL projects have released SHA
Checks that the source tree to which the VNDK snapshot is being
installed has the sources for all GPL prebuilts by confirming
the git projects have the SHA values recorded in manifest.xml.

Bug: 70603439
Test: python update.py [options]
Test: python check_gpl_license.py [options]
Change-Id: I5b34271cd0dab737187211f52b2fdce6dbd94e2e
2017-12-21 05:10:27 +00:00
Jae Shin
c6ea177bd4 Merge "Add 'notice' attribute to prebuilts in Android.bp" am: 3c8487080b
am: 03073d2e8b

Change-Id: Ica058c5a3dd6a0ac0818394b929075053be71bc1
2017-12-21 03:02:26 +00:00
Jae Shin
03073d2e8b Merge "Add 'notice' attribute to prebuilts in Android.bp"
am: 3c8487080b

Change-Id: I371440ed824847552737c33a1176b0c5e22d413e
2017-12-21 01:15:31 +00:00
Treehugger Robot
3c8487080b Merge "Add 'notice' attribute to prebuilts in Android.bp" 2017-12-21 00:38:24 +00:00
Bill Yi
94d048a699 Import translations. DO NOT MERGE am: 8035331bc7 -s ours am: 183fa1e9fc -s ours
am: 6a07d8c5ec  -s ours

Change-Id: Ib27d9de0b6a0bc15fd93b349005e4d5f1396e47d
2017-12-20 23:33:11 +00:00
Bill Yi
6a07d8c5ec Import translations. DO NOT MERGE am: 8035331bc7 -s ours
am: 183fa1e9fc  -s ours

Change-Id: I0421965e9351e9623ae0f988be961073ec600ecc
2017-12-20 21:38:22 +00:00
Bill Yi
183fa1e9fc Import translations. DO NOT MERGE
am: 8035331bc7  -s ours

Change-Id: I7ba7b6ee78baeefef32e962ae2672b7b2a67ce07
2017-12-20 20:35:47 +00:00
Netta Peterbursky
2be0d5beba Merge "Print out CRASH info when monkey encounters tombstone." 2017-12-20 17:36:53 +00:00
Bill Yi
8035331bc7 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Idcb0d304e5fb8144f1e9afb394f88d4aa699cbd4
2017-12-19 17:22:51 -08:00
TreeHugger Robot
763c085bee Merge "Winscope Initial Commit" 2017-12-20 00:48:17 +00:00
Vishnu Nair
46babab973 Winscope Initial Commit
Bug: 64831661
Test: none

Change-Id: I395f5b7d602101811f3450be96990447f145c2ab
2017-12-19 15:15:30 -08:00
Netta Peterbursky
7dcd1ea28a Print out CRASH info when monkey encounters tombstone.
Bug: 68762010
Test: Run monkey + manually add tombstone
Change-Id: I8c819ad42d1dd09b98a575a8a761041dded3d7ba
2017-12-19 14:29:47 -08:00
Jayant Chowdhary
2b95828a5c Merge "Use mangled name as unique id for C structs as well." am: 6456b0bfc9 am: 8be58e84b3
am: ab58583d8b

Change-Id: I9144c45bc2e2a4f19e185e3156fa3084b3875a6d
2017-12-19 18:28:10 +00:00
Jayant Chowdhary
ab58583d8b Merge "Use mangled name as unique id for C structs as well." am: 6456b0bfc9
am: 8be58e84b3

Change-Id: Iad945b5a35d5515d60c1100846843b5b0401113f
2017-12-19 18:23:30 +00:00
Jayant Chowdhary
8be58e84b3 Merge "Use mangled name as unique id for C structs as well."
am: 6456b0bfc9

Change-Id: I2c07a0b65c45d484e459721fd1061b3a184d6052
2017-12-19 18:20:22 +00:00
Treehugger Robot
6456b0bfc9 Merge "Use mangled name as unique id for C structs as well." 2017-12-19 10:12:48 +00:00
Jayant Chowdhary
82a9f51a14 Use mangled name as unique id for C structs as well.
Some structs could be included without extern "C" guards. If the same
struct is included in a C++ source file and a C source file, it's unique
type name will be mangled in  one and its name in the other. To work
around this inconsistency, mangle their names regardless of context.

Bug: 69568963

Test: tests/test.py

Change-Id: Ie285c4691dbaa58389a041fee5116ccbfc7985ce
2017-12-19 00:21:23 -08:00
Jae Shin
ba7456d513 Add 'notice' attribute to prebuilts in Android.bp
Test: development/vndk/snapshot/build.sh && python update.py 27
--local -vv && m -j PRODUCT_EXTRA_VNDK_VERSIONS=27, then make sure
NOTICE files for /system/lib[64]/vndk[-sp]-27 are included in
/system/etc/NOTICE.xml.gz
Bug: 70603439

Change-Id: I54dd13e1c3c46c4f690d62604544c61585807160
2017-12-18 22:52:10 +09:00
Colin Cross
26690954e5 Merge "Add core-lambda-stubs.jar to the SDK" into oc-mr1-dev am: ea4886dc74 -s ours
am: 68cca262e5  -s ours

Change-Id: I32240a649059cd4ac1f2b24b1cdea361cc07574a
2017-12-15 23:12:54 +00:00
Colin Cross
68cca262e5 Merge "Add core-lambda-stubs.jar to the SDK" into oc-mr1-dev
am: ea4886dc74  -s ours

Change-Id: I4ea3aaa4feb00ecba065aceb7219e651e7660581
2017-12-15 23:04:03 +00:00
TreeHugger Robot
ea4886dc74 Merge "Add core-lambda-stubs.jar to the SDK" into oc-mr1-dev 2017-12-15 23:00:31 +00:00
Elliott Hughes
abbe6f888b Merge "Remove obsolete tutorial source." am: 0ce58c5f2f am: e5c2b42d5b
am: aef779013c

Change-Id: Ibce2a8e4660621dddcd78298a8c6b49125cb3dba
2017-12-15 22:31:19 +00:00
Elliott Hughes
aef779013c Merge "Remove obsolete tutorial source." am: 0ce58c5f2f
am: e5c2b42d5b

Change-Id: I7a7d47a4f213ff0788bcb20d568451e9a087ad99
2017-12-15 22:20:45 +00:00
Elliott Hughes
e5c2b42d5b Merge "Remove obsolete tutorial source."
am: 0ce58c5f2f

Change-Id: Ieead83c6ad35231e34273128fe55197c6ff52c17
2017-12-15 22:13:08 +00:00
Elliott Hughes
0ce58c5f2f Merge "Remove obsolete tutorial source." 2017-12-15 22:01:09 +00:00
Paul Duffin
4fe452b0e7 Add android.test.base/stubs dependency
In preparation for the removal of the non-junit classes in the
android.test.base library from the android.jar this adds a dependency
on android.test.base/stubs to ensure this code will continue to
compile.

The following change descriptions were generated automatically and so
may be a little repetitive. They are provided to give the reviewer
enough information to check the comments match what has actually been
changed and check the reasoning behind the changes.

* samples/ApiDemos/tests/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    ApiDemosTests's will need them in order to compile once its classes
    are removed from the current SDK on which it currently depends.

* samples/BrokenKeyDerivation/tests/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    BrokenKeyDerivationTests's will need them in order to compile once
    its classes are removed from the current SDK on which it currently
    depends.

* samples/HelloActivity/tests/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    HelloActivityTests's will need them in order to compile once its
    classes are removed from the current SDK on which it currently
    depends.

* samples/LunarLander/tests/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    LunarLanderTests's will need them in order to compile once its
    classes are removed from the current SDK on which it currently
    depends.

* samples/SkeletonApp/tests/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    SkeletonAppTests's will need them in order to compile once its
    classes are removed from the current SDK on which it currently
    depends.

* samples/Snake/tests/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    SnakeTests's will need them in order to compile once its classes
    are removed from the current SDK on which it currently depends.

* samples/Vault/Android.mk
    Added 'android.test.base.stubs' to LOCAL_JAVA_LIBRARIES because
    Vault's will need them in order to compile once its classes are
    removed from the current SDK on which it currently depends.

Bug: 30188076
Test: make dist
Change-Id: Id7fb558504706668a85bf840529f6cd075499d6a
2017-12-15 07:22:37 +00:00
Elliott Hughes
8c2e1f9813 Merge "Add vndk OWNERS." am: d74b970584 am: 9ad0034164
am: c9d1552d81

Change-Id: I592c7960ad56a8221fa119c5b04907fe7510e0a7
2017-12-15 02:29:36 +00:00
Elliott Hughes
c9d1552d81 Merge "Add vndk OWNERS." am: d74b970584
am: 9ad0034164

Change-Id: If91a87ac3b33a1d9ef972b6da407c4cf6dee6f17
2017-12-15 02:18:55 +00:00
Elliott Hughes
9ad0034164 Merge "Add vndk OWNERS."
am: d74b970584

Change-Id: I9acf8bbce2e12c1b8a963ee6e91bfb0bfbef289c
2017-12-15 02:12:50 +00:00
Treehugger Robot
d74b970584 Merge "Add vndk OWNERS." 2017-12-15 02:05:12 +00:00
bohu
35c7a37e5f Merge "add OWNERS for development/sys-img" am: 7dda5d586e am: 8a33b9780e
am: 89af50ba78

Change-Id: Ifceb6c88c48fe53f0d4d93cc47ef348f42c576aa
2017-12-15 01:36:14 +00:00
bohu
89af50ba78 Merge "add OWNERS for development/sys-img" am: 7dda5d586e
am: 8a33b9780e

Change-Id: If228a6e34ccb62a12aac9b1dcedbd1cda7868f1b
2017-12-15 01:33:41 +00:00
bohu
8a33b9780e Merge "add OWNERS for development/sys-img"
am: 7dda5d586e

Change-Id: I70db9d39fff5f98eafa94397f25d0fdf824968f7
2017-12-15 01:29:10 +00:00
Treehugger Robot
7dda5d586e Merge "add OWNERS for development/sys-img" 2017-12-15 01:23:48 +00:00
Elliott Hughes
03137f4e96 Merge "Remove dead cruft." am: e9ba970f2d am: 9cfa0a80e1
am: d543c9c5ee

Change-Id: I70ebe9ea11e9c49138aa422685a99ddef4972ba9
2017-12-15 01:05:12 +00:00
Elliott Hughes
d543c9c5ee Merge "Remove dead cruft." am: e9ba970f2d
am: 9cfa0a80e1

Change-Id: I4be837e13ec9d18f9244ac947d75e162b9b5286a
2017-12-15 01:02:11 +00:00
Elliott Hughes
9cfa0a80e1 Merge "Remove dead cruft."
am: e9ba970f2d

Change-Id: I43041b9644da8de7dffd99c45eadb06d04c1a849
2017-12-15 00:59:32 +00:00