Commit Graph

25982 Commits

Author SHA1 Message Date
Louis Pullen-Freilich
0d2db8feb9 Merge "Removes framework Preference demos" 2018-11-16 17:16:17 +00:00
Hsin-Yi Chen
59ff9d98cc Merge "Let header-abi-dumper declare unknown types automatically" am: fcafbf84ee am: 6ef900bcd4
am: dc6695ca21

Change-Id: Ifd9807300ae85634e493d879de31a7b7723ad6b6
2018-11-15 22:55:38 -08:00
Hsin-Yi Chen
dc6695ca21 Merge "Let header-abi-dumper declare unknown types automatically" am: fcafbf84ee
am: 6ef900bcd4

Change-Id: I35e544e9526b8d8ac49dc8473757cae8428ffb0c
2018-11-15 22:50:29 -08:00
Hsin-Yi Chen
6ef900bcd4 Merge "Let header-abi-dumper declare unknown types automatically"
am: fcafbf84ee

Change-Id: If005234add470892bc7e15188c38756d4ef3733a
2018-11-15 22:46:10 -08:00
Hsin-Yi Chen
fcafbf84ee Merge "Let header-abi-dumper declare unknown types automatically" 2018-11-16 06:27:03 +00:00
Louis Pullen-Freilich
946280d6ce Removes framework Preference demos
The framework Preference APIs are being deprecated, so removing the
samples will help avoid confusion.

Bug: b/119602280
Test: n/a
Change-Id: Ib3a2c38b8fbb0f1afc9ef6a35963def46ee931f7
2018-11-15 12:51:50 +00:00
Logan Chien
f56dc2c29d Merge "header-checker: Code cleanup" am: 3fc148f690 am: 24015b58e8
am: db37d35fa8

Change-Id: Ia318e3e23398f7b98d3aa680125fc3b83a68f5a6
2018-11-15 01:57:45 -08:00
Logan Chien
db37d35fa8 Merge "header-checker: Code cleanup" am: 3fc148f690
am: 24015b58e8

Change-Id: I91db5065da6e6046b0d5f387cc4248266c96312a
2018-11-15 01:50:20 -08:00
Logan Chien
24015b58e8 Merge "header-checker: Code cleanup"
am: 3fc148f690

Change-Id: I211936cce1176268dcb2005182fe85f442413207
2018-11-15 01:45:27 -08:00
Logan Chien
3fc148f690 Merge "header-checker: Code cleanup" 2018-11-15 09:30:32 +00:00
Hsin-Yi Chen
6d6193f63f Let header-abi-dumper declare unknown types automatically
When the compiler finds an unknown type, it queries ExternalSemaSource
for the declaration. If the type is not declared anywhere, the compiler
ignores the type name and sets the type to int.

To keep the type name in AST, this commit adds FakeDeclSource that
creates declarations for the unknown types.

Test: header-abi-dumper test.h -o test.txt -suppress-errors -dump-function-declarations -- -x c++
Bug: 117582158
Change-Id: I2d49b7a4f9e2a991224e6702938bc63744bba039
2018-11-15 09:18:51 +00:00
TreeHugger Robot
76804c6cf0 Merge "Update Monkey to lookup the current user so that it can execute against secondary users." 2018-11-13 20:12:30 +00:00
Logan Chien
a730419936 header-checker: Code cleanup
This commit breaks `HeaderAbiLinker::LinkAndDump()` into several
functions, moves `llvm::object::Binary`-related code to `SoFileParser`,
removes unused code in `IRReader`, and remove some space characters
before semicolon.

Test: ./tests/test.py
Change-Id: I9f90f07985c84ff95bf093c65ede091d44849e33
2018-11-13 14:46:13 +08:00
Yohei Yukawa
7bdd3d35c0 Make MultiClientInputMethod optional build target
Otherwise SDK build will fail because this target puts artifacts to
privileged app dir, which is not expected for samples in the SDK
build.

You can still build MultiClientInputMethod on command line by
explicitly specifying this in the build target.

Bug: 115784148
Test: locally verified as follows:
  lunch sdk_phone_armv7-userdebug
  make -j PRODUCT-sdk_phone_armv7-sdk
Change-Id: I09282fa39d13f8078881a3b215cad7d3c0e81486
2018-11-12 20:21:37 -08:00
TreeHugger Robot
9a069aa812 Merge "Add a sample multi-client IME" 2018-11-13 03:43:48 +00:00
Logan Chien
96ca4c932a Merge "def-tool: Add libclang_rt*.so to update_dataset.py" am: 75fbfc74af am: 1a8e24ce5d
am: f8954eea51

Change-Id: I24f055344dd60348e557ae8b531645ed37131305
2018-11-12 18:41:29 -08:00
Logan Chien
f8954eea51 Merge "def-tool: Add libclang_rt*.so to update_dataset.py" am: 75fbfc74af
am: 1a8e24ce5d

Change-Id: I1860b0bbcb9272f504388e40f3221f3a4164d6a9
2018-11-12 18:14:52 -08:00
Logan Chien
1a8e24ce5d Merge "def-tool: Add libclang_rt*.so to update_dataset.py"
am: 75fbfc74af

Change-Id: Iec63f58effe375a6bc9dc158cdf1cc027d42ca9b
2018-11-12 17:47:28 -08:00
Logan Chien
75fbfc74af Merge "def-tool: Add libclang_rt*.so to update_dataset.py" 2018-11-13 01:20:41 +00:00
Yohei Yukawa
eb0868906c Add a sample multi-client IME
This CL adds a sample multi-client IME.  Ahthough there are still many
limitations and missing features in this sample IME, this CL
demonstrates how a multi-client IME can be implemented.

Fix: 115784148
Test: prebuilts/checkstyle/checkstyle.py -f \
      development/samples/MultiClientInputMethod/
Test: Manually verified as follows:
  1. make -j MultiClientInputMethod
  2. adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
  3. adb root
  4. adb shell setprop persist.debug.multi_client_ime \
       com.example.android.multiclientinputmethod/.MultiClientInputMethod
  5. adb reboot
  6. Try multiple text input scenario
Change-Id: Ide43e16448fa00355a2c08bc45ae94d98553da50
2018-11-12 15:09:07 -08:00
Logan Chien
ceb1c20000 Merge "def-tool: Update vndk-lib-extra-list-current.txt" am: 688f152463 am: df67fe342d
am: 9d56d2a12b

Change-Id: If61075edd4f2d4d0e36cbdd05705440a5dc03505
2018-11-09 01:40:00 -08:00
Logan Chien
9d56d2a12b Merge "def-tool: Update vndk-lib-extra-list-current.txt" am: 688f152463
am: df67fe342d

Change-Id: I9e29e6aee6437966972aca3ed7885ea9f5867aaa
2018-11-09 01:34:48 -08:00
Logan Chien
df67fe342d Merge "def-tool: Update vndk-lib-extra-list-current.txt"
am: 688f152463

Change-Id: If6561f0869d4fdfbba16c9ea843608f8114f4933
2018-11-09 01:29:41 -08:00
Logan Chien
688f152463 Merge "def-tool: Update vndk-lib-extra-list-current.txt" 2018-11-09 09:15:44 +00:00
Hsin-Yi Chen
812e70e0e3 Merge "Update unit tests for -dump-function-declarations" am: 376b57580e am: e9c44e6e98
am: eec010ccfb

Change-Id: I406644123bf440ae5ebd60d54d43d3041a4e4a10
2018-11-09 00:48:59 -08:00
Hsin-Yi Chen
eec010ccfb Merge "Update unit tests for -dump-function-declarations" am: 376b57580e
am: e9c44e6e98

Change-Id: I89c75f29a12470b2369c8795a9e674eed31a3018
2018-11-09 00:43:55 -08:00
Hsin-Yi Chen
e9c44e6e98 Merge "Update unit tests for -dump-function-declarations"
am: 376b57580e

Change-Id: Ife847178f6bd837f875ce59ae0cc959e278275a0
2018-11-09 00:38:57 -08:00
Hsin-Yi Chen
376b57580e Merge "Update unit tests for -dump-function-declarations" 2018-11-09 08:22:50 +00:00
Logan Chien
583a639da8 def-tool: Add libclang_rt*.so to update_dataset.py
Test: ./tools/update_dataset_auto.py [eligible_list]
Change-Id: I54ae37d6e3cc65b3fc31cfc6d6f8f29d512761fb
2018-11-09 14:14:13 +08:00
Logan Chien
41606063ed def-tool: Update vndk-lib-extra-list-current.txt
This commit adds libclang_rt.scudo*.so to
vndk-lib-extra-list-current.txt.

Bug: 117997372
Test: vts-tradefed run vts -m VtsVndkFiles
Change-Id: I806188793fa4798950275ea87989ea0d742c0333
2018-11-09 14:14:04 +08:00
Logan Chien
f1ee469479 Merge "header-checker: Fix unit test include directories" am: 3e48f47adc am: a65d6604df
am: 88e49443d3

Change-Id: I1d9e10f75b0ca499705097c54d9110a1491c7ec1
2018-11-08 22:00:57 -08:00
Logan Chien
88e49443d3 Merge "header-checker: Fix unit test include directories" am: 3e48f47adc
am: a65d6604df

Change-Id: Ide154d4c5f3063d856ce615578afc25d18419c4b
2018-11-08 21:55:00 -08:00
Logan Chien
a65d6604df Merge "header-checker: Fix unit test include directories"
am: 3e48f47adc

Change-Id: If613d84d3faeb4a49188543f9009808a2d06fe30
2018-11-08 21:49:53 -08:00
Logan Chien
3e48f47adc Merge "header-checker: Fix unit test include directories" 2018-11-09 05:27:44 +00:00
Nicholas Sauer
fed1b54c14 Update Monkey to lookup the current user so that it can execute against secondary users.
bug: 118503943
Test: cts-tradefed run cts-dev -a arm64-v8a -m CtsMonkeyTestCases -t com.android.cts.monkey.MonkeyTest#testIsMonkey
Change-Id: Id7d320fddfbf91d4451a4e141a91614ee9104dec
2018-11-09 04:28:01 +00:00
Hsin-Yi Chen
b7565950ef Update unit tests for -dump-function-declarations
- Apply -dump-function-declarations to input/*.h.
- Add an explicitly deleted function to input/example1.h.
- Remove gen_expected_output.py and input/func_decl_*.h.

Bug: 71485848
Bug: 117582158
Test: ./test.py
Change-Id: Ic81448a3607c23bfb10781b4df097578814b7118
2018-11-08 18:07:27 +08:00
Hsin-Yi Chen
4c51705863 Merge "Add a command line option to dump function declarations" am: 508383c403 am: 8a01a00c99
am: 1581a39521

Change-Id: Idcd7f819b090dcacf9e177da68f61d75a7bc4e30
2018-11-08 00:50:40 -08:00
Hsin-Yi Chen
1581a39521 Merge "Add a command line option to dump function declarations" am: 508383c403
am: 8a01a00c99

Change-Id: I9df8de483934030db971788ba33a8b96a1c7abac
2018-11-08 00:45:54 -08:00
Hsin-Yi Chen
8a01a00c99 Merge "Add a command line option to dump function declarations"
am: 508383c403

Change-Id: I9a7b7380ad746b5b189d7354ef9bfa822d437506
2018-11-08 00:40:59 -08:00
Treehugger Robot
508383c403 Merge "Add a command line option to dump function declarations" 2018-11-08 08:27:26 +00:00
Hsin-Yi Chen
3d1ad14df9 Add a command line option to dump function declarations
If -dump-function-declarations is specified, header-abi-dumper outputs
the functions declared but not defined in the input file. The command
line option can be used to dump header files.

Test: header-abi-dumper -suppress-errors -dump-function-declarations system/libfmq/include/fmq/MessageQueue.h -o test.txt --
Bug: 117582158
Bug: 71485848
Change-Id: I85a3944047e085a032779a69b04ac5211f3b9467
2018-11-08 15:03:25 +08:00
Logan Chien
ce6ea7999f header-checker: Fix unit test include directories
This commit fixes the built-in include directories for header-abi-dumper
unit test cases. Remove the reference to
`prebuilts/sdk/renderscript/clang-include` because we don't check out
`prebuilts/sdk` in `aosp-clang-tools` branch.

Test: PATH=out/soong/dist/bin:$PATH \
development/vndk/tools/header-checker/tests/test.py

Change-Id: Ieb24b0a53b719f4569149251efcdaa3722c0b88c
2018-11-08 14:48:47 +08:00
Hsin-Yi Chen
c0ff5c5563 Merge "Add a command line option to suppress compilation errors" am: 419ef1bf8e am: 14895d4c88
am: e8395a287e

Change-Id: I53f22489c27a699ec77cb386417c6924c979e594
2018-11-06 23:47:32 -08:00
Hsin-Yi Chen
e8395a287e Merge "Add a command line option to suppress compilation errors" am: 419ef1bf8e
am: 14895d4c88

Change-Id: Id540ebb8ad6523078613abb1776164b37b1a619b
2018-11-06 23:43:45 -08:00
Hsin-Yi Chen
14895d4c88 Merge "Add a command line option to suppress compilation errors"
am: 419ef1bf8e

Change-Id: I47a7612b5000ead27229108f2efac1269be26008
2018-11-06 23:39:56 -08:00
Hsin-Yi Chen
419ef1bf8e Merge "Add a command line option to suppress compilation errors" 2018-11-07 07:28:17 +00:00
Hsin-Yi Chen
46879ef2f2 Add a command line option to suppress compilation errors
Some header files have assumpion on predefined macros or include order,
which causes compilation errors when header-abi-dumper parses each
header individually. This commit adds the -suppress-errors option that
makes header-abi-dumper tolerate the errors.

Bug: 117582158
Test: header-abi-dumper -suppress-errors test.h -o test.txt --
Change-Id: Ie0eb278f8c006d1d05a9dcd92a9944289b930505
2018-11-07 11:52:11 +08:00
Junyu Lai
a7a941bf54 Merge "Add C++ support for coding style check tool." am: a93b22a51c am: 7fdbd9c776
am: 3c6ed00a0a

Change-Id: I41115bda490d64671ff32d10c4886350c5a8eafb
2018-11-04 18:45:20 -08:00
Junyu Lai
3c6ed00a0a Merge "Add C++ support for coding style check tool." am: a93b22a51c
am: 7fdbd9c776

Change-Id: Idb0a5c2563c99a21e336c901e9b042b914889f99
2018-11-04 18:19:07 -08:00
Junyu Lai
7fdbd9c776 Merge "Add C++ support for coding style check tool."
am: a93b22a51c

Change-Id: Idee042caad8642fcc9f02a25ef627f7d802ada87
2018-11-04 18:05:43 -08:00